2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for xf86-input-synaptics 1.2.2.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49
if (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 ||
83
# Support unset when possible.
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92
# We need space, tab and new line, in precisely that order. Quoting is
93
# there to prevent editors from complaining about space-tab.
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95
# splitting by setting IFS to empty value.)
98
# Find who we are. Look in the path if we contain no directory separator.
100
*[\\/]* ) as_myself=$0 ;;
101
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105
test -z "$as_dir" && as_dir=.
106
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
113
# in which case we are not to be found in the path.
114
if test "x$as_myself" = x; then
117
if test ! -f "$as_myself"; then
118
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119
{ (exit 1); exit 1; }
122
# Work around bugs in pre-3.0 UWIN ksh.
123
for as_var in ENV MAIL MAILPATH
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
test "X`expr 00001 : '.*\(...\)'`" = X001; then
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
X"$0" : 'X\(//\)$' \| \
155
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157
sed '/^.*\/\([^/][^/]*\)\/*$/{
175
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
182
if test $as_have_required = yes && (eval ":
192
as_func_ret_success () {
195
as_func_ret_failure () {
200
if as_func_success; then
204
echo as_func_success failed.
207
if as_func_failure; then
209
echo as_func_failure succeeded.
212
if as_func_ret_success; then
216
echo as_func_ret_success failed.
219
if as_func_ret_failure; then
221
echo as_func_ret_failure succeeded.
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228
echo positional parameters were not saved.
231
test \$exitcode = 0) || { (exit 1); exit 1; }
236
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
test -z "$as_dir" && as_dir=.
249
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257
for as_shell in $as_candidate_shells $SHELL; do
258
# Try only shells that exist, to save several forks.
259
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
279
CONFIG_SHELL=$as_shell
281
if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
# is contrary to our usage. Disable this feature.
287
alias -g '${1+"$@"}'='"$@"'
290
case `(set -o) 2>/dev/null` in
291
*posix*) set -o posix ;;
307
as_func_ret_success () {
310
as_func_ret_failure () {
315
if as_func_success; then
319
echo as_func_success failed.
322
if as_func_failure; then
324
echo as_func_failure succeeded.
327
if as_func_ret_success; then
331
echo as_func_ret_success failed.
334
if as_func_ret_failure; then
336
echo as_func_ret_failure succeeded.
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
343
echo positional parameters were not saved.
346
test $exitcode = 0) || { (exit 1); exit 1; }
351
test "x$as_lineno_1" != "x$as_lineno_2" &&
352
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363
if test "x$CONFIG_SHELL" != x; then
364
for as_var in BASH_ENV ENV
365
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372
if test $as_have_required = no; then
373
echo This script requires a shell more modern than all the
374
echo shells that I found on your system. Please install a
375
echo modern shell, or manually run the script under such a
376
echo shell if you do have one.
377
{ (exit 1); exit 1; }
387
(eval "as_func_return () {
396
as_func_ret_success () {
399
as_func_ret_failure () {
404
if as_func_success; then
408
echo as_func_success failed.
411
if as_func_failure; then
413
echo as_func_failure succeeded.
416
if as_func_ret_success; then
420
echo as_func_ret_success failed.
423
if as_func_ret_failure; then
425
echo as_func_ret_failure succeeded.
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432
echo positional parameters were not saved.
435
test \$exitcode = 0") || {
436
echo No shell found that supports shell functions.
437
echo Please tell bug-autoconf@gnu.org about your system,
438
echo including any error possibly output before this message.
439
echo This can help us improve future autoconf versions.
440
echo Configuration will now proceed without shell functions.
447
test "x$as_lineno_1" != "x$as_lineno_2" &&
448
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
# uniformly replaced by the line number. The first 'sed' inserts a
452
# line-number line after each line using $LINENO; the second 'sed'
453
# does the real work. The second script uses 'N' to pair each
454
# line-number line with the line containing $LINENO, and appends
455
# trailing '-' during substitution so that $LINENO is not a special
457
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
# scripts with optimization help from Paolo Bonzini. Blame Lee
459
# E. McMahon (1931-1989) for sed's syntax. :-)
471
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475
chmod +x "$as_me.lineno" ||
476
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477
{ (exit 1); exit 1; }; }
479
# Don't try to exec as it changes $[0], causing all sort of problems
480
# (the dirname of $[0] is not the place where we might find the
481
# original and so on. Autoconf is especially sensitive to this).
483
# Exit status is that of the last command.
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494
ECHO_C= ECHO_N= ECHO_T=
498
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
505
test "X`expr 00001 : '.*\(...\)'`" = X001; then
511
rm -f conf$$ conf$$.exe conf$$.file
512
if test -d conf$$.dir; then
513
rm -f conf$$.dir/conf$$.file
516
mkdir conf$$.dir 2>/dev/null
518
if (echo >conf$$.file) 2>/dev/null; then
519
if ln -s conf$$.file conf$$ 2>/dev/null; then
521
# ... but there are two gotchas:
522
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524
# In both cases, we have to default to `cp -p'.
525
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527
elif ln conf$$.file conf$$ 2>/dev/null; then
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536
rmdir conf$$.dir 2>/dev/null
538
if mkdir -p . 2>/dev/null; then
541
test -d ./-p && rmdir ./-p
545
if test -x / >/dev/null 2>&1; then
548
if ls -dL / >/dev/null 2>&1; then
555
if test -d "$1"; then
561
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562
???[sx]*):;;*)false;;esac;fi
566
as_executable_p=$as_test_x
568
# Sed expression to map a string onto a valid CPP name.
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
# Sed expression to map a string onto a valid variable name.
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577
# Check that we are running under the correct shell.
578
SHELL=${CONFIG_SHELL-/bin/sh}
582
# Remove one level of quotation (which was required for Make).
583
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588
if test "X$1" = X--no-reexec; then
589
# Discard the --no-reexec flag, and continue.
591
elif test "X$1" = X--fallback-echo; then
592
# Avoid inline document here, it may be left over
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595
# Yippee, $ECHO works!
598
# Restart under the correct shell.
599
exec $SHELL "$0" --no-reexec ${1+"$@"}
602
if test "X$1" = X--fallback-echo; then
603
# used as fallback echo
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
if test -z "$lt_ECHO"; then
616
if test "X${echo_test_string+set}" != Xset; then
617
# find a string as large as possible, as long as the shell can cope with it
618
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630
test "X$echo_testing_string" = "X$echo_test_string"; then
633
# The Solaris, AIX, and Digital Unix default echo programs unquote
634
# backslashes. This makes it impossible to quote backslashes using
635
# echo "$something" | sed 's/\\/\\\\/g'
637
# So, first we look for a working echo in the user's PATH.
639
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640
for dir in $PATH /usr/ucb; do
642
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645
test "X$echo_testing_string" = "X$echo_test_string"; then
652
if test "X$ECHO" = Xecho; then
653
# We didn't find a better echo, so look for alternatives.
654
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656
test "X$echo_testing_string" = "X$echo_test_string"; then
657
# This shell has a builtin print -r that does the trick.
659
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660
test "X$CONFIG_SHELL" != X/bin/ksh; then
661
# If we have ksh, try running configure again with it.
662
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663
export ORIGINAL_CONFIG_SHELL
664
CONFIG_SHELL=/bin/ksh
666
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672
test "X$echo_testing_string" = "X$echo_test_string"; then
675
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676
test "X$echo_testing_string" = 'X\t' &&
677
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678
test "X$echo_testing_string" = "X$echo_test_string"; then
679
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681
SHELL="$CONFIG_SHELL"
683
ECHO="$CONFIG_SHELL $0 --fallback-echo"
684
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685
test "X$echo_testing_string" = 'X\t' &&
686
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687
test "X$echo_testing_string" = "X$echo_test_string"; then
688
ECHO="$CONFIG_SHELL $0 --fallback-echo"
690
# maybe with a smaller string...
693
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701
if test "$prev" != 'sed 50q "$0"'; then
702
echo_test_string=`eval $prev`
703
export echo_test_string
704
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706
# Oops. We lost completely, so just stick with echo.
715
# Copy echo and quote the copy suitably for passing to libtool from
716
# the Makefile, instead of quoting the original, which is used later.
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725
exec 7<&0 </dev/null 6>&1
728
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729
# so uname gets run too.
730
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
ac_default_prefix=/usr/local
737
ac_config_libobj_dir=.
743
SHELL=${CONFIG_SHELL-/bin/sh}
745
# Identity of this package.
746
PACKAGE_NAME='xf86-input-synaptics'
747
PACKAGE_TARNAME='xf86-input-synaptics'
748
PACKAGE_VERSION='1.2.2'
749
PACKAGE_STRING='xf86-input-synaptics 1.2.2'
750
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
752
ac_unique_file="Makefile.am"
753
# Factoring default headers for most tests.
754
ac_includes_default="\
756
#ifdef HAVE_SYS_TYPES_H
757
# include <sys/types.h>
759
#ifdef HAVE_SYS_STAT_H
760
# include <sys/stat.h>
766
# ifdef HAVE_STDLIB_H
771
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776
#ifdef HAVE_STRINGS_H
777
# include <strings.h>
779
#ifdef HAVE_INTTYPES_H
780
# include <inttypes.h>
789
ac_subst_vars='am__EXEEXT_FALSE
798
RECORDPROTO_1_13_LIBS
799
RECORDPROTO_1_13_CFLAGS
803
HAVE_PROPERTIES_FALSE
813
BUILD_EVENTCOMM_FALSE
879
MAINTAINER_MODE_FALSE
889
INSTALL_STRIP_PROGRAM
931
program_transform_name
943
enable_option_checking
944
enable_maintainer_mode
949
enable_dependency_tracking
952
enable_strict_compilation
958
ac_precious_vars='build_alias
974
RECORDPROTO_1_13_CFLAGS
975
RECORDPROTO_1_13_LIBS
980
# Initialize some variables set by options.
982
ac_init_version=false
983
ac_unrecognized_opts=
985
# The variables have the same names as the options, with
986
# dashes changed to underlines.
994
program_transform_name=s,x,x,
1002
# Installation directory options.
1003
# These are left unexpanded so users can "make install exec_prefix=/foo"
1004
# and all the variables that are supposed to be based on exec_prefix
1005
# by default will actually change.
1006
# Use braces instead of parens because sh, perl, etc. also accept them.
1007
# (The list follows the same order as the GNU Coding Standards.)
1008
bindir='${exec_prefix}/bin'
1009
sbindir='${exec_prefix}/sbin'
1010
libexecdir='${exec_prefix}/libexec'
1011
datarootdir='${prefix}/share'
1012
datadir='${datarootdir}'
1013
sysconfdir='${prefix}/etc'
1014
sharedstatedir='${prefix}/com'
1015
localstatedir='${prefix}/var'
1016
includedir='${prefix}/include'
1017
oldincludedir='/usr/include'
1018
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019
infodir='${datarootdir}/info'
1024
libdir='${exec_prefix}/lib'
1025
localedir='${datarootdir}/locale'
1026
mandir='${datarootdir}/man'
1032
# If the previous option needs an argument, assign it.
1033
if test -n "$ac_prev"; then
1034
eval $ac_prev=\$ac_option
1040
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044
# Accept the important Cygnus configure options, so we can diagnose typos.
1046
case $ac_dashdash$ac_option in
1050
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1052
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053
bindir=$ac_optarg ;;
1055
-build | --build | --buil | --bui | --bu)
1056
ac_prev=build_alias ;;
1057
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058
build_alias=$ac_optarg ;;
1060
-cache-file | --cache-file | --cache-fil | --cache-fi \
1061
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062
ac_prev=cache_file ;;
1063
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065
cache_file=$ac_optarg ;;
1067
--config-cache | -C)
1068
cache_file=config.cache ;;
1070
-datadir | --datadir | --datadi | --datad)
1072
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1073
datadir=$ac_optarg ;;
1075
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076
| --dataroo | --dataro | --datar)
1077
ac_prev=datarootdir ;;
1078
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080
datarootdir=$ac_optarg ;;
1082
-disable-* | --disable-*)
1083
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084
# Reject names that are not valid shell variable names.
1085
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1087
{ (exit 1); exit 1; }; }
1088
ac_useropt_orig=$ac_useropt
1089
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090
case $ac_user_opts in
1092
"enable_$ac_useropt"
1094
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095
ac_unrecognized_sep=', ';;
1097
eval enable_$ac_useropt=no ;;
1099
-docdir | --docdir | --docdi | --doc | --do)
1101
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102
docdir=$ac_optarg ;;
1104
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107
dvidir=$ac_optarg ;;
1109
-enable-* | --enable-*)
1110
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111
# Reject names that are not valid shell variable names.
1112
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1114
{ (exit 1); exit 1; }; }
1115
ac_useropt_orig=$ac_useropt
1116
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117
case $ac_user_opts in
1119
"enable_$ac_useropt"
1121
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122
ac_unrecognized_sep=', ';;
1124
eval enable_$ac_useropt=\$ac_optarg ;;
1126
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128
| --exec | --exe | --ex)
1129
ac_prev=exec_prefix ;;
1130
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132
| --exec=* | --exe=* | --ex=*)
1133
exec_prefix=$ac_optarg ;;
1135
-gas | --gas | --ga | --g)
1136
# Obsolete; use --with-gas.
1139
-help | --help | --hel | --he | -h)
1140
ac_init_help=long ;;
1141
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142
ac_init_help=recursive ;;
1143
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144
ac_init_help=short ;;
1146
-host | --host | --hos | --ho)
1147
ac_prev=host_alias ;;
1148
-host=* | --host=* | --hos=* | --ho=*)
1149
host_alias=$ac_optarg ;;
1151
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155
htmldir=$ac_optarg ;;
1157
-includedir | --includedir | --includedi | --included | --include \
1158
| --includ | --inclu | --incl | --inc)
1159
ac_prev=includedir ;;
1160
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161
| --includ=* | --inclu=* | --incl=* | --inc=*)
1162
includedir=$ac_optarg ;;
1164
-infodir | --infodir | --infodi | --infod | --info | --inf)
1166
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167
infodir=$ac_optarg ;;
1169
-libdir | --libdir | --libdi | --libd)
1171
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1172
libdir=$ac_optarg ;;
1174
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175
| --libexe | --libex | --libe)
1176
ac_prev=libexecdir ;;
1177
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178
| --libexe=* | --libex=* | --libe=*)
1179
libexecdir=$ac_optarg ;;
1181
-localedir | --localedir | --localedi | --localed | --locale)
1182
ac_prev=localedir ;;
1183
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184
localedir=$ac_optarg ;;
1186
-localstatedir | --localstatedir | --localstatedi | --localstated \
1187
| --localstate | --localstat | --localsta | --localst | --locals)
1188
ac_prev=localstatedir ;;
1189
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191
localstatedir=$ac_optarg ;;
1193
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196
mandir=$ac_optarg ;;
1198
-nfp | --nfp | --nf)
1199
# Obsolete; use --without-fp.
1202
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203
| --no-cr | --no-c | -n)
1206
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212
| --oldin | --oldi | --old | --ol | --o)
1213
ac_prev=oldincludedir ;;
1214
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217
oldincludedir=$ac_optarg ;;
1219
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222
prefix=$ac_optarg ;;
1224
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1225
| --program-pre | --program-pr | --program-p)
1226
ac_prev=program_prefix ;;
1227
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1228
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229
program_prefix=$ac_optarg ;;
1231
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1232
| --program-suf | --program-su | --program-s)
1233
ac_prev=program_suffix ;;
1234
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1235
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236
program_suffix=$ac_optarg ;;
1238
-program-transform-name | --program-transform-name \
1239
| --program-transform-nam | --program-transform-na \
1240
| --program-transform-n | --program-transform- \
1241
| --program-transform | --program-transfor \
1242
| --program-transfo | --program-transf \
1243
| --program-trans | --program-tran \
1244
| --progr-tra | --program-tr | --program-t)
1245
ac_prev=program_transform_name ;;
1246
-program-transform-name=* | --program-transform-name=* \
1247
| --program-transform-nam=* | --program-transform-na=* \
1248
| --program-transform-n=* | --program-transform-=* \
1249
| --program-transform=* | --program-transfor=* \
1250
| --program-transfo=* | --program-transf=* \
1251
| --program-trans=* | --program-tran=* \
1252
| --progr-tra=* | --program-tr=* | --program-t=*)
1253
program_transform_name=$ac_optarg ;;
1255
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258
pdfdir=$ac_optarg ;;
1260
-psdir | --psdir | --psdi | --psd | --ps)
1262
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266
| -silent | --silent | --silen | --sile | --sil)
1269
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273
sbindir=$ac_optarg ;;
1275
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1276
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277
| --sharedst | --shareds | --shared | --share | --shar \
1279
ac_prev=sharedstatedir ;;
1280
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284
sharedstatedir=$ac_optarg ;;
1286
-site | --site | --sit)
1288
-site=* | --site=* | --sit=*)
1291
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294
srcdir=$ac_optarg ;;
1296
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297
| --syscon | --sysco | --sysc | --sys | --sy)
1298
ac_prev=sysconfdir ;;
1299
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301
sysconfdir=$ac_optarg ;;
1303
-target | --target | --targe | --targ | --tar | --ta | --t)
1304
ac_prev=target_alias ;;
1305
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306
target_alias=$ac_optarg ;;
1308
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1311
-version | --version | --versio | --versi | --vers | -V)
1312
ac_init_version=: ;;
1315
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316
# Reject names that are not valid shell variable names.
1317
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319
{ (exit 1); exit 1; }; }
1320
ac_useropt_orig=$ac_useropt
1321
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322
case $ac_user_opts in
1326
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327
ac_unrecognized_sep=', ';;
1329
eval with_$ac_useropt=\$ac_optarg ;;
1331
-without-* | --without-*)
1332
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1333
# Reject names that are not valid shell variable names.
1334
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1336
{ (exit 1); exit 1; }; }
1337
ac_useropt_orig=$ac_useropt
1338
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339
case $ac_user_opts in
1343
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344
ac_unrecognized_sep=', ';;
1346
eval with_$ac_useropt=no ;;
1349
# Obsolete; use --with-x.
1352
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353
| --x-incl | --x-inc | --x-in | --x-i)
1354
ac_prev=x_includes ;;
1355
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357
x_includes=$ac_optarg ;;
1359
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1360
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361
ac_prev=x_libraries ;;
1362
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364
x_libraries=$ac_optarg ;;
1366
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1367
Try \`$0 --help' for more information." >&2
1368
{ (exit 1); exit 1; }; }
1372
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373
# Reject names that are not valid shell variable names.
1374
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1375
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1376
{ (exit 1); exit 1; }; }
1377
eval $ac_envvar=\$ac_optarg
1378
export $ac_envvar ;;
1381
# FIXME: should be removed in autoconf 3.0.
1382
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1391
if test -n "$ac_prev"; then
1392
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1394
{ (exit 1); exit 1; }; }
1397
if test -n "$ac_unrecognized_opts"; then
1398
case $enable_option_checking in
1400
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1401
{ (exit 1); exit 1; }; } ;;
1402
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406
# Check all directory arguments for consistency.
1407
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408
datadir sysconfdir sharedstatedir localstatedir includedir \
1409
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410
libdir localedir mandir
1412
eval ac_val=\$$ac_var
1413
# Remove trailing slashes.
1416
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417
eval $ac_var=\$ac_val;;
1419
# Be sure to have absolute directory names.
1421
[\\/$]* | ?:[\\/]* ) continue;;
1422
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1425
{ (exit 1); exit 1; }; }
1428
# There might be people who depend on the old broken behavior: `$host'
1429
# used to hold the argument of --host etc.
1430
# FIXME: To remove some day.
1433
target=$target_alias
1435
# FIXME: To remove some day.
1436
if test "x$host_alias" != x; then
1437
if test "x$build_alias" = x; then
1438
cross_compiling=maybe
1439
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440
If a cross compiler is detected then cross compile mode will be used." >&2
1441
elif test "x$build_alias" != "x$host_alias"; then
1447
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
test "$silent" = yes && exec 6>/dev/null
1452
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453
ac_ls_di=`ls -di .` &&
1454
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1456
{ (exit 1); exit 1; }; }
1457
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1459
{ (exit 1); exit 1; }; }
1462
# Find the source files, if location was not specified.
1463
if test -z "$srcdir"; then
1464
ac_srcdir_defaulted=yes
1465
# Try the directory containing this script, then the parent directory.
1466
ac_confdir=`$as_dirname -- "$as_myself" ||
1467
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468
X"$as_myself" : 'X\(//\)[^/]' \| \
1469
X"$as_myself" : 'X\(//\)$' \| \
1470
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471
$as_echo X"$as_myself" |
1472
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1490
if test ! -r "$srcdir/$ac_unique_file"; then
1494
ac_srcdir_defaulted=no
1496
if test ! -r "$srcdir/$ac_unique_file"; then
1497
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1499
{ (exit 1); exit 1; }; }
1501
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1504
{ (exit 1); exit 1; }; }
1506
# When building in place, set srcdir=.
1507
if test "$ac_abs_confdir" = "$ac_pwd"; then
1510
# Remove unnecessary trailing slashes from srcdir.
1511
# Double slashes in file names in object file debugging info
1512
# mess up M-x gdb in Emacs.
1514
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516
for ac_var in $ac_precious_vars; do
1517
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518
eval ac_env_${ac_var}_value=\$${ac_var}
1519
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524
# Report the --help message.
1526
if test "$ac_init_help" = "long"; then
1527
# Omit some internal or obsolete options to make the list less imposing.
1528
# This message is too long to be a string in the A/UX 3.1 sh.
1530
\`configure' configures xf86-input-synaptics 1.2.2 to adapt to many kinds of systems.
1532
Usage: $0 [OPTION]... [VAR=VALUE]...
1534
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535
VAR=VALUE. See below for descriptions of some of the useful variables.
1537
Defaults for the options are specified in brackets.
1540
-h, --help display this help and exit
1541
--help=short display options specific to this package
1542
--help=recursive display the short help of all the included packages
1543
-V, --version display version information and exit
1544
-q, --quiet, --silent do not print \`checking...' messages
1545
--cache-file=FILE cache test results in FILE [disabled]
1546
-C, --config-cache alias for \`--cache-file=config.cache'
1547
-n, --no-create do not create output files
1548
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1550
Installation directories:
1551
--prefix=PREFIX install architecture-independent files in PREFIX
1552
[$ac_default_prefix]
1553
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556
By default, \`make install' will install all the files in
1557
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559
for instance \`--prefix=\$HOME'.
1561
For better control, use the options below.
1563
Fine tuning of the installation directories:
1564
--bindir=DIR user executables [EPREFIX/bin]
1565
--sbindir=DIR system admin executables [EPREFIX/sbin]
1566
--libexecdir=DIR program executables [EPREFIX/libexec]
1567
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570
--libdir=DIR object code libraries [EPREFIX/lib]
1571
--includedir=DIR C header files [PREFIX/include]
1572
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1573
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575
--infodir=DIR info documentation [DATAROOTDIR/info]
1576
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577
--mandir=DIR man documentation [DATAROOTDIR/man]
1578
--docdir=DIR documentation root
1579
[DATAROOTDIR/doc/xf86-input-synaptics]
1580
--htmldir=DIR html documentation [DOCDIR]
1581
--dvidir=DIR dvi documentation [DOCDIR]
1582
--pdfdir=DIR pdf documentation [DOCDIR]
1583
--psdir=DIR ps documentation [DOCDIR]
1589
--program-prefix=PREFIX prepend PREFIX to installed program names
1590
--program-suffix=SUFFIX append SUFFIX to installed program names
1591
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594
--build=BUILD configure for building on BUILD [guessed]
1595
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1599
if test -n "$ac_init_help"; then
1600
case $ac_init_help in
1601
short | recursive ) echo "Configuration of xf86-input-synaptics 1.2.2:";;
1606
--disable-option-checking ignore unrecognized --enable/--with options
1607
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1608
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1609
--enable-maintainer-mode enable make rules and dependencies not useful
1610
(and sometimes confusing) to the casual installer
1611
--enable-static[=PKGS] build static libraries [default=no]
1612
--enable-shared[=PKGS] build shared libraries [default=yes]
1613
--enable-fast-install[=PKGS]
1614
optimize for fast installation [default=yes]
1615
--disable-dependency-tracking speeds up one-time build
1616
--enable-dependency-tracking do not reject slow dependency extractors
1617
--disable-libtool-lock avoid locking (might break parallel builds)
1618
--enable-strict-compilation
1619
Enable all warnings from compiler and make them
1620
errors (default: disabled)
1621
--enable-silent-rules less verbose build output (undo: `make V=1')
1622
--disable-silent-rules verbose build output (undo: `make V=0')
1623
--enable-tools Build synclient and syndaemon [default=auto]
1626
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628
--with-pic try to use only PIC/non-PIC objects [default=use
1630
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631
--with-release-version=STRING
1632
Use release version string in package name
1633
--with-xorg-module-dir=DIR
1634
Default xorg module directory
1635
[default=$libdir/xorg/modules]
1637
Some influential environment variables:
1638
CC C compiler command
1639
CFLAGS C compiler flags
1640
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641
nonstandard directory <lib dir>
1642
LIBS libraries to pass to the linker, e.g. -l<library>
1643
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644
you have headers in a nonstandard directory <include dir>
1646
PKG_CONFIG path to pkg-config utility
1647
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1648
XORG_LIBS linker flags for XORG, overriding pkg-config
1650
C compiler flags for XORG16, overriding pkg-config
1651
XORG16_LIBS linker flags for XORG16, overriding pkg-config
1653
C compiler flags for XTST_1_1, overriding pkg-config
1655
linker flags for XTST_1_1, overriding pkg-config
1656
RECORDPROTO_1_13_CFLAGS
1657
C compiler flags for RECORDPROTO_1_13, overriding pkg-config
1658
RECORDPROTO_1_13_LIBS
1659
linker flags for RECORDPROTO_1_13, overriding pkg-config
1660
XI_CFLAGS C compiler flags for XI, overriding pkg-config
1661
XI_LIBS linker flags for XI, overriding pkg-config
1663
Use these variables to override the choices made by `configure' or to help
1664
it to find libraries and programs with nonstandard names/locations.
1666
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1671
if test "$ac_init_help" = "recursive"; then
1672
# If there are subdirs, report their specific --help.
1673
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674
test -d "$ac_dir" ||
1675
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1683
# A ".." for each directory in $ac_dir_suffix.
1684
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1685
case $ac_top_builddir_sub in
1686
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690
ac_abs_top_builddir=$ac_pwd
1691
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692
# for backward compatibility:
1693
ac_top_builddir=$ac_top_build_prefix
1696
.) # We are building in place.
1698
ac_top_srcdir=$ac_top_builddir_sub
1699
ac_abs_top_srcdir=$ac_pwd ;;
1700
[\\/]* | ?:[\\/]* ) # Absolute name.
1701
ac_srcdir=$srcdir$ac_dir_suffix;
1702
ac_top_srcdir=$srcdir
1703
ac_abs_top_srcdir=$srcdir ;;
1705
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706
ac_top_srcdir=$ac_top_build_prefix$srcdir
1707
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711
cd "$ac_dir" || { ac_status=$?; continue; }
1712
# Check for guested configure.
1713
if test -f "$ac_srcdir/configure.gnu"; then
1715
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716
elif test -f "$ac_srcdir/configure"; then
1718
$SHELL "$ac_srcdir/configure" --help=recursive
1720
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722
cd "$ac_pwd" || { ac_status=$?; break; }
1726
test -n "$ac_init_help" && exit $ac_status
1727
if $ac_init_version; then
1729
xf86-input-synaptics configure 1.2.2
1730
generated by GNU Autoconf 2.63
1732
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1733
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1734
This configure script is free software; the Free Software Foundation
1735
gives unlimited permission to copy, distribute and modify it.
1739
cat >config.log <<_ACEOF
1740
This file contains any messages produced by compilers while
1741
running configure, to aid debugging if configure makes a mistake.
1743
It was created by xf86-input-synaptics $as_me 1.2.2, which was
1744
generated by GNU Autoconf 2.63. Invocation command line was
1756
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1765
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779
test -z "$as_dir" && as_dir=.
1780
$as_echo "PATH: $as_dir"
1796
# Keep a trace of the command line.
1797
# Strip out --no-create and --no-recursion so they do not pile up.
1798
# Strip out --silent because we don't want to record it for future runs.
1799
# Also quote any args containing shell meta-characters.
1800
# Make two passes to allow for proper duplicate-argument suppression.
1804
ac_must_keep_next=false
1810
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812
| -silent | --silent | --silen | --sile | --sil)
1815
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1820
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1821
if test $ac_must_keep_next = true; then
1822
ac_must_keep_next=false # Got value, back to normal.
1825
*=* | --config-cache | -C | -disable-* | --disable-* \
1826
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828
| -with-* | --with-* | -without-* | --without-* | --x)
1829
case "$ac_configure_args0 " in
1830
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833
-* ) ac_must_keep_next=true ;;
1836
ac_configure_args="$ac_configure_args '$ac_arg'"
1841
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1842
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1844
# When interrupted or exit'd, cleanup temporary files, and complete
1845
# config.log. We remove comments because anyway the quotes in there
1846
# would cause problems or look ugly.
1847
# WARNING: Use '\'' to represent an apostrophe within the trap.
1848
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849
trap 'exit_status=$?
1850
# Save into config.log some information that might help in debugging.
1855
## ---------------- ##
1856
## Cache variables. ##
1857
## ---------------- ##
1860
# The following way of writing the cache mishandles newlines in values,
1862
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1863
eval ac_val=\$$ac_var
1867
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1868
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871
_ | IFS | as_nl) ;; #(
1872
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1873
*) $as_unset $ac_var ;;
1878
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1879
*${as_nl}ac_space=\ *)
1881
"s/'\''/'\''\\\\'\'''\''/g;
1882
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1893
## ----------------- ##
1894
## Output variables. ##
1895
## ----------------- ##
1898
for ac_var in $ac_subst_vars
1900
eval ac_val=\$$ac_var
1902
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904
$as_echo "$ac_var='\''$ac_val'\''"
1908
if test -n "$ac_subst_files"; then
1910
## ------------------- ##
1911
## File substitutions. ##
1912
## ------------------- ##
1915
for ac_var in $ac_subst_files
1917
eval ac_val=\$$ac_var
1919
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921
$as_echo "$ac_var='\''$ac_val'\''"
1926
if test -s confdefs.h; then
1936
test "$ac_signal" != 0 &&
1937
$as_echo "$as_me: caught signal $ac_signal"
1938
$as_echo "$as_me: exit $exit_status"
1940
rm -f core *.core core.conftest.* &&
1941
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944
for ac_signal in 1 2 13 15; do
1945
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1950
rm -f -r conftest* confdefs.h
1952
# Predefined preprocessor variables.
1954
cat >>confdefs.h <<_ACEOF
1955
#define PACKAGE_NAME "$PACKAGE_NAME"
1959
cat >>confdefs.h <<_ACEOF
1960
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964
cat >>confdefs.h <<_ACEOF
1965
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1969
cat >>confdefs.h <<_ACEOF
1970
#define PACKAGE_STRING "$PACKAGE_STRING"
1974
cat >>confdefs.h <<_ACEOF
1975
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979
# Let the site file select an alternate cache file if it wants to.
1980
# Prefer an explicitly selected file to automatically selected ones.
1983
if test -n "$CONFIG_SITE"; then
1984
ac_site_file1=$CONFIG_SITE
1985
elif test "x$prefix" != xNONE; then
1986
ac_site_file1=$prefix/share/config.site
1987
ac_site_file2=$prefix/etc/config.site
1989
ac_site_file1=$ac_default_prefix/share/config.site
1990
ac_site_file2=$ac_default_prefix/etc/config.site
1992
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994
test "x$ac_site_file" = xNONE && continue
1995
if test -r "$ac_site_file"; then
1996
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1997
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1998
sed 's/^/| /' "$ac_site_file" >&5
2003
if test -r "$cache_file"; then
2004
# Some versions of bash will fail to source /dev/null (special
2005
# files actually), so we avoid doing that.
2006
if test -f "$cache_file"; then
2007
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2008
$as_echo "$as_me: loading cache $cache_file" >&6;}
2010
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2011
*) . "./$cache_file";;
2015
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2016
$as_echo "$as_me: creating cache $cache_file" >&6;}
2020
# Check that the precious variables saved in the cache have kept the same
2022
ac_cache_corrupted=false
2023
for ac_var in $ac_precious_vars; do
2024
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025
eval ac_new_set=\$ac_env_${ac_var}_set
2026
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027
eval ac_new_val=\$ac_env_${ac_var}_value
2028
case $ac_old_set,$ac_new_set in
2030
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032
ac_cache_corrupted=: ;;
2034
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2035
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036
ac_cache_corrupted=: ;;
2039
if test "x$ac_old_val" != "x$ac_new_val"; then
2040
# differences in whitespace do not lead to failure.
2041
ac_old_val_w=`echo x $ac_old_val`
2042
ac_new_val_w=`echo x $ac_new_val`
2043
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2045
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046
ac_cache_corrupted=:
2048
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050
eval $ac_var=\$ac_old_val
2052
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2053
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2054
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2055
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2058
# Pass precious variables to config.status.
2059
if test "$ac_new_set" = set; then
2061
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062
*) ac_arg=$ac_var=$ac_new_val ;;
2064
case " $ac_configure_args " in
2065
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2066
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070
if $ac_cache_corrupted; then
2071
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2072
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2074
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2076
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2077
{ (exit 1); exit 1; }; }
2105
ac_cpp='$CPP $CPPFLAGS'
2106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114
for ac_dir in . "$srcdir"/.; do
2115
if test -f "$ac_dir/install-sh"; then
2117
ac_install_sh="$ac_aux_dir/install-sh -c"
2119
elif test -f "$ac_dir/install.sh"; then
2121
ac_install_sh="$ac_aux_dir/install.sh -c"
2123
elif test -f "$ac_dir/shtool"; then
2125
ac_install_sh="$ac_aux_dir/shtool install -c"
2129
if test -z "$ac_aux_dir"; then
2130
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2131
$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2132
{ (exit 1); exit 1; }; }
2135
# These three variables are undocumented and unsupported,
2136
# and are intended to be withdrawn in a future Autoconf release.
2137
# They can cause serious problems if a builder's source tree is in a directory
2138
# whose full name contains unusual characters.
2139
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2140
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2141
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2144
am__api_version='1.11'
2146
# Find a good install program. We prefer a C program (faster),
2147
# so one script is as good as another. But avoid the broken or
2148
# incompatible versions:
2149
# SysV /etc/install, /usr/sbin/install
2150
# SunOS /usr/etc/install
2151
# IRIX /sbin/install
2153
# AmigaOS /C/install, which installs bootblocks on floppy discs
2154
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2155
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2156
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2157
# OS/2's system install, which has a completely different semantic
2158
# ./install, which can be erroneously created by make from ./install.sh.
2159
# Reject install programs that cannot install multiple files.
2160
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2161
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2162
if test -z "$INSTALL"; then
2163
if test "${ac_cv_path_install+set}" = set; then
2164
$as_echo_n "(cached) " >&6
2166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170
test -z "$as_dir" && as_dir=.
2171
# Account for people who put trailing slashes in PATH elements.
2173
./ | .// | /cC/* | \
2174
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2175
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178
# OSF1 and SCO ODT 3.0 have their own names for install.
2179
# Don't use installbsd from OSF since it installs stuff as root
2181
for ac_prog in ginstall scoinst install; do
2182
for ac_exec_ext in '' $ac_executable_extensions; do
2183
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2184
if test $ac_prog = install &&
2185
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186
# AIX install. It has an incompatible calling convention.
2188
elif test $ac_prog = install &&
2189
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190
# program-specific install script used by HP pwplus--don't use.
2193
rm -rf conftest.one conftest.two conftest.dir
2194
echo one > conftest.one
2195
echo two > conftest.two
2197
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2198
test -s conftest.one && test -s conftest.two &&
2199
test -s conftest.dir/conftest.one &&
2200
test -s conftest.dir/conftest.two
2202
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2215
rm -rf conftest.one conftest.two conftest.dir
2218
if test "${ac_cv_path_install+set}" = set; then
2219
INSTALL=$ac_cv_path_install
2221
# As a last resort, use the slow shell script. Don't cache a
2222
# value for INSTALL within a source directory, because that will
2223
# break other packages using the cache if that directory is
2224
# removed, or if the value is a relative name.
2225
INSTALL=$ac_install_sh
2228
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2229
$as_echo "$INSTALL" >&6; }
2231
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2232
# It thinks the first close brace ends the variable substitution.
2233
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2235
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2237
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2239
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2240
$as_echo_n "checking whether build environment is sane... " >&6; }
2243
echo timestamp > conftest.file
2244
# Reject unsafe characters in $srcdir or the absolute working directory
2245
# name. Accept space and tab only in the latter.
2249
*[\\\"\#\$\&\'\`$am_lf]*)
2250
{ { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2251
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2252
{ (exit 1); exit 1; }; };;
2255
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2256
{ { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2257
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2258
{ (exit 1); exit 1; }; };;
2261
# Do `set' in a subshell so we don't clobber the current shell's
2262
# arguments. Must try -L first in case configure is actually a
2263
# symlink; some systems play weird games with the mod time of symlinks
2264
# (eg FreeBSD returns the mod time of the symlink's containing
2267
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2268
if test "$*" = "X"; then
2270
set X `ls -t "$srcdir/configure" conftest.file`
2273
if test "$*" != "X $srcdir/configure conftest.file" \
2274
&& test "$*" != "X conftest.file $srcdir/configure"; then
2276
# If neither matched, then we have a broken ls. This can happen
2277
# if, for instance, CONFIG_SHELL is bash and it inherits a
2278
# broken ls alias from the environment. This has actually
2279
# happened. Such a system could not be considered "sane".
2280
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2281
alias in your environment" >&5
2282
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2283
alias in your environment" >&2;}
2284
{ (exit 1); exit 1; }; }
2287
test "$2" = conftest.file
2293
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2294
Check your system clock" >&5
2295
$as_echo "$as_me: error: newly created file is older than distributed files!
2296
Check your system clock" >&2;}
2297
{ (exit 1); exit 1; }; }
2299
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2300
$as_echo "yes" >&6; }
2301
test "$program_prefix" != NONE &&
2302
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2303
# Use a double $ so make ignores it.
2304
test "$program_suffix" != NONE &&
2305
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2306
# Double any \ or $.
2307
# By default was `s,x,x', remove it if useless.
2308
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2309
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2311
# expand $ac_aux_dir to an absolute path
2312
am_aux_dir=`cd $ac_aux_dir && pwd`
2314
if test x"${MISSING+set}" != xset; then
2317
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2319
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2322
# Use eval to expand $SHELL
2323
if eval "$MISSING --run true"; then
2324
am_missing_run="$MISSING --run "
2327
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2328
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2331
if test x"${install_sh}" != xset; then
2334
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2336
install_sh="\${SHELL} $am_aux_dir/install-sh"
2340
# Installed binaries are usually stripped using `strip' when the user
2341
# run `make install-strip'. However `strip' might not be the right
2342
# tool to use in cross-compilation environments, therefore Automake
2343
# will honor the `STRIP' environment variable to overrule this program.
2344
if test "$cross_compiling" != no; then
2345
if test -n "$ac_tool_prefix"; then
2346
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347
set dummy ${ac_tool_prefix}strip; ac_word=$2
2348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2349
$as_echo_n "checking for $ac_word... " >&6; }
2350
if test "${ac_cv_prog_STRIP+set}" = set; then
2351
$as_echo_n "(cached) " >&6
2353
if test -n "$STRIP"; then
2354
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360
test -z "$as_dir" && as_dir=.
2361
for ac_exec_ext in '' $ac_executable_extensions; do
2362
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2364
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373
STRIP=$ac_cv_prog_STRIP
2374
if test -n "$STRIP"; then
2375
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2376
$as_echo "$STRIP" >&6; }
2378
{ $as_echo "$as_me:$LINENO: result: no" >&5
2379
$as_echo "no" >&6; }
2384
if test -z "$ac_cv_prog_STRIP"; then
2386
# Extract the first word of "strip", so it can be a program name with args.
2387
set dummy strip; ac_word=$2
2388
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2389
$as_echo_n "checking for $ac_word... " >&6; }
2390
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2391
$as_echo_n "(cached) " >&6
2393
if test -n "$ac_ct_STRIP"; then
2394
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400
test -z "$as_dir" && as_dir=.
2401
for ac_exec_ext in '' $ac_executable_extensions; do
2402
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403
ac_cv_prog_ac_ct_STRIP="strip"
2404
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2414
if test -n "$ac_ct_STRIP"; then
2415
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2416
$as_echo "$ac_ct_STRIP" >&6; }
2418
{ $as_echo "$as_me:$LINENO: result: no" >&5
2419
$as_echo "no" >&6; }
2422
if test "x$ac_ct_STRIP" = x; then
2425
case $cross_compiling:$ac_tool_warned in
2427
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2429
ac_tool_warned=yes ;;
2434
STRIP="$ac_cv_prog_STRIP"
2438
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2441
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2442
if test -z "$MKDIR_P"; then
2443
if test "${ac_cv_path_mkdir+set}" = set; then
2444
$as_echo_n "(cached) " >&6
2446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2450
test -z "$as_dir" && as_dir=.
2451
for ac_prog in mkdir gmkdir; do
2452
for ac_exec_ext in '' $ac_executable_extensions; do
2453
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2454
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2455
'mkdir (GNU coreutils) '* | \
2456
'mkdir (coreutils) '* | \
2457
'mkdir (fileutils) '4.1*)
2458
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2468
if test "${ac_cv_path_mkdir+set}" = set; then
2469
MKDIR_P="$ac_cv_path_mkdir -p"
2471
# As a last resort, use the slow shell script. Don't cache a
2472
# value for MKDIR_P within a source directory, because that will
2473
# break other packages using the cache if that directory is
2474
# removed, or if the value is a relative name.
2475
test -d ./--version && rmdir ./--version
2476
MKDIR_P="$ac_install_sh -d"
2479
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2480
$as_echo "$MKDIR_P" >&6; }
2484
[\\/$]* | ?:[\\/]*) ;;
2485
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2488
for ac_prog in gawk mawk nawk awk
2490
# Extract the first word of "$ac_prog", so it can be a program name with args.
2491
set dummy $ac_prog; ac_word=$2
2492
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493
$as_echo_n "checking for $ac_word... " >&6; }
2494
if test "${ac_cv_prog_AWK+set}" = set; then
2495
$as_echo_n "(cached) " >&6
2497
if test -n "$AWK"; then
2498
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504
test -z "$as_dir" && as_dir=.
2505
for ac_exec_ext in '' $ac_executable_extensions; do
2506
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507
ac_cv_prog_AWK="$ac_prog"
2508
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518
if test -n "$AWK"; then
2519
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
2520
$as_echo "$AWK" >&6; }
2522
{ $as_echo "$as_me:$LINENO: result: no" >&5
2523
$as_echo "no" >&6; }
2527
test -n "$AWK" && break
2530
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2531
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2533
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2534
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2535
$as_echo_n "(cached) " >&6
2537
cat >conftest.make <<\_ACEOF
2540
@echo '@@@%%%=$(MAKE)=@@@%%%'
2542
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2543
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2545
eval ac_cv_prog_make_${ac_make}_set=yes;;
2547
eval ac_cv_prog_make_${ac_make}_set=no;;
2551
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2552
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2553
$as_echo "yes" >&6; }
2556
{ $as_echo "$as_me:$LINENO: result: no" >&5
2557
$as_echo "no" >&6; }
2558
SET_MAKE="MAKE=${MAKE-make}"
2561
rm -rf .tst 2>/dev/null
2562
mkdir .tst 2>/dev/null
2563
if test -d .tst; then
2568
rmdir .tst 2>/dev/null
2570
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2571
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2572
# is not polluted with repeated "-I."
2573
am__isrc=' -I$(srcdir)'
2574
# test to see if srcdir already configured
2575
if test -f $srcdir/config.status; then
2576
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2577
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2578
{ (exit 1); exit 1; }; }
2582
# test whether we have cygpath
2583
if test -z "$CYGPATH_W"; then
2584
if (cygpath --version) >/dev/null 2>/dev/null; then
2585
CYGPATH_W='cygpath -w'
2592
# Define the identity of the package.
2593
PACKAGE='xf86-input-synaptics'
2597
cat >>confdefs.h <<_ACEOF
2598
#define PACKAGE "$PACKAGE"
2602
cat >>confdefs.h <<_ACEOF
2603
#define VERSION "$VERSION"
2606
# Some tools Automake needs.
2608
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2611
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2614
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2617
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2620
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2622
# We need awk for the "check" target. The system "awk" is bad on
2624
# Always define AMTAR for backward compatibility.
2626
AMTAR=${AMTAR-"${am_missing_run}tar"}
2628
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2636
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2637
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2638
# Check whether --enable-maintainer-mode was given.
2639
if test "${enable_maintainer_mode+set}" = set; then
2640
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2642
USE_MAINTAINER_MODE=no
2645
{ $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2646
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2647
if test $USE_MAINTAINER_MODE = yes; then
2648
MAINTAINER_MODE_TRUE=
2649
MAINTAINER_MODE_FALSE='#'
2651
MAINTAINER_MODE_TRUE='#'
2652
MAINTAINER_MODE_FALSE=
2655
MAINT=$MAINTAINER_MODE_TRUE
2659
DRIVER_NAME=synaptics
2662
# Require xorg-macros: XORG_DEFAULT_OPTIONS
2674
ac_config_headers="$ac_config_headers config.h"
2677
# Checks for programs.
2678
# Check whether --enable-static was given.
2679
if test "${enable_static+set}" = set; then
2680
enableval=$enable_static; p=${PACKAGE-default}
2682
yes) enable_static=yes ;;
2683
no) enable_static=no ;;
2686
# Look at the argument we got. We use all the common list separators.
2687
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2688
for pkg in $enableval; do
2690
if test "X$pkg" = "X$p"; then
2711
{ $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2712
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2717
macro_version='2.2.6b'
2718
macro_revision='1.3017'
2732
ltmain="$ac_aux_dir/ltmain.sh"
2734
# Make sure we can run config.sub.
2735
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2737
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2738
{ (exit 1); exit 1; }; }
2740
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2741
$as_echo_n "checking build system type... " >&6; }
2742
if test "${ac_cv_build+set}" = set; then
2743
$as_echo_n "(cached) " >&6
2745
ac_build_alias=$build_alias
2746
test "x$ac_build_alias" = x &&
2747
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748
test "x$ac_build_alias" = x &&
2749
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2750
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2751
{ (exit 1); exit 1; }; }
2752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2753
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2754
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2755
{ (exit 1); exit 1; }; }
2758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2759
$as_echo "$ac_cv_build" >&6; }
2760
case $ac_cv_build in
2762
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2763
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2764
{ (exit 1); exit 1; }; };;
2767
ac_save_IFS=$IFS; IFS='-'
2773
# Remember, the first character of IFS is used to create $*,
2774
# except with old shells:
2777
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2780
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2781
$as_echo_n "checking host system type... " >&6; }
2782
if test "${ac_cv_host+set}" = set; then
2783
$as_echo_n "(cached) " >&6
2785
if test "x$host_alias" = x; then
2786
ac_cv_host=$ac_cv_build
2788
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2790
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2791
{ (exit 1); exit 1; }; }
2795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2796
$as_echo "$ac_cv_host" >&6; }
2799
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2800
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2801
{ (exit 1); exit 1; }; };;
2804
ac_save_IFS=$IFS; IFS='-'
2810
# Remember, the first character of IFS is used to create $*,
2811
# except with old shells:
2814
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2817
DEPDIR="${am__leading_dot}deps"
2819
ac_config_commands="$ac_config_commands depfiles"
2822
am_make=${MAKE-make}
2823
cat > confinc << 'END'
2825
@echo this is the am__doit target
2828
# If we don't find an include directive, just comment out the code.
2829
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2830
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2834
# First try GNU make style include.
2835
echo "include confinc" > confmf
2836
# Ignore all kinds of additional output from `make'.
2837
case `$am_make -s -f confmf 2> /dev/null` in #(
2838
*the\ am__doit\ target*)
2844
# Now try BSD make style include.
2845
if test "$am__include" = "#"; then
2846
echo '.include "confinc"' > confmf
2847
case `$am_make -s -f confmf 2> /dev/null` in #(
2848
*the\ am__doit\ target*)
2849
am__include=.include
2857
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2858
$as_echo "$_am_result" >&6; }
2859
rm -f confinc confmf
2861
# Check whether --enable-dependency-tracking was given.
2862
if test "${enable_dependency_tracking+set}" = set; then
2863
enableval=$enable_dependency_tracking;
2866
if test "x$enable_dependency_tracking" != xno; then
2867
am_depcomp="$ac_aux_dir/depcomp"
2870
if test "x$enable_dependency_tracking" != xno; then
2880
ac_cpp='$CPP $CPPFLAGS'
2881
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884
if test -n "$ac_tool_prefix"; then
2885
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2887
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888
$as_echo_n "checking for $ac_word... " >&6; }
2889
if test "${ac_cv_prog_CC+set}" = set; then
2890
$as_echo_n "(cached) " >&6
2892
if test -n "$CC"; then
2893
ac_cv_prog_CC="$CC" # Let the user override the test.
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899
test -z "$as_dir" && as_dir=.
2900
for ac_exec_ext in '' $ac_executable_extensions; do
2901
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2903
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913
if test -n "$CC"; then
2914
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2915
$as_echo "$CC" >&6; }
2917
{ $as_echo "$as_me:$LINENO: result: no" >&5
2918
$as_echo "no" >&6; }
2923
if test -z "$ac_cv_prog_CC"; then
2925
# Extract the first word of "gcc", so it can be a program name with args.
2926
set dummy gcc; ac_word=$2
2927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928
$as_echo_n "checking for $ac_word... " >&6; }
2929
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2930
$as_echo_n "(cached) " >&6
2932
if test -n "$ac_ct_CC"; then
2933
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939
test -z "$as_dir" && as_dir=.
2940
for ac_exec_ext in '' $ac_executable_extensions; do
2941
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942
ac_cv_prog_ac_ct_CC="gcc"
2943
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953
if test -n "$ac_ct_CC"; then
2954
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2955
$as_echo "$ac_ct_CC" >&6; }
2957
{ $as_echo "$as_me:$LINENO: result: no" >&5
2958
$as_echo "no" >&6; }
2961
if test "x$ac_ct_CC" = x; then
2964
case $cross_compiling:$ac_tool_warned in
2966
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968
ac_tool_warned=yes ;;
2976
if test -z "$CC"; then
2977
if test -n "$ac_tool_prefix"; then
2978
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979
set dummy ${ac_tool_prefix}cc; ac_word=$2
2980
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981
$as_echo_n "checking for $ac_word... " >&6; }
2982
if test "${ac_cv_prog_CC+set}" = set; then
2983
$as_echo_n "(cached) " >&6
2985
if test -n "$CC"; then
2986
ac_cv_prog_CC="$CC" # Let the user override the test.
2988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992
test -z "$as_dir" && as_dir=.
2993
for ac_exec_ext in '' $ac_executable_extensions; do
2994
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995
ac_cv_prog_CC="${ac_tool_prefix}cc"
2996
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006
if test -n "$CC"; then
3007
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3008
$as_echo "$CC" >&6; }
3010
{ $as_echo "$as_me:$LINENO: result: no" >&5
3011
$as_echo "no" >&6; }
3017
if test -z "$CC"; then
3018
# Extract the first word of "cc", so it can be a program name with args.
3019
set dummy cc; ac_word=$2
3020
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021
$as_echo_n "checking for $ac_word... " >&6; }
3022
if test "${ac_cv_prog_CC+set}" = set; then
3023
$as_echo_n "(cached) " >&6
3025
if test -n "$CC"; then
3026
ac_cv_prog_CC="$CC" # Let the user override the test.
3029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033
test -z "$as_dir" && as_dir=.
3034
for ac_exec_ext in '' $ac_executable_extensions; do
3035
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037
ac_prog_rejected=yes
3041
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048
if test $ac_prog_rejected = yes; then
3049
# We found a bogon in the path, so make sure we never use it.
3050
set dummy $ac_cv_prog_CC
3052
if test $# != 0; then
3053
# We chose a different compiler from the bogus one.
3054
# However, it has the same basename, so the bogon will be chosen
3055
# first if we set CC to just the basename; use the full file name.
3057
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3063
if test -n "$CC"; then
3064
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3065
$as_echo "$CC" >&6; }
3067
{ $as_echo "$as_me:$LINENO: result: no" >&5
3068
$as_echo "no" >&6; }
3073
if test -z "$CC"; then
3074
if test -n "$ac_tool_prefix"; then
3075
for ac_prog in cl.exe
3077
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080
$as_echo_n "checking for $ac_word... " >&6; }
3081
if test "${ac_cv_prog_CC+set}" = set; then
3082
$as_echo_n "(cached) " >&6
3084
if test -n "$CC"; then
3085
ac_cv_prog_CC="$CC" # Let the user override the test.
3087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091
test -z "$as_dir" && as_dir=.
3092
for ac_exec_ext in '' $ac_executable_extensions; do
3093
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105
if test -n "$CC"; then
3106
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3107
$as_echo "$CC" >&6; }
3109
{ $as_echo "$as_me:$LINENO: result: no" >&5
3110
$as_echo "no" >&6; }
3114
test -n "$CC" && break
3117
if test -z "$CC"; then
3119
for ac_prog in cl.exe
3121
# Extract the first word of "$ac_prog", so it can be a program name with args.
3122
set dummy $ac_prog; ac_word=$2
3123
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124
$as_echo_n "checking for $ac_word... " >&6; }
3125
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3126
$as_echo_n "(cached) " >&6
3128
if test -n "$ac_ct_CC"; then
3129
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135
test -z "$as_dir" && as_dir=.
3136
for ac_exec_ext in '' $ac_executable_extensions; do
3137
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138
ac_cv_prog_ac_ct_CC="$ac_prog"
3139
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149
if test -n "$ac_ct_CC"; then
3150
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3151
$as_echo "$ac_ct_CC" >&6; }
3153
{ $as_echo "$as_me:$LINENO: result: no" >&5
3154
$as_echo "no" >&6; }
3158
test -n "$ac_ct_CC" && break
3161
if test "x$ac_ct_CC" = x; then
3164
case $cross_compiling:$ac_tool_warned in
3166
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168
ac_tool_warned=yes ;;
3177
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3178
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3180
See \`config.log' for more details." >&5
3181
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3182
See \`config.log' for more details." >&2;}
3183
{ (exit 1); exit 1; }; }; }
3185
# Provide some information about the compiler.
3186
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3189
{ (ac_try="$ac_compiler --version >&5"
3191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192
*) ac_try_echo=$ac_try;;
3194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195
$as_echo "$ac_try_echo") >&5
3196
(eval "$ac_compiler --version >&5") 2>&5
3198
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
(exit $ac_status); }
3200
{ (ac_try="$ac_compiler -v >&5"
3202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203
*) ac_try_echo=$ac_try;;
3205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206
$as_echo "$ac_try_echo") >&5
3207
(eval "$ac_compiler -v >&5") 2>&5
3209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
(exit $ac_status); }
3211
{ (ac_try="$ac_compiler -V >&5"
3213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214
*) ac_try_echo=$ac_try;;
3216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217
$as_echo "$ac_try_echo") >&5
3218
(eval "$ac_compiler -V >&5") 2>&5
3220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221
(exit $ac_status); }
3223
cat >conftest.$ac_ext <<_ACEOF
3226
cat confdefs.h >>conftest.$ac_ext
3227
cat >>conftest.$ac_ext <<_ACEOF
3228
/* end confdefs.h. */
3238
ac_clean_files_save=$ac_clean_files
3239
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3240
# Try to create an executable without -o first, disregard a.out.
3241
# It will help us diagnose broken compilers, and finding out an intuition
3243
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244
$as_echo_n "checking for C compiler default output file name... " >&6; }
3245
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3247
# The possible output files:
3248
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251
for ac_file in $ac_files
3254
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260
if { (ac_try="$ac_link_default"
3262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263
*) ac_try_echo=$ac_try;;
3265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266
$as_echo "$ac_try_echo") >&5
3267
(eval "$ac_link_default") 2>&5
3269
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270
(exit $ac_status); }; then
3271
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3272
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3273
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3274
# so that the user can short-circuit this test for compilers unknown to
3276
for ac_file in $ac_files ''
3278
test -f "$ac_file" || continue
3280
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3283
# We found the default executable, but exeext='' is most
3287
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291
# We set ac_cv_exeext here because the later test for it is not
3292
# safe: cross compilers may not add the suffix if given an `-o'
3293
# argument, so we may need to know it at that point already.
3294
# Even if this section looks crufty: it has the advantage of
3301
test "$ac_cv_exeext" = no && ac_cv_exeext=
3307
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3308
$as_echo "$ac_file" >&6; }
3309
if test -z "$ac_file"; then
3310
$as_echo "$as_me: failed program was:" >&5
3311
sed 's/^/| /' conftest.$ac_ext >&5
3313
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3316
See \`config.log' for more details." >&5
3317
$as_echo "$as_me: error: C compiler cannot create executables
3318
See \`config.log' for more details." >&2;}
3319
{ (exit 77); exit 77; }; }; }
3322
ac_exeext=$ac_cv_exeext
3324
# Check that the compiler produces executables we can run. If not, either
3325
# the compiler is broken, or we cross compile.
3326
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3327
$as_echo_n "checking whether the C compiler works... " >&6; }
3328
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3329
# If not cross compiling, check that we can run a simple program.
3330
if test "$cross_compiling" != yes; then
3331
if { ac_try='./$ac_file'
3332
{ (case "(($ac_try" in
3333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
*) ac_try_echo=$ac_try;;
3336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337
$as_echo "$ac_try_echo") >&5
3338
(eval "$ac_try") 2>&5
3340
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341
(exit $ac_status); }; }; then
3344
if test "$cross_compiling" = maybe; then
3347
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3350
If you meant to cross compile, use \`--host'.
3351
See \`config.log' for more details." >&5
3352
$as_echo "$as_me: error: cannot run C compiled programs.
3353
If you meant to cross compile, use \`--host'.
3354
See \`config.log' for more details." >&2;}
3355
{ (exit 1); exit 1; }; }; }
3359
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3360
$as_echo "yes" >&6; }
3362
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363
ac_clean_files=$ac_clean_files_save
3364
# Check that the compiler produces executables we can run. If not, either
3365
# the compiler is broken, or we cross compile.
3366
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3367
$as_echo_n "checking whether we are cross compiling... " >&6; }
3368
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3369
$as_echo "$cross_compiling" >&6; }
3371
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3372
$as_echo_n "checking for suffix of executables... " >&6; }
3373
if { (ac_try="$ac_link"
3375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376
*) ac_try_echo=$ac_try;;
3378
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379
$as_echo "$ac_try_echo") >&5
3380
(eval "$ac_link") 2>&5
3382
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
(exit $ac_status); }; then
3384
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3385
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386
# work properly (i.e., refer to `conftest.exe'), while it won't with
3388
for ac_file in conftest.exe conftest conftest.*; do
3389
test -f "$ac_file" || continue
3391
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3401
See \`config.log' for more details." >&5
3402
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3403
See \`config.log' for more details." >&2;}
3404
{ (exit 1); exit 1; }; }; }
3407
rm -f conftest$ac_cv_exeext
3408
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3409
$as_echo "$ac_cv_exeext" >&6; }
3411
rm -f conftest.$ac_ext
3412
EXEEXT=$ac_cv_exeext
3414
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3415
$as_echo_n "checking for suffix of object files... " >&6; }
3416
if test "${ac_cv_objext+set}" = set; then
3417
$as_echo_n "(cached) " >&6
3419
cat >conftest.$ac_ext <<_ACEOF
3422
cat confdefs.h >>conftest.$ac_ext
3423
cat >>conftest.$ac_ext <<_ACEOF
3424
/* end confdefs.h. */
3434
rm -f conftest.o conftest.obj
3435
if { (ac_try="$ac_compile"
3437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438
*) ac_try_echo=$ac_try;;
3440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441
$as_echo "$ac_try_echo") >&5
3442
(eval "$ac_compile") 2>&5
3444
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445
(exit $ac_status); }; then
3446
for ac_file in conftest.o conftest.obj conftest.*; do
3447
test -f "$ac_file" || continue;
3449
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455
$as_echo "$as_me: failed program was:" >&5
3456
sed 's/^/| /' conftest.$ac_ext >&5
3458
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3459
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3461
See \`config.log' for more details." >&5
3462
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3463
See \`config.log' for more details." >&2;}
3464
{ (exit 1); exit 1; }; }; }
3467
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3470
$as_echo "$ac_cv_objext" >&6; }
3471
OBJEXT=$ac_cv_objext
3473
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3474
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3476
$as_echo_n "(cached) " >&6
3478
cat >conftest.$ac_ext <<_ACEOF
3481
cat confdefs.h >>conftest.$ac_ext
3482
cat >>conftest.$ac_ext <<_ACEOF
3483
/* end confdefs.h. */
3496
rm -f conftest.$ac_objext
3497
if { (ac_try="$ac_compile"
3499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500
*) ac_try_echo=$ac_try;;
3502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503
$as_echo "$ac_try_echo") >&5
3504
(eval "$ac_compile") 2>conftest.er1
3506
grep -v '^ *+' conftest.er1 >conftest.err
3508
cat conftest.err >&5
3509
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510
(exit $ac_status); } && {
3511
test -z "$ac_c_werror_flag" ||
3512
test ! -s conftest.err
3513
} && test -s conftest.$ac_objext; then
3516
$as_echo "$as_me: failed program was:" >&5
3517
sed 's/^/| /' conftest.$ac_ext >&5
3522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3527
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528
if test $ac_compiler_gnu = yes; then
3533
ac_test_CFLAGS=${CFLAGS+set}
3534
ac_save_CFLAGS=$CFLAGS
3535
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3536
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3537
if test "${ac_cv_prog_cc_g+set}" = set; then
3538
$as_echo_n "(cached) " >&6
3540
ac_save_c_werror_flag=$ac_c_werror_flag
3541
ac_c_werror_flag=yes
3544
cat >conftest.$ac_ext <<_ACEOF
3547
cat confdefs.h >>conftest.$ac_ext
3548
cat >>conftest.$ac_ext <<_ACEOF
3549
/* end confdefs.h. */
3559
rm -f conftest.$ac_objext
3560
if { (ac_try="$ac_compile"
3562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563
*) ac_try_echo=$ac_try;;
3565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3566
$as_echo "$ac_try_echo") >&5
3567
(eval "$ac_compile") 2>conftest.er1
3569
grep -v '^ *+' conftest.er1 >conftest.err
3571
cat conftest.err >&5
3572
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573
(exit $ac_status); } && {
3574
test -z "$ac_c_werror_flag" ||
3575
test ! -s conftest.err
3576
} && test -s conftest.$ac_objext; then
3579
$as_echo "$as_me: failed program was:" >&5
3580
sed 's/^/| /' conftest.$ac_ext >&5
3583
cat >conftest.$ac_ext <<_ACEOF
3586
cat confdefs.h >>conftest.$ac_ext
3587
cat >>conftest.$ac_ext <<_ACEOF
3588
/* end confdefs.h. */
3598
rm -f conftest.$ac_objext
3599
if { (ac_try="$ac_compile"
3601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602
*) ac_try_echo=$ac_try;;
3604
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605
$as_echo "$ac_try_echo") >&5
3606
(eval "$ac_compile") 2>conftest.er1
3608
grep -v '^ *+' conftest.er1 >conftest.err
3610
cat conftest.err >&5
3611
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612
(exit $ac_status); } && {
3613
test -z "$ac_c_werror_flag" ||
3614
test ! -s conftest.err
3615
} && test -s conftest.$ac_objext; then
3618
$as_echo "$as_me: failed program was:" >&5
3619
sed 's/^/| /' conftest.$ac_ext >&5
3621
ac_c_werror_flag=$ac_save_c_werror_flag
3623
cat >conftest.$ac_ext <<_ACEOF
3626
cat confdefs.h >>conftest.$ac_ext
3627
cat >>conftest.$ac_ext <<_ACEOF
3628
/* end confdefs.h. */
3638
rm -f conftest.$ac_objext
3639
if { (ac_try="$ac_compile"
3641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642
*) ac_try_echo=$ac_try;;
3644
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645
$as_echo "$ac_try_echo") >&5
3646
(eval "$ac_compile") 2>conftest.er1
3648
grep -v '^ *+' conftest.er1 >conftest.err
3650
cat conftest.err >&5
3651
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652
(exit $ac_status); } && {
3653
test -z "$ac_c_werror_flag" ||
3654
test ! -s conftest.err
3655
} && test -s conftest.$ac_objext; then
3658
$as_echo "$as_me: failed program was:" >&5
3659
sed 's/^/| /' conftest.$ac_ext >&5
3664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671
ac_c_werror_flag=$ac_save_c_werror_flag
3673
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3674
$as_echo "$ac_cv_prog_cc_g" >&6; }
3675
if test "$ac_test_CFLAGS" = set; then
3676
CFLAGS=$ac_save_CFLAGS
3677
elif test $ac_cv_prog_cc_g = yes; then
3678
if test "$GCC" = yes; then
3684
if test "$GCC" = yes; then
3690
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3691
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692
if test "${ac_cv_prog_cc_c89+set}" = set; then
3693
$as_echo_n "(cached) " >&6
3695
ac_cv_prog_cc_c89=no
3697
cat >conftest.$ac_ext <<_ACEOF
3700
cat confdefs.h >>conftest.$ac_ext
3701
cat >>conftest.$ac_ext <<_ACEOF
3702
/* end confdefs.h. */
3705
#include <sys/types.h>
3706
#include <sys/stat.h>
3707
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3708
struct buf { int x; };
3709
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710
static char *e (p, i)
3716
static char *f (char * (*g) (char **, int), char **p, ...)
3721
s = g (p, va_arg (v,int));
3726
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3727
function prototypes and stuff, but not '\xHH' hex character constants.
3728
These don't provoke an error unfortunately, instead are silently treated
3729
as 'x'. The following induces an error, until -std is added to get
3730
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3731
array size at least. It's necessary to write '\x00'==0 to get something
3732
that's true only with -std. */
3733
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736
inside strings and character constants. */
3738
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
int test (int i, double x);
3741
struct s1 {int (*f) (int a);};
3742
struct s2 {int (*f) (double a);};
3743
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3754
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757
CC="$ac_save_CC $ac_arg"
3758
rm -f conftest.$ac_objext
3759
if { (ac_try="$ac_compile"
3761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762
*) ac_try_echo=$ac_try;;
3764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765
$as_echo "$ac_try_echo") >&5
3766
(eval "$ac_compile") 2>conftest.er1
3768
grep -v '^ *+' conftest.er1 >conftest.err
3770
cat conftest.err >&5
3771
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772
(exit $ac_status); } && {
3773
test -z "$ac_c_werror_flag" ||
3774
test ! -s conftest.err
3775
} && test -s conftest.$ac_objext; then
3776
ac_cv_prog_cc_c89=$ac_arg
3778
$as_echo "$as_me: failed program was:" >&5
3779
sed 's/^/| /' conftest.$ac_ext >&5
3784
rm -f core conftest.err conftest.$ac_objext
3785
test "x$ac_cv_prog_cc_c89" != "xno" && break
3787
rm -f conftest.$ac_ext
3792
case "x$ac_cv_prog_cc_c89" in
3794
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3795
$as_echo "none needed" >&6; } ;;
3797
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3798
$as_echo "unsupported" >&6; } ;;
3800
CC="$CC $ac_cv_prog_cc_c89"
3801
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3802
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807
ac_cpp='$CPP $CPPFLAGS'
3808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
depcc="$CC" am_compiler_list=
3814
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3815
$as_echo_n "checking dependency style of $depcc... " >&6; }
3816
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3817
$as_echo_n "(cached) " >&6
3819
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820
# We make a subdir and do the tests there. Otherwise we can end up
3821
# making bogus files that we don't know about and never remove. For
3822
# instance it was reported that on HP-UX the gcc test will end up
3823
# making a dummy file named `D' -- because `-MD' means `put the output
3826
# Copy depcomp to subdir because otherwise we won't find it if we're
3827
# using a relative directory.
3828
cp "$am_depcomp" conftest.dir
3830
# We will build objects and dependencies in a subdirectory because
3831
# it helps to detect inapplicable dependency modes. For instance
3832
# both Tru64's cc and ICC support -MD to output dependencies as a
3833
# side effect of compilation, but ICC will put the dependencies in
3834
# the current directory while Tru64 will put them in the object
3838
am_cv_CC_dependencies_compiler_type=none
3839
if test "$am_compiler_list" = ""; then
3840
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843
case " $depcc " in #(
3844
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3847
for depmode in $am_compiler_list; do
3848
# Setup a source with many dependencies, because some compilers
3849
# like to wrap large dependency lists on column 80 (with \), and
3850
# we should not choose a depcomp mode which is confused by this.
3852
# We need to recreate these files for each test, as the compiler may
3853
# overwrite some of them when testing with obscure command lines.
3854
# This happens at least with the AIX C compiler.
3856
for i in 1 2 3 4 5 6; do
3857
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859
# Solaris 8's {/usr,}/bin/sh.
3860
touch sub/conftst$i.h
3862
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3865
# mode. It turns out that the SunPro C++ compiler does not properly
3866
# handle `-M -o', and we need to detect this. Also, some Intel
3867
# versions had trouble with output in subdirs
3868
am__obj=sub/conftest.${OBJEXT-o}
3869
am__minus_obj="-o $am__obj"
3872
# This depmode causes a compiler race in universal mode.
3873
test "$am__universal" = false || continue
3876
# after this tag, mechanisms are not by side-effect, so they'll
3877
# only be used when explicitly requested
3878
if test "x$enable_dependency_tracking" = xyes; then
3884
msvisualcpp | msvcmsys)
3885
# This compiler won't grok `-c -o', but also, the minuso test has
3886
# not run yet. These depmodes are late enough in the game, and
3887
# so weak that their functioning should not be impacted.
3888
am__obj=conftest.${OBJEXT-o}
3893
if depmode=$depmode \
3894
source=sub/conftest.c object=$am__obj \
3895
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3897
>/dev/null 2>conftest.err &&
3898
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3899
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3900
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3901
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3902
# icc doesn't choke on unknown options, it will just issue warnings
3903
# or remarks (even with -Werror). So we grep stderr for any message
3904
# that says an option was ignored or not supported.
3905
# When given -MP, icc 7.0 and 7.1 complain thusly:
3906
# icc: Command line warning: ignoring option '-M'; no argument required
3907
# The diagnosis changed in icc 8.0:
3908
# icc: Command line remark: option '-MP' not supported
3909
if (grep 'ignoring option' conftest.err ||
3910
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3911
am_cv_CC_dependencies_compiler_type=$depmode
3920
am_cv_CC_dependencies_compiler_type=none
3924
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3925
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3926
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929
test "x$enable_dependency_tracking" != xno \
3930
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932
am__fastdepCC_FALSE='#'
3934
am__fastdepCC_TRUE='#'
3935
am__fastdepCC_FALSE=
3939
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3940
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3941
if test "${ac_cv_path_SED+set}" = set; then
3942
$as_echo_n "(cached) " >&6
3944
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3945
for ac_i in 1 2 3 4 5 6 7; do
3946
ac_script="$ac_script$as_nl$ac_script"
3948
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3949
$as_unset ac_script || ac_script=
3950
if test -z "$SED"; then
3951
ac_path_SED_found=false
3952
# Loop through the user's path and test for each of PROGNAME-LIST
3953
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957
test -z "$as_dir" && as_dir=.
3958
for ac_prog in sed gsed; do
3959
for ac_exec_ext in '' $ac_executable_extensions; do
3960
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3961
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3962
# Check for GNU ac_path_SED and select it if it is found.
3963
# Check for GNU $ac_path_SED
3964
case `"$ac_path_SED" --version 2>&1` in
3966
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3969
$as_echo_n 0123456789 >"conftest.in"
3972
cat "conftest.in" "conftest.in" >"conftest.tmp"
3973
mv "conftest.tmp" "conftest.in"
3974
cp "conftest.in" "conftest.nl"
3975
$as_echo '' >> "conftest.nl"
3976
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978
ac_count=`expr $ac_count + 1`
3979
if test $ac_count -gt ${ac_path_SED_max-0}; then
3980
# Best one so far, save it but keep looking for a better one
3981
ac_cv_path_SED="$ac_path_SED"
3982
ac_path_SED_max=$ac_count
3984
# 10*(2^10) chars as input seems more than enough
3985
test $ac_count -gt 10 && break
3987
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990
$ac_path_SED_found && break 3
3995
if test -z "$ac_cv_path_SED"; then
3996
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3997
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3998
{ (exit 1); exit 1; }; }
4005
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4006
$as_echo "$ac_cv_path_SED" >&6; }
4007
SED="$ac_cv_path_SED"
4010
test -z "$SED" && SED=sed
4011
Xsed="$SED -e 1s/^X//"
4023
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4024
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4025
if test "${ac_cv_path_GREP+set}" = set; then
4026
$as_echo_n "(cached) " >&6
4028
if test -z "$GREP"; then
4029
ac_path_GREP_found=false
4030
# Loop through the user's path and test for each of PROGNAME-LIST
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035
test -z "$as_dir" && as_dir=.
4036
for ac_prog in grep ggrep; do
4037
for ac_exec_ext in '' $ac_executable_extensions; do
4038
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4039
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4040
# Check for GNU ac_path_GREP and select it if it is found.
4041
# Check for GNU $ac_path_GREP
4042
case `"$ac_path_GREP" --version 2>&1` in
4044
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4047
$as_echo_n 0123456789 >"conftest.in"
4050
cat "conftest.in" "conftest.in" >"conftest.tmp"
4051
mv "conftest.tmp" "conftest.in"
4052
cp "conftest.in" "conftest.nl"
4053
$as_echo 'GREP' >> "conftest.nl"
4054
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056
ac_count=`expr $ac_count + 1`
4057
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4058
# Best one so far, save it but keep looking for a better one
4059
ac_cv_path_GREP="$ac_path_GREP"
4060
ac_path_GREP_max=$ac_count
4062
# 10*(2^10) chars as input seems more than enough
4063
test $ac_count -gt 10 && break
4065
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068
$ac_path_GREP_found && break 3
4073
if test -z "$ac_cv_path_GREP"; then
4074
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076
{ (exit 1); exit 1; }; }
4079
ac_cv_path_GREP=$GREP
4083
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4084
$as_echo "$ac_cv_path_GREP" >&6; }
4085
GREP="$ac_cv_path_GREP"
4088
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4089
$as_echo_n "checking for egrep... " >&6; }
4090
if test "${ac_cv_path_EGREP+set}" = set; then
4091
$as_echo_n "(cached) " >&6
4093
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4094
then ac_cv_path_EGREP="$GREP -E"
4096
if test -z "$EGREP"; then
4097
ac_path_EGREP_found=false
4098
# Loop through the user's path and test for each of PROGNAME-LIST
4099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103
test -z "$as_dir" && as_dir=.
4104
for ac_prog in egrep; do
4105
for ac_exec_ext in '' $ac_executable_extensions; do
4106
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4107
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4108
# Check for GNU ac_path_EGREP and select it if it is found.
4109
# Check for GNU $ac_path_EGREP
4110
case `"$ac_path_EGREP" --version 2>&1` in
4112
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4115
$as_echo_n 0123456789 >"conftest.in"
4118
cat "conftest.in" "conftest.in" >"conftest.tmp"
4119
mv "conftest.tmp" "conftest.in"
4120
cp "conftest.in" "conftest.nl"
4121
$as_echo 'EGREP' >> "conftest.nl"
4122
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124
ac_count=`expr $ac_count + 1`
4125
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4126
# Best one so far, save it but keep looking for a better one
4127
ac_cv_path_EGREP="$ac_path_EGREP"
4128
ac_path_EGREP_max=$ac_count
4130
# 10*(2^10) chars as input seems more than enough
4131
test $ac_count -gt 10 && break
4133
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136
$ac_path_EGREP_found && break 3
4141
if test -z "$ac_cv_path_EGREP"; then
4142
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4143
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4144
{ (exit 1); exit 1; }; }
4147
ac_cv_path_EGREP=$EGREP
4152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4153
$as_echo "$ac_cv_path_EGREP" >&6; }
4154
EGREP="$ac_cv_path_EGREP"
4157
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4158
$as_echo_n "checking for fgrep... " >&6; }
4159
if test "${ac_cv_path_FGREP+set}" = set; then
4160
$as_echo_n "(cached) " >&6
4162
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163
then ac_cv_path_FGREP="$GREP -F"
4165
if test -z "$FGREP"; then
4166
ac_path_FGREP_found=false
4167
# Loop through the user's path and test for each of PROGNAME-LIST
4168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172
test -z "$as_dir" && as_dir=.
4173
for ac_prog in fgrep; do
4174
for ac_exec_ext in '' $ac_executable_extensions; do
4175
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4177
# Check for GNU ac_path_FGREP and select it if it is found.
4178
# Check for GNU $ac_path_FGREP
4179
case `"$ac_path_FGREP" --version 2>&1` in
4181
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4184
$as_echo_n 0123456789 >"conftest.in"
4187
cat "conftest.in" "conftest.in" >"conftest.tmp"
4188
mv "conftest.tmp" "conftest.in"
4189
cp "conftest.in" "conftest.nl"
4190
$as_echo 'FGREP' >> "conftest.nl"
4191
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193
ac_count=`expr $ac_count + 1`
4194
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195
# Best one so far, save it but keep looking for a better one
4196
ac_cv_path_FGREP="$ac_path_FGREP"
4197
ac_path_FGREP_max=$ac_count
4199
# 10*(2^10) chars as input seems more than enough
4200
test $ac_count -gt 10 && break
4202
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205
$ac_path_FGREP_found && break 3
4210
if test -z "$ac_cv_path_FGREP"; then
4211
{ { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4212
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4213
{ (exit 1); exit 1; }; }
4216
ac_cv_path_FGREP=$FGREP
4221
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4222
$as_echo "$ac_cv_path_FGREP" >&6; }
4223
FGREP="$ac_cv_path_FGREP"
4226
test -z "$GREP" && GREP=grep
4246
# Check whether --with-gnu-ld was given.
4247
if test "${with_gnu_ld+set}" = set; then
4248
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4254
if test "$GCC" = yes; then
4255
# Check if gcc -print-prog-name=ld gives a path.
4256
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4257
$as_echo_n "checking for ld used by $CC... " >&6; }
4260
# gcc leaves a trailing carriage return which upsets mingw
4261
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4263
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4266
# Accept absolute paths.
4268
re_direlt='/[^/][^/]*/\.\./'
4269
# Canonicalize the pathname of ld
4270
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4271
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4272
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4274
test -z "$LD" && LD="$ac_prog"
4277
# If it fails, then pretend we aren't using GCC.
4281
# If it is relative, then search for the first ld in PATH.
4285
elif test "$with_gnu_ld" = yes; then
4286
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4287
$as_echo_n "checking for GNU ld... " >&6; }
4289
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4290
$as_echo_n "checking for non-GNU ld... " >&6; }
4292
if test "${lt_cv_path_LD+set}" = set; then
4293
$as_echo_n "(cached) " >&6
4295
if test -z "$LD"; then
4296
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4297
for ac_dir in $PATH; do
4299
test -z "$ac_dir" && ac_dir=.
4300
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4301
lt_cv_path_LD="$ac_dir/$ac_prog"
4302
# Check to see if the program is GNU ld. I'd rather use --version,
4303
# but apparently some variants of GNU ld only accept -v.
4304
# Break only if it was the GNU/non-GNU ld that we prefer.
4305
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4306
*GNU* | *'with BFD'*)
4307
test "$with_gnu_ld" != no && break
4310
test "$with_gnu_ld" != yes && break
4317
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4322
if test -n "$LD"; then
4323
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
4324
$as_echo "$LD" >&6; }
4326
{ $as_echo "$as_me:$LINENO: result: no" >&5
4327
$as_echo "no" >&6; }
4329
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4330
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4331
{ (exit 1); exit 1; }; }
4332
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4333
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4334
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4335
$as_echo_n "(cached) " >&6
4337
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4338
case `$LD -v 2>&1 </dev/null` in
4339
*GNU* | *'with BFD'*)
4340
lt_cv_prog_gnu_ld=yes
4343
lt_cv_prog_gnu_ld=no
4347
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4348
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4349
with_gnu_ld=$lt_cv_prog_gnu_ld
4359
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4360
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4361
if test "${lt_cv_path_NM+set}" = set; then
4362
$as_echo_n "(cached) " >&6
4364
if test -n "$NM"; then
4365
# Let the user override the test.
4368
lt_nm_to_check="${ac_tool_prefix}nm"
4369
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4370
lt_nm_to_check="$lt_nm_to_check nm"
4372
for lt_tmp_nm in $lt_nm_to_check; do
4373
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4376
test -z "$ac_dir" && ac_dir=.
4377
tmp_nm="$ac_dir/$lt_tmp_nm"
4378
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4379
# Check to see if the nm accepts a BSD-compat flag.
4380
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4381
# nm: unknown option "B" ignored
4382
# Tru64's nm complains that /dev/null is an invalid object file
4383
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4384
*/dev/null* | *'Invalid file or object type'*)
4385
lt_cv_path_NM="$tmp_nm -B"
4389
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391
lt_cv_path_NM="$tmp_nm -p"
4395
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4396
continue # so that we can try to find one that supports BSD flags
4405
: ${lt_cv_path_NM=no}
4408
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409
$as_echo "$lt_cv_path_NM" >&6; }
4410
if test "$lt_cv_path_NM" != "no"; then
4413
# Didn't find any BSD compatible name lister, look for dumpbin.
4414
if test -n "$ac_tool_prefix"; then
4415
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4417
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4418
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4419
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4420
$as_echo_n "checking for $ac_word... " >&6; }
4421
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4422
$as_echo_n "(cached) " >&6
4424
if test -n "$DUMPBIN"; then
4425
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431
test -z "$as_dir" && as_dir=.
4432
for ac_exec_ext in '' $ac_executable_extensions; do
4433
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4435
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444
DUMPBIN=$ac_cv_prog_DUMPBIN
4445
if test -n "$DUMPBIN"; then
4446
{ $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4447
$as_echo "$DUMPBIN" >&6; }
4449
{ $as_echo "$as_me:$LINENO: result: no" >&5
4450
$as_echo "no" >&6; }
4454
test -n "$DUMPBIN" && break
4457
if test -z "$DUMPBIN"; then
4458
ac_ct_DUMPBIN=$DUMPBIN
4459
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4461
# Extract the first word of "$ac_prog", so it can be a program name with args.
4462
set dummy $ac_prog; ac_word=$2
4463
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4464
$as_echo_n "checking for $ac_word... " >&6; }
4465
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4466
$as_echo_n "(cached) " >&6
4468
if test -n "$ac_ct_DUMPBIN"; then
4469
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475
test -z "$as_dir" && as_dir=.
4476
for ac_exec_ext in '' $ac_executable_extensions; do
4477
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4479
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4489
if test -n "$ac_ct_DUMPBIN"; then
4490
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4491
$as_echo "$ac_ct_DUMPBIN" >&6; }
4493
{ $as_echo "$as_me:$LINENO: result: no" >&5
4494
$as_echo "no" >&6; }
4498
test -n "$ac_ct_DUMPBIN" && break
4501
if test "x$ac_ct_DUMPBIN" = x; then
4504
case $cross_compiling:$ac_tool_warned in
4506
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508
ac_tool_warned=yes ;;
4510
DUMPBIN=$ac_ct_DUMPBIN
4515
if test "$DUMPBIN" != ":"; then
4519
test -z "$NM" && NM=nm
4526
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4527
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4528
if test "${lt_cv_nm_interface+set}" = set; then
4529
$as_echo_n "(cached) " >&6
4531
lt_cv_nm_interface="BSD nm"
4532
echo "int some_variable = 0;" > conftest.$ac_ext
4533
(eval echo "\"\$as_me:4533: $ac_compile\"" >&5)
4534
(eval "$ac_compile" 2>conftest.err)
4535
cat conftest.err >&5
4536
(eval echo "\"\$as_me:4536: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4537
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4538
cat conftest.err >&5
4539
(eval echo "\"\$as_me:4539: output\"" >&5)
4540
cat conftest.out >&5
4541
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4542
lt_cv_nm_interface="MS dumpbin"
4546
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4547
$as_echo "$lt_cv_nm_interface" >&6; }
4549
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4550
$as_echo_n "checking whether ln -s works... " >&6; }
4552
if test "$LN_S" = "ln -s"; then
4553
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4554
$as_echo "yes" >&6; }
4556
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4557
$as_echo "no, using $LN_S" >&6; }
4560
# find the maximum length of command line arguments
4561
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4562
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4563
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4564
$as_echo_n "(cached) " >&6
4571
# On DJGPP, this test can blow up pretty badly due to problems in libc
4572
# (any single argument exceeding 2000 bytes causes a buffer overrun
4573
# during glob expansion). Even if it were fixed, the result of this
4574
# check would be larger than it should be.
4575
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4579
# Under GNU Hurd, this test is not required because there is
4580
# no limit to the length of command line arguments.
4581
# Libtool will interpret -1 as no limit whatsoever
4582
lt_cv_sys_max_cmd_len=-1;
4585
cygwin* | mingw* | cegcc*)
4586
# On Win9x/ME, this test blows up -- it succeeds, but takes
4587
# about 5 minutes as the teststring grows exponentially.
4588
# Worse, since 9x/ME are not pre-emptively multitasking,
4589
# you end up with a "frozen" computer, even though with patience
4590
# the test eventually succeeds (with a max line length of 256k).
4591
# Instead, let's just punt: use the minimum linelength reported by
4592
# all of the supported platforms: 8192 (on NT/2K/XP).
4593
lt_cv_sys_max_cmd_len=8192;
4597
# On AmigaOS with pdksh, this test takes hours, literally.
4598
# So we just punt and use a minimum line length of 8192.
4599
lt_cv_sys_max_cmd_len=8192;
4602
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4603
# This has been around since 386BSD, at least. Likely further.
4604
if test -x /sbin/sysctl; then
4605
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4606
elif test -x /usr/sbin/sysctl; then
4607
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4609
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4611
# And add a safety zone
4612
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4617
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4618
lt_cv_sys_max_cmd_len=196608
4622
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4623
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4624
# nice to cause kernel panics so lets avoid the loop below.
4625
# First set a reasonable default.
4626
lt_cv_sys_max_cmd_len=16384
4628
if test -x /sbin/sysconfig; then
4629
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4630
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4635
lt_cv_sys_max_cmd_len=102400
4637
sysv5* | sco5v6* | sysv4.2uw2*)
4638
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4639
if test -n "$kargmax"; then
4640
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4642
lt_cv_sys_max_cmd_len=32768
4646
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4647
if test -n "$lt_cv_sys_max_cmd_len"; then
4648
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4649
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4651
# Make teststring a little bigger before we do anything with it.
4652
# a 1K string should be a reasonable start.
4653
for i in 1 2 3 4 5 6 7 8 ; do
4654
teststring=$teststring$teststring
4656
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4657
# If test is not a shell built-in, we'll probably end up computing a
4658
# maximum length that is only half of the actual maximum length, but
4660
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4661
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4662
test $i != 17 # 1/2 MB should be enough
4665
teststring=$teststring$teststring
4667
# Only check the string length outside the loop.
4668
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4670
# Add a significant safety factor because C++ compilers can tack on
4671
# massive amounts of additional arguments before passing them to the
4672
# linker. It appears as though 1/2 is a usable value.
4673
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4680
if test -n $lt_cv_sys_max_cmd_len ; then
4681
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4682
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4684
{ $as_echo "$as_me:$LINENO: result: none" >&5
4685
$as_echo "none" >&6; }
4687
max_cmd_len=$lt_cv_sys_max_cmd_len
4698
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4699
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4700
# Try some XSI features
4703
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4705
&& eval 'test $(( 1 + 1 )) -eq 2 \
4706
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4708
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4709
$as_echo "$xsi_shell" >&6; }
4712
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4713
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4715
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4717
&& lt_shell_append=yes
4718
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4719
$as_echo "$lt_shell_append" >&6; }
4722
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4732
# test EBCDIC or ASCII
4733
case `echo X|tr X '\101'` in
4734
A) # ASCII based system
4735
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4736
lt_SP2NL='tr \040 \012'
4737
lt_NL2SP='tr \015\012 \040\040'
4739
*) # EBCDIC based system
4740
lt_SP2NL='tr \100 \n'
4741
lt_NL2SP='tr \r\n \100\100'
4753
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4754
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4755
if test "${lt_cv_ld_reload_flag+set}" = set; then
4756
$as_echo_n "(cached) " >&6
4758
lt_cv_ld_reload_flag='-r'
4760
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4761
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4762
reload_flag=$lt_cv_ld_reload_flag
4763
case $reload_flag in
4765
*) reload_flag=" $reload_flag" ;;
4767
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4770
if test "$GCC" = yes; then
4771
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4773
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4786
if test -n "$ac_tool_prefix"; then
4787
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4788
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4789
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4790
$as_echo_n "checking for $ac_word... " >&6; }
4791
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4792
$as_echo_n "(cached) " >&6
4794
if test -n "$OBJDUMP"; then
4795
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4797
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801
test -z "$as_dir" && as_dir=.
4802
for ac_exec_ext in '' $ac_executable_extensions; do
4803
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4805
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814
OBJDUMP=$ac_cv_prog_OBJDUMP
4815
if test -n "$OBJDUMP"; then
4816
{ $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4817
$as_echo "$OBJDUMP" >&6; }
4819
{ $as_echo "$as_me:$LINENO: result: no" >&5
4820
$as_echo "no" >&6; }
4825
if test -z "$ac_cv_prog_OBJDUMP"; then
4826
ac_ct_OBJDUMP=$OBJDUMP
4827
# Extract the first word of "objdump", so it can be a program name with args.
4828
set dummy objdump; ac_word=$2
4829
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4830
$as_echo_n "checking for $ac_word... " >&6; }
4831
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4832
$as_echo_n "(cached) " >&6
4834
if test -n "$ac_ct_OBJDUMP"; then
4835
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841
test -z "$as_dir" && as_dir=.
4842
for ac_exec_ext in '' $ac_executable_extensions; do
4843
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4845
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4855
if test -n "$ac_ct_OBJDUMP"; then
4856
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4857
$as_echo "$ac_ct_OBJDUMP" >&6; }
4859
{ $as_echo "$as_me:$LINENO: result: no" >&5
4860
$as_echo "no" >&6; }
4863
if test "x$ac_ct_OBJDUMP" = x; then
4866
case $cross_compiling:$ac_tool_warned in
4868
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4869
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870
ac_tool_warned=yes ;;
4872
OBJDUMP=$ac_ct_OBJDUMP
4875
OBJDUMP="$ac_cv_prog_OBJDUMP"
4878
test -z "$OBJDUMP" && OBJDUMP=objdump
4888
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4889
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4890
if test "${lt_cv_deplibs_check_method+set}" = set; then
4891
$as_echo_n "(cached) " >&6
4893
lt_cv_file_magic_cmd='$MAGIC_CMD'
4894
lt_cv_file_magic_test_file=
4895
lt_cv_deplibs_check_method='unknown'
4896
# Need to set the preceding variable on all platforms that support
4897
# interlibrary dependencies.
4898
# 'none' -- dependencies not supported.
4899
# `unknown' -- same as none, but documents that we really don't know.
4900
# 'pass_all' -- all dependencies passed with no checks.
4901
# 'test_compile' -- check by making test program.
4902
# 'file_magic [[regex]]' -- check by looking for files in library path
4903
# which responds to the $file_magic_cmd with a given extended regex.
4904
# If you have `file' or equivalent on your system and you're not sure
4905
# whether `pass_all' will *always* work, you probably want this one.
4909
lt_cv_deplibs_check_method=pass_all
4913
lt_cv_deplibs_check_method=pass_all
4917
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4918
lt_cv_file_magic_cmd='/usr/bin/file -L'
4919
lt_cv_file_magic_test_file=/shlib/libc.so
4923
# func_win32_libid is a shell function defined in ltmain.sh
4924
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925
lt_cv_file_magic_cmd='func_win32_libid'
4929
# Base MSYS/MinGW do not provide the 'file' command needed by
4930
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4931
# unless we find 'file', for example because we are cross-compiling.
4932
if ( file / ) >/dev/null 2>&1; then
4933
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4934
lt_cv_file_magic_cmd='func_win32_libid'
4936
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4937
lt_cv_file_magic_cmd='$OBJDUMP -f'
4942
# use the weaker test based on 'objdump'. See mingw*.
4943
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4944
lt_cv_file_magic_cmd='$OBJDUMP -f'
4947
darwin* | rhapsody*)
4948
lt_cv_deplibs_check_method=pass_all
4951
freebsd* | dragonfly*)
4952
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4955
# Not sure whether the presence of OpenBSD here was a mistake.
4956
# Let's accept both of them until this is cleared up.
4957
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4958
lt_cv_file_magic_cmd=/usr/bin/file
4959
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4963
lt_cv_deplibs_check_method=pass_all
4968
lt_cv_deplibs_check_method=pass_all
4971
hpux10.20* | hpux11*)
4972
lt_cv_file_magic_cmd=/usr/bin/file
4975
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4976
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4979
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]'
4980
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4983
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4984
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4990
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4991
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4994
irix5* | irix6* | nonstopux*)
4996
*-32|*"-32 ") libmagic=32-bit;;
4997
*-n32|*"-n32 ") libmagic=N32;;
4998
*-64|*"-64 ") libmagic=64-bit;;
4999
*) libmagic=never-match;;
5001
lt_cv_deplibs_check_method=pass_all
5004
# This must be Linux ELF.
5005
linux* | k*bsd*-gnu)
5006
lt_cv_deplibs_check_method=pass_all
5010
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5011
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5013
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5018
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5019
lt_cv_file_magic_cmd=/usr/bin/file
5020
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5024
lt_cv_deplibs_check_method=pass_all
5028
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5029
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5031
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035
osf3* | osf4* | osf5*)
5036
lt_cv_deplibs_check_method=pass_all
5040
lt_cv_deplibs_check_method=pass_all
5044
lt_cv_deplibs_check_method=pass_all
5047
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5048
lt_cv_deplibs_check_method=pass_all
5052
case $host_vendor in
5054
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]'
5055
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5058
lt_cv_deplibs_check_method=pass_all
5061
lt_cv_file_magic_cmd='/bin/file'
5062
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5065
lt_cv_file_magic_cmd='/bin/file'
5066
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5067
lt_cv_file_magic_test_file=/lib/libc.so
5070
lt_cv_deplibs_check_method=pass_all
5073
lt_cv_deplibs_check_method=pass_all
5079
lt_cv_deplibs_check_method=pass_all
5084
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5085
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5086
file_magic_cmd=$lt_cv_file_magic_cmd
5087
deplibs_check_method=$lt_cv_deplibs_check_method
5088
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5101
if test -n "$ac_tool_prefix"; then
5102
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5103
set dummy ${ac_tool_prefix}ar; ac_word=$2
5104
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5105
$as_echo_n "checking for $ac_word... " >&6; }
5106
if test "${ac_cv_prog_AR+set}" = set; then
5107
$as_echo_n "(cached) " >&6
5109
if test -n "$AR"; then
5110
ac_cv_prog_AR="$AR" # Let the user override the test.
5112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116
test -z "$as_dir" && as_dir=.
5117
for ac_exec_ext in '' $ac_executable_extensions; do
5118
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119
ac_cv_prog_AR="${ac_tool_prefix}ar"
5120
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130
if test -n "$AR"; then
5131
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
5132
$as_echo "$AR" >&6; }
5134
{ $as_echo "$as_me:$LINENO: result: no" >&5
5135
$as_echo "no" >&6; }
5140
if test -z "$ac_cv_prog_AR"; then
5142
# Extract the first word of "ar", so it can be a program name with args.
5143
set dummy ar; ac_word=$2
5144
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5145
$as_echo_n "checking for $ac_word... " >&6; }
5146
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5147
$as_echo_n "(cached) " >&6
5149
if test -n "$ac_ct_AR"; then
5150
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156
test -z "$as_dir" && as_dir=.
5157
for ac_exec_ext in '' $ac_executable_extensions; do
5158
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159
ac_cv_prog_ac_ct_AR="ar"
5160
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5170
if test -n "$ac_ct_AR"; then
5171
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5172
$as_echo "$ac_ct_AR" >&6; }
5174
{ $as_echo "$as_me:$LINENO: result: no" >&5
5175
$as_echo "no" >&6; }
5178
if test "x$ac_ct_AR" = x; then
5181
case $cross_compiling:$ac_tool_warned in
5183
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5184
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185
ac_tool_warned=yes ;;
5193
test -z "$AR" && AR=ar
5194
test -z "$AR_FLAGS" && AR_FLAGS=cru
5206
if test -n "$ac_tool_prefix"; then
5207
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208
set dummy ${ac_tool_prefix}strip; ac_word=$2
5209
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5210
$as_echo_n "checking for $ac_word... " >&6; }
5211
if test "${ac_cv_prog_STRIP+set}" = set; then
5212
$as_echo_n "(cached) " >&6
5214
if test -n "$STRIP"; then
5215
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221
test -z "$as_dir" && as_dir=.
5222
for ac_exec_ext in '' $ac_executable_extensions; do
5223
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234
STRIP=$ac_cv_prog_STRIP
5235
if test -n "$STRIP"; then
5236
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5237
$as_echo "$STRIP" >&6; }
5239
{ $as_echo "$as_me:$LINENO: result: no" >&5
5240
$as_echo "no" >&6; }
5245
if test -z "$ac_cv_prog_STRIP"; then
5247
# Extract the first word of "strip", so it can be a program name with args.
5248
set dummy strip; ac_word=$2
5249
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5250
$as_echo_n "checking for $ac_word... " >&6; }
5251
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5252
$as_echo_n "(cached) " >&6
5254
if test -n "$ac_ct_STRIP"; then
5255
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261
test -z "$as_dir" && as_dir=.
5262
for ac_exec_ext in '' $ac_executable_extensions; do
5263
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264
ac_cv_prog_ac_ct_STRIP="strip"
5265
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5275
if test -n "$ac_ct_STRIP"; then
5276
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5277
$as_echo "$ac_ct_STRIP" >&6; }
5279
{ $as_echo "$as_me:$LINENO: result: no" >&5
5280
$as_echo "no" >&6; }
5283
if test "x$ac_ct_STRIP" = x; then
5286
case $cross_compiling:$ac_tool_warned in
5288
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5289
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290
ac_tool_warned=yes ;;
5295
STRIP="$ac_cv_prog_STRIP"
5298
test -z "$STRIP" && STRIP=:
5305
if test -n "$ac_tool_prefix"; then
5306
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5307
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5308
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5309
$as_echo_n "checking for $ac_word... " >&6; }
5310
if test "${ac_cv_prog_RANLIB+set}" = set; then
5311
$as_echo_n "(cached) " >&6
5313
if test -n "$RANLIB"; then
5314
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320
test -z "$as_dir" && as_dir=.
5321
for ac_exec_ext in '' $ac_executable_extensions; do
5322
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5324
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333
RANLIB=$ac_cv_prog_RANLIB
5334
if test -n "$RANLIB"; then
5335
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5336
$as_echo "$RANLIB" >&6; }
5338
{ $as_echo "$as_me:$LINENO: result: no" >&5
5339
$as_echo "no" >&6; }
5344
if test -z "$ac_cv_prog_RANLIB"; then
5345
ac_ct_RANLIB=$RANLIB
5346
# Extract the first word of "ranlib", so it can be a program name with args.
5347
set dummy ranlib; ac_word=$2
5348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5349
$as_echo_n "checking for $ac_word... " >&6; }
5350
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5351
$as_echo_n "(cached) " >&6
5353
if test -n "$ac_ct_RANLIB"; then
5354
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360
test -z "$as_dir" && as_dir=.
5361
for ac_exec_ext in '' $ac_executable_extensions; do
5362
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363
ac_cv_prog_ac_ct_RANLIB="ranlib"
5364
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5374
if test -n "$ac_ct_RANLIB"; then
5375
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5376
$as_echo "$ac_ct_RANLIB" >&6; }
5378
{ $as_echo "$as_me:$LINENO: result: no" >&5
5379
$as_echo "no" >&6; }
5382
if test "x$ac_ct_RANLIB" = x; then
5385
case $cross_compiling:$ac_tool_warned in
5387
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5389
ac_tool_warned=yes ;;
5391
RANLIB=$ac_ct_RANLIB
5394
RANLIB="$ac_cv_prog_RANLIB"
5397
test -z "$RANLIB" && RANLIB=:
5404
# Determine commands to create old-style static archives.
5405
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5406
old_postinstall_cmds='chmod 644 $oldlib'
5407
old_postuninstall_cmds=
5409
if test -n "$RANLIB"; then
5412
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5415
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5418
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5454
# If no C compiler was specified, use CC.
5457
# If no C compiler flags were specified, use CFLAGS.
5458
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5460
# Allow CC to be a program name with arguments.
5464
# Check for command to grab the raw symbol name followed by C symbol from nm.
5465
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5466
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5467
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5468
$as_echo_n "(cached) " >&6
5471
# These are sane defaults that work on at least a few old systems.
5472
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5474
# Character class describing NM global symbol codes.
5475
symcode='[BCDEGRST]'
5477
# Regexp to match symbols that can be accessed directly from C.
5478
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5480
# Define system-specific variables.
5485
cygwin* | mingw* | pw32* | cegcc*)
5486
symcode='[ABCDGISTW]'
5489
if test "$host_cpu" = ia64; then
5490
symcode='[ABCDEGRST]'
5494
symcode='[BCDEGRST]'
5497
symcode='[BCDEGQRST]'
5508
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5516
# If we're using GNU nm, then use its standard symbol codes.
5517
case `$NM -V 2>&1` in
5518
*GNU* | *'with BFD'*)
5519
symcode='[ABCDGIRSTW]' ;;
5522
# Transform an extracted symbol line into a proper C declaration.
5523
# Some systems (esp. on ia64) link data and code symbols differently,
5524
# so use this general approach.
5525
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5527
# Transform an extracted symbol line into symbol name and symbol address
5528
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5529
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'"
5531
# Handle CRLF in mingw tool chain
5535
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539
# Try without a prefix underscore, then with it.
5540
for ac_symprfx in "" "_"; do
5542
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5543
symxfrm="\\1 $ac_symprfx\\2 \\2"
5545
# Write the raw and C identifiers.
5546
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5547
# Fake it for dumpbin and say T for any non-static function
5548
# and D for any global variable.
5549
# Also find C++ and __fastcall symbols from MSVC++,
5550
# which start with @ or ?.
5551
lt_cv_sys_global_symbol_pipe="$AWK '"\
5552
" {last_section=section; section=\$ 3};"\
5553
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5554
" \$ 0!~/External *\|/{next};"\
5555
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5556
" {if(hide[section]) next};"\
5557
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5558
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5559
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5560
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5561
" ' prfx=^$ac_symprfx"
5563
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5566
# Check to see that the pipe works correctly.
5570
cat > conftest.$ac_ext <<_LT_EOF
5575
void nm_test_func(void);
5576
void nm_test_func(void){}
5580
int main(){nm_test_var='a';nm_test_func();return(0);}
5583
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584
(eval $ac_compile) 2>&5
5586
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
(exit $ac_status); }; then
5588
# Now try to grab the symbols.
5590
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5591
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5593
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
(exit $ac_status); } && test -s "$nlist"; then
5595
# Try sorting and uniquifying the output.
5596
if sort "$nlist" | uniq > "$nlist"T; then
5597
mv -f "$nlist"T "$nlist"
5602
# Make sure that we snagged all the symbols we need.
5603
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5604
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5605
cat <<_LT_EOF > conftest.$ac_ext
5611
# Now generate the symbol file.
5612
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5614
cat <<_LT_EOF >> conftest.$ac_ext
5616
/* The mapping between symbol names and symbols. */
5621
lt__PROGRAM__LTX_preloaded_symbols[] =
5623
{ "@PROGRAM@", (void *) 0 },
5625
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5626
cat <<\_LT_EOF >> conftest.$ac_ext
5630
/* This works around a problem in FreeBSD linker */
5631
#ifdef FREEBSD_WORKAROUND
5632
static const void *lt_preloaded_setup() {
5633
return lt__PROGRAM__LTX_preloaded_symbols;
5641
# Now try linking the two files.
5642
mv conftest.$ac_objext conftstm.$ac_objext
5643
lt_save_LIBS="$LIBS"
5644
lt_save_CFLAGS="$CFLAGS"
5645
LIBS="conftstm.$ac_objext"
5646
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648
(eval $ac_link) 2>&5
5650
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5654
LIBS="$lt_save_LIBS"
5655
CFLAGS="$lt_save_CFLAGS"
5657
echo "cannot find nm_test_func in $nlist" >&5
5660
echo "cannot find nm_test_var in $nlist" >&5
5663
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5666
echo "$progname: failed program was:" >&5
5667
cat conftest.$ac_ext >&5
5669
rm -rf conftest* conftst*
5671
# Do not use the global_symbol_pipe unless it works.
5672
if test "$pipe_works" = yes; then
5675
lt_cv_sys_global_symbol_pipe=
5681
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5682
lt_cv_sys_global_symbol_to_cdecl=
5684
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5685
{ $as_echo "$as_me:$LINENO: result: failed" >&5
5686
$as_echo "failed" >&6; }
5688
{ $as_echo "$as_me:$LINENO: result: ok" >&5
5689
$as_echo "ok" >&6; }
5714
# Check whether --enable-libtool-lock was given.
5715
if test "${enable_libtool_lock+set}" = set; then
5716
enableval=$enable_libtool_lock;
5719
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5721
# Some flags need to be propagated to the compiler or linker for good
5725
# Find out which ABI we are using.
5726
echo 'int i;' > conftest.$ac_ext
5727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728
(eval $ac_compile) 2>&5
5730
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
(exit $ac_status); }; then
5732
case `/usr/bin/file conftest.$ac_objext` in
5744
# Find out which ABI we are using.
5745
echo '#line 5745 "configure"' > conftest.$ac_ext
5746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747
(eval $ac_compile) 2>&5
5749
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); }; then
5751
if test "$lt_cv_prog_gnu_ld" = yes; then
5752
case `/usr/bin/file conftest.$ac_objext` in
5754
LD="${LD-ld} -melf32bsmip"
5757
LD="${LD-ld} -melf32bmipn32"
5760
LD="${LD-ld} -melf64bmip"
5764
case `/usr/bin/file conftest.$ac_objext` in
5780
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5781
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5782
# Find out which ABI we are using.
5783
echo 'int i;' > conftest.$ac_ext
5784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785
(eval $ac_compile) 2>&5
5787
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788
(exit $ac_status); }; then
5789
case `/usr/bin/file conftest.o` in
5792
x86_64-*kfreebsd*-gnu)
5793
LD="${LD-ld} -m elf_i386_fbsd"
5796
LD="${LD-ld} -m elf_i386"
5798
ppc64-*linux*|powerpc64-*linux*)
5799
LD="${LD-ld} -m elf32ppclinux"
5802
LD="${LD-ld} -m elf_s390"
5805
LD="${LD-ld} -m elf32_sparc"
5811
x86_64-*kfreebsd*-gnu)
5812
LD="${LD-ld} -m elf_x86_64_fbsd"
5815
LD="${LD-ld} -m elf_x86_64"
5817
ppc*-*linux*|powerpc*-*linux*)
5818
LD="${LD-ld} -m elf64ppc"
5820
s390*-*linux*|s390*-*tpf*)
5821
LD="${LD-ld} -m elf64_s390"
5824
LD="${LD-ld} -m elf64_sparc"
5834
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5835
SAVE_CFLAGS="$CFLAGS"
5836
CFLAGS="$CFLAGS -belf"
5837
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5838
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5839
if test "${lt_cv_cc_needs_belf+set}" = set; then
5840
$as_echo_n "(cached) " >&6
5843
ac_cpp='$CPP $CPPFLAGS'
5844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848
cat >conftest.$ac_ext <<_ACEOF
5851
cat confdefs.h >>conftest.$ac_ext
5852
cat >>conftest.$ac_ext <<_ACEOF
5853
/* end confdefs.h. */
5863
rm -f conftest.$ac_objext conftest$ac_exeext
5864
if { (ac_try="$ac_link"
5866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867
*) ac_try_echo=$ac_try;;
5869
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870
$as_echo "$ac_try_echo") >&5
5871
(eval "$ac_link") 2>conftest.er1
5873
grep -v '^ *+' conftest.er1 >conftest.err
5875
cat conftest.err >&5
5876
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877
(exit $ac_status); } && {
5878
test -z "$ac_c_werror_flag" ||
5879
test ! -s conftest.err
5880
} && test -s conftest$ac_exeext && {
5881
test "$cross_compiling" = yes ||
5882
$as_test_x conftest$ac_exeext
5884
lt_cv_cc_needs_belf=yes
5886
$as_echo "$as_me: failed program was:" >&5
5887
sed 's/^/| /' conftest.$ac_ext >&5
5889
lt_cv_cc_needs_belf=no
5892
rm -rf conftest.dSYM
5893
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894
conftest$ac_exeext conftest.$ac_ext
5896
ac_cpp='$CPP $CPPFLAGS'
5897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5903
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5904
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5905
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5906
CFLAGS="$SAVE_CFLAGS"
5910
# Find out which ABI we are using.
5911
echo 'int i;' > conftest.$ac_ext
5912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913
(eval $ac_compile) 2>&5
5915
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916
(exit $ac_status); }; then
5917
case `/usr/bin/file conftest.o` in
5919
case $lt_cv_prog_gnu_ld in
5920
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5922
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5934
need_locks="$enable_libtool_lock"
5938
rhapsody* | darwin*)
5939
if test -n "$ac_tool_prefix"; then
5940
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5941
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5942
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5943
$as_echo_n "checking for $ac_word... " >&6; }
5944
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5945
$as_echo_n "(cached) " >&6
5947
if test -n "$DSYMUTIL"; then
5948
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954
test -z "$as_dir" && as_dir=.
5955
for ac_exec_ext in '' $ac_executable_extensions; do
5956
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5958
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5968
if test -n "$DSYMUTIL"; then
5969
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5970
$as_echo "$DSYMUTIL" >&6; }
5972
{ $as_echo "$as_me:$LINENO: result: no" >&5
5973
$as_echo "no" >&6; }
5978
if test -z "$ac_cv_prog_DSYMUTIL"; then
5979
ac_ct_DSYMUTIL=$DSYMUTIL
5980
# Extract the first word of "dsymutil", so it can be a program name with args.
5981
set dummy dsymutil; ac_word=$2
5982
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983
$as_echo_n "checking for $ac_word... " >&6; }
5984
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5985
$as_echo_n "(cached) " >&6
5987
if test -n "$ac_ct_DSYMUTIL"; then
5988
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994
test -z "$as_dir" && as_dir=.
5995
for ac_exec_ext in '' $ac_executable_extensions; do
5996
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5998
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6008
if test -n "$ac_ct_DSYMUTIL"; then
6009
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6010
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6012
{ $as_echo "$as_me:$LINENO: result: no" >&5
6013
$as_echo "no" >&6; }
6016
if test "x$ac_ct_DSYMUTIL" = x; then
6019
case $cross_compiling:$ac_tool_warned in
6021
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023
ac_tool_warned=yes ;;
6025
DSYMUTIL=$ac_ct_DSYMUTIL
6028
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6031
if test -n "$ac_tool_prefix"; then
6032
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6033
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6034
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6035
$as_echo_n "checking for $ac_word... " >&6; }
6036
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6037
$as_echo_n "(cached) " >&6
6039
if test -n "$NMEDIT"; then
6040
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046
test -z "$as_dir" && as_dir=.
6047
for ac_exec_ext in '' $ac_executable_extensions; do
6048
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6050
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059
NMEDIT=$ac_cv_prog_NMEDIT
6060
if test -n "$NMEDIT"; then
6061
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6062
$as_echo "$NMEDIT" >&6; }
6064
{ $as_echo "$as_me:$LINENO: result: no" >&5
6065
$as_echo "no" >&6; }
6070
if test -z "$ac_cv_prog_NMEDIT"; then
6071
ac_ct_NMEDIT=$NMEDIT
6072
# Extract the first word of "nmedit", so it can be a program name with args.
6073
set dummy nmedit; ac_word=$2
6074
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6075
$as_echo_n "checking for $ac_word... " >&6; }
6076
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6077
$as_echo_n "(cached) " >&6
6079
if test -n "$ac_ct_NMEDIT"; then
6080
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086
test -z "$as_dir" && as_dir=.
6087
for ac_exec_ext in '' $ac_executable_extensions; do
6088
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6090
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6100
if test -n "$ac_ct_NMEDIT"; then
6101
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6102
$as_echo "$ac_ct_NMEDIT" >&6; }
6104
{ $as_echo "$as_me:$LINENO: result: no" >&5
6105
$as_echo "no" >&6; }
6108
if test "x$ac_ct_NMEDIT" = x; then
6111
case $cross_compiling:$ac_tool_warned in
6113
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6114
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115
ac_tool_warned=yes ;;
6117
NMEDIT=$ac_ct_NMEDIT
6120
NMEDIT="$ac_cv_prog_NMEDIT"
6123
if test -n "$ac_tool_prefix"; then
6124
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6125
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6126
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127
$as_echo_n "checking for $ac_word... " >&6; }
6128
if test "${ac_cv_prog_LIPO+set}" = set; then
6129
$as_echo_n "(cached) " >&6
6131
if test -n "$LIPO"; then
6132
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138
test -z "$as_dir" && as_dir=.
6139
for ac_exec_ext in '' $ac_executable_extensions; do
6140
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6142
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151
LIPO=$ac_cv_prog_LIPO
6152
if test -n "$LIPO"; then
6153
{ $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6154
$as_echo "$LIPO" >&6; }
6156
{ $as_echo "$as_me:$LINENO: result: no" >&5
6157
$as_echo "no" >&6; }
6162
if test -z "$ac_cv_prog_LIPO"; then
6164
# Extract the first word of "lipo", so it can be a program name with args.
6165
set dummy lipo; ac_word=$2
6166
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6167
$as_echo_n "checking for $ac_word... " >&6; }
6168
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6169
$as_echo_n "(cached) " >&6
6171
if test -n "$ac_ct_LIPO"; then
6172
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178
test -z "$as_dir" && as_dir=.
6179
for ac_exec_ext in '' $ac_executable_extensions; do
6180
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181
ac_cv_prog_ac_ct_LIPO="lipo"
6182
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6192
if test -n "$ac_ct_LIPO"; then
6193
{ $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6194
$as_echo "$ac_ct_LIPO" >&6; }
6196
{ $as_echo "$as_me:$LINENO: result: no" >&5
6197
$as_echo "no" >&6; }
6200
if test "x$ac_ct_LIPO" = x; then
6203
case $cross_compiling:$ac_tool_warned in
6205
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6206
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207
ac_tool_warned=yes ;;
6212
LIPO="$ac_cv_prog_LIPO"
6215
if test -n "$ac_tool_prefix"; then
6216
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6217
set dummy ${ac_tool_prefix}otool; ac_word=$2
6218
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219
$as_echo_n "checking for $ac_word... " >&6; }
6220
if test "${ac_cv_prog_OTOOL+set}" = set; then
6221
$as_echo_n "(cached) " >&6
6223
if test -n "$OTOOL"; then
6224
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230
test -z "$as_dir" && as_dir=.
6231
for ac_exec_ext in '' $ac_executable_extensions; do
6232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6234
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243
OTOOL=$ac_cv_prog_OTOOL
6244
if test -n "$OTOOL"; then
6245
{ $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6246
$as_echo "$OTOOL" >&6; }
6248
{ $as_echo "$as_me:$LINENO: result: no" >&5
6249
$as_echo "no" >&6; }
6254
if test -z "$ac_cv_prog_OTOOL"; then
6256
# Extract the first word of "otool", so it can be a program name with args.
6257
set dummy otool; ac_word=$2
6258
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259
$as_echo_n "checking for $ac_word... " >&6; }
6260
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6261
$as_echo_n "(cached) " >&6
6263
if test -n "$ac_ct_OTOOL"; then
6264
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270
test -z "$as_dir" && as_dir=.
6271
for ac_exec_ext in '' $ac_executable_extensions; do
6272
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273
ac_cv_prog_ac_ct_OTOOL="otool"
6274
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6284
if test -n "$ac_ct_OTOOL"; then
6285
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6286
$as_echo "$ac_ct_OTOOL" >&6; }
6288
{ $as_echo "$as_me:$LINENO: result: no" >&5
6289
$as_echo "no" >&6; }
6292
if test "x$ac_ct_OTOOL" = x; then
6295
case $cross_compiling:$ac_tool_warned in
6297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299
ac_tool_warned=yes ;;
6304
OTOOL="$ac_cv_prog_OTOOL"
6307
if test -n "$ac_tool_prefix"; then
6308
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6309
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311
$as_echo_n "checking for $ac_word... " >&6; }
6312
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6313
$as_echo_n "(cached) " >&6
6315
if test -n "$OTOOL64"; then
6316
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322
test -z "$as_dir" && as_dir=.
6323
for ac_exec_ext in '' $ac_executable_extensions; do
6324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6326
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335
OTOOL64=$ac_cv_prog_OTOOL64
6336
if test -n "$OTOOL64"; then
6337
{ $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6338
$as_echo "$OTOOL64" >&6; }
6340
{ $as_echo "$as_me:$LINENO: result: no" >&5
6341
$as_echo "no" >&6; }
6346
if test -z "$ac_cv_prog_OTOOL64"; then
6347
ac_ct_OTOOL64=$OTOOL64
6348
# Extract the first word of "otool64", so it can be a program name with args.
6349
set dummy otool64; ac_word=$2
6350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351
$as_echo_n "checking for $ac_word... " >&6; }
6352
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6353
$as_echo_n "(cached) " >&6
6355
if test -n "$ac_ct_OTOOL64"; then
6356
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362
test -z "$as_dir" && as_dir=.
6363
for ac_exec_ext in '' $ac_executable_extensions; do
6364
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365
ac_cv_prog_ac_ct_OTOOL64="otool64"
6366
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6376
if test -n "$ac_ct_OTOOL64"; then
6377
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6378
$as_echo "$ac_ct_OTOOL64" >&6; }
6380
{ $as_echo "$as_me:$LINENO: result: no" >&5
6381
$as_echo "no" >&6; }
6384
if test "x$ac_ct_OTOOL64" = x; then
6387
case $cross_compiling:$ac_tool_warned in
6389
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391
ac_tool_warned=yes ;;
6393
OTOOL64=$ac_ct_OTOOL64
6396
OTOOL64="$ac_cv_prog_OTOOL64"
6425
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6426
$as_echo_n "checking for -single_module linker flag... " >&6; }
6427
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6428
$as_echo_n "(cached) " >&6
6430
lt_cv_apple_cc_single_mod=no
6431
if test -z "${LT_MULTI_MODULE}"; then
6432
# By default we will add the -single_module flag. You can override
6433
# by either setting the environment variable LT_MULTI_MODULE
6434
# non-empty at configure time, or by adding -multi_module to the
6436
rm -rf libconftest.dylib*
6437
echo "int foo(void){return 1;}" > conftest.c
6438
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6439
-dynamiclib -Wl,-single_module conftest.c" >&5
6440
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6441
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6443
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6444
lt_cv_apple_cc_single_mod=yes
6446
cat conftest.err >&5
6448
rm -rf libconftest.dylib*
6452
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6453
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6454
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6455
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6456
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6457
$as_echo_n "(cached) " >&6
6459
lt_cv_ld_exported_symbols_list=no
6460
save_LDFLAGS=$LDFLAGS
6461
echo "_main" > conftest.sym
6462
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6463
cat >conftest.$ac_ext <<_ACEOF
6466
cat confdefs.h >>conftest.$ac_ext
6467
cat >>conftest.$ac_ext <<_ACEOF
6468
/* end confdefs.h. */
6478
rm -f conftest.$ac_objext conftest$ac_exeext
6479
if { (ac_try="$ac_link"
6481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482
*) ac_try_echo=$ac_try;;
6484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485
$as_echo "$ac_try_echo") >&5
6486
(eval "$ac_link") 2>conftest.er1
6488
grep -v '^ *+' conftest.er1 >conftest.err
6490
cat conftest.err >&5
6491
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
(exit $ac_status); } && {
6493
test -z "$ac_c_werror_flag" ||
6494
test ! -s conftest.err
6495
} && test -s conftest$ac_exeext && {
6496
test "$cross_compiling" = yes ||
6497
$as_test_x conftest$ac_exeext
6499
lt_cv_ld_exported_symbols_list=yes
6501
$as_echo "$as_me: failed program was:" >&5
6502
sed 's/^/| /' conftest.$ac_ext >&5
6504
lt_cv_ld_exported_symbols_list=no
6507
rm -rf conftest.dSYM
6508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6509
conftest$ac_exeext conftest.$ac_ext
6510
LDFLAGS="$save_LDFLAGS"
6513
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6514
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6516
rhapsody* | darwin1.[012])
6517
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6519
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6520
darwin*) # darwin 5.x on
6521
# if running on 10.5 or later, the deployment target defaults
6522
# to the OS version, if on x86, and 10.4, the deployment
6523
# target defaults to 10.4. Don't you love it?
6524
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6525
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6526
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6528
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6530
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6534
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6535
_lt_dar_single_mod='$single_module'
6537
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6538
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6540
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6542
if test "$DSYMUTIL" != ":"; then
6543
_lt_dsymutil='~$DSYMUTIL $lib || :'
6551
ac_cpp='$CPP $CPPFLAGS'
6552
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6556
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6557
# On Suns, sometimes $CPP names a directory.
6558
if test -n "$CPP" && test -d "$CPP"; then
6561
if test -z "$CPP"; then
6562
if test "${ac_cv_prog_CPP+set}" = set; then
6563
$as_echo_n "(cached) " >&6
6565
# Double quotes because CPP needs to be expanded
6566
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6569
for ac_c_preproc_warn_flag in '' yes
6571
# Use a header file that comes with gcc, so configuring glibc
6572
# with a fresh cross-compiler works.
6573
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574
# <limits.h> exists even on freestanding compilers.
6575
# On the NeXT, cc -E runs the code through the compiler's parser,
6576
# not just through cpp. "Syntax error" is here to catch this case.
6577
cat >conftest.$ac_ext <<_ACEOF
6580
cat confdefs.h >>conftest.$ac_ext
6581
cat >>conftest.$ac_ext <<_ACEOF
6582
/* end confdefs.h. */
6584
# include <limits.h>
6586
# include <assert.h>
6590
if { (ac_try="$ac_cpp conftest.$ac_ext"
6592
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593
*) ac_try_echo=$ac_try;;
6595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596
$as_echo "$ac_try_echo") >&5
6597
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599
grep -v '^ *+' conftest.er1 >conftest.err
6601
cat conftest.err >&5
6602
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603
(exit $ac_status); } >/dev/null && {
6604
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6605
test ! -s conftest.err
6609
$as_echo "$as_me: failed program was:" >&5
6610
sed 's/^/| /' conftest.$ac_ext >&5
6612
# Broken: fails on valid input.
6616
rm -f conftest.err conftest.$ac_ext
6618
# OK, works on sane cases. Now check whether nonexistent headers
6619
# can be detected and how.
6620
cat >conftest.$ac_ext <<_ACEOF
6623
cat confdefs.h >>conftest.$ac_ext
6624
cat >>conftest.$ac_ext <<_ACEOF
6625
/* end confdefs.h. */
6626
#include <ac_nonexistent.h>
6628
if { (ac_try="$ac_cpp conftest.$ac_ext"
6630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631
*) ac_try_echo=$ac_try;;
6633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634
$as_echo "$ac_try_echo") >&5
6635
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6637
grep -v '^ *+' conftest.er1 >conftest.err
6639
cat conftest.err >&5
6640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
(exit $ac_status); } >/dev/null && {
6642
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6643
test ! -s conftest.err
6645
# Broken: success on invalid input.
6648
$as_echo "$as_me: failed program was:" >&5
6649
sed 's/^/| /' conftest.$ac_ext >&5
6651
# Passes both tests.
6656
rm -f conftest.err conftest.$ac_ext
6659
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660
rm -f conftest.err conftest.$ac_ext
6661
if $ac_preproc_ok; then
6673
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6674
$as_echo "$CPP" >&6; }
6676
for ac_c_preproc_warn_flag in '' yes
6678
# Use a header file that comes with gcc, so configuring glibc
6679
# with a fresh cross-compiler works.
6680
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681
# <limits.h> exists even on freestanding compilers.
6682
# On the NeXT, cc -E runs the code through the compiler's parser,
6683
# not just through cpp. "Syntax error" is here to catch this case.
6684
cat >conftest.$ac_ext <<_ACEOF
6687
cat confdefs.h >>conftest.$ac_ext
6688
cat >>conftest.$ac_ext <<_ACEOF
6689
/* end confdefs.h. */
6691
# include <limits.h>
6693
# include <assert.h>
6697
if { (ac_try="$ac_cpp conftest.$ac_ext"
6699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700
*) ac_try_echo=$ac_try;;
6702
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703
$as_echo "$ac_try_echo") >&5
6704
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6706
grep -v '^ *+' conftest.er1 >conftest.err
6708
cat conftest.err >&5
6709
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710
(exit $ac_status); } >/dev/null && {
6711
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6712
test ! -s conftest.err
6716
$as_echo "$as_me: failed program was:" >&5
6717
sed 's/^/| /' conftest.$ac_ext >&5
6719
# Broken: fails on valid input.
6723
rm -f conftest.err conftest.$ac_ext
6725
# OK, works on sane cases. Now check whether nonexistent headers
6726
# can be detected and how.
6727
cat >conftest.$ac_ext <<_ACEOF
6730
cat confdefs.h >>conftest.$ac_ext
6731
cat >>conftest.$ac_ext <<_ACEOF
6732
/* end confdefs.h. */
6733
#include <ac_nonexistent.h>
6735
if { (ac_try="$ac_cpp conftest.$ac_ext"
6737
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738
*) ac_try_echo=$ac_try;;
6740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741
$as_echo "$ac_try_echo") >&5
6742
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6744
grep -v '^ *+' conftest.er1 >conftest.err
6746
cat conftest.err >&5
6747
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748
(exit $ac_status); } >/dev/null && {
6749
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6750
test ! -s conftest.err
6752
# Broken: success on invalid input.
6755
$as_echo "$as_me: failed program was:" >&5
6756
sed 's/^/| /' conftest.$ac_ext >&5
6758
# Passes both tests.
6763
rm -f conftest.err conftest.$ac_ext
6766
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6767
rm -f conftest.err conftest.$ac_ext
6768
if $ac_preproc_ok; then
6771
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6772
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6773
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6774
See \`config.log' for more details." >&5
6775
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6776
See \`config.log' for more details." >&2;}
6777
{ (exit 1); exit 1; }; }; }
6781
ac_cpp='$CPP $CPPFLAGS'
6782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6788
$as_echo_n "checking for ANSI C header files... " >&6; }
6789
if test "${ac_cv_header_stdc+set}" = set; then
6790
$as_echo_n "(cached) " >&6
6792
cat >conftest.$ac_ext <<_ACEOF
6795
cat confdefs.h >>conftest.$ac_ext
6796
cat >>conftest.$ac_ext <<_ACEOF
6797
/* end confdefs.h. */
6811
rm -f conftest.$ac_objext
6812
if { (ac_try="$ac_compile"
6814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815
*) ac_try_echo=$ac_try;;
6817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6818
$as_echo "$ac_try_echo") >&5
6819
(eval "$ac_compile") 2>conftest.er1
6821
grep -v '^ *+' conftest.er1 >conftest.err
6823
cat conftest.err >&5
6824
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825
(exit $ac_status); } && {
6826
test -z "$ac_c_werror_flag" ||
6827
test ! -s conftest.err
6828
} && test -s conftest.$ac_objext; then
6829
ac_cv_header_stdc=yes
6831
$as_echo "$as_me: failed program was:" >&5
6832
sed 's/^/| /' conftest.$ac_ext >&5
6834
ac_cv_header_stdc=no
6837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839
if test $ac_cv_header_stdc = yes; then
6840
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6841
cat >conftest.$ac_ext <<_ACEOF
6844
cat confdefs.h >>conftest.$ac_ext
6845
cat >>conftest.$ac_ext <<_ACEOF
6846
/* end confdefs.h. */
6850
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6851
$EGREP "memchr" >/dev/null 2>&1; then
6854
ac_cv_header_stdc=no
6860
if test $ac_cv_header_stdc = yes; then
6861
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6862
cat >conftest.$ac_ext <<_ACEOF
6865
cat confdefs.h >>conftest.$ac_ext
6866
cat >>conftest.$ac_ext <<_ACEOF
6867
/* end confdefs.h. */
6871
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872
$EGREP "free" >/dev/null 2>&1; then
6875
ac_cv_header_stdc=no
6881
if test $ac_cv_header_stdc = yes; then
6882
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6883
if test "$cross_compiling" = yes; then
6886
cat >conftest.$ac_ext <<_ACEOF
6889
cat confdefs.h >>conftest.$ac_ext
6890
cat >>conftest.$ac_ext <<_ACEOF
6891
/* end confdefs.h. */
6894
#if ((' ' & 0x0FF) == 0x020)
6895
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6896
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6898
# define ISLOWER(c) \
6899
(('a' <= (c) && (c) <= 'i') \
6900
|| ('j' <= (c) && (c) <= 'r') \
6901
|| ('s' <= (c) && (c) <= 'z'))
6902
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910
for (i = 0; i < 256; i++)
6911
if (XOR (islower (i), ISLOWER (i))
6912
|| toupper (i) != TOUPPER (i))
6917
rm -f conftest$ac_exeext
6918
if { (ac_try="$ac_link"
6920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921
*) ac_try_echo=$ac_try;;
6923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924
$as_echo "$ac_try_echo") >&5
6925
(eval "$ac_link") 2>&5
6927
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6929
{ (case "(($ac_try" in
6930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931
*) ac_try_echo=$ac_try;;
6933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934
$as_echo "$ac_try_echo") >&5
6935
(eval "$ac_try") 2>&5
6937
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938
(exit $ac_status); }; }; then
6941
$as_echo "$as_me: program exited with status $ac_status" >&5
6942
$as_echo "$as_me: failed program was:" >&5
6943
sed 's/^/| /' conftest.$ac_ext >&5
6946
ac_cv_header_stdc=no
6948
rm -rf conftest.dSYM
6949
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6955
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6956
$as_echo "$ac_cv_header_stdc" >&6; }
6957
if test $ac_cv_header_stdc = yes; then
6959
cat >>confdefs.h <<\_ACEOF
6960
#define STDC_HEADERS 1
6965
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6975
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6976
inttypes.h stdint.h unistd.h
6978
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6979
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6980
$as_echo_n "checking for $ac_header... " >&6; }
6981
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6982
$as_echo_n "(cached) " >&6
6984
cat >conftest.$ac_ext <<_ACEOF
6987
cat confdefs.h >>conftest.$ac_ext
6988
cat >>conftest.$ac_ext <<_ACEOF
6989
/* end confdefs.h. */
6990
$ac_includes_default
6992
#include <$ac_header>
6994
rm -f conftest.$ac_objext
6995
if { (ac_try="$ac_compile"
6997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998
*) ac_try_echo=$ac_try;;
7000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7001
$as_echo "$ac_try_echo") >&5
7002
(eval "$ac_compile") 2>conftest.er1
7004
grep -v '^ *+' conftest.er1 >conftest.err
7006
cat conftest.err >&5
7007
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008
(exit $ac_status); } && {
7009
test -z "$ac_c_werror_flag" ||
7010
test ! -s conftest.err
7011
} && test -s conftest.$ac_objext; then
7012
eval "$as_ac_Header=yes"
7014
$as_echo "$as_me: failed program was:" >&5
7015
sed 's/^/| /' conftest.$ac_ext >&5
7017
eval "$as_ac_Header=no"
7020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022
ac_res=`eval 'as_val=${'$as_ac_Header'}
7023
$as_echo "$as_val"'`
7024
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7025
$as_echo "$ac_res" >&6; }
7026
as_val=`eval 'as_val=${'$as_ac_Header'}
7027
$as_echo "$as_val"'`
7028
if test "x$as_val" = x""yes; then
7029
cat >>confdefs.h <<_ACEOF
7030
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7039
for ac_header in dlfcn.h
7041
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7042
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7043
$as_echo_n "checking for $ac_header... " >&6; }
7044
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7045
$as_echo_n "(cached) " >&6
7047
cat >conftest.$ac_ext <<_ACEOF
7050
cat confdefs.h >>conftest.$ac_ext
7051
cat >>conftest.$ac_ext <<_ACEOF
7052
/* end confdefs.h. */
7053
$ac_includes_default
7055
#include <$ac_header>
7057
rm -f conftest.$ac_objext
7058
if { (ac_try="$ac_compile"
7060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061
*) ac_try_echo=$ac_try;;
7063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064
$as_echo "$ac_try_echo") >&5
7065
(eval "$ac_compile") 2>conftest.er1
7067
grep -v '^ *+' conftest.er1 >conftest.err
7069
cat conftest.err >&5
7070
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071
(exit $ac_status); } && {
7072
test -z "$ac_c_werror_flag" ||
7073
test ! -s conftest.err
7074
} && test -s conftest.$ac_objext; then
7075
eval "$as_ac_Header=yes"
7077
$as_echo "$as_me: failed program was:" >&5
7078
sed 's/^/| /' conftest.$ac_ext >&5
7080
eval "$as_ac_Header=no"
7083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085
ac_res=`eval 'as_val=${'$as_ac_Header'}
7086
$as_echo "$as_val"'`
7087
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7088
$as_echo "$ac_res" >&6; }
7089
as_val=`eval 'as_val=${'$as_ac_Header'}
7090
$as_echo "$as_val"'`
7091
if test "x$as_val" = x""yes; then
7092
cat >>confdefs.h <<_ACEOF
7093
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112
# Check whether --enable-shared was given.
7113
if test "${enable_shared+set}" = set; then
7114
enableval=$enable_shared; p=${PACKAGE-default}
7116
yes) enable_shared=yes ;;
7117
no) enable_shared=no ;;
7120
# Look at the argument we got. We use all the common list separators.
7121
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7122
for pkg in $enableval; do
7124
if test "X$pkg" = "X$p"; then
7145
# Check whether --with-pic was given.
7146
if test "${with_pic+set}" = set; then
7147
withval=$with_pic; pic_mode="$withval"
7153
test -z "$pic_mode" && pic_mode=default
7161
# Check whether --enable-fast-install was given.
7162
if test "${enable_fast_install+set}" = set; then
7163
enableval=$enable_fast_install; p=${PACKAGE-default}
7165
yes) enable_fast_install=yes ;;
7166
no) enable_fast_install=no ;;
7168
enable_fast_install=no
7169
# Look at the argument we got. We use all the common list separators.
7170
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7171
for pkg in $enableval; do
7173
if test "X$pkg" = "X$p"; then
7174
enable_fast_install=yes
7181
enable_fast_install=yes
7194
# This can be used to rebuild libtool when needed
7195
LIBTOOL_DEPS="$ltmain"
7197
# Always use our own libtool.
7198
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7224
test -z "$LN_S" && LN_S="ln -s"
7239
if test -n "${ZSH_VERSION+set}" ; then
7240
setopt NO_GLOB_SUBST
7243
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7244
$as_echo_n "checking for objdir... " >&6; }
7245
if test "${lt_cv_objdir+set}" = set; then
7246
$as_echo_n "(cached) " >&6
7248
rm -f .libs 2>/dev/null
7249
mkdir .libs 2>/dev/null
7250
if test -d .libs; then
7253
# MS-DOS does not allow filenames that begin with a dot.
7256
rmdir .libs 2>/dev/null
7258
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7259
$as_echo "$lt_cv_objdir" >&6; }
7260
objdir=$lt_cv_objdir
7266
cat >>confdefs.h <<_ACEOF
7267
#define LT_OBJDIR "$lt_cv_objdir/"
7288
# AIX sometimes has problems with the GCC collect2 program. For some
7289
# reason, if we set the COLLECT_NAMES environment variable, the problems
7290
# vanish in a puff of smoke.
7291
if test "X${COLLECT_NAMES+set}" != Xset; then
7293
export COLLECT_NAMES
7298
# Sed substitution that helps us do robust quoting. It backslashifies
7299
# metacharacters that are still active within double-quoted strings.
7300
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7302
# Same as above, but do not quote variable references.
7303
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7305
# Sed substitution to delay expansion of an escaped shell variable in a
7306
# double_quote_subst'ed string.
7307
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7309
# Sed substitution to delay expansion of an escaped single quote.
7310
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7312
# Sed substitution to avoid accidental globbing in evaled expressions
7313
no_glob_subst='s/\*/\\\*/g'
7317
can_build_shared=yes
7319
# All known linkers require a `.a' archive for static linking (except MSVC,
7320
# which needs '.lib').
7323
with_gnu_ld="$lt_cv_prog_gnu_ld"
7326
old_CFLAGS="$CFLAGS"
7328
# Set sane defaults for various variables
7329
test -z "$CC" && CC=cc
7330
test -z "$LTCC" && LTCC=$CC
7331
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7332
test -z "$LD" && LD=ld
7333
test -z "$ac_objext" && ac_objext=o
7335
for cc_temp in $compiler""; do
7337
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7338
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7343
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7346
# Only perform the check for file, if the check method requires it
7347
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7348
case $deplibs_check_method in
7350
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7351
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7352
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7353
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7354
$as_echo_n "(cached) " >&6
7358
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7361
lt_save_MAGIC_CMD="$MAGIC_CMD"
7362
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7363
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7364
for ac_dir in $ac_dummy; do
7366
test -z "$ac_dir" && ac_dir=.
7367
if test -f $ac_dir/${ac_tool_prefix}file; then
7368
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7369
if test -n "$file_magic_test_file"; then
7370
case $deplibs_check_method in
7372
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7373
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7374
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7375
$EGREP "$file_magic_regex" > /dev/null; then
7380
*** Warning: the command libtool uses to detect shared libraries,
7381
*** $file_magic_cmd, produces output that libtool cannot recognize.
7382
*** The result is that libtool may fail to recognize shared libraries
7383
*** as such. This will affect the creation of libtool libraries that
7384
*** depend on shared libraries, but programs linked with such libtool
7385
*** libraries will work regardless of this problem. Nevertheless, you
7386
*** may want to report the problem to your system manager and/or to
7387
*** bug-libtool@gnu.org
7397
MAGIC_CMD="$lt_save_MAGIC_CMD"
7402
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7403
if test -n "$MAGIC_CMD"; then
7404
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7405
$as_echo "$MAGIC_CMD" >&6; }
7407
{ $as_echo "$as_me:$LINENO: result: no" >&5
7408
$as_echo "no" >&6; }
7415
if test -z "$lt_cv_path_MAGIC_CMD"; then
7416
if test -n "$ac_tool_prefix"; then
7417
{ $as_echo "$as_me:$LINENO: checking for file" >&5
7418
$as_echo_n "checking for file... " >&6; }
7419
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7420
$as_echo_n "(cached) " >&6
7424
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7427
lt_save_MAGIC_CMD="$MAGIC_CMD"
7428
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7429
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7430
for ac_dir in $ac_dummy; do
7432
test -z "$ac_dir" && ac_dir=.
7433
if test -f $ac_dir/file; then
7434
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7435
if test -n "$file_magic_test_file"; then
7436
case $deplibs_check_method in
7438
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7439
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7440
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7441
$EGREP "$file_magic_regex" > /dev/null; then
7446
*** Warning: the command libtool uses to detect shared libraries,
7447
*** $file_magic_cmd, produces output that libtool cannot recognize.
7448
*** The result is that libtool may fail to recognize shared libraries
7449
*** as such. This will affect the creation of libtool libraries that
7450
*** depend on shared libraries, but programs linked with such libtool
7451
*** libraries will work regardless of this problem. Nevertheless, you
7452
*** may want to report the problem to your system manager and/or to
7453
*** bug-libtool@gnu.org
7463
MAGIC_CMD="$lt_save_MAGIC_CMD"
7468
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469
if test -n "$MAGIC_CMD"; then
7470
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7471
$as_echo "$MAGIC_CMD" >&6; }
7473
{ $as_echo "$as_me:$LINENO: result: no" >&5
7474
$as_echo "no" >&6; }
7487
# Use C for the default configuration in the libtool script
7491
ac_cpp='$CPP $CPPFLAGS'
7492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
# Source file extension for C test sources.
7500
# Object file extension for compiled C test sources.
7504
# Code to be used in simple compile tests
7505
lt_simple_compile_test_code="int some_variable = 0;"
7507
# Code to be used in simple link tests
7508
lt_simple_link_test_code='int main(){return(0);}'
7516
# If no C compiler was specified, use CC.
7519
# If no C compiler flags were specified, use CFLAGS.
7520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7522
# Allow CC to be a program name with arguments.
7525
# Save the default compiler, since it gets overwritten when the other
7526
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7527
compiler_DEFAULT=$CC
7529
# save warnings/boilerplate of simple test code
7530
ac_outfile=conftest.$ac_objext
7531
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7532
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533
_lt_compiler_boilerplate=`cat conftest.err`
7536
ac_outfile=conftest.$ac_objext
7537
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7538
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7539
_lt_linker_boilerplate=`cat conftest.err`
7543
if test -n "$compiler"; then
7545
lt_prog_compiler_no_builtin_flag=
7547
if test "$GCC" = yes; then
7548
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7550
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7551
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7552
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7553
$as_echo_n "(cached) " >&6
7555
lt_cv_prog_compiler_rtti_exceptions=no
7556
ac_outfile=conftest.$ac_objext
7557
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7558
lt_compiler_flag="-fno-rtti -fno-exceptions"
7559
# Insert the option either (1) after the last *FLAGS variable, or
7560
# (2) before a word containing "conftest.", or (3) at the end.
7561
# Note that $ac_compile itself does not contain backslashes and begins
7562
# with a dollar sign (not a hyphen), so the echo should work correctly.
7563
# The option is referenced via a variable to avoid confusing sed.
7564
lt_compile=`echo "$ac_compile" | $SED \
7565
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567
-e 's:$: $lt_compiler_flag:'`
7568
(eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
7569
(eval "$lt_compile" 2>conftest.err)
7571
cat conftest.err >&5
7572
echo "$as_me:7572: \$? = $ac_status" >&5
7573
if (exit $ac_status) && test -s "$ac_outfile"; then
7574
# The compiler can only warn and ignore the option if not recognized
7575
# So say no if there are warnings other than the usual output.
7576
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7577
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7578
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7579
lt_cv_prog_compiler_rtti_exceptions=yes
7585
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7586
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7588
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7589
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7601
lt_prog_compiler_wl=
7602
lt_prog_compiler_pic=
7603
lt_prog_compiler_static=
7605
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7606
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7608
if test "$GCC" = yes; then
7609
lt_prog_compiler_wl='-Wl,'
7610
lt_prog_compiler_static='-static'
7614
# All AIX code is PIC.
7615
if test "$host_cpu" = ia64; then
7616
# AIX 5 now supports IA64 processor
7617
lt_prog_compiler_static='-Bstatic'
7624
# see comment about AmigaOS4 .so support
7625
lt_prog_compiler_pic='-fPIC'
7628
# FIXME: we need at least 68020 code to build shared libraries, but
7629
# adding the `-m68020' flag to GCC prevents building anything better,
7631
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7636
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7637
# PIC is the default for these OSes.
7640
mingw* | cygwin* | pw32* | os2* | cegcc*)
7641
# This hack is so that the source file can tell whether it is being
7642
# built for inclusion in a dll (and should export symbols for example).
7643
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7644
# (--disable-auto-import) libraries
7645
lt_prog_compiler_pic='-DDLL_EXPORT'
7648
darwin* | rhapsody*)
7649
# PIC is the default on this platform
7650
# Common symbols not allowed in MH_DYLIB files
7651
lt_prog_compiler_pic='-fno-common'
7655
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7656
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7657
# sets the default TLS model and affects inlining.
7663
lt_prog_compiler_pic='-fPIC'
7669
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7670
# Instead, we relocate shared libraries at runtime.
7674
# Just because we use GCC doesn't mean we suddenly get shared libraries
7675
# on systems that don't support them.
7676
lt_prog_compiler_can_build_shared=no
7681
# QNX uses GNU C++, but need to define -shared option too, otherwise
7683
lt_prog_compiler_pic='-fPIC -shared'
7687
if test -d /usr/nec; then
7688
lt_prog_compiler_pic=-Kconform_pic
7693
lt_prog_compiler_pic='-fPIC'
7697
# PORTME Check for flag to pass linker flags through the system compiler.
7700
lt_prog_compiler_wl='-Wl,'
7701
if test "$host_cpu" = ia64; then
7702
# AIX 5 now supports IA64 processor
7703
lt_prog_compiler_static='-Bstatic'
7705
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7709
mingw* | cygwin* | pw32* | os2* | cegcc*)
7710
# This hack is so that the source file can tell whether it is being
7711
# built for inclusion in a dll (and should export symbols for example).
7712
lt_prog_compiler_pic='-DDLL_EXPORT'
7715
hpux9* | hpux10* | hpux11*)
7716
lt_prog_compiler_wl='-Wl,'
7717
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7724
lt_prog_compiler_pic='+Z'
7727
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7728
lt_prog_compiler_static='${wl}-a ${wl}archive'
7731
irix5* | irix6* | nonstopux*)
7732
lt_prog_compiler_wl='-Wl,'
7733
# PIC (with -KPIC) is the default.
7734
lt_prog_compiler_static='-non_shared'
7737
linux* | k*bsd*-gnu)
7738
case $cc_basename in
7739
# old Intel for x86_64 which still supported -KPIC.
7741
lt_prog_compiler_wl='-Wl,'
7742
lt_prog_compiler_pic='-KPIC'
7743
lt_prog_compiler_static='-static'
7745
# icc used to be incompatible with GCC.
7746
# ICC 10 doesn't accept -KPIC any more.
7748
lt_prog_compiler_wl='-Wl,'
7749
lt_prog_compiler_pic='-fPIC'
7750
lt_prog_compiler_static='-static'
7752
# Lahey Fortran 8.1.
7754
lt_prog_compiler_wl='-Wl,'
7755
lt_prog_compiler_pic='--shared'
7756
lt_prog_compiler_static='--static'
7758
pgcc* | pgf77* | pgf90* | pgf95*)
7759
# Portland Group compilers (*not* the Pentium gcc compiler,
7760
# which looks to be a dead project)
7761
lt_prog_compiler_wl='-Wl,'
7762
lt_prog_compiler_pic='-fpic'
7763
lt_prog_compiler_static='-Bstatic'
7766
lt_prog_compiler_wl='-Wl,'
7767
# All Alpha code is PIC.
7768
lt_prog_compiler_static='-non_shared'
7771
# IBM XL C 8.0/Fortran 10.1 on PPC
7772
lt_prog_compiler_wl='-Wl,'
7773
lt_prog_compiler_pic='-qpic'
7774
lt_prog_compiler_static='-qstaticlink'
7777
case `$CC -V 2>&1 | sed 5q` in
7780
lt_prog_compiler_pic='-KPIC'
7781
lt_prog_compiler_static='-Bstatic'
7782
lt_prog_compiler_wl='-Wl,'
7785
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7786
lt_prog_compiler_pic='-KPIC'
7787
lt_prog_compiler_static='-Bstatic'
7788
lt_prog_compiler_wl=''
7796
lt_prog_compiler_pic='-KPIC'
7797
lt_prog_compiler_static='-Bstatic'
7801
# QNX uses GNU C++, but need to define -shared option too, otherwise
7803
lt_prog_compiler_pic='-fPIC -shared'
7806
osf3* | osf4* | osf5*)
7807
lt_prog_compiler_wl='-Wl,'
7808
# All OSF/1 code is PIC.
7809
lt_prog_compiler_static='-non_shared'
7813
lt_prog_compiler_static='-non_shared'
7817
lt_prog_compiler_pic='-KPIC'
7818
lt_prog_compiler_static='-Bstatic'
7819
case $cc_basename in
7821
lt_prog_compiler_wl='-Qoption ld ';;
7823
lt_prog_compiler_wl='-Wl,';;
7828
lt_prog_compiler_wl='-Qoption ld '
7829
lt_prog_compiler_pic='-PIC'
7830
lt_prog_compiler_static='-Bstatic'
7833
sysv4 | sysv4.2uw2* | sysv4.3*)
7834
lt_prog_compiler_wl='-Wl,'
7835
lt_prog_compiler_pic='-KPIC'
7836
lt_prog_compiler_static='-Bstatic'
7840
if test -d /usr/nec ;then
7841
lt_prog_compiler_pic='-Kconform_pic'
7842
lt_prog_compiler_static='-Bstatic'
7846
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7847
lt_prog_compiler_wl='-Wl,'
7848
lt_prog_compiler_pic='-KPIC'
7849
lt_prog_compiler_static='-Bstatic'
7853
lt_prog_compiler_wl='-Wl,'
7854
lt_prog_compiler_can_build_shared=no
7858
lt_prog_compiler_pic='-pic'
7859
lt_prog_compiler_static='-Bstatic'
7863
lt_prog_compiler_can_build_shared=no
7869
# For platforms which do not support PIC, -DPIC is meaningless:
7871
lt_prog_compiler_pic=
7874
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7877
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7878
$as_echo "$lt_prog_compiler_pic" >&6; }
7886
# Check to make sure the PIC flag actually works.
7888
if test -n "$lt_prog_compiler_pic"; then
7889
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7891
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7892
$as_echo_n "(cached) " >&6
7894
lt_cv_prog_compiler_pic_works=no
7895
ac_outfile=conftest.$ac_objext
7896
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898
# Insert the option either (1) after the last *FLAGS variable, or
7899
# (2) before a word containing "conftest.", or (3) at the end.
7900
# Note that $ac_compile itself does not contain backslashes and begins
7901
# with a dollar sign (not a hyphen), so the echo should work correctly.
7902
# The option is referenced via a variable to avoid confusing sed.
7903
lt_compile=`echo "$ac_compile" | $SED \
7904
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906
-e 's:$: $lt_compiler_flag:'`
7907
(eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908
(eval "$lt_compile" 2>conftest.err)
7910
cat conftest.err >&5
7911
echo "$as_me:7911: \$? = $ac_status" >&5
7912
if (exit $ac_status) && test -s "$ac_outfile"; then
7913
# The compiler can only warn and ignore the option if not recognized
7914
# So say no if there are warnings other than the usual output.
7915
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7916
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918
lt_cv_prog_compiler_pic_works=yes
7924
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7925
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7927
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7928
case $lt_prog_compiler_pic in
7930
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7933
lt_prog_compiler_pic=
7934
lt_prog_compiler_can_build_shared=no
7945
# Check to make sure the static flag actually works.
7947
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7948
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7949
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7950
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7951
$as_echo_n "(cached) " >&6
7953
lt_cv_prog_compiler_static_works=no
7954
save_LDFLAGS="$LDFLAGS"
7955
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7956
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7957
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7958
# The linker can only warn and ignore the option if not recognized
7959
# So say no if there are warnings
7960
if test -s conftest.err; then
7961
# Append any errors to the config.log.
7962
cat conftest.err 1>&5
7963
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7964
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7965
if diff conftest.exp conftest.er2 >/dev/null; then
7966
lt_cv_prog_compiler_static_works=yes
7969
lt_cv_prog_compiler_static_works=yes
7973
LDFLAGS="$save_LDFLAGS"
7976
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7977
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7979
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7982
lt_prog_compiler_static=
7991
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7992
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7993
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7994
$as_echo_n "(cached) " >&6
7996
lt_cv_prog_compiler_c_o=no
7997
$RM -r conftest 2>/dev/null
8001
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8003
lt_compiler_flag="-o out/conftest2.$ac_objext"
8004
# Insert the option either (1) after the last *FLAGS variable, or
8005
# (2) before a word containing "conftest.", or (3) at the end.
8006
# Note that $ac_compile itself does not contain backslashes and begins
8007
# with a dollar sign (not a hyphen), so the echo should work correctly.
8008
lt_compile=`echo "$ac_compile" | $SED \
8009
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8010
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8011
-e 's:$: $lt_compiler_flag:'`
8012
(eval echo "\"\$as_me:8012: $lt_compile\"" >&5)
8013
(eval "$lt_compile" 2>out/conftest.err)
8015
cat out/conftest.err >&5
8016
echo "$as_me:8016: \$? = $ac_status" >&5
8017
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8019
# The compiler can only warn and ignore the option if not recognized
8020
# So say no if there are warnings
8021
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8022
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8023
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8024
lt_cv_prog_compiler_c_o=yes
8029
# SGI C++ compiler will create directory out/ii_files/ for
8030
# template instantiation
8031
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8032
$RM out/* && rmdir out
8038
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8039
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8047
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8048
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8049
$as_echo_n "(cached) " >&6
8051
lt_cv_prog_compiler_c_o=no
8052
$RM -r conftest 2>/dev/null
8056
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8058
lt_compiler_flag="-o out/conftest2.$ac_objext"
8059
# Insert the option either (1) after the last *FLAGS variable, or
8060
# (2) before a word containing "conftest.", or (3) at the end.
8061
# Note that $ac_compile itself does not contain backslashes and begins
8062
# with a dollar sign (not a hyphen), so the echo should work correctly.
8063
lt_compile=`echo "$ac_compile" | $SED \
8064
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066
-e 's:$: $lt_compiler_flag:'`
8067
(eval echo "\"\$as_me:8067: $lt_compile\"" >&5)
8068
(eval "$lt_compile" 2>out/conftest.err)
8070
cat out/conftest.err >&5
8071
echo "$as_me:8071: \$? = $ac_status" >&5
8072
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8074
# The compiler can only warn and ignore the option if not recognized
8075
# So say no if there are warnings
8076
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8077
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8078
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8079
lt_cv_prog_compiler_c_o=yes
8084
# SGI C++ compiler will create directory out/ii_files/ for
8085
# template instantiation
8086
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8087
$RM out/* && rmdir out
8093
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8094
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8099
hard_links="nottested"
8100
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8101
# do not overwrite the value of need_locks provided by the user
8102
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8103
$as_echo_n "checking if we can lock with hard links... " >&6; }
8106
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8108
ln conftest.a conftest.b 2>&5 || hard_links=no
8109
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8110
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8111
$as_echo "$hard_links" >&6; }
8112
if test "$hard_links" = no; then
8113
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8114
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8126
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8127
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8130
allow_undefined_flag=
8131
always_export_symbols=no
8133
archive_expsym_cmds=
8134
compiler_needs_object=no
8135
enable_shared_with_static_runtimes=no
8136
export_dynamic_flag_spec=
8137
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8138
hardcode_automatic=no
8140
hardcode_direct_absolute=no
8141
hardcode_libdir_flag_spec=
8142
hardcode_libdir_flag_spec_ld=
8143
hardcode_libdir_separator=
8145
hardcode_shlibpath_var=unsupported
8147
link_all_deplibs=unknown
8150
old_archive_from_new_cmds=
8151
old_archive_from_expsyms_cmds=
8152
thread_safe_flag_spec=
8153
whole_archive_flag_spec=
8154
# include_expsyms should be a list of space-separated symbols to be *always*
8155
# included in the symbol list
8157
# exclude_expsyms can be an extended regexp of symbols to exclude
8158
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8159
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8160
# as well as any symbol that contains `d'.
8161
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8162
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8163
# platforms (ab)use it in PIC code, but their linkers get confused if
8164
# the symbol is explicitly referenced. Since portable code cannot
8165
# rely on this symbol name, it's probably fine to never include it in
8166
# preloaded symbol tables.
8167
# Exclude shared library initialization/finalization symbols.
8168
extract_expsyms_cmds=
8171
cygwin* | mingw* | pw32* | cegcc*)
8172
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8173
# When not using gcc, we currently assume that we are using
8174
# Microsoft Visual C++.
8175
if test "$GCC" != yes; then
8180
# we just hope/assume this is gcc and not c89 (= MSVC++)
8189
if test "$with_gnu_ld" = yes; then
8190
# If archive_cmds runs LD, not CC, wlarc should be empty
8193
# Set some defaults for GNU ld with shared library support. These
8194
# are reset later if shared libraries are not supported. Putting them
8195
# here allows them to be overridden if necessary.
8196
runpath_var=LD_RUN_PATH
8197
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8198
export_dynamic_flag_spec='${wl}--export-dynamic'
8199
# ancient GNU ld didn't support --whole-archive et. al.
8200
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8201
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8203
whole_archive_flag_spec=
8205
supports_anon_versioning=no
8206
case `$LD -v 2>&1` in
8207
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8208
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8209
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8210
*\ 2.11.*) ;; # other 2.11 versions
8211
*) supports_anon_versioning=yes ;;
8214
# See if GNU ld supports shared libraries.
8217
# On AIX/PPC, the GNU linker is very broken
8218
if test "$host_cpu" != ia64; then
8222
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8223
*** to be unable to reliably create shared libraries on AIX.
8224
*** Therefore, libtool is disabling shared libraries support. If you
8225
*** really care for shared libraries, you may want to modify your PATH
8226
*** so that a non-GNU linker is found, and then restart.
8235
# see comment about AmigaOS4 .so support
8236
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237
archive_expsym_cmds=''
8240
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)'
8241
hardcode_libdir_flag_spec='-L$libdir'
8242
hardcode_minus_L=yes
8248
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8249
allow_undefined_flag=unsupported
8250
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8251
# support --undefined. This deserves some investigation. FIXME
8252
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258
cygwin* | mingw* | pw32* | cegcc*)
8259
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8260
# as there is no search path for DLLs.
8261
hardcode_libdir_flag_spec='-L$libdir'
8262
allow_undefined_flag=unsupported
8263
always_export_symbols=no
8264
enable_shared_with_static_runtimes=yes
8265
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8267
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8268
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8269
# If the export-symbols file already is a .def file (1st line
8270
# is EXPORTS), use it as is; otherwise, prepend...
8271
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8272
cp $export_symbols $output_objdir/$soname.def;
8274
echo EXPORTS > $output_objdir/$soname.def;
8275
cat $export_symbols >> $output_objdir/$soname.def;
8277
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285
hardcode_shlibpath_var=no
8286
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287
export_dynamic_flag_spec='${wl}-E'
8288
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8289
# Instead, shared libraries are loaded at an image base (0x10000000 by
8290
# default) and relocated if they conflict, which is a slow very memory
8291
# consuming and fragmenting process. To avoid this, we pick a random,
8292
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8293
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8294
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8295
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'
8298
gnu* | linux* | tpf* | k*bsd*-gnu)
8300
if test "$host_os" = linux-dietlibc; then
8301
case $cc_basename in
8302
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8305
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8306
&& test "$tmp_diet" = no
8309
tmp_sharedflag='-shared'
8310
case $cc_basename,$host_cpu in
8311
pgcc*) # Portland Group C compiler
8312
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'
8313
tmp_addflag=' $pic_flag'
8315
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8316
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'
8317
tmp_addflag=' $pic_flag -Mnomain' ;;
8318
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8319
tmp_addflag=' -i_dynamic' ;;
8320
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8321
tmp_addflag=' -i_dynamic -nofor_main' ;;
8322
ifc* | ifort*) # Intel Fortran compiler
8323
tmp_addflag=' -nofor_main' ;;
8324
lf95*) # Lahey Fortran 8.1
8325
whole_archive_flag_spec=
8326
tmp_sharedflag='--shared' ;;
8327
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8328
tmp_sharedflag='-qmkshrobj'
8331
case `$CC -V 2>&1 | sed 5q` in
8332
*Sun\ C*) # Sun C 5.9
8333
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'
8334
compiler_needs_object=yes
8335
tmp_sharedflag='-G' ;;
8336
*Sun\ F*) # Sun Fortran 8.3
8337
tmp_sharedflag='-G' ;;
8339
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341
if test "x$supports_anon_versioning" = xyes; then
8342
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8343
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8344
echo "local: *; };" >> $output_objdir/$libname.ver~
8345
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8348
case $cc_basename in
8350
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8351
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8352
hardcode_libdir_flag_spec=
8353
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8354
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8355
if test "x$supports_anon_versioning" = xyes; then
8356
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8357
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8358
echo "local: *; };" >> $output_objdir/$libname.ver~
8359
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8369
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8370
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8373
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8379
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8383
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8384
*** create shared libraries on Solaris systems. Therefore, libtool
8385
*** is disabling shared libraries support. We urge you to upgrade GNU
8386
*** binutils to release 2.9.1 or newer. Another option is to modify
8387
*** your PATH or compiler configuration so that the native linker is
8388
*** used, and then restart.
8391
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8392
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8399
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8400
case `$LD -v 2>&1` in
8401
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8405
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8406
*** reliably create shared libraries on SCO systems. Therefore, libtool
8407
*** is disabling shared libraries support. We urge you to upgrade GNU
8408
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8409
*** your PATH or compiler configuration so that the native linker is
8410
*** used, and then restart.
8415
# For security reasons, it is highly recommended that you always
8416
# use absolute paths for naming shared libraries, and exclude the
8417
# DT_RUNPATH tag from executables and libraries. But doing so
8418
# requires that you compile everything twice, which is a pain.
8419
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8420
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8431
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8434
hardcode_shlibpath_var=no
8438
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8439
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8447
if test "$ld_shlibs" = no; then
8449
hardcode_libdir_flag_spec=
8450
export_dynamic_flag_spec=
8451
whole_archive_flag_spec=
8454
# PORTME fill in a description of your system's linker (not GNU ld)
8457
allow_undefined_flag=unsupported
8458
always_export_symbols=yes
8459
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'
8460
# Note: this linker hardcodes the directories in LIBPATH if there
8461
# are no directories specified by -L.
8462
hardcode_minus_L=yes
8463
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8464
# Neither direct hardcoding nor static linking is supported with a
8466
hardcode_direct=unsupported
8471
if test "$host_cpu" = ia64; then
8472
# On IA64, the linker does run time linking by default, so we don't
8473
# have to do anything special.
8474
aix_use_runtimelinking=no
8475
exp_sym_flag='-Bexport'
8478
# If we're using GNU nm, then we don't want the "-C" option.
8479
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8480
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8481
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'
8483
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'
8485
aix_use_runtimelinking=no
8487
# Test if we are trying to use run time linking or normal
8488
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8489
# need to do runtime linking.
8490
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8491
for ld_flag in $LDFLAGS; do
8492
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8493
aix_use_runtimelinking=yes
8500
exp_sym_flag='-bexport'
8501
no_entry_flag='-bnoentry'
8504
# When large executables or shared objects are built, AIX ld can
8505
# have problems creating the table of contents. If linking a library
8506
# or program results in "error TOC overflow" add -mminimal-toc to
8507
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8508
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8512
hardcode_direct_absolute=yes
8513
hardcode_libdir_separator=':'
8514
link_all_deplibs=yes
8515
file_list_spec='${wl}-f,'
8517
if test "$GCC" = yes; then
8518
case $host_os in aix4.[012]|aix4.[012].*)
8519
# We only want to do this on AIX 4.2 and lower, the check
8520
# below for broken collect2 doesn't work under 4.3+
8521
collect2name=`${CC} -print-prog-name=collect2`
8522
if test -f "$collect2name" &&
8523
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8525
# We have reworked collect2
8528
# We have old collect2
8529
hardcode_direct=unsupported
8530
# It fails to find uninstalled libraries when the uninstalled
8531
# path is not listed in the libpath. Setting hardcode_minus_L
8532
# to unsupported forces relinking
8533
hardcode_minus_L=yes
8534
hardcode_libdir_flag_spec='-L$libdir'
8535
hardcode_libdir_separator=
8539
shared_flag='-shared'
8540
if test "$aix_use_runtimelinking" = yes; then
8541
shared_flag="$shared_flag "'${wl}-G'
8545
if test "$host_cpu" = ia64; then
8546
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8547
# chokes on -Wl,-G. The following line is correct:
8550
if test "$aix_use_runtimelinking" = yes; then
8551
shared_flag='${wl}-G'
8553
shared_flag='${wl}-bM:SRE'
8558
export_dynamic_flag_spec='${wl}-bexpall'
8559
# It seems that -bexpall does not export symbols beginning with
8560
# underscore (_), so it is better to generate a list of symbols to export.
8561
always_export_symbols=yes
8562
if test "$aix_use_runtimelinking" = yes; then
8563
# Warning - without using the other runtime loading flags (-brtl),
8564
# -berok will link without error, but may produce a broken library.
8565
allow_undefined_flag='-berok'
8566
# Determine the default libpath from the value encoded in an
8568
cat >conftest.$ac_ext <<_ACEOF
8571
cat confdefs.h >>conftest.$ac_ext
8572
cat >>conftest.$ac_ext <<_ACEOF
8573
/* end confdefs.h. */
8583
rm -f conftest.$ac_objext conftest$ac_exeext
8584
if { (ac_try="$ac_link"
8586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587
*) ac_try_echo=$ac_try;;
8589
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590
$as_echo "$ac_try_echo") >&5
8591
(eval "$ac_link") 2>conftest.er1
8593
grep -v '^ *+' conftest.er1 >conftest.err
8595
cat conftest.err >&5
8596
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597
(exit $ac_status); } && {
8598
test -z "$ac_c_werror_flag" ||
8599
test ! -s conftest.err
8600
} && test -s conftest$ac_exeext && {
8601
test "$cross_compiling" = yes ||
8602
$as_test_x conftest$ac_exeext
8605
lt_aix_libpath_sed='
8606
/Import File Strings/,/^$/ {
8612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613
# Check for a 64-bit object if we didn't find anything.
8614
if test -z "$aix_libpath"; then
8615
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618
$as_echo "$as_me: failed program was:" >&5
8619
sed 's/^/| /' conftest.$ac_ext >&5
8624
rm -rf conftest.dSYM
8625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8626
conftest$ac_exeext conftest.$ac_ext
8627
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8629
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8630
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"
8632
if test "$host_cpu" = ia64; then
8633
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8634
allow_undefined_flag="-z nodefs"
8635
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"
8637
# Determine the default libpath from the value encoded in an
8639
cat >conftest.$ac_ext <<_ACEOF
8642
cat confdefs.h >>conftest.$ac_ext
8643
cat >>conftest.$ac_ext <<_ACEOF
8644
/* end confdefs.h. */
8654
rm -f conftest.$ac_objext conftest$ac_exeext
8655
if { (ac_try="$ac_link"
8657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658
*) ac_try_echo=$ac_try;;
8660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661
$as_echo "$ac_try_echo") >&5
8662
(eval "$ac_link") 2>conftest.er1
8664
grep -v '^ *+' conftest.er1 >conftest.err
8666
cat conftest.err >&5
8667
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668
(exit $ac_status); } && {
8669
test -z "$ac_c_werror_flag" ||
8670
test ! -s conftest.err
8671
} && test -s conftest$ac_exeext && {
8672
test "$cross_compiling" = yes ||
8673
$as_test_x conftest$ac_exeext
8676
lt_aix_libpath_sed='
8677
/Import File Strings/,/^$/ {
8683
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684
# Check for a 64-bit object if we didn't find anything.
8685
if test -z "$aix_libpath"; then
8686
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8689
$as_echo "$as_me: failed program was:" >&5
8690
sed 's/^/| /' conftest.$ac_ext >&5
8695
rm -rf conftest.dSYM
8696
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697
conftest$ac_exeext conftest.$ac_ext
8698
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8700
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8701
# Warning - without using the other run time loading flags,
8702
# -berok will link without error, but may produce a broken library.
8703
no_undefined_flag=' ${wl}-bernotok'
8704
allow_undefined_flag=' ${wl}-berok'
8705
# Exported symbols can be pulled into shared objects from archives
8706
whole_archive_flag_spec='$convenience'
8707
archive_cmds_need_lc=yes
8708
# This is similar to how AIX traditionally builds its shared libraries.
8709
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'
8717
# see comment about AmigaOS4 .so support
8718
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719
archive_expsym_cmds=''
8722
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)'
8723
hardcode_libdir_flag_spec='-L$libdir'
8724
hardcode_minus_L=yes
8730
export_dynamic_flag_spec=-rdynamic
8733
cygwin* | mingw* | pw32* | cegcc*)
8734
# When not using gcc, we currently assume that we are using
8735
# Microsoft Visual C++.
8736
# hardcode_libdir_flag_spec is actually meaningless, as there is
8737
# no search path for DLLs.
8738
hardcode_libdir_flag_spec=' '
8739
allow_undefined_flag=unsupported
8740
# Tell ltmain to make .lib files, not .a files.
8742
# Tell ltmain to make .dll files, not .so files.
8744
# FIXME: Setting linknames here is a bad hack.
8745
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8746
# The linker will automatically build a .lib file if we build a DLL.
8747
old_archive_from_new_cmds='true'
8748
# FIXME: Should let the user specify the lib program.
8749
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8750
fix_srcfile_path='`cygpath -w "$srcfile"`'
8751
enable_shared_with_static_runtimes=yes
8754
darwin* | rhapsody*)
8757
archive_cmds_need_lc=no
8759
hardcode_automatic=yes
8760
hardcode_shlibpath_var=unsupported
8761
whole_archive_flag_spec=''
8762
link_all_deplibs=yes
8763
allow_undefined_flag="$_lt_dar_allow_undefined"
8764
case $cc_basename in
8765
ifort*) _lt_dar_can_shared=yes ;;
8766
*) _lt_dar_can_shared=$GCC ;;
8768
if test "$_lt_dar_can_shared" = "yes"; then
8769
output_verbose_link_cmd=echo
8770
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8771
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8772
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}"
8773
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}"
8782
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783
hardcode_libdir_flag_spec='-L$libdir'
8784
hardcode_shlibpath_var=no
8791
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8792
# support. Future versions do this automatically, but an explicit c++rt0.o
8793
# does not break anything, and helps significantly (at the cost of a little
8796
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8797
hardcode_libdir_flag_spec='-R$libdir'
8799
hardcode_shlibpath_var=no
8802
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8804
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8806
hardcode_minus_L=yes
8807
hardcode_shlibpath_var=no
8810
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8811
freebsd* | dragonfly*)
8812
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8813
hardcode_libdir_flag_spec='-R$libdir'
8815
hardcode_shlibpath_var=no
8819
if test "$GCC" = yes; then
8820
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'
8822
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'
8824
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8825
hardcode_libdir_separator=:
8828
# hardcode_minus_L: Not really in the search PATH,
8829
# but as the default location of the library.
8830
hardcode_minus_L=yes
8831
export_dynamic_flag_spec='${wl}-E'
8835
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8836
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8838
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8840
if test "$with_gnu_ld" = no; then
8841
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8842
hardcode_libdir_flag_spec_ld='+b $libdir'
8843
hardcode_libdir_separator=:
8845
hardcode_direct_absolute=yes
8846
export_dynamic_flag_spec='${wl}-E'
8847
# hardcode_minus_L: Not really in the search PATH,
8848
# but as the default location of the library.
8849
hardcode_minus_L=yes
8854
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8857
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8863
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8869
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8875
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8879
if test "$with_gnu_ld" = no; then
8880
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8881
hardcode_libdir_separator=:
8886
hardcode_shlibpath_var=no
8890
hardcode_direct_absolute=yes
8891
export_dynamic_flag_spec='${wl}-E'
8893
# hardcode_minus_L: Not really in the search PATH,
8894
# but as the default location of the library.
8895
hardcode_minus_L=yes
8901
irix5* | irix6* | nonstopux*)
8902
if test "$GCC" = yes; then
8903
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'
8904
# Try to use the -exported_symbol ld option, if it does not
8905
# work, assume that -exports_file does not work either and
8906
# implicitly export all symbols.
8907
save_LDFLAGS="$LDFLAGS"
8908
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8909
cat >conftest.$ac_ext <<_ACEOF
8912
rm -f conftest.$ac_objext conftest$ac_exeext
8913
if { (ac_try="$ac_link"
8915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916
*) ac_try_echo=$ac_try;;
8918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919
$as_echo "$ac_try_echo") >&5
8920
(eval "$ac_link") 2>conftest.er1
8922
grep -v '^ *+' conftest.er1 >conftest.err
8924
cat conftest.err >&5
8925
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926
(exit $ac_status); } && {
8927
test -z "$ac_c_werror_flag" ||
8928
test ! -s conftest.err
8929
} && test -s conftest$ac_exeext && {
8930
test "$cross_compiling" = yes ||
8931
$as_test_x conftest$ac_exeext
8933
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'
8936
$as_echo "$as_me: failed program was:" >&5
8937
sed 's/^/| /' conftest.$ac_ext >&5
8942
rm -rf conftest.dSYM
8943
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8944
conftest$ac_exeext conftest.$ac_ext
8945
LDFLAGS="$save_LDFLAGS"
8947
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'
8948
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'
8950
archive_cmds_need_lc='no'
8951
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952
hardcode_libdir_separator=:
8954
link_all_deplibs=yes
8958
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8959
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8961
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8963
hardcode_libdir_flag_spec='-R$libdir'
8965
hardcode_shlibpath_var=no
8969
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972
hardcode_libdir_separator=:
8973
hardcode_shlibpath_var=no
8980
if test -f /usr/libexec/ld.so; then
8982
hardcode_shlibpath_var=no
8983
hardcode_direct_absolute=yes
8984
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8985
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8986
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8987
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8988
export_dynamic_flag_spec='${wl}-E'
8991
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8992
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8993
hardcode_libdir_flag_spec='-R$libdir'
8996
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8997
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9007
hardcode_libdir_flag_spec='-L$libdir'
9008
hardcode_minus_L=yes
9009
allow_undefined_flag=unsupported
9010
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'
9011
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9015
if test "$GCC" = yes; then
9016
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9017
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'
9019
allow_undefined_flag=' -expect_unresolved \*'
9020
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'
9022
archive_cmds_need_lc='no'
9023
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024
hardcode_libdir_separator=:
9027
osf4* | osf5*) # as osf3* with the addition of -msym flag
9028
if test "$GCC" = yes; then
9029
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030
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'
9031
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033
allow_undefined_flag=' -expect_unresolved \*'
9034
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'
9035
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~
9036
$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'
9038
# Both c and cxx compiler support -rpath directly
9039
hardcode_libdir_flag_spec='-rpath $libdir'
9041
archive_cmds_need_lc='no'
9042
hardcode_libdir_separator=:
9046
no_undefined_flag=' -z defs'
9047
if test "$GCC" = yes; then
9049
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9051
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9053
case `$CC -V 2>&1` in
9056
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9058
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9062
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9063
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9064
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9068
hardcode_libdir_flag_spec='-R$libdir'
9069
hardcode_shlibpath_var=no
9071
solaris2.[0-5] | solaris2.[0-5].*) ;;
9073
# The compiler driver will combine and reorder linker options,
9074
# but understands `-z linker_flag'. GCC discards it without `$wl',
9075
# but is careful enough not to reorder.
9076
# Supported since Solaris 2.6 (maybe 2.5.1?)
9077
if test "$GCC" = yes; then
9078
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9080
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9084
link_all_deplibs=yes
9088
if test "x$host_vendor" = xsequent; then
9089
# Use $CC to link under sequent, because it throws in some extra .o
9090
# files that make .init and .fini sections work.
9091
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9093
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9095
hardcode_libdir_flag_spec='-L$libdir'
9097
hardcode_minus_L=yes
9098
hardcode_shlibpath_var=no
9102
case $host_vendor in
9104
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105
hardcode_direct=yes # is this really true???
9108
## LD is ld it makes a PLAMLIB
9109
## CC just makes a GrossModule.
9110
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9111
reload_cmds='$CC -r -o $output$reload_objs'
9115
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9119
runpath_var='LD_RUN_PATH'
9120
hardcode_shlibpath_var=no
9124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125
hardcode_shlibpath_var=no
9126
export_dynamic_flag_spec='-Bexport'
9130
if test -d /usr/nec; then
9131
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132
hardcode_shlibpath_var=no
9133
runpath_var=LD_RUN_PATH
9134
hardcode_runpath_var=yes
9139
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9140
no_undefined_flag='${wl}-z,text'
9141
archive_cmds_need_lc=no
9142
hardcode_shlibpath_var=no
9143
runpath_var='LD_RUN_PATH'
9145
if test "$GCC" = yes; then
9146
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154
sysv5* | sco3.2v5* | sco5v6*)
9155
# Note: We can NOT use -z defs as we might desire, because we do not
9156
# link with -lc, and that would cause any symbols used from libc to
9157
# always be unresolved, which means just about no library would
9158
# ever link correctly. If we're not using GNU ld we use -z text
9159
# though, which does catch some bad symbols but isn't as heavy-handed
9161
no_undefined_flag='${wl}-z,text'
9162
allow_undefined_flag='${wl}-z,nodefs'
9163
archive_cmds_need_lc=no
9164
hardcode_shlibpath_var=no
9165
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9166
hardcode_libdir_separator=':'
9167
link_all_deplibs=yes
9168
export_dynamic_flag_spec='${wl}-Bexport'
9169
runpath_var='LD_RUN_PATH'
9171
if test "$GCC" = yes; then
9172
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9173
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9182
hardcode_libdir_flag_spec='-L$libdir'
9183
hardcode_shlibpath_var=no
9191
if test x$host_vendor = xsni; then
9193
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9194
export_dynamic_flag_spec='${wl}-Blargedynsym'
9200
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9201
$as_echo "$ld_shlibs" >&6; }
9202
test "$ld_shlibs" = no && can_build_shared=no
9204
with_gnu_ld=$with_gnu_ld
9221
# Do we need to explicitly link libc?
9223
case "x$archive_cmds_need_lc" in
9225
# Assume -lc should be added
9226
archive_cmds_need_lc=yes
9228
if test "$enable_shared" = yes && test "$GCC" = yes; then
9229
case $archive_cmds in
9231
# FIXME: we may have to deal with multi-command sequences.
9234
# Test whether the compiler implicitly links with -lc since on some
9235
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9236
# to ld, don't add -lc before -lgcc.
9237
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9238
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9240
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9243
(eval $ac_compile) 2>&5
9245
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246
(exit $ac_status); } 2>conftest.err; then
9249
libobjs=conftest.$ac_objext
9251
wl=$lt_prog_compiler_wl
9252
pic_flag=$lt_prog_compiler_pic
9258
lt_save_allow_undefined_flag=$allow_undefined_flag
9259
allow_undefined_flag=
9260
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9261
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9263
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264
(exit $ac_status); }
9266
archive_cmds_need_lc=no
9268
archive_cmds_need_lc=yes
9270
allow_undefined_flag=$lt_save_allow_undefined_flag
9272
cat conftest.err 1>&5
9275
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9276
$as_echo "$archive_cmds_need_lc" >&6; }
9439
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9440
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9442
if test "$GCC" = yes; then
9444
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9445
*) lt_awk_arg="/^libraries:/" ;;
9447
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9448
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9449
# if the path contains ";" then we assume it to be the separator
9450
# otherwise default to the standard path separator (i.e. ":") - it is
9451
# assumed that no part of a normal pathname contains ";" but that should
9452
# okay in the real world where ";" in dirpaths is itself problematic.
9453
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9455
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9457
# Ok, now we have the path, separated by spaces, we can step through it
9458
# and add multilib dir if necessary.
9459
lt_tmp_lt_search_path_spec=
9460
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9461
for lt_sys_path in $lt_search_path_spec; do
9462
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9463
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9465
test -d "$lt_sys_path" && \
9466
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9469
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9470
BEGIN {RS=" "; FS="/|\n";} {
9473
for (lt_i = NF; lt_i > 0; lt_i--) {
9474
if ($lt_i != "" && $lt_i != ".") {
9475
if ($lt_i == "..") {
9478
if (lt_count == 0) {
9479
lt_foo="/" $lt_i lt_foo;
9486
if (lt_foo != "") { lt_freq[lt_foo]++; }
9487
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9489
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9491
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9494
libname_spec='lib$name'
9502
shlibpath_overrides_runpath=unknown
9504
dynamic_linker="$host_os ld.so"
9505
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9506
need_lib_prefix=unknown
9507
hardcode_into_libs=no
9509
# when you set need_version to no, make sure it does not cause -set_version
9510
# flags to be left without arguments
9511
need_version=unknown
9516
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9517
shlibpath_var=LIBPATH
9519
# AIX 3 has no versioning support, so we append a major version to the name.
9520
soname_spec='${libname}${release}${shared_ext}$major'
9527
hardcode_into_libs=yes
9528
if test "$host_cpu" = ia64; then
9529
# AIX 5 supports IA64
9530
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9531
shlibpath_var=LD_LIBRARY_PATH
9533
# With GCC up to 2.95.x, collect2 would create an import file
9534
# for dependence libraries. The import file would start with
9535
# the line `#! .'. This would cause the generated library to
9536
# depend on `.', always an invalid library. This was fixed in
9537
# development snapshots of GCC prior to 3.0.
9539
aix4 | aix4.[01] | aix4.[01].*)
9540
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9542
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9549
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9550
# soname into executable. Probably we can add versioning support to
9551
# collect2, so additional links can be useful in future.
9552
if test "$aix_use_runtimelinking" = yes; then
9553
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9554
# instead of lib<name>.a to let people know that these are not
9555
# typical AIX shared libraries.
9556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558
# We preserve .a as extension for shared libraries through AIX4.2
9559
# and later when we are not doing run time linking.
9560
library_names_spec='${libname}${release}.a $libname.a'
9561
soname_spec='${libname}${release}${shared_ext}$major'
9563
shlibpath_var=LIBPATH
9570
# Since July 2007 AmigaOS4 officially supports .so libraries.
9571
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575
library_names_spec='$libname.ixlibrary $libname.a'
9576
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9577
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'
9583
library_names_spec='${libname}${shared_ext}'
9584
dynamic_linker="$host_os ld.so"
9585
shlibpath_var=LIBRARY_PATH
9591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592
soname_spec='${libname}${release}${shared_ext}$major'
9593
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9594
shlibpath_var=LD_LIBRARY_PATH
9595
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9596
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9597
# the default ld.so.conf also contains /usr/contrib/lib and
9598
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9599
# libtool to hard-code these into programs
9602
cygwin* | mingw* | pw32* | cegcc*)
9603
version_type=windows
9608
case $GCC,$host_os in
9609
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9610
library_names_spec='$libname.dll.a'
9611
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9612
postinstall_cmds='base_file=`basename \${file}`~
9613
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9614
dldir=$destdir/`dirname \$dlpath`~
9615
test -d \$dldir || mkdir -p \$dldir~
9616
$install_prog $dir/$dlname \$dldir/$dlname~
9617
chmod a+x \$dldir/$dlname~
9618
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9619
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9621
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9622
dlpath=$dir/\$dldll~
9624
shlibpath_overrides_runpath=yes
9628
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9629
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9630
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9633
# MinGW DLLs use traditional 'lib' prefix
9634
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9635
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9636
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9637
# It is most probably a Windows format PATH printed by
9638
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9639
# path with ; separators, and with drive letters. We can handle the
9640
# drive letters (cygwin fileutils understands them), so leave them,
9641
# especially as we might pass files found there to a mingw objdump,
9642
# which wouldn't understand a cygwinified path. Ahh.
9643
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9645
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9649
# pw32 DLLs use 'pw' prefix rather than 'lib'
9650
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9659
dynamic_linker='Win32 ld.exe'
9660
# FIXME: first we should search . and the directory the executable is in
9664
darwin* | rhapsody*)
9665
dynamic_linker="$host_os dyld"
9669
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9670
soname_spec='${libname}${release}${major}$shared_ext'
9671
shlibpath_overrides_runpath=yes
9672
shlibpath_var=DYLD_LIBRARY_PATH
9673
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9675
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9676
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9684
soname_spec='${libname}${release}${shared_ext}$major'
9685
shlibpath_var=LD_LIBRARY_PATH
9692
freebsd* | dragonfly*)
9693
# DragonFly does not have aout. When/if they implement a new
9694
# versioning mechanism, adjust this.
9695
if test -x /usr/bin/objformat; then
9696
objformat=`/usr/bin/objformat`
9699
freebsd[123]*) objformat=aout ;;
9703
version_type=freebsd-$objformat
9704
case $version_type in
9706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9711
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9715
shlibpath_var=LD_LIBRARY_PATH
9718
shlibpath_overrides_runpath=yes
9720
freebsd3.[01]* | freebsdelf3.[01]*)
9721
shlibpath_overrides_runpath=yes
9722
hardcode_into_libs=yes
9724
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9725
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9726
shlibpath_overrides_runpath=no
9727
hardcode_into_libs=yes
9729
*) # from 4.6 on, and DragonFly
9730
shlibpath_overrides_runpath=yes
9731
hardcode_into_libs=yes
9740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9741
soname_spec='${libname}${release}${shared_ext}$major'
9742
shlibpath_var=LD_LIBRARY_PATH
9743
hardcode_into_libs=yes
9746
hpux9* | hpux10* | hpux11*)
9747
# Give a soname corresponding to the major version so that dld.sl refuses to
9748
# link against other versions.
9755
hardcode_into_libs=yes
9756
dynamic_linker="$host_os dld.so"
9757
shlibpath_var=LD_LIBRARY_PATH
9758
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760
soname_spec='${libname}${release}${shared_ext}$major'
9761
if test "X$HPUX_IA64_MODE" = X32; then
9762
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9764
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9766
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9770
hardcode_into_libs=yes
9771
dynamic_linker="$host_os dld.sl"
9772
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9773
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775
soname_spec='${libname}${release}${shared_ext}$major'
9776
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9777
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9781
dynamic_linker="$host_os dld.sl"
9782
shlibpath_var=SHLIB_PATH
9783
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785
soname_spec='${libname}${release}${shared_ext}$major'
9788
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9789
postinstall_cmds='chmod 555 $lib'
9796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9797
soname_spec='${libname}${release}${shared_ext}$major'
9798
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9799
shlibpath_var=LD_LIBRARY_PATH
9800
shlibpath_overrides_runpath=no
9801
hardcode_into_libs=yes
9804
irix5* | irix6* | nonstopux*)
9806
nonstopux*) version_type=nonstopux ;;
9808
if test "$lt_cv_prog_gnu_ld" = yes; then
9816
soname_spec='${libname}${release}${shared_ext}$major'
9817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9819
irix5* | nonstopux*)
9823
case $LD in # libtool.m4 will add one of these switches to LD
9824
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9825
libsuff= shlibsuff= libmagic=32-bit;;
9826
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9827
libsuff=32 shlibsuff=N32 libmagic=N32;;
9828
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9829
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9830
*) libsuff= shlibsuff= libmagic=never-match;;
9834
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9835
shlibpath_overrides_runpath=no
9836
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9837
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9838
hardcode_into_libs=yes
9841
# No shared lib support for Linux oldld, aout, or coff.
9842
linux*oldld* | linux*aout* | linux*coff*)
9846
# This must be Linux ELF.
9847
linux* | k*bsd*-gnu)
9851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852
soname_spec='${libname}${release}${shared_ext}$major'
9853
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9854
shlibpath_var=LD_LIBRARY_PATH
9855
shlibpath_overrides_runpath=no
9856
# Some binutils ld are patched to set DT_RUNPATH
9857
save_LDFLAGS=$LDFLAGS
9859
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9860
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9861
cat >conftest.$ac_ext <<_ACEOF
9864
cat confdefs.h >>conftest.$ac_ext
9865
cat >>conftest.$ac_ext <<_ACEOF
9866
/* end confdefs.h. */
9876
rm -f conftest.$ac_objext conftest$ac_exeext
9877
if { (ac_try="$ac_link"
9879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880
*) ac_try_echo=$ac_try;;
9882
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9883
$as_echo "$ac_try_echo") >&5
9884
(eval "$ac_link") 2>conftest.er1
9886
grep -v '^ *+' conftest.er1 >conftest.err
9888
cat conftest.err >&5
9889
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890
(exit $ac_status); } && {
9891
test -z "$ac_c_werror_flag" ||
9892
test ! -s conftest.err
9893
} && test -s conftest$ac_exeext && {
9894
test "$cross_compiling" = yes ||
9895
$as_test_x conftest$ac_exeext
9897
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9898
shlibpath_overrides_runpath=yes
9902
$as_echo "$as_me: failed program was:" >&5
9903
sed 's/^/| /' conftest.$ac_ext >&5
9908
rm -rf conftest.dSYM
9909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910
conftest$ac_exeext conftest.$ac_ext
9911
LDFLAGS=$save_LDFLAGS
9914
# This implies no fast_install, which is unacceptable.
9915
# Some rework will be needed to allow for fast_install
9916
# before this can be enabled.
9917
hardcode_into_libs=yes
9919
# Add ABI-specific directories to the system library path.
9920
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9922
# Append ld.so.conf contents to the search path
9923
if test -f /etc/ld.so.conf; then
9924
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' ' '`
9925
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9928
# We used to test for /lib/ld.so.1 and disable shared libraries on
9929
# powerpc, because MkLinux only supported shared libraries with the
9930
# GNU dynamic linker. Since this was broken with cross compilers,
9931
# most powerpc-linux boxes support dynamic linking these days and
9932
# people can always --disable-shared, the test was removed, and we
9933
# assume the GNU/Linux dynamic linker is in use.
9934
dynamic_linker='GNU/Linux ld.so'
9941
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9944
dynamic_linker='NetBSD (a.out) ld.so'
9946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947
soname_spec='${libname}${release}${shared_ext}$major'
9948
dynamic_linker='NetBSD ld.elf_so'
9950
shlibpath_var=LD_LIBRARY_PATH
9951
shlibpath_overrides_runpath=yes
9952
hardcode_into_libs=yes
9957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958
shlibpath_var=LD_LIBRARY_PATH
9959
shlibpath_overrides_runpath=yes
9966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967
soname_spec='${libname}${release}${shared_ext}$major'
9968
shlibpath_var=LD_LIBRARY_PATH
9969
shlibpath_overrides_runpath=no
9970
hardcode_into_libs=yes
9971
dynamic_linker='ldqnx.so'
9976
sys_lib_dlsearch_path_spec="/usr/lib"
9978
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9980
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9981
*) need_version=no ;;
9983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9985
shlibpath_var=LD_LIBRARY_PATH
9986
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9988
openbsd2.[89] | openbsd2.[89].*)
9989
shlibpath_overrides_runpath=no
9992
shlibpath_overrides_runpath=yes
9996
shlibpath_overrides_runpath=yes
10001
libname_spec='$name'
10004
library_names_spec='$libname${shared_ext} $libname.a'
10005
dynamic_linker='OS/2 ld.exe'
10006
shlibpath_var=LIBPATH
10009
osf3* | osf4* | osf5*)
10013
soname_spec='${libname}${release}${shared_ext}$major'
10014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015
shlibpath_var=LD_LIBRARY_PATH
10016
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10017
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029
soname_spec='${libname}${release}${shared_ext}$major'
10030
shlibpath_var=LD_LIBRARY_PATH
10031
shlibpath_overrides_runpath=yes
10032
hardcode_into_libs=yes
10033
# ldd complains unless libraries are executable
10034
postinstall_cmds='chmod +x $lib'
10039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10040
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10041
shlibpath_var=LD_LIBRARY_PATH
10042
shlibpath_overrides_runpath=yes
10043
if test "$with_gnu_ld" = yes; then
10051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052
soname_spec='${libname}${release}${shared_ext}$major'
10053
shlibpath_var=LD_LIBRARY_PATH
10054
case $host_vendor in
10056
shlibpath_overrides_runpath=no
10058
runpath_var=LD_RUN_PATH
10066
shlibpath_overrides_runpath=no
10067
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10073
if test -d /usr/nec ;then
10075
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10076
soname_spec='$libname${shared_ext}.$major'
10077
shlibpath_var=LD_LIBRARY_PATH
10081
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10082
version_type=freebsd-elf
10085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10086
soname_spec='${libname}${release}${shared_ext}$major'
10087
shlibpath_var=LD_LIBRARY_PATH
10088
shlibpath_overrides_runpath=yes
10089
hardcode_into_libs=yes
10090
if test "$with_gnu_ld" = yes; then
10091
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10093
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10096
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10100
sys_lib_dlsearch_path_spec='/usr/lib'
10104
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109
shlibpath_var=LD_LIBRARY_PATH
10110
shlibpath_overrides_runpath=no
10111
hardcode_into_libs=yes
10116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117
soname_spec='${libname}${release}${shared_ext}$major'
10118
shlibpath_var=LD_LIBRARY_PATH
10125
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10126
$as_echo "$dynamic_linker" >&6; }
10127
test "$dynamic_linker" = no && can_build_shared=no
10129
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10130
if test "$GCC" = yes; then
10131
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10134
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10135
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10137
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10138
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10227
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10228
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10230
if test -n "$hardcode_libdir_flag_spec" ||
10231
test -n "$runpath_var" ||
10232
test "X$hardcode_automatic" = "Xyes" ; then
10234
# We can hardcode non-existent directories.
10235
if test "$hardcode_direct" != no &&
10236
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10237
# have to relink, otherwise we might link with an installed library
10238
# when we should be linking with a yet-to-be-installed one
10239
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10240
test "$hardcode_minus_L" != no; then
10241
# Linking always hardcodes the temporary library directory.
10242
hardcode_action=relink
10244
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10245
hardcode_action=immediate
10248
# We cannot hardcode anything, or else we can only hardcode existing
10250
hardcode_action=unsupported
10252
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10253
$as_echo "$hardcode_action" >&6; }
10255
if test "$hardcode_action" = relink ||
10256
test "$inherit_rpath" = yes; then
10257
# Fast installation is not supported
10258
enable_fast_install=no
10259
elif test "$shlibpath_overrides_runpath" = yes ||
10260
test "$enable_shared" = no; then
10261
# Fast installation is not necessary
10262
enable_fast_install=needless
10270
if test "x$enable_dlopen" != xyes; then
10271
enable_dlopen=unknown
10272
enable_dlopen_self=unknown
10273
enable_dlopen_self_static=unknown
10280
lt_cv_dlopen="load_add_on"
10282
lt_cv_dlopen_self=yes
10285
mingw* | pw32* | cegcc*)
10286
lt_cv_dlopen="LoadLibrary"
10291
lt_cv_dlopen="dlopen"
10296
# if libdl is installed we need to link against it
10297
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10298
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10299
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10300
$as_echo_n "(cached) " >&6
10302
ac_check_lib_save_LIBS=$LIBS
10304
cat >conftest.$ac_ext <<_ACEOF
10307
cat confdefs.h >>conftest.$ac_ext
10308
cat >>conftest.$ac_ext <<_ACEOF
10309
/* end confdefs.h. */
10311
/* Override any GCC internal prototype to avoid an error.
10312
Use char because int might match the return type of a GCC
10313
builtin and then its argument prototype would still apply. */
10326
rm -f conftest.$ac_objext conftest$ac_exeext
10327
if { (ac_try="$ac_link"
10328
case "(($ac_try" in
10329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330
*) ac_try_echo=$ac_try;;
10332
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333
$as_echo "$ac_try_echo") >&5
10334
(eval "$ac_link") 2>conftest.er1
10336
grep -v '^ *+' conftest.er1 >conftest.err
10338
cat conftest.err >&5
10339
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340
(exit $ac_status); } && {
10341
test -z "$ac_c_werror_flag" ||
10342
test ! -s conftest.err
10343
} && test -s conftest$ac_exeext && {
10344
test "$cross_compiling" = yes ||
10345
$as_test_x conftest$ac_exeext
10347
ac_cv_lib_dl_dlopen=yes
10349
$as_echo "$as_me: failed program was:" >&5
10350
sed 's/^/| /' conftest.$ac_ext >&5
10352
ac_cv_lib_dl_dlopen=no
10355
rm -rf conftest.dSYM
10356
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357
conftest$ac_exeext conftest.$ac_ext
10358
LIBS=$ac_check_lib_save_LIBS
10360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10361
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10362
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10363
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10366
lt_cv_dlopen="dyld"
10368
lt_cv_dlopen_self=yes
10375
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10376
$as_echo_n "checking for shl_load... " >&6; }
10377
if test "${ac_cv_func_shl_load+set}" = set; then
10378
$as_echo_n "(cached) " >&6
10380
cat >conftest.$ac_ext <<_ACEOF
10383
cat confdefs.h >>conftest.$ac_ext
10384
cat >>conftest.$ac_ext <<_ACEOF
10385
/* end confdefs.h. */
10386
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10387
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388
#define shl_load innocuous_shl_load
10390
/* System header to define __stub macros and hopefully few prototypes,
10391
which can conflict with char shl_load (); below.
10392
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393
<limits.h> exists even on freestanding compilers. */
10396
# include <limits.h>
10398
# include <assert.h>
10403
/* Override any GCC internal prototype to avoid an error.
10404
Use char because int might match the return type of a GCC
10405
builtin and then its argument prototype would still apply. */
10410
/* The GNU C library defines this for functions which it implements
10411
to always fail with ENOSYS. Some functions are actually named
10412
something starting with __ and the normal name is an alias. */
10413
#if defined __stub_shl_load || defined __stub___shl_load
10420
return shl_load ();
10425
rm -f conftest.$ac_objext conftest$ac_exeext
10426
if { (ac_try="$ac_link"
10427
case "(($ac_try" in
10428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429
*) ac_try_echo=$ac_try;;
10431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432
$as_echo "$ac_try_echo") >&5
10433
(eval "$ac_link") 2>conftest.er1
10435
grep -v '^ *+' conftest.er1 >conftest.err
10437
cat conftest.err >&5
10438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439
(exit $ac_status); } && {
10440
test -z "$ac_c_werror_flag" ||
10441
test ! -s conftest.err
10442
} && test -s conftest$ac_exeext && {
10443
test "$cross_compiling" = yes ||
10444
$as_test_x conftest$ac_exeext
10446
ac_cv_func_shl_load=yes
10448
$as_echo "$as_me: failed program was:" >&5
10449
sed 's/^/| /' conftest.$ac_ext >&5
10451
ac_cv_func_shl_load=no
10454
rm -rf conftest.dSYM
10455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10456
conftest$ac_exeext conftest.$ac_ext
10458
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10459
$as_echo "$ac_cv_func_shl_load" >&6; }
10460
if test "x$ac_cv_func_shl_load" = x""yes; then
10461
lt_cv_dlopen="shl_load"
10463
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10464
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10465
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10466
$as_echo_n "(cached) " >&6
10468
ac_check_lib_save_LIBS=$LIBS
10470
cat >conftest.$ac_ext <<_ACEOF
10473
cat confdefs.h >>conftest.$ac_ext
10474
cat >>conftest.$ac_ext <<_ACEOF
10475
/* end confdefs.h. */
10477
/* Override any GCC internal prototype to avoid an error.
10478
Use char because int might match the return type of a GCC
10479
builtin and then its argument prototype would still apply. */
10487
return shl_load ();
10492
rm -f conftest.$ac_objext conftest$ac_exeext
10493
if { (ac_try="$ac_link"
10494
case "(($ac_try" in
10495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496
*) ac_try_echo=$ac_try;;
10498
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10499
$as_echo "$ac_try_echo") >&5
10500
(eval "$ac_link") 2>conftest.er1
10502
grep -v '^ *+' conftest.er1 >conftest.err
10504
cat conftest.err >&5
10505
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506
(exit $ac_status); } && {
10507
test -z "$ac_c_werror_flag" ||
10508
test ! -s conftest.err
10509
} && test -s conftest$ac_exeext && {
10510
test "$cross_compiling" = yes ||
10511
$as_test_x conftest$ac_exeext
10513
ac_cv_lib_dld_shl_load=yes
10515
$as_echo "$as_me: failed program was:" >&5
10516
sed 's/^/| /' conftest.$ac_ext >&5
10518
ac_cv_lib_dld_shl_load=no
10521
rm -rf conftest.dSYM
10522
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10523
conftest$ac_exeext conftest.$ac_ext
10524
LIBS=$ac_check_lib_save_LIBS
10526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10527
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10528
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10529
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10531
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10532
$as_echo_n "checking for dlopen... " >&6; }
10533
if test "${ac_cv_func_dlopen+set}" = set; then
10534
$as_echo_n "(cached) " >&6
10536
cat >conftest.$ac_ext <<_ACEOF
10539
cat confdefs.h >>conftest.$ac_ext
10540
cat >>conftest.$ac_ext <<_ACEOF
10541
/* end confdefs.h. */
10542
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10543
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10544
#define dlopen innocuous_dlopen
10546
/* System header to define __stub macros and hopefully few prototypes,
10547
which can conflict with char dlopen (); below.
10548
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549
<limits.h> exists even on freestanding compilers. */
10552
# include <limits.h>
10554
# include <assert.h>
10559
/* Override any GCC internal prototype to avoid an error.
10560
Use char because int might match the return type of a GCC
10561
builtin and then its argument prototype would still apply. */
10566
/* The GNU C library defines this for functions which it implements
10567
to always fail with ENOSYS. Some functions are actually named
10568
something starting with __ and the normal name is an alias. */
10569
#if defined __stub_dlopen || defined __stub___dlopen
10581
rm -f conftest.$ac_objext conftest$ac_exeext
10582
if { (ac_try="$ac_link"
10583
case "(($ac_try" in
10584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585
*) ac_try_echo=$ac_try;;
10587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588
$as_echo "$ac_try_echo") >&5
10589
(eval "$ac_link") 2>conftest.er1
10591
grep -v '^ *+' conftest.er1 >conftest.err
10593
cat conftest.err >&5
10594
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595
(exit $ac_status); } && {
10596
test -z "$ac_c_werror_flag" ||
10597
test ! -s conftest.err
10598
} && test -s conftest$ac_exeext && {
10599
test "$cross_compiling" = yes ||
10600
$as_test_x conftest$ac_exeext
10602
ac_cv_func_dlopen=yes
10604
$as_echo "$as_me: failed program was:" >&5
10605
sed 's/^/| /' conftest.$ac_ext >&5
10607
ac_cv_func_dlopen=no
10610
rm -rf conftest.dSYM
10611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612
conftest$ac_exeext conftest.$ac_ext
10614
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10615
$as_echo "$ac_cv_func_dlopen" >&6; }
10616
if test "x$ac_cv_func_dlopen" = x""yes; then
10617
lt_cv_dlopen="dlopen"
10619
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10620
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10621
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10622
$as_echo_n "(cached) " >&6
10624
ac_check_lib_save_LIBS=$LIBS
10626
cat >conftest.$ac_ext <<_ACEOF
10629
cat confdefs.h >>conftest.$ac_ext
10630
cat >>conftest.$ac_ext <<_ACEOF
10631
/* end confdefs.h. */
10633
/* Override any GCC internal prototype to avoid an error.
10634
Use char because int might match the return type of a GCC
10635
builtin and then its argument prototype would still apply. */
10648
rm -f conftest.$ac_objext conftest$ac_exeext
10649
if { (ac_try="$ac_link"
10650
case "(($ac_try" in
10651
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652
*) ac_try_echo=$ac_try;;
10654
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10655
$as_echo "$ac_try_echo") >&5
10656
(eval "$ac_link") 2>conftest.er1
10658
grep -v '^ *+' conftest.er1 >conftest.err
10660
cat conftest.err >&5
10661
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662
(exit $ac_status); } && {
10663
test -z "$ac_c_werror_flag" ||
10664
test ! -s conftest.err
10665
} && test -s conftest$ac_exeext && {
10666
test "$cross_compiling" = yes ||
10667
$as_test_x conftest$ac_exeext
10669
ac_cv_lib_dl_dlopen=yes
10671
$as_echo "$as_me: failed program was:" >&5
10672
sed 's/^/| /' conftest.$ac_ext >&5
10674
ac_cv_lib_dl_dlopen=no
10677
rm -rf conftest.dSYM
10678
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679
conftest$ac_exeext conftest.$ac_ext
10680
LIBS=$ac_check_lib_save_LIBS
10682
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10683
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10684
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10685
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10688
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10689
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10690
$as_echo_n "(cached) " >&6
10692
ac_check_lib_save_LIBS=$LIBS
10693
LIBS="-lsvld $LIBS"
10694
cat >conftest.$ac_ext <<_ACEOF
10697
cat confdefs.h >>conftest.$ac_ext
10698
cat >>conftest.$ac_ext <<_ACEOF
10699
/* end confdefs.h. */
10701
/* Override any GCC internal prototype to avoid an error.
10702
Use char because int might match the return type of a GCC
10703
builtin and then its argument prototype would still apply. */
10716
rm -f conftest.$ac_objext conftest$ac_exeext
10717
if { (ac_try="$ac_link"
10718
case "(($ac_try" in
10719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720
*) ac_try_echo=$ac_try;;
10722
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723
$as_echo "$ac_try_echo") >&5
10724
(eval "$ac_link") 2>conftest.er1
10726
grep -v '^ *+' conftest.er1 >conftest.err
10728
cat conftest.err >&5
10729
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730
(exit $ac_status); } && {
10731
test -z "$ac_c_werror_flag" ||
10732
test ! -s conftest.err
10733
} && test -s conftest$ac_exeext && {
10734
test "$cross_compiling" = yes ||
10735
$as_test_x conftest$ac_exeext
10737
ac_cv_lib_svld_dlopen=yes
10739
$as_echo "$as_me: failed program was:" >&5
10740
sed 's/^/| /' conftest.$ac_ext >&5
10742
ac_cv_lib_svld_dlopen=no
10745
rm -rf conftest.dSYM
10746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747
conftest$ac_exeext conftest.$ac_ext
10748
LIBS=$ac_check_lib_save_LIBS
10750
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10751
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10752
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10753
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10755
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10756
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10757
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10758
$as_echo_n "(cached) " >&6
10760
ac_check_lib_save_LIBS=$LIBS
10762
cat >conftest.$ac_ext <<_ACEOF
10765
cat confdefs.h >>conftest.$ac_ext
10766
cat >>conftest.$ac_ext <<_ACEOF
10767
/* end confdefs.h. */
10769
/* Override any GCC internal prototype to avoid an error.
10770
Use char because int might match the return type of a GCC
10771
builtin and then its argument prototype would still apply. */
10779
return dld_link ();
10784
rm -f conftest.$ac_objext conftest$ac_exeext
10785
if { (ac_try="$ac_link"
10786
case "(($ac_try" in
10787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788
*) ac_try_echo=$ac_try;;
10790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10791
$as_echo "$ac_try_echo") >&5
10792
(eval "$ac_link") 2>conftest.er1
10794
grep -v '^ *+' conftest.er1 >conftest.err
10796
cat conftest.err >&5
10797
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
(exit $ac_status); } && {
10799
test -z "$ac_c_werror_flag" ||
10800
test ! -s conftest.err
10801
} && test -s conftest$ac_exeext && {
10802
test "$cross_compiling" = yes ||
10803
$as_test_x conftest$ac_exeext
10805
ac_cv_lib_dld_dld_link=yes
10807
$as_echo "$as_me: failed program was:" >&5
10808
sed 's/^/| /' conftest.$ac_ext >&5
10810
ac_cv_lib_dld_dld_link=no
10813
rm -rf conftest.dSYM
10814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815
conftest$ac_exeext conftest.$ac_ext
10816
LIBS=$ac_check_lib_save_LIBS
10818
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10819
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10820
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10821
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10842
if test "x$lt_cv_dlopen" != xno; then
10848
case $lt_cv_dlopen in
10850
save_CPPFLAGS="$CPPFLAGS"
10851
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10853
save_LDFLAGS="$LDFLAGS"
10854
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10857
LIBS="$lt_cv_dlopen_libs $LIBS"
10859
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10860
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10861
if test "${lt_cv_dlopen_self+set}" = set; then
10862
$as_echo_n "(cached) " >&6
10864
if test "$cross_compiling" = yes; then :
10865
lt_cv_dlopen_self=cross
10867
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10868
lt_status=$lt_dlunknown
10869
cat > conftest.$ac_ext <<_LT_EOF
10870
#line 10870 "configure"
10871
#include "confdefs.h"
10880
# define LT_DLGLOBAL RTLD_GLOBAL
10883
# define LT_DLGLOBAL DL_GLOBAL
10885
# define LT_DLGLOBAL 0
10889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10890
find out it does not work in some platform. */
10891
#ifndef LT_DLLAZY_OR_NOW
10893
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10896
# define LT_DLLAZY_OR_NOW DL_LAZY
10899
# define LT_DLLAZY_OR_NOW RTLD_NOW
10902
# define LT_DLLAZY_OR_NOW DL_NOW
10904
# define LT_DLLAZY_OR_NOW 0
10911
void fnord() { int i=42;}
10914
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10915
int status = $lt_dlunknown;
10919
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10920
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10921
/* dlclose (self); */
10929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930
(eval $ac_link) 2>&5
10932
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10934
(./conftest; exit; ) >&5 2>/dev/null
10936
case x$lt_status in
10937
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10938
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10939
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10942
# compilation failed
10943
lt_cv_dlopen_self=no
10950
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10951
$as_echo "$lt_cv_dlopen_self" >&6; }
10953
if test "x$lt_cv_dlopen_self" = xyes; then
10954
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10955
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10956
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10957
if test "${lt_cv_dlopen_self_static+set}" = set; then
10958
$as_echo_n "(cached) " >&6
10960
if test "$cross_compiling" = yes; then :
10961
lt_cv_dlopen_self_static=cross
10963
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10964
lt_status=$lt_dlunknown
10965
cat > conftest.$ac_ext <<_LT_EOF
10966
#line 10966 "configure"
10967
#include "confdefs.h"
10976
# define LT_DLGLOBAL RTLD_GLOBAL
10979
# define LT_DLGLOBAL DL_GLOBAL
10981
# define LT_DLGLOBAL 0
10985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10986
find out it does not work in some platform. */
10987
#ifndef LT_DLLAZY_OR_NOW
10989
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10992
# define LT_DLLAZY_OR_NOW DL_LAZY
10995
# define LT_DLLAZY_OR_NOW RTLD_NOW
10998
# define LT_DLLAZY_OR_NOW DL_NOW
11000
# define LT_DLLAZY_OR_NOW 0
11007
void fnord() { int i=42;}
11010
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11011
int status = $lt_dlunknown;
11015
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11016
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11017
/* dlclose (self); */
11025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026
(eval $ac_link) 2>&5
11028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11030
(./conftest; exit; ) >&5 2>/dev/null
11032
case x$lt_status in
11033
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11035
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11038
# compilation failed
11039
lt_cv_dlopen_self_static=no
11046
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11047
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11050
CPPFLAGS="$save_CPPFLAGS"
11051
LDFLAGS="$save_LDFLAGS"
11056
case $lt_cv_dlopen_self in
11057
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058
*) enable_dlopen_self=unknown ;;
11061
case $lt_cv_dlopen_self_static in
11062
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063
*) enable_dlopen_self_static=unknown ;;
11085
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11090
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11091
$as_echo "yes" >&6; }
11093
# FIXME - insert some real tests, host_os isn't really good enough
11096
if test -n "$STRIP" ; then
11097
striplib="$STRIP -x"
11098
old_striplib="$STRIP -S"
11099
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11100
$as_echo "yes" >&6; }
11102
{ $as_echo "$as_me:$LINENO: result: no" >&5
11103
$as_echo "no" >&6; }
11107
{ $as_echo "$as_me:$LINENO: result: no" >&5
11108
$as_echo "no" >&6; }
11124
# Report which library types will actually be built
11125
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11126
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11127
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11128
$as_echo "$can_build_shared" >&6; }
11130
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11131
$as_echo_n "checking whether to build shared libraries... " >&6; }
11132
test "$can_build_shared" = "no" && enable_shared=no
11134
# On AIX, shared libraries and static libraries use the same namespace, and
11135
# are all built from PIC.
11138
test "$enable_shared" = yes && enable_static=no
11139
if test -n "$RANLIB"; then
11140
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141
postinstall_cmds='$RANLIB $lib'
11146
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147
test "$enable_shared" = yes && enable_static=no
11151
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11152
$as_echo "$enable_shared" >&6; }
11154
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11155
$as_echo_n "checking whether to build static libraries... " >&6; }
11156
# Make sure either enable_shared or enable_static is yes.
11157
test "$enable_shared" = yes || enable_static=yes
11158
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11159
$as_echo "$enable_static" >&6; }
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185
ac_config_commands="$ac_config_commands libtool"
11190
# Only expand once:
11194
ac_cpp='$CPP $CPPFLAGS'
11195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198
if test -n "$ac_tool_prefix"; then
11199
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11200
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11201
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11202
$as_echo_n "checking for $ac_word... " >&6; }
11203
if test "${ac_cv_prog_CC+set}" = set; then
11204
$as_echo_n "(cached) " >&6
11206
if test -n "$CC"; then
11207
ac_cv_prog_CC="$CC" # Let the user override the test.
11209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210
for as_dir in $PATH
11213
test -z "$as_dir" && as_dir=.
11214
for ac_exec_ext in '' $ac_executable_extensions; do
11215
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11216
ac_cv_prog_CC="${ac_tool_prefix}gcc"
11217
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227
if test -n "$CC"; then
11228
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
11229
$as_echo "$CC" >&6; }
11231
{ $as_echo "$as_me:$LINENO: result: no" >&5
11232
$as_echo "no" >&6; }
11237
if test -z "$ac_cv_prog_CC"; then
11239
# Extract the first word of "gcc", so it can be a program name with args.
11240
set dummy gcc; ac_word=$2
11241
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11242
$as_echo_n "checking for $ac_word... " >&6; }
11243
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11244
$as_echo_n "(cached) " >&6
11246
if test -n "$ac_ct_CC"; then
11247
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250
for as_dir in $PATH
11253
test -z "$as_dir" && as_dir=.
11254
for ac_exec_ext in '' $ac_executable_extensions; do
11255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256
ac_cv_prog_ac_ct_CC="gcc"
11257
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11267
if test -n "$ac_ct_CC"; then
11268
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11269
$as_echo "$ac_ct_CC" >&6; }
11271
{ $as_echo "$as_me:$LINENO: result: no" >&5
11272
$as_echo "no" >&6; }
11275
if test "x$ac_ct_CC" = x; then
11278
case $cross_compiling:$ac_tool_warned in
11280
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11281
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11282
ac_tool_warned=yes ;;
11287
CC="$ac_cv_prog_CC"
11290
if test -z "$CC"; then
11291
if test -n "$ac_tool_prefix"; then
11292
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11293
set dummy ${ac_tool_prefix}cc; ac_word=$2
11294
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11295
$as_echo_n "checking for $ac_word... " >&6; }
11296
if test "${ac_cv_prog_CC+set}" = set; then
11297
$as_echo_n "(cached) " >&6
11299
if test -n "$CC"; then
11300
ac_cv_prog_CC="$CC" # Let the user override the test.
11302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303
for as_dir in $PATH
11306
test -z "$as_dir" && as_dir=.
11307
for ac_exec_ext in '' $ac_executable_extensions; do
11308
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11309
ac_cv_prog_CC="${ac_tool_prefix}cc"
11310
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320
if test -n "$CC"; then
11321
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
11322
$as_echo "$CC" >&6; }
11324
{ $as_echo "$as_me:$LINENO: result: no" >&5
11325
$as_echo "no" >&6; }
11331
if test -z "$CC"; then
11332
# Extract the first word of "cc", so it can be a program name with args.
11333
set dummy cc; ac_word=$2
11334
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11335
$as_echo_n "checking for $ac_word... " >&6; }
11336
if test "${ac_cv_prog_CC+set}" = set; then
11337
$as_echo_n "(cached) " >&6
11339
if test -n "$CC"; then
11340
ac_cv_prog_CC="$CC" # Let the user override the test.
11342
ac_prog_rejected=no
11343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344
for as_dir in $PATH
11347
test -z "$as_dir" && as_dir=.
11348
for ac_exec_ext in '' $ac_executable_extensions; do
11349
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11351
ac_prog_rejected=yes
11355
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11362
if test $ac_prog_rejected = yes; then
11363
# We found a bogon in the path, so make sure we never use it.
11364
set dummy $ac_cv_prog_CC
11366
if test $# != 0; then
11367
# We chose a different compiler from the bogus one.
11368
# However, it has the same basename, so the bogon will be chosen
11369
# first if we set CC to just the basename; use the full file name.
11371
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11377
if test -n "$CC"; then
11378
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
11379
$as_echo "$CC" >&6; }
11381
{ $as_echo "$as_me:$LINENO: result: no" >&5
11382
$as_echo "no" >&6; }
11387
if test -z "$CC"; then
11388
if test -n "$ac_tool_prefix"; then
11389
for ac_prog in cl.exe
11391
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11393
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11394
$as_echo_n "checking for $ac_word... " >&6; }
11395
if test "${ac_cv_prog_CC+set}" = set; then
11396
$as_echo_n "(cached) " >&6
11398
if test -n "$CC"; then
11399
ac_cv_prog_CC="$CC" # Let the user override the test.
11401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402
for as_dir in $PATH
11405
test -z "$as_dir" && as_dir=.
11406
for ac_exec_ext in '' $ac_executable_extensions; do
11407
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11409
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11419
if test -n "$CC"; then
11420
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
11421
$as_echo "$CC" >&6; }
11423
{ $as_echo "$as_me:$LINENO: result: no" >&5
11424
$as_echo "no" >&6; }
11428
test -n "$CC" && break
11431
if test -z "$CC"; then
11433
for ac_prog in cl.exe
11435
# Extract the first word of "$ac_prog", so it can be a program name with args.
11436
set dummy $ac_prog; ac_word=$2
11437
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11438
$as_echo_n "checking for $ac_word... " >&6; }
11439
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11440
$as_echo_n "(cached) " >&6
11442
if test -n "$ac_ct_CC"; then
11443
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446
for as_dir in $PATH
11449
test -z "$as_dir" && as_dir=.
11450
for ac_exec_ext in '' $ac_executable_extensions; do
11451
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452
ac_cv_prog_ac_ct_CC="$ac_prog"
11453
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11462
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11463
if test -n "$ac_ct_CC"; then
11464
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11465
$as_echo "$ac_ct_CC" >&6; }
11467
{ $as_echo "$as_me:$LINENO: result: no" >&5
11468
$as_echo "no" >&6; }
11472
test -n "$ac_ct_CC" && break
11475
if test "x$ac_ct_CC" = x; then
11478
case $cross_compiling:$ac_tool_warned in
11480
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11481
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11482
ac_tool_warned=yes ;;
11491
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11492
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11493
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11494
See \`config.log' for more details." >&5
11495
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11496
See \`config.log' for more details." >&2;}
11497
{ (exit 1); exit 1; }; }; }
11499
# Provide some information about the compiler.
11500
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11503
{ (ac_try="$ac_compiler --version >&5"
11504
case "(($ac_try" in
11505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506
*) ac_try_echo=$ac_try;;
11508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11509
$as_echo "$ac_try_echo") >&5
11510
(eval "$ac_compiler --version >&5") 2>&5
11512
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513
(exit $ac_status); }
11514
{ (ac_try="$ac_compiler -v >&5"
11515
case "(($ac_try" in
11516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517
*) ac_try_echo=$ac_try;;
11519
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11520
$as_echo "$ac_try_echo") >&5
11521
(eval "$ac_compiler -v >&5") 2>&5
11523
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524
(exit $ac_status); }
11525
{ (ac_try="$ac_compiler -V >&5"
11526
case "(($ac_try" in
11527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528
*) ac_try_echo=$ac_try;;
11530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11531
$as_echo "$ac_try_echo") >&5
11532
(eval "$ac_compiler -V >&5") 2>&5
11534
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535
(exit $ac_status); }
11537
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11538
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11539
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11540
$as_echo_n "(cached) " >&6
11542
cat >conftest.$ac_ext <<_ACEOF
11545
cat confdefs.h >>conftest.$ac_ext
11546
cat >>conftest.$ac_ext <<_ACEOF
11547
/* end confdefs.h. */
11560
rm -f conftest.$ac_objext
11561
if { (ac_try="$ac_compile"
11562
case "(($ac_try" in
11563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564
*) ac_try_echo=$ac_try;;
11566
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567
$as_echo "$ac_try_echo") >&5
11568
(eval "$ac_compile") 2>conftest.er1
11570
grep -v '^ *+' conftest.er1 >conftest.err
11572
cat conftest.err >&5
11573
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
(exit $ac_status); } && {
11575
test -z "$ac_c_werror_flag" ||
11576
test ! -s conftest.err
11577
} && test -s conftest.$ac_objext; then
11578
ac_compiler_gnu=yes
11580
$as_echo "$as_me: failed program was:" >&5
11581
sed 's/^/| /' conftest.$ac_ext >&5
11586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11590
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11591
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11592
if test $ac_compiler_gnu = yes; then
11597
ac_test_CFLAGS=${CFLAGS+set}
11598
ac_save_CFLAGS=$CFLAGS
11599
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11600
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11601
if test "${ac_cv_prog_cc_g+set}" = set; then
11602
$as_echo_n "(cached) " >&6
11604
ac_save_c_werror_flag=$ac_c_werror_flag
11605
ac_c_werror_flag=yes
11608
cat >conftest.$ac_ext <<_ACEOF
11611
cat confdefs.h >>conftest.$ac_ext
11612
cat >>conftest.$ac_ext <<_ACEOF
11613
/* end confdefs.h. */
11623
rm -f conftest.$ac_objext
11624
if { (ac_try="$ac_compile"
11625
case "(($ac_try" in
11626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627
*) ac_try_echo=$ac_try;;
11629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630
$as_echo "$ac_try_echo") >&5
11631
(eval "$ac_compile") 2>conftest.er1
11633
grep -v '^ *+' conftest.er1 >conftest.err
11635
cat conftest.err >&5
11636
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637
(exit $ac_status); } && {
11638
test -z "$ac_c_werror_flag" ||
11639
test ! -s conftest.err
11640
} && test -s conftest.$ac_objext; then
11641
ac_cv_prog_cc_g=yes
11643
$as_echo "$as_me: failed program was:" >&5
11644
sed 's/^/| /' conftest.$ac_ext >&5
11647
cat >conftest.$ac_ext <<_ACEOF
11650
cat confdefs.h >>conftest.$ac_ext
11651
cat >>conftest.$ac_ext <<_ACEOF
11652
/* end confdefs.h. */
11662
rm -f conftest.$ac_objext
11663
if { (ac_try="$ac_compile"
11664
case "(($ac_try" in
11665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666
*) ac_try_echo=$ac_try;;
11668
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669
$as_echo "$ac_try_echo") >&5
11670
(eval "$ac_compile") 2>conftest.er1
11672
grep -v '^ *+' conftest.er1 >conftest.err
11674
cat conftest.err >&5
11675
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676
(exit $ac_status); } && {
11677
test -z "$ac_c_werror_flag" ||
11678
test ! -s conftest.err
11679
} && test -s conftest.$ac_objext; then
11682
$as_echo "$as_me: failed program was:" >&5
11683
sed 's/^/| /' conftest.$ac_ext >&5
11685
ac_c_werror_flag=$ac_save_c_werror_flag
11687
cat >conftest.$ac_ext <<_ACEOF
11690
cat confdefs.h >>conftest.$ac_ext
11691
cat >>conftest.$ac_ext <<_ACEOF
11692
/* end confdefs.h. */
11702
rm -f conftest.$ac_objext
11703
if { (ac_try="$ac_compile"
11704
case "(($ac_try" in
11705
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706
*) ac_try_echo=$ac_try;;
11708
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11709
$as_echo "$ac_try_echo") >&5
11710
(eval "$ac_compile") 2>conftest.er1
11712
grep -v '^ *+' conftest.er1 >conftest.err
11714
cat conftest.err >&5
11715
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716
(exit $ac_status); } && {
11717
test -z "$ac_c_werror_flag" ||
11718
test ! -s conftest.err
11719
} && test -s conftest.$ac_objext; then
11720
ac_cv_prog_cc_g=yes
11722
$as_echo "$as_me: failed program was:" >&5
11723
sed 's/^/| /' conftest.$ac_ext >&5
11728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735
ac_c_werror_flag=$ac_save_c_werror_flag
11737
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11738
$as_echo "$ac_cv_prog_cc_g" >&6; }
11739
if test "$ac_test_CFLAGS" = set; then
11740
CFLAGS=$ac_save_CFLAGS
11741
elif test $ac_cv_prog_cc_g = yes; then
11742
if test "$GCC" = yes; then
11748
if test "$GCC" = yes; then
11754
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11755
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11756
if test "${ac_cv_prog_cc_c89+set}" = set; then
11757
$as_echo_n "(cached) " >&6
11759
ac_cv_prog_cc_c89=no
11761
cat >conftest.$ac_ext <<_ACEOF
11764
cat confdefs.h >>conftest.$ac_ext
11765
cat >>conftest.$ac_ext <<_ACEOF
11766
/* end confdefs.h. */
11767
#include <stdarg.h>
11769
#include <sys/types.h>
11770
#include <sys/stat.h>
11771
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11772
struct buf { int x; };
11773
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11774
static char *e (p, i)
11780
static char *f (char * (*g) (char **, int), char **p, ...)
11785
s = g (p, va_arg (v,int));
11790
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11791
function prototypes and stuff, but not '\xHH' hex character constants.
11792
These don't provoke an error unfortunately, instead are silently treated
11793
as 'x'. The following induces an error, until -std is added to get
11794
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11795
array size at least. It's necessary to write '\x00'==0 to get something
11796
that's true only with -std. */
11797
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11799
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11800
inside strings and character constants. */
11802
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11804
int test (int i, double x);
11805
struct s1 {int (*f) (int a);};
11806
struct s2 {int (*f) (double a);};
11807
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11813
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11818
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11819
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11821
CC="$ac_save_CC $ac_arg"
11822
rm -f conftest.$ac_objext
11823
if { (ac_try="$ac_compile"
11824
case "(($ac_try" in
11825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826
*) ac_try_echo=$ac_try;;
11828
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11829
$as_echo "$ac_try_echo") >&5
11830
(eval "$ac_compile") 2>conftest.er1
11832
grep -v '^ *+' conftest.er1 >conftest.err
11834
cat conftest.err >&5
11835
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836
(exit $ac_status); } && {
11837
test -z "$ac_c_werror_flag" ||
11838
test ! -s conftest.err
11839
} && test -s conftest.$ac_objext; then
11840
ac_cv_prog_cc_c89=$ac_arg
11842
$as_echo "$as_me: failed program was:" >&5
11843
sed 's/^/| /' conftest.$ac_ext >&5
11848
rm -f core conftest.err conftest.$ac_objext
11849
test "x$ac_cv_prog_cc_c89" != "xno" && break
11851
rm -f conftest.$ac_ext
11856
case "x$ac_cv_prog_cc_c89" in
11858
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
11859
$as_echo "none needed" >&6; } ;;
11861
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
11862
$as_echo "unsupported" >&6; } ;;
11864
CC="$CC $ac_cv_prog_cc_c89"
11865
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11866
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11871
ac_cpp='$CPP $CPPFLAGS'
11872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876
depcc="$CC" am_compiler_list=
11878
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11879
$as_echo_n "checking dependency style of $depcc... " >&6; }
11880
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11881
$as_echo_n "(cached) " >&6
11883
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11884
# We make a subdir and do the tests there. Otherwise we can end up
11885
# making bogus files that we don't know about and never remove. For
11886
# instance it was reported that on HP-UX the gcc test will end up
11887
# making a dummy file named `D' -- because `-MD' means `put the output
11890
# Copy depcomp to subdir because otherwise we won't find it if we're
11891
# using a relative directory.
11892
cp "$am_depcomp" conftest.dir
11894
# We will build objects and dependencies in a subdirectory because
11895
# it helps to detect inapplicable dependency modes. For instance
11896
# both Tru64's cc and ICC support -MD to output dependencies as a
11897
# side effect of compilation, but ICC will put the dependencies in
11898
# the current directory while Tru64 will put them in the object
11902
am_cv_CC_dependencies_compiler_type=none
11903
if test "$am_compiler_list" = ""; then
11904
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11906
am__universal=false
11907
case " $depcc " in #(
11908
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11911
for depmode in $am_compiler_list; do
11912
# Setup a source with many dependencies, because some compilers
11913
# like to wrap large dependency lists on column 80 (with \), and
11914
# we should not choose a depcomp mode which is confused by this.
11916
# We need to recreate these files for each test, as the compiler may
11917
# overwrite some of them when testing with obscure command lines.
11918
# This happens at least with the AIX C compiler.
11920
for i in 1 2 3 4 5 6; do
11921
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11922
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11923
# Solaris 8's {/usr,}/bin/sh.
11924
touch sub/conftst$i.h
11926
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11928
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11929
# mode. It turns out that the SunPro C++ compiler does not properly
11930
# handle `-M -o', and we need to detect this. Also, some Intel
11931
# versions had trouble with output in subdirs
11932
am__obj=sub/conftest.${OBJEXT-o}
11933
am__minus_obj="-o $am__obj"
11936
# This depmode causes a compiler race in universal mode.
11937
test "$am__universal" = false || continue
11940
# after this tag, mechanisms are not by side-effect, so they'll
11941
# only be used when explicitly requested
11942
if test "x$enable_dependency_tracking" = xyes; then
11948
msvisualcpp | msvcmsys)
11949
# This compiler won't grok `-c -o', but also, the minuso test has
11950
# not run yet. These depmodes are late enough in the game, and
11951
# so weak that their functioning should not be impacted.
11952
am__obj=conftest.${OBJEXT-o}
11957
if depmode=$depmode \
11958
source=sub/conftest.c object=$am__obj \
11959
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11960
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11961
>/dev/null 2>conftest.err &&
11962
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11963
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11964
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11965
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11966
# icc doesn't choke on unknown options, it will just issue warnings
11967
# or remarks (even with -Werror). So we grep stderr for any message
11968
# that says an option was ignored or not supported.
11969
# When given -MP, icc 7.0 and 7.1 complain thusly:
11970
# icc: Command line warning: ignoring option '-M'; no argument required
11971
# The diagnosis changed in icc 8.0:
11972
# icc: Command line remark: option '-MP' not supported
11973
if (grep 'ignoring option' conftest.err ||
11974
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11975
am_cv_CC_dependencies_compiler_type=$depmode
11982
rm -rf conftest.dir
11984
am_cv_CC_dependencies_compiler_type=none
11988
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11989
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11990
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11993
test "x$enable_dependency_tracking" != xno \
11994
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11995
am__fastdepCC_TRUE=
11996
am__fastdepCC_FALSE='#'
11998
am__fastdepCC_TRUE='#'
11999
am__fastdepCC_FALSE=
12003
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
12004
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12005
if test "${ac_cv_prog_cc_c99+set}" = set; then
12006
$as_echo_n "(cached) " >&6
12008
ac_cv_prog_cc_c99=no
12010
cat >conftest.$ac_ext <<_ACEOF
12013
cat confdefs.h >>conftest.$ac_ext
12014
cat >>conftest.$ac_ext <<_ACEOF
12015
/* end confdefs.h. */
12016
#include <stdarg.h>
12017
#include <stdbool.h>
12018
#include <stdlib.h>
12022
// Check varargs macros. These examples are taken from C99 6.10.3.5.
12023
#define debug(...) fprintf (stderr, __VA_ARGS__)
12024
#define showlist(...) puts (#__VA_ARGS__)
12025
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12027
test_varargs_macros (void)
12032
debug ("X = %d\n", x);
12033
showlist (The first, second, and third items.);
12034
report (x>y, "x is %d but y is %d", x, y);
12037
// Check long long types.
12038
#define BIG64 18446744073709551615ull
12039
#define BIG32 4294967295ul
12040
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12042
your preprocessor is broken;
12046
your preprocessor is broken;
12048
static long long int bignum = -9223372036854775807LL;
12049
static unsigned long long int ubignum = BIG64;
12051
struct incomplete_array
12057
struct named_init {
12059
const wchar_t *name;
12063
typedef const char *ccp;
12066
test_restrict (ccp restrict text)
12068
// See if C++-style comments work.
12069
// Iterate through items via the restricted pointer.
12070
// Also check for declarations in for loops.
12071
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12076
// Check varargs and va_copy.
12078
test_varargs (const char *format, ...)
12081
va_start (args, format);
12083
va_copy (args_copy, args);
12093
case 's': // string
12094
str = va_arg (args_copy, const char *);
12097
number = va_arg (args_copy, int);
12100
fnumber = va_arg (args_copy, double);
12106
va_end (args_copy);
12115
_Bool success = false;
12118
if (test_restrict ("String literal") == 0)
12120
char *restrict newvar = "Another string";
12123
test_varargs ("s, d' f .", "string", 65, 34.234);
12124
test_varargs_macros ();
12126
// Check flexible array members.
12127
struct incomplete_array *ia =
12128
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12130
for (int i = 0; i < ia->datasize; ++i)
12131
ia->data[i] = i * 1.234;
12133
// Check named initializers.
12134
struct named_init ni = {
12136
.name = L"Test wide string",
12137
.average = 543.34343,
12142
int dynamic_array[ni.number];
12143
dynamic_array[ni.number - 1] = 543;
12145
// work around unused variable warnings
12146
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12147
|| dynamic_array[ni.number - 1] != 543);
12153
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
12155
CC="$ac_save_CC $ac_arg"
12156
rm -f conftest.$ac_objext
12157
if { (ac_try="$ac_compile"
12158
case "(($ac_try" in
12159
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160
*) ac_try_echo=$ac_try;;
12162
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12163
$as_echo "$ac_try_echo") >&5
12164
(eval "$ac_compile") 2>conftest.er1
12166
grep -v '^ *+' conftest.er1 >conftest.err
12168
cat conftest.err >&5
12169
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170
(exit $ac_status); } && {
12171
test -z "$ac_c_werror_flag" ||
12172
test ! -s conftest.err
12173
} && test -s conftest.$ac_objext; then
12174
ac_cv_prog_cc_c99=$ac_arg
12176
$as_echo "$as_me: failed program was:" >&5
12177
sed 's/^/| /' conftest.$ac_ext >&5
12182
rm -f core conftest.err conftest.$ac_objext
12183
test "x$ac_cv_prog_cc_c99" != "xno" && break
12185
rm -f conftest.$ac_ext
12190
case "x$ac_cv_prog_cc_c99" in
12192
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
12193
$as_echo "none needed" >&6; } ;;
12195
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
12196
$as_echo "unsupported" >&6; } ;;
12198
CC="$CC $ac_cv_prog_cc_c99"
12199
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
12200
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12207
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12208
if test -n "$ac_tool_prefix"; then
12209
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12210
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12211
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12212
$as_echo_n "checking for $ac_word... " >&6; }
12213
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12214
$as_echo_n "(cached) " >&6
12216
case $PKG_CONFIG in
12218
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222
for as_dir in $PATH
12225
test -z "$as_dir" && as_dir=.
12226
for ac_exec_ext in '' $ac_executable_extensions; do
12227
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12229
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12240
if test -n "$PKG_CONFIG"; then
12241
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12242
$as_echo "$PKG_CONFIG" >&6; }
12244
{ $as_echo "$as_me:$LINENO: result: no" >&5
12245
$as_echo "no" >&6; }
12250
if test -z "$ac_cv_path_PKG_CONFIG"; then
12251
ac_pt_PKG_CONFIG=$PKG_CONFIG
12252
# Extract the first word of "pkg-config", so it can be a program name with args.
12253
set dummy pkg-config; ac_word=$2
12254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12255
$as_echo_n "checking for $ac_word... " >&6; }
12256
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12257
$as_echo_n "(cached) " >&6
12259
case $ac_pt_PKG_CONFIG in
12261
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265
for as_dir in $PATH
12268
test -z "$as_dir" && as_dir=.
12269
for ac_exec_ext in '' $ac_executable_extensions; do
12270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12272
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12282
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12283
if test -n "$ac_pt_PKG_CONFIG"; then
12284
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12285
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12287
{ $as_echo "$as_me:$LINENO: result: no" >&5
12288
$as_echo "no" >&6; }
12291
if test "x$ac_pt_PKG_CONFIG" = x; then
12294
case $cross_compiling:$ac_tool_warned in
12296
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12297
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12298
ac_tool_warned=yes ;;
12300
PKG_CONFIG=$ac_pt_PKG_CONFIG
12303
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12307
if test -n "$PKG_CONFIG"; then
12308
_pkg_min_version=0.9.0
12309
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12310
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12311
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12312
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12313
$as_echo "yes" >&6; }
12315
{ $as_echo "$as_me:$LINENO: result: no" >&5
12316
$as_echo "no" >&6; }
12324
if test "x$GCC" = xyes ; then
12325
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12326
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12327
-Wbad-function-cast -Wformat=2"
12328
case `$CC -dumpversion` in
12330
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12334
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
12335
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
12336
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
12337
$as_echo_n "(cached) " >&6
12339
cat >conftest.$ac_ext <<_ACEOF
12342
cat confdefs.h >>conftest.$ac_ext
12343
cat >>conftest.$ac_ext <<_ACEOF
12344
/* end confdefs.h. */
12345
$ac_includes_default
12357
rm -f conftest.$ac_objext
12358
if { (ac_try="$ac_compile"
12359
case "(($ac_try" in
12360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361
*) ac_try_echo=$ac_try;;
12363
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12364
$as_echo "$ac_try_echo") >&5
12365
(eval "$ac_compile") 2>conftest.er1
12367
grep -v '^ *+' conftest.er1 >conftest.err
12369
cat conftest.err >&5
12370
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371
(exit $ac_status); } && {
12372
test -z "$ac_c_werror_flag" ||
12373
test ! -s conftest.err
12374
} && test -s conftest.$ac_objext; then
12375
ac_cv_have_decl___SUNPRO_C=yes
12377
$as_echo "$as_me: failed program was:" >&5
12378
sed 's/^/| /' conftest.$ac_ext >&5
12380
ac_cv_have_decl___SUNPRO_C=no
12383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
12386
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
12387
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
12393
if test "x$SUNCC" = "xyes"; then
12404
# Check whether --enable-strict-compilation was given.
12405
if test "${enable_strict_compilation+set}" = set; then
12406
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12411
if test "x$STRICT_COMPILE" = "xyes"; then
12412
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
12413
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
12414
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
12415
$as_echo_n "(cached) " >&6
12417
cat >conftest.$ac_ext <<_ACEOF
12420
cat confdefs.h >>conftest.$ac_ext
12421
cat >>conftest.$ac_ext <<_ACEOF
12422
/* end confdefs.h. */
12423
$ac_includes_default
12435
rm -f conftest.$ac_objext
12436
if { (ac_try="$ac_compile"
12437
case "(($ac_try" in
12438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439
*) ac_try_echo=$ac_try;;
12441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12442
$as_echo "$ac_try_echo") >&5
12443
(eval "$ac_compile") 2>conftest.er1
12445
grep -v '^ *+' conftest.er1 >conftest.err
12447
cat conftest.err >&5
12448
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449
(exit $ac_status); } && {
12450
test -z "$ac_c_werror_flag" ||
12451
test ! -s conftest.err
12452
} && test -s conftest.$ac_objext; then
12453
ac_cv_have_decl___SUNPRO_C=yes
12455
$as_echo "$as_me: failed program was:" >&5
12456
sed 's/^/| /' conftest.$ac_ext >&5
12458
ac_cv_have_decl___SUNPRO_C=no
12461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
12464
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
12465
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
12471
{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
12472
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
12473
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
12474
$as_echo_n "(cached) " >&6
12476
cat >conftest.$ac_ext <<_ACEOF
12479
cat confdefs.h >>conftest.$ac_ext
12480
cat >>conftest.$ac_ext <<_ACEOF
12481
/* end confdefs.h. */
12482
$ac_includes_default
12486
#ifndef __INTEL_COMPILER
12487
(void) __INTEL_COMPILER;
12494
rm -f conftest.$ac_objext
12495
if { (ac_try="$ac_compile"
12496
case "(($ac_try" in
12497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498
*) ac_try_echo=$ac_try;;
12500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501
$as_echo "$ac_try_echo") >&5
12502
(eval "$ac_compile") 2>conftest.er1
12504
grep -v '^ *+' conftest.er1 >conftest.err
12506
cat conftest.err >&5
12507
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508
(exit $ac_status); } && {
12509
test -z "$ac_c_werror_flag" ||
12510
test ! -s conftest.err
12511
} && test -s conftest.$ac_objext; then
12512
ac_cv_have_decl___INTEL_COMPILER=yes
12514
$as_echo "$as_me: failed program was:" >&5
12515
sed 's/^/| /' conftest.$ac_ext >&5
12517
ac_cv_have_decl___INTEL_COMPILER=no
12520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
12523
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
12524
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
12530
if test "x$GCC" = xyes ; then
12531
STRICT_CFLAGS="-pedantic -Werror"
12532
elif test "x$SUNCC" = "xyes"; then
12533
STRICT_CFLAGS="-errwarn"
12534
elif test "x$INTELCC" = "xyes"; then
12535
STRICT_CFLAGS="-Werror"
12538
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12543
# Check whether --with-release-version was given.
12544
if test "${with_release_version+set}" = set; then
12545
withval=$with_release_version; RELEASE_VERSION="$withval"
12550
if test "x$RELEASE_VERSION" != "x"; then
12551
PACKAGE="$PACKAGE-$RELEASE_VERSION"
12552
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12553
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
12554
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12557
cat >>confdefs.h <<_ACEOF
12558
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12561
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12562
if test "x$PVM" = "x"; then
12566
cat >>confdefs.h <<_ACEOF
12567
#define PACKAGE_VERSION_MINOR $PVM
12570
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12571
if test "x$PVP" = "x"; then
12575
cat >>confdefs.h <<_ACEOF
12576
#define PACKAGE_VERSION_PATCHLEVEL $PVP
12581
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12582
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12583
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12584
echo 'git directory not found: installing possibly empty changelog.' >&2)"
12589
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12590
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12591
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12592
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12593
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12599
if test x$APP_MAN_SUFFIX = x ; then
12602
if test x$APP_MAN_DIR = x ; then
12603
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12606
if test x$LIB_MAN_SUFFIX = x ; then
12609
if test x$LIB_MAN_DIR = x ; then
12610
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12613
if test x$FILE_MAN_SUFFIX = x ; then
12615
solaris*) FILE_MAN_SUFFIX=4 ;;
12616
*) FILE_MAN_SUFFIX=5 ;;
12619
if test x$FILE_MAN_DIR = x ; then
12620
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12623
if test x$MISC_MAN_SUFFIX = x ; then
12625
solaris*) MISC_MAN_SUFFIX=5 ;;
12626
*) MISC_MAN_SUFFIX=7 ;;
12629
if test x$MISC_MAN_DIR = x ; then
12630
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12633
if test x$DRIVER_MAN_SUFFIX = x ; then
12635
solaris*) DRIVER_MAN_SUFFIX=7 ;;
12636
*) DRIVER_MAN_SUFFIX=4 ;;
12639
if test x$DRIVER_MAN_DIR = x ; then
12640
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12643
if test x$ADMIN_MAN_SUFFIX = x ; then
12645
solaris*) ADMIN_MAN_SUFFIX=1m ;;
12646
*) ADMIN_MAN_SUFFIX=8 ;;
12649
if test x$ADMIN_MAN_DIR = x ; then
12650
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12667
# Check whether --enable-silent-rules was given.
12668
if test "${enable_silent_rules+set}" = set; then
12669
enableval=$enable_silent_rules;
12672
case $enable_silent_rules in
12673
yes) AM_DEFAULT_VERBOSITY=0;;
12674
no) AM_DEFAULT_VERBOSITY=1;;
12675
*) AM_DEFAULT_VERBOSITY=0;;
12681
{ $as_echo "$as_me:$LINENO: checking which optional backends will be build" >&5
12682
$as_echo_n "checking which optional backends will be build... " >&6; }
12685
{ $as_echo "$as_me:$LINENO: result: eventcomm" >&5
12686
$as_echo "eventcomm" >&6; }
12687
BUILD_EVENTCOMM="yes"
12690
*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
12691
{ $as_echo "$as_me:$LINENO: result: psmcomm" >&5
12692
$as_echo "psmcomm" >&6; }
12693
BUILD_EVENTCOMM="no"
12694
BUILD_PSMCOMM="yes"
12697
{ $as_echo "$as_me:$LINENO: result: none" >&5
12698
$as_echo "none" >&6; }
12699
BUILD_EVENTCOMM="no"
12703
if test "x${BUILD_EVENTCOMM}" = "xyes"; then
12704
BUILD_EVENTCOMM_TRUE=
12705
BUILD_EVENTCOMM_FALSE='#'
12707
BUILD_EVENTCOMM_TRUE='#'
12708
BUILD_EVENTCOMM_FALSE=
12711
if test "x${BUILD_EVENTCOMM}" = "xyes" ; then
12713
cat >>confdefs.h <<\_ACEOF
12714
#define BUILD_EVENTCOMM 1
12718
if test "x${BUILD_PSMCOMM}" = "xyes"; then
12719
BUILD_PSMCOMM_TRUE=
12720
BUILD_PSMCOMM_FALSE='#'
12722
BUILD_PSMCOMM_TRUE='#'
12723
BUILD_PSMCOMM_FALSE=
12726
if test "x${BUILD_PSMCOMM}" = "xyes" ; then
12728
cat >>confdefs.h <<\_ACEOF
12729
#define BUILD_PSMCOMM 1
12735
# Check whether --with-xorg-module-dir was given.
12736
if test "${with_xorg_module_dir+set}" = set; then
12737
withval=$with_xorg_module_dir; moduledir="$withval"
12739
moduledir="$libdir/xorg/modules"
12742
inputdir=${moduledir}/input
12745
# Checks for extensions
12748
SAVE_CFLAGS="$CFLAGS"
12749
CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12750
cat >conftest.$ac_ext <<_ACEOF
12753
cat confdefs.h >>conftest.$ac_ext
12754
cat >>conftest.$ac_ext <<_ACEOF
12755
/* end confdefs.h. */
12757
#include "xorg-server.h"
12758
#if !defined XINPUT
12759
#error XINPUT not defined
12770
rm -f conftest.$ac_objext
12771
if { (ac_try="$ac_compile"
12772
case "(($ac_try" in
12773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
*) ac_try_echo=$ac_try;;
12776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12777
$as_echo "$ac_try_echo") >&5
12778
(eval "$ac_compile") 2>conftest.er1
12780
grep -v '^ *+' conftest.er1 >conftest.err
12782
cat conftest.err >&5
12783
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
(exit $ac_status); } && {
12785
test -z "$ac_c_werror_flag" ||
12786
test ! -s conftest.err
12787
} && test -s conftest.$ac_objext; then
12790
$as_echo "$as_me: failed program was:" >&5
12791
sed 's/^/| /' conftest.$ac_ext >&5
12796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797
CFLAGS="$SAVE_CFLAGS"
12798
{ $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
12799
$as_echo_n "checking if XINPUT is defined... " >&6; }
12800
{ $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
12801
$as_echo "$_EXT_CHECK" >&6; }
12802
if test "$_EXT_CHECK" != no; then
12803
REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
12807
# Checks for pkg-config packages
12810
{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
12811
$as_echo_n "checking for XORG... " >&6; }
12813
if test -n "$XORG_CFLAGS"; then
12814
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12815
elif test -n "$PKG_CONFIG"; then
12816
if test -n "$PKG_CONFIG" && \
12817
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
12818
($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
12820
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821
(exit $ac_status); }; then
12822
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
12829
if test -n "$XORG_LIBS"; then
12830
pkg_cv_XORG_LIBS="$XORG_LIBS"
12831
elif test -n "$PKG_CONFIG"; then
12832
if test -n "$PKG_CONFIG" && \
12833
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
12834
($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
12836
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837
(exit $ac_status); }; then
12838
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
12848
if test $pkg_failed = yes; then
12850
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12851
_pkg_short_errors_supported=yes
12853
_pkg_short_errors_supported=no
12855
if test $_pkg_short_errors_supported = yes; then
12856
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
12858
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
12860
# Put the nasty error message in config.log where it belongs
12861
echo "$XORG_PKG_ERRORS" >&5
12863
{ { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
12867
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12868
installed software in a non-standard prefix.
12870
Alternatively, you may set the environment variables XORG_CFLAGS
12871
and XORG_LIBS to avoid the need to call pkg-config.
12872
See the pkg-config man page for more details.
12874
$as_echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
12878
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12879
installed software in a non-standard prefix.
12881
Alternatively, you may set the environment variables XORG_CFLAGS
12882
and XORG_LIBS to avoid the need to call pkg-config.
12883
See the pkg-config man page for more details.
12885
{ (exit 1); exit 1; }; }
12886
elif test $pkg_failed = untried; then
12887
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12888
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12889
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12890
is in your PATH or set the PKG_CONFIG environment variable to the full
12891
path to pkg-config.
12893
Alternatively, you may set the environment variables XORG_CFLAGS
12894
and XORG_LIBS to avoid the need to call pkg-config.
12895
See the pkg-config man page for more details.
12897
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12898
See \`config.log' for more details." >&5
12899
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12900
is in your PATH or set the PKG_CONFIG environment variable to the full
12901
path to pkg-config.
12903
Alternatively, you may set the environment variables XORG_CFLAGS
12904
and XORG_LIBS to avoid the need to call pkg-config.
12905
See the pkg-config man page for more details.
12907
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12908
See \`config.log' for more details." >&2;}
12909
{ (exit 1); exit 1; }; }; }
12911
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12912
XORG_LIBS=$pkg_cv_XORG_LIBS
12913
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12914
$as_echo "yes" >&6; }
12917
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12922
{ $as_echo "$as_me:$LINENO: checking for XORG16" >&5
12923
$as_echo_n "checking for XORG16... " >&6; }
12925
if test -n "$XORG16_CFLAGS"; then
12926
pkg_cv_XORG16_CFLAGS="$XORG16_CFLAGS"
12927
elif test -n "$PKG_CONFIG"; then
12928
if test -n "$PKG_CONFIG" && \
12929
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6\"") >&5
12930
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6") 2>&5
12932
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933
(exit $ac_status); }; then
12934
pkg_cv_XORG16_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6" 2>/dev/null`
12941
if test -n "$XORG16_LIBS"; then
12942
pkg_cv_XORG16_LIBS="$XORG16_LIBS"
12943
elif test -n "$PKG_CONFIG"; then
12944
if test -n "$PKG_CONFIG" && \
12945
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6\"") >&5
12946
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6") 2>&5
12948
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949
(exit $ac_status); }; then
12950
pkg_cv_XORG16_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6" 2>/dev/null`
12960
if test $pkg_failed = yes; then
12962
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12963
_pkg_short_errors_supported=yes
12965
_pkg_short_errors_supported=no
12967
if test $_pkg_short_errors_supported = yes; then
12968
XORG16_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6" 2>&1`
12970
XORG16_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6" 2>&1`
12972
# Put the nasty error message in config.log where it belongs
12973
echo "$XORG16_PKG_ERRORS" >&5
12975
{ $as_echo "$as_me:$LINENO: result: no" >&5
12976
$as_echo "no" >&6; }
12977
HAVE_PROPERTIES="no"
12978
elif test $pkg_failed = untried; then
12979
HAVE_PROPERTIES="no"
12981
XORG16_CFLAGS=$pkg_cv_XORG16_CFLAGS
12982
XORG16_LIBS=$pkg_cv_XORG16_LIBS
12983
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12984
$as_echo "yes" >&6; }
12985
HAVE_PROPERTIES="yes";
12986
cat >>confdefs.h <<\_ACEOF
12987
#define HAVE_PROPERTIES 1
12991
if test "$HAVE_PROPERTIES" = "yes" ; then
12992
HAVE_PROPERTIES_TRUE=
12993
HAVE_PROPERTIES_FALSE='#'
12995
HAVE_PROPERTIES_TRUE='#'
12996
HAVE_PROPERTIES_FALSE=
13001
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
13004
# Checks for libraries.
13005
# Check whether --enable-tools was given.
13006
if test "${enable_tools+set}" = set; then
13007
enableval=$enable_tools; build_tools="$enableval"
13013
if test "x$build_tools" != "xno"; then
13014
# Record.h is either in recordproto up to 1.13.2 or in libXtst 1.1.
13017
{ $as_echo "$as_me:$LINENO: checking for XTST_1_1" >&5
13018
$as_echo_n "checking for XTST_1_1... " >&6; }
13020
if test -n "$XTST_1_1_CFLAGS"; then
13021
pkg_cv_XTST_1_1_CFLAGS="$XTST_1_1_CFLAGS"
13022
elif test -n "$PKG_CONFIG"; then
13023
if test -n "$PKG_CONFIG" && \
13024
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst >= 1.0.99.1\"") >&5
13025
($PKG_CONFIG --exists --print-errors "xtst >= 1.0.99.1") 2>&5
13027
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028
(exit $ac_status); }; then
13029
pkg_cv_XTST_1_1_CFLAGS=`$PKG_CONFIG --cflags "xtst >= 1.0.99.1" 2>/dev/null`
13036
if test -n "$XTST_1_1_LIBS"; then
13037
pkg_cv_XTST_1_1_LIBS="$XTST_1_1_LIBS"
13038
elif test -n "$PKG_CONFIG"; then
13039
if test -n "$PKG_CONFIG" && \
13040
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst >= 1.0.99.1\"") >&5
13041
($PKG_CONFIG --exists --print-errors "xtst >= 1.0.99.1") 2>&5
13043
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044
(exit $ac_status); }; then
13045
pkg_cv_XTST_1_1_LIBS=`$PKG_CONFIG --libs "xtst >= 1.0.99.1" 2>/dev/null`
13055
if test $pkg_failed = yes; then
13057
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13058
_pkg_short_errors_supported=yes
13060
_pkg_short_errors_supported=no
13062
if test $_pkg_short_errors_supported = yes; then
13063
XTST_1_1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst >= 1.0.99.1" 2>&1`
13065
XTST_1_1_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst >= 1.0.99.1" 2>&1`
13067
# Put the nasty error message in config.log where it belongs
13068
echo "$XTST_1_1_PKG_ERRORS" >&5
13070
{ $as_echo "$as_me:$LINENO: result: no" >&5
13071
$as_echo "no" >&6; }
13073
elif test $pkg_failed = untried; then
13076
XTST_1_1_CFLAGS=$pkg_cv_XTST_1_1_CFLAGS
13077
XTST_1_1_LIBS=$pkg_cv_XTST_1_1_LIBS
13078
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13079
$as_echo "yes" >&6; }
13084
{ $as_echo "$as_me:$LINENO: checking for RECORDPROTO_1_13" >&5
13085
$as_echo_n "checking for RECORDPROTO_1_13... " >&6; }
13087
if test -n "$RECORDPROTO_1_13_CFLAGS"; then
13088
pkg_cv_RECORDPROTO_1_13_CFLAGS="$RECORDPROTO_1_13_CFLAGS"
13089
elif test -n "$PKG_CONFIG"; then
13090
if test -n "$PKG_CONFIG" && \
13091
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst recordproto < 1.13.99.1\"") >&5
13092
($PKG_CONFIG --exists --print-errors "xtst recordproto < 1.13.99.1") 2>&5
13094
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095
(exit $ac_status); }; then
13096
pkg_cv_RECORDPROTO_1_13_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto < 1.13.99.1" 2>/dev/null`
13103
if test -n "$RECORDPROTO_1_13_LIBS"; then
13104
pkg_cv_RECORDPROTO_1_13_LIBS="$RECORDPROTO_1_13_LIBS"
13105
elif test -n "$PKG_CONFIG"; then
13106
if test -n "$PKG_CONFIG" && \
13107
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtst recordproto < 1.13.99.1\"") >&5
13108
($PKG_CONFIG --exists --print-errors "xtst recordproto < 1.13.99.1") 2>&5
13110
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111
(exit $ac_status); }; then
13112
pkg_cv_RECORDPROTO_1_13_LIBS=`$PKG_CONFIG --libs "xtst recordproto < 1.13.99.1" 2>/dev/null`
13122
if test $pkg_failed = yes; then
13124
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13125
_pkg_short_errors_supported=yes
13127
_pkg_short_errors_supported=no
13129
if test $_pkg_short_errors_supported = yes; then
13130
RECORDPROTO_1_13_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto < 1.13.99.1" 2>&1`
13132
RECORDPROTO_1_13_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto < 1.13.99.1" 2>&1`
13134
# Put the nasty error message in config.log where it belongs
13135
echo "$RECORDPROTO_1_13_PKG_ERRORS" >&5
13137
{ $as_echo "$as_me:$LINENO: result: no" >&5
13138
$as_echo "no" >&6; }
13139
HAVE_RECORDPROTO="no"
13140
elif test $pkg_failed = untried; then
13141
HAVE_RECORDPROTO="no"
13143
RECORDPROTO_1_13_CFLAGS=$pkg_cv_RECORDPROTO_1_13_CFLAGS
13144
RECORDPROTO_1_13_LIBS=$pkg_cv_RECORDPROTO_1_13_LIBS
13145
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13146
$as_echo "yes" >&6; }
13147
HAVE_RECORDPROTO="yes"
13150
if test "x$HAVE_LIBXTST" = "xyes" || test "x$HAVE_RECORDPROTO" = "xyes" ; then
13152
cat >>confdefs.h <<\_ACEOF
13153
#define HAVE_XRECORD /**/
13160
{ $as_echo "$as_me:$LINENO: checking for XI" >&5
13161
$as_echo_n "checking for XI... " >&6; }
13163
if test -n "$XI_CFLAGS"; then
13164
pkg_cv_XI_CFLAGS="$XI_CFLAGS"
13165
elif test -n "$PKG_CONFIG"; then
13166
if test -n "$PKG_CONFIG" && \
13167
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xi >= 1.2 xorg-server >= 1.6\"") >&5
13168
($PKG_CONFIG --exists --print-errors "x11 xi >= 1.2 xorg-server >= 1.6") 2>&5
13170
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171
(exit $ac_status); }; then
13172
pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 xi >= 1.2 xorg-server >= 1.6" 2>/dev/null`
13179
if test -n "$XI_LIBS"; then
13180
pkg_cv_XI_LIBS="$XI_LIBS"
13181
elif test -n "$PKG_CONFIG"; then
13182
if test -n "$PKG_CONFIG" && \
13183
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xi >= 1.2 xorg-server >= 1.6\"") >&5
13184
($PKG_CONFIG --exists --print-errors "x11 xi >= 1.2 xorg-server >= 1.6") 2>&5
13186
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187
(exit $ac_status); }; then
13188
pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 xi >= 1.2 xorg-server >= 1.6" 2>/dev/null`
13198
if test $pkg_failed = yes; then
13200
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13201
_pkg_short_errors_supported=yes
13203
_pkg_short_errors_supported=no
13205
if test $_pkg_short_errors_supported = yes; then
13206
XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xi >= 1.2 xorg-server >= 1.6" 2>&1`
13208
XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xi >= 1.2 xorg-server >= 1.6" 2>&1`
13210
# Put the nasty error message in config.log where it belongs
13211
echo "$XI_PKG_ERRORS" >&5
13213
{ $as_echo "$as_me:$LINENO: result: no" >&5
13214
$as_echo "no" >&6; }
13216
if test "x$build_tools" = "xyes"; then
13217
{ { $as_echo "$as_me:$LINENO: error: Dependencies failed for synclient and syndaemon." >&5
13218
$as_echo "$as_me: error: Dependencies failed for synclient and syndaemon." >&2;}
13219
{ (exit 1); exit 1; }; }
13221
{ $as_echo "$as_me:$LINENO: WARNING: Not building synclient and syndaemon." >&5
13222
$as_echo "$as_me: WARNING: Not building synclient and syndaemon." >&2;}
13225
elif test $pkg_failed = untried; then
13227
if test "x$build_tools" = "xyes"; then
13228
{ { $as_echo "$as_me:$LINENO: error: Dependencies failed for synclient and syndaemon." >&5
13229
$as_echo "$as_me: error: Dependencies failed for synclient and syndaemon." >&2;}
13230
{ (exit 1); exit 1; }; }
13232
{ $as_echo "$as_me:$LINENO: WARNING: Not building synclient and syndaemon." >&5
13233
$as_echo "$as_me: WARNING: Not building synclient and syndaemon." >&2;}
13237
XI_CFLAGS=$pkg_cv_XI_CFLAGS
13238
XI_LIBS=$pkg_cv_XI_LIBS
13239
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13240
$as_echo "yes" >&6; }
13242
cat >>confdefs.h <<\_ACEOF
13243
#define BUILD_TOOLS 1
13248
if test "$BUILD_TOOLS" = "yes" ; then
13250
BUILD_TOOLS_FALSE='#'
13252
BUILD_TOOLS_TRUE='#'
13258
# Checks for header files.
13259
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13260
$as_echo_n "checking for ANSI C header files... " >&6; }
13261
if test "${ac_cv_header_stdc+set}" = set; then
13262
$as_echo_n "(cached) " >&6
13264
cat >conftest.$ac_ext <<_ACEOF
13267
cat confdefs.h >>conftest.$ac_ext
13268
cat >>conftest.$ac_ext <<_ACEOF
13269
/* end confdefs.h. */
13270
#include <stdlib.h>
13271
#include <stdarg.h>
13272
#include <string.h>
13283
rm -f conftest.$ac_objext
13284
if { (ac_try="$ac_compile"
13285
case "(($ac_try" in
13286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287
*) ac_try_echo=$ac_try;;
13289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13290
$as_echo "$ac_try_echo") >&5
13291
(eval "$ac_compile") 2>conftest.er1
13293
grep -v '^ *+' conftest.er1 >conftest.err
13295
cat conftest.err >&5
13296
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297
(exit $ac_status); } && {
13298
test -z "$ac_c_werror_flag" ||
13299
test ! -s conftest.err
13300
} && test -s conftest.$ac_objext; then
13301
ac_cv_header_stdc=yes
13303
$as_echo "$as_me: failed program was:" >&5
13304
sed 's/^/| /' conftest.$ac_ext >&5
13306
ac_cv_header_stdc=no
13309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311
if test $ac_cv_header_stdc = yes; then
13312
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13313
cat >conftest.$ac_ext <<_ACEOF
13316
cat confdefs.h >>conftest.$ac_ext
13317
cat >>conftest.$ac_ext <<_ACEOF
13318
/* end confdefs.h. */
13319
#include <string.h>
13322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13323
$EGREP "memchr" >/dev/null 2>&1; then
13326
ac_cv_header_stdc=no
13332
if test $ac_cv_header_stdc = yes; then
13333
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13334
cat >conftest.$ac_ext <<_ACEOF
13337
cat confdefs.h >>conftest.$ac_ext
13338
cat >>conftest.$ac_ext <<_ACEOF
13339
/* end confdefs.h. */
13340
#include <stdlib.h>
13343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13344
$EGREP "free" >/dev/null 2>&1; then
13347
ac_cv_header_stdc=no
13353
if test $ac_cv_header_stdc = yes; then
13354
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13355
if test "$cross_compiling" = yes; then
13358
cat >conftest.$ac_ext <<_ACEOF
13361
cat confdefs.h >>conftest.$ac_ext
13362
cat >>conftest.$ac_ext <<_ACEOF
13363
/* end confdefs.h. */
13365
#include <stdlib.h>
13366
#if ((' ' & 0x0FF) == 0x020)
13367
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13368
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13370
# define ISLOWER(c) \
13371
(('a' <= (c) && (c) <= 'i') \
13372
|| ('j' <= (c) && (c) <= 'r') \
13373
|| ('s' <= (c) && (c) <= 'z'))
13374
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13382
for (i = 0; i < 256; i++)
13383
if (XOR (islower (i), ISLOWER (i))
13384
|| toupper (i) != TOUPPER (i))
13389
rm -f conftest$ac_exeext
13390
if { (ac_try="$ac_link"
13391
case "(($ac_try" in
13392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393
*) ac_try_echo=$ac_try;;
13395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13396
$as_echo "$ac_try_echo") >&5
13397
(eval "$ac_link") 2>&5
13399
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13401
{ (case "(($ac_try" in
13402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403
*) ac_try_echo=$ac_try;;
13405
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406
$as_echo "$ac_try_echo") >&5
13407
(eval "$ac_try") 2>&5
13409
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410
(exit $ac_status); }; }; then
13413
$as_echo "$as_me: program exited with status $ac_status" >&5
13414
$as_echo "$as_me: failed program was:" >&5
13415
sed 's/^/| /' conftest.$ac_ext >&5
13417
( exit $ac_status )
13418
ac_cv_header_stdc=no
13420
rm -rf conftest.dSYM
13421
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13428
$as_echo "$ac_cv_header_stdc" >&6; }
13429
if test $ac_cv_header_stdc = yes; then
13431
cat >>confdefs.h <<\_ACEOF
13432
#define STDC_HEADERS 1
13441
if test x$APP_MAN_SUFFIX = x ; then
13444
if test x$APP_MAN_DIR = x ; then
13445
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13448
if test x$LIB_MAN_SUFFIX = x ; then
13451
if test x$LIB_MAN_DIR = x ; then
13452
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13455
if test x$FILE_MAN_SUFFIX = x ; then
13457
solaris*) FILE_MAN_SUFFIX=4 ;;
13458
*) FILE_MAN_SUFFIX=5 ;;
13461
if test x$FILE_MAN_DIR = x ; then
13462
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13465
if test x$MISC_MAN_SUFFIX = x ; then
13467
solaris*) MISC_MAN_SUFFIX=5 ;;
13468
*) MISC_MAN_SUFFIX=7 ;;
13471
if test x$MISC_MAN_DIR = x ; then
13472
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13475
if test x$DRIVER_MAN_SUFFIX = x ; then
13477
solaris*) DRIVER_MAN_SUFFIX=7 ;;
13478
*) DRIVER_MAN_SUFFIX=4 ;;
13481
if test x$DRIVER_MAN_DIR = x ; then
13482
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13485
if test x$ADMIN_MAN_SUFFIX = x ; then
13487
solaris*) ADMIN_MAN_SUFFIX=1m ;;
13488
*) ADMIN_MAN_SUFFIX=8 ;;
13491
if test x$ADMIN_MAN_DIR = x ; then
13492
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13511
# Check whether --with-release-version was given.
13512
if test "${with_release_version+set}" = set; then
13513
withval=$with_release_version; RELEASE_VERSION="$withval"
13518
if test "x$RELEASE_VERSION" != "x"; then
13519
PACKAGE="$PACKAGE-$RELEASE_VERSION"
13520
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13521
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
13522
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13525
cat >>confdefs.h <<_ACEOF
13526
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
13529
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
13530
if test "x$PVM" = "x"; then
13534
cat >>confdefs.h <<_ACEOF
13535
#define PACKAGE_VERSION_MINOR $PVM
13538
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
13539
if test "x$PVP" = "x"; then
13543
cat >>confdefs.h <<_ACEOF
13544
#define PACKAGE_VERSION_PATCHLEVEL $PVP
13549
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile fdi/Makefile include/Makefile xorg-synaptics.pc"
13551
cat >confcache <<\_ACEOF
13552
# This file is a shell script that caches the results of configure
13553
# tests run on this system so they can be shared between configure
13554
# scripts and configure runs, see configure's option --config-cache.
13555
# It is not useful on other systems. If it contains results you don't
13556
# want to keep, you may remove or edit it.
13558
# config.status only pays attention to the cache file if you give it
13559
# the --recheck option to rerun configure.
13561
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13562
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13563
# following values.
13567
# The following way of writing the cache mishandles newlines in values,
13568
# but we know of no workaround that is simple, portable, and efficient.
13569
# So, we kill variables containing newlines.
13570
# Ultrix sh set writes to stderr and can't be redirected directly,
13571
# and sets the high bit in the cache file unless we assign to the vars.
13573
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13574
eval ac_val=\$$ac_var
13578
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13579
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13582
_ | IFS | as_nl) ;; #(
13583
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13584
*) $as_unset $ac_var ;;
13590
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13591
*${as_nl}ac_space=\ *)
13592
# `set' does not quote correctly, so add quotes (double-quote
13593
# substitution turns \\\\ into \\, and sed turns \\ into \).
13596
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13599
# `set' quotes correctly as required by POSIX, so do not add quotes.
13600
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13609
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13611
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13613
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13614
if test -w "$cache_file"; then
13615
test "x$cache_file" != "x/dev/null" &&
13616
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13617
$as_echo "$as_me: updating cache $cache_file" >&6;}
13618
cat confcache >$cache_file
13620
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13621
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13626
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13627
# Let make expand exec_prefix.
13628
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13630
DEFS=-DHAVE_CONFIG_H
13634
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13635
# 1. Remove the extension, and $U if already installed.
13636
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13637
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13638
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13639
# will be set to the directory where LIBOBJS objects are built.
13640
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13641
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13643
LIBOBJS=$ac_libobjs
13645
LTLIBOBJS=$ac_ltlibobjs
13648
if test -n "$EXEEXT"; then
13650
am__EXEEXT_FALSE='#'
13652
am__EXEEXT_TRUE='#'
13656
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13657
{ { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13658
Usually this means the macro was only invoked conditionally." >&5
13659
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13660
Usually this means the macro was only invoked conditionally." >&2;}
13661
{ (exit 1); exit 1; }; }
13663
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13664
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13665
Usually this means the macro was only invoked conditionally." >&5
13666
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13667
Usually this means the macro was only invoked conditionally." >&2;}
13668
{ (exit 1); exit 1; }; }
13670
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13671
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13672
Usually this means the macro was only invoked conditionally." >&5
13673
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13674
Usually this means the macro was only invoked conditionally." >&2;}
13675
{ (exit 1); exit 1; }; }
13677
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13678
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13679
Usually this means the macro was only invoked conditionally." >&5
13680
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13681
Usually this means the macro was only invoked conditionally." >&2;}
13682
{ (exit 1); exit 1; }; }
13684
if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
13685
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EVENTCOMM\" was never defined.
13686
Usually this means the macro was only invoked conditionally." >&5
13687
$as_echo "$as_me: error: conditional \"BUILD_EVENTCOMM\" was never defined.
13688
Usually this means the macro was only invoked conditionally." >&2;}
13689
{ (exit 1); exit 1; }; }
13691
if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
13692
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PSMCOMM\" was never defined.
13693
Usually this means the macro was only invoked conditionally." >&5
13694
$as_echo "$as_me: error: conditional \"BUILD_PSMCOMM\" was never defined.
13695
Usually this means the macro was only invoked conditionally." >&2;}
13696
{ (exit 1); exit 1; }; }
13698
if test -z "${HAVE_PROPERTIES_TRUE}" && test -z "${HAVE_PROPERTIES_FALSE}"; then
13699
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PROPERTIES\" was never defined.
13700
Usually this means the macro was only invoked conditionally." >&5
13701
$as_echo "$as_me: error: conditional \"HAVE_PROPERTIES\" was never defined.
13702
Usually this means the macro was only invoked conditionally." >&2;}
13703
{ (exit 1); exit 1; }; }
13705
if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
13706
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TOOLS\" was never defined.
13707
Usually this means the macro was only invoked conditionally." >&5
13708
$as_echo "$as_me: error: conditional \"BUILD_TOOLS\" was never defined.
13709
Usually this means the macro was only invoked conditionally." >&2;}
13710
{ (exit 1); exit 1; }; }
13713
: ${CONFIG_STATUS=./config.status}
13715
ac_clean_files_save=$ac_clean_files
13716
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13717
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13718
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13719
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721
# Generated by $as_me.
13722
# Run this file to recreate the current configuration.
13723
# Compiler output produced by configure, useful for debugging
13724
# configure, is in config.log if it exists.
13727
ac_cs_recheck=false
13729
SHELL=\${CONFIG_SHELL-$SHELL}
13732
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733
## --------------------- ##
13734
## M4sh Initialization. ##
13735
## --------------------- ##
13737
# Be more Bourne compatible
13738
DUALCASE=1; export DUALCASE # for MKS sh
13739
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13742
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13743
# is contrary to our usage. Disable this feature.
13744
alias -g '${1+"$@"}'='"$@"'
13745
setopt NO_GLOB_SUBST
13747
case `(set -o) 2>/dev/null` in
13748
*posix*) set -o posix ;;
13757
# Avoid depending upon Character Ranges.
13758
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13759
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13760
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13761
as_cr_digits='0123456789'
13762
as_cr_alnum=$as_cr_Letters$as_cr_digits
13767
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13768
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13769
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13770
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13771
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13772
as_echo='printf %s\n'
13773
as_echo_n='printf %s'
13775
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13776
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13777
as_echo_n='/usr/ucb/echo -n'
13779
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13780
as_echo_n_body='eval
13784
expr "X$arg" : "X\\(.*\\)$as_nl";
13785
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13787
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13789
export as_echo_n_body
13790
as_echo_n='sh -c $as_echo_n_body as_echo'
13792
export as_echo_body
13793
as_echo='sh -c $as_echo_body as_echo'
13796
# The user is always right.
13797
if test "${PATH_SEPARATOR+set}" != set; then
13799
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13800
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13805
# Support unset when possible.
13806
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13814
# We need space, tab and new line, in precisely that order. Quoting is
13815
# there to prevent editors from complaining about space-tab.
13816
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13817
# splitting by setting IFS to empty value.)
13820
# Find who we are. Look in the path if we contain no directory separator.
13822
*[\\/]* ) as_myself=$0 ;;
13823
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824
for as_dir in $PATH
13827
test -z "$as_dir" && as_dir=.
13828
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13834
# We did not find ourselves, most probably we were run as `sh COMMAND'
13835
# in which case we are not to be found in the path.
13836
if test "x$as_myself" = x; then
13839
if test ! -f "$as_myself"; then
13840
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13841
{ (exit 1); exit 1; }
13844
# Work around bugs in pre-3.0 UWIN ksh.
13845
for as_var in ENV MAIL MAILPATH
13846
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13858
# Required to use basename.
13859
if expr a : '\(a\)' >/dev/null 2>&1 &&
13860
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13866
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13867
as_basename=basename
13873
# Name of the executable.
13874
as_me=`$as_basename -- "$0" ||
13875
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13876
X"$0" : 'X\(//\)$' \| \
13877
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13879
sed '/^.*\/\([^/][^/]*\)\/*$/{
13898
as_lineno_1=$LINENO
13899
as_lineno_2=$LINENO
13900
test "x$as_lineno_1" != "x$as_lineno_2" &&
13901
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13903
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13904
# uniformly replaced by the line number. The first 'sed' inserts a
13905
# line-number line after each line using $LINENO; the second 'sed'
13906
# does the real work. The second script uses 'N' to pair each
13907
# line-number line with the line containing $LINENO, and appends
13908
# trailing '-' during substitution so that $LINENO is not a special
13909
# case at line end.
13910
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13911
# scripts with optimization help from Paolo Bonzini. Blame Lee
13912
# E. McMahon (1931-1989) for sed's syntax. :-)
13924
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13927
' >$as_me.lineno &&
13928
chmod +x "$as_me.lineno" ||
13929
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13930
{ (exit 1); exit 1; }; }
13932
# Don't try to exec as it changes $[0], causing all sort of problems
13933
# (the dirname of $[0] is not the place where we might find the
13934
# original and so on. Autoconf is especially sensitive to this).
13935
. "./$as_me.lineno"
13936
# Exit status is that of the last command.
13941
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13947
ECHO_C= ECHO_N= ECHO_T=
13948
case `echo -n x` in
13950
case `echo 'x\c'` in
13951
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13957
if expr a : '\(a\)' >/dev/null 2>&1 &&
13958
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13964
rm -f conf$$ conf$$.exe conf$$.file
13965
if test -d conf$$.dir; then
13966
rm -f conf$$.dir/conf$$.file
13969
mkdir conf$$.dir 2>/dev/null
13971
if (echo >conf$$.file) 2>/dev/null; then
13972
if ln -s conf$$.file conf$$ 2>/dev/null; then
13974
# ... but there are two gotchas:
13975
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13976
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13977
# In both cases, we have to default to `cp -p'.
13978
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13980
elif ln conf$$.file conf$$ 2>/dev/null; then
13988
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13989
rmdir conf$$.dir 2>/dev/null
13991
if mkdir -p . 2>/dev/null; then
13994
test -d ./-p && rmdir ./-p
13998
if test -x / >/dev/null 2>&1; then
13999
as_test_x='test -x'
14001
if ls -dL / >/dev/null 2>&1; then
14008
if test -d "$1"; then
14014
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14015
???[sx]*):;;*)false;;esac;fi
14019
as_executable_p=$as_test_x
14021
# Sed expression to map a string onto a valid CPP name.
14022
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14024
# Sed expression to map a string onto a valid variable name.
14025
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14030
# Save the log message, to keep $[0] and so on meaningful, and to
14031
# report actual input values of CONFIG_FILES etc. instead of their
14032
# values after options handling.
14034
This file was extended by xf86-input-synaptics $as_me 1.2.2, which was
14035
generated by GNU Autoconf 2.63. Invocation command line was
14037
CONFIG_FILES = $CONFIG_FILES
14038
CONFIG_HEADERS = $CONFIG_HEADERS
14039
CONFIG_LINKS = $CONFIG_LINKS
14040
CONFIG_COMMANDS = $CONFIG_COMMANDS
14043
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14048
case $ac_config_files in *"
14049
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14052
case $ac_config_headers in *"
14053
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14057
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058
# Files that config.status was made for.
14059
config_files="$ac_config_files"
14060
config_headers="$ac_config_headers"
14061
config_commands="$ac_config_commands"
14065
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14067
\`$as_me' instantiates files from templates according to the
14068
current configuration.
14070
Usage: $0 [OPTION]... [FILE]...
14072
-h, --help print this help, then exit
14073
-V, --version print version number and configuration settings, then exit
14074
-q, --quiet, --silent
14075
do not print progress messages
14076
-d, --debug don't remove temporary files
14077
--recheck update $as_me by reconfiguring in the same conditions
14078
--file=FILE[:TEMPLATE]
14079
instantiate the configuration file FILE
14080
--header=FILE[:TEMPLATE]
14081
instantiate the configuration header FILE
14083
Configuration files:
14086
Configuration headers:
14089
Configuration commands:
14092
Report bugs to <bug-autoconf@gnu.org>."
14095
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14097
xf86-input-synaptics config.status 1.2.2
14098
configured by $0, generated by GNU Autoconf 2.63,
14099
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14101
Copyright (C) 2008 Free Software Foundation, Inc.
14102
This config.status script is free software; the Free Software Foundation
14103
gives unlimited permission to copy, distribute and modify it."
14110
test -n "\$AWK" || AWK=awk
14113
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114
# The default lists apply if the user does not specify any file.
14120
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14121
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14132
# Handling of the options.
14133
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14135
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14136
$as_echo "$ac_cs_version"; exit ;;
14137
--debug | --debu | --deb | --de | --d | -d )
14139
--file | --fil | --fi | --f )
14142
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14144
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14145
ac_need_defaults=false;;
14146
--header | --heade | --head | --hea )
14149
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14151
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14152
ac_need_defaults=false;;
14154
# Conflict between --help and --header
14155
{ $as_echo "$as_me: error: ambiguous option: $1
14156
Try \`$0 --help' for more information." >&2
14157
{ (exit 1); exit 1; }; };;
14158
--help | --hel | -h )
14159
$as_echo "$ac_cs_usage"; exit ;;
14160
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14161
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14164
# This is an error.
14165
-*) { $as_echo "$as_me: error: unrecognized option: $1
14166
Try \`$0 --help' for more information." >&2
14167
{ (exit 1); exit 1; }; } ;;
14169
*) ac_config_targets="$ac_config_targets $1"
14170
ac_need_defaults=false ;;
14176
ac_configure_extra_args=
14178
if $ac_cs_silent; then
14180
ac_configure_extra_args="$ac_configure_extra_args --silent"
14184
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14185
if \$ac_cs_recheck; then
14186
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14188
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14189
CONFIG_SHELL='$SHELL'
14190
export CONFIG_SHELL
14195
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14199
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14200
## Running $as_me. ##
14206
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14210
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14213
# The HP-UX ksh and POSIX shell print the target directory to stdout
14214
# if CDPATH is set.
14215
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14217
sed_quote_subst='$sed_quote_subst'
14218
double_quote_subst='$double_quote_subst'
14219
delay_variable_subst='$delay_variable_subst'
14220
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14221
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14222
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14223
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14224
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14225
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14226
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14227
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14228
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14229
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14230
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14231
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14232
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14233
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14234
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14235
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14236
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14237
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14238
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14239
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14240
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14241
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14242
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14243
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14244
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14245
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14246
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14247
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14248
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14249
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14250
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14251
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14252
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14253
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14254
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14255
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14256
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14257
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14258
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14259
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14260
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14261
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14262
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14263
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14264
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"`'
14265
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"`'
14266
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14267
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14268
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14269
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14270
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14271
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14272
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14273
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14274
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14275
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14276
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14277
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14278
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14279
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14280
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14281
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14282
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14283
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14284
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14285
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14286
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14287
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14288
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14289
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14290
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14291
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14292
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14293
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14294
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14295
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14296
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14297
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14298
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14299
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14300
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14301
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14302
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14303
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14304
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14305
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14306
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14307
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14308
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14309
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14310
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14311
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14312
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14313
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14314
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14315
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14316
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14317
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14318
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14319
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14320
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14321
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14322
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14323
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14324
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14325
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14326
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14328
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14329
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14330
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14331
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14332
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14333
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14334
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14335
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14336
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14337
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14340
LTCFLAGS='$LTCFLAGS'
14341
compiler='$compiler_DEFAULT'
14343
# Quote evaled strings.
14355
deplibs_check_method \
14364
lt_cv_sys_global_symbol_pipe \
14365
lt_cv_sys_global_symbol_to_cdecl \
14366
lt_cv_sys_global_symbol_to_c_name_address \
14367
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14370
lt_prog_compiler_no_builtin_flag \
14371
lt_prog_compiler_wl \
14372
lt_prog_compiler_pic \
14373
lt_prog_compiler_static \
14374
lt_cv_prog_compiler_c_o \
14382
export_dynamic_flag_spec \
14383
whole_archive_flag_spec \
14384
compiler_needs_object \
14386
allow_undefined_flag \
14387
no_undefined_flag \
14388
hardcode_libdir_flag_spec \
14389
hardcode_libdir_flag_spec_ld \
14390
hardcode_libdir_separator \
14395
variables_saved_for_relink \
14397
library_names_spec \
14402
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14403
*[\\\\\\\`\\"\\\$]*)
14404
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14407
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14412
# Double-quote double-evaled strings.
14413
for var in reload_cmds \
14414
old_postinstall_cmds \
14415
old_postuninstall_cmds \
14417
extract_expsyms_cmds \
14418
old_archive_from_new_cmds \
14419
old_archive_from_expsyms_cmds \
14421
archive_expsym_cmds \
14423
module_expsym_cmds \
14424
export_symbols_cmds \
14427
postuninstall_cmds \
14429
sys_lib_search_path_spec \
14430
sys_lib_dlsearch_path_spec; do
14431
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14432
*[\\\\\\\`\\"\\\$]*)
14433
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14436
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14441
# Fix-up fallback echo if it was mangled by the above quoting rules.
14443
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14447
ac_aux_dir='$ac_aux_dir'
14448
xsi_shell='$xsi_shell'
14449
lt_shell_append='$lt_shell_append'
14451
# See if we are running on zsh, and set the options which allow our
14452
# commands through without removal of \ escapes INIT.
14453
if test -n "\${ZSH_VERSION+set}" ; then
14454
setopt NO_GLOB_SUBST
14460
TIMESTAMP='$TIMESTAMP'
14469
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471
# Handling of arguments.
14472
for ac_config_target in $ac_config_targets
14474
case $ac_config_target in
14475
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14476
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14477
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14478
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14479
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14480
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14481
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14482
"fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
14483
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14484
"xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
14486
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14487
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14488
{ (exit 1); exit 1; }; };;
14493
# If the user did not use the arguments to specify the items to instantiate,
14494
# then the envvar interface is used. Set only those that are not.
14495
# We use the long form for the default assignment because of an extremely
14496
# bizarre bug on SunOS 4.1.3.
14497
if $ac_need_defaults; then
14498
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14499
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14500
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14503
# Have a temporary directory for convenience. Make it in the build tree
14504
# simply because there is no reason against having it here, and in addition,
14505
# creating and moving files from /tmp can sometimes cause problems.
14506
# Hook for its removal unless debugging.
14507
# Note that there is a small window in which the directory will not be cleaned:
14508
# after its creation but before its name has been assigned to `$tmp'.
14512
trap 'exit_status=$?
14513
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14515
trap '{ (exit 1); exit 1; }' 1 2 13 15
14517
# Create a (secure) tmp directory for tmp files.
14520
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14521
test -n "$tmp" && test -d "$tmp"
14524
tmp=./conf$$-$RANDOM
14525
(umask 077 && mkdir "$tmp")
14528
$as_echo "$as_me: cannot create a temporary directory in ." >&2
14529
{ (exit 1); exit 1; }
14532
# Set up the scripts for CONFIG_FILES section.
14533
# No need to generate them if there are no CONFIG_FILES.
14534
# This happens for instance with `./config.status config.h'.
14535
if test -n "$CONFIG_FILES"; then
14539
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14540
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14543
ac_cs_awk_cr=$ac_cr
14546
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14551
echo "cat >conf$$subs.awk <<_ACEOF" &&
14552
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14554
} >conf$$subs.sh ||
14555
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14556
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14557
{ (exit 1); exit 1; }; }
14558
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14560
for ac_last_try in false false false false false :; do
14561
. ./conf$$subs.sh ||
14562
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14563
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14564
{ (exit 1); exit 1; }; }
14566
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14567
if test $ac_delim_n = $ac_delim_num; then
14569
elif $ac_last_try; then
14570
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14571
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14572
{ (exit 1); exit 1; }; }
14574
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14577
rm -f conf$$subs.sh
14579
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14584
s/^/S["/; s/!.*/"]=/
14594
s/\(.\{148\}\).*/\1/
14596
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14601
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14608
s/\(.\{148\}\).*/\1/
14610
s/["\\]/\\&/g; s/^/"/; s/$/"/
14614
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14619
' <conf$$subs.awk | sed '
14624
' >>$CONFIG_STATUS || ac_write_fail=1
14625
rm -f conf$$subs.awk
14626
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14628
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14629
for (key in S) S_is_set[key] = 1
14635
nfields = split(line, field, "@")
14637
len = length(field[1])
14638
for (i = 2; i < nfields; i++) {
14640
keylen = length(key)
14641
if (S_is_set[key]) {
14643
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14644
len += length(value) + length(field[++i])
14655
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14656
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14657
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14660
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14661
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14662
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14663
{ (exit 1); exit 1; }; }
14666
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14667
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14668
# trailing colons and then remove the whole line if VPATH becomes empty
14669
# (actually we leave an empty line to preserve line numbers).
14670
if test "x$srcdir" = x.; then
14671
ac_vpsub='/^[ ]*VPATH[ ]*=/{
14672
s/:*\$(srcdir):*/:/
14673
s/:*\${srcdir}:*/:/
14675
s/^\([^=]*=[ ]*\):*/\1/
14681
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14682
fi # test -n "$CONFIG_FILES"
14684
# Set up the scripts for CONFIG_HEADERS section.
14685
# No need to generate them if there are no CONFIG_HEADERS.
14686
# This happens for instance with `./config.status Makefile'.
14687
if test -n "$CONFIG_HEADERS"; then
14688
cat >"$tmp/defines.awk" <<\_ACAWK ||
14692
# Transform confdefs.h into an awk script `defines.awk', embedded as
14693
# here-document in config.status, that substitutes the proper values into
14694
# config.h.in to produce config.h.
14696
# Create a delimiter string that does not exist in confdefs.h, to ease
14697
# handling of long lines.
14699
for ac_last_try in false false :; do
14700
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14701
if test -z "$ac_t"; then
14703
elif $ac_last_try; then
14704
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14705
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14706
{ (exit 1); exit 1; }; }
14708
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14712
# For the awk script, D is an array of macro values keyed by name,
14713
# likewise P contains macro parameters if any. Preserve backslash
14714
# newline sequences.
14716
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14718
s/.\{148\}/&'"$ac_delim"'/g
14721
s/^[ ]*#[ ]*define[ ][ ]*/ /
14728
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14730
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14734
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14735
D["\1"]=" \3\\\\\\n"\\/p
14737
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14742
s/.\{148\}/&'"$ac_delim"'/g
14747
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14750
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14752
' <confdefs.h | sed '
14753
s/'"$ac_delim"'/"\\\
14754
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14756
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14757
for (key in D) D_is_set[key] = 1
14760
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14762
split(line, arg, " ")
14763
if (arg[1] == "#") {
14767
defundef = substr(arg[1], 2)
14770
split(mac1, mac2, "(") #)
14772
prefix = substr(line, 1, index(line, defundef) - 1)
14773
if (D_is_set[macro]) {
14774
# Preserve the white space surrounding the "#".
14775
print prefix "define", macro P[macro] D[macro]
14778
# Replace #undef with comments. This is necessary, for example,
14779
# in the case of _POSIX_SOURCE, which is predefined and required
14780
# on some systems where configure will not decide to define it.
14781
if (defundef == "undef") {
14782
print "/*", prefix defundef, macro, "*/"
14790
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14791
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14792
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14793
{ (exit 1); exit 1; }; }
14794
fi # test -n "$CONFIG_HEADERS"
14797
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14802
:[FHLC]) ac_mode=$ac_tag; continue;;
14804
case $ac_mode$ac_tag in
14806
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14807
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14808
{ (exit 1); exit 1; }; };;
14809
:[FH]-) ac_tag=-:-;;
14810
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14827
-) ac_f="$tmp/stdin";;
14828
*) # Look for the file first in the build tree, then in the source tree
14829
# (if the path is not absolute). The absolute path cannot be DOS-style,
14830
# because $ac_f cannot contain `:'.
14834
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14836
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14837
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14838
{ (exit 1); exit 1; }; };;
14840
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14841
ac_file_inputs="$ac_file_inputs '$ac_f'"
14844
# Let's still pretend it is `configure' which instantiates (i.e., don't
14845
# use $as_me), people would be surprised to read:
14846
# /* config.h. Generated by config.status. */
14847
configure_input='Generated from '`
14848
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14850
if test x"$ac_file" != x-; then
14851
configure_input="$ac_file. $configure_input"
14852
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14853
$as_echo "$as_me: creating $ac_file" >&6;}
14855
# Neutralize special characters interpreted by sed in replacement strings.
14856
case $configure_input in #(
14857
*\&* | *\|* | *\\* )
14858
ac_sed_conf_input=`$as_echo "$configure_input" |
14859
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14860
*) ac_sed_conf_input=$configure_input;;
14864
*:-:* | *:-) cat >"$tmp/stdin" \
14865
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14866
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14867
{ (exit 1); exit 1; }; } ;;
14872
ac_dir=`$as_dirname -- "$ac_file" ||
14873
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14874
X"$ac_file" : 'X\(//\)[^/]' \| \
14875
X"$ac_file" : 'X\(//\)$' \| \
14876
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14877
$as_echo X"$ac_file" |
14878
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14882
/^X\(\/\/\)[^/].*/{
14897
-*) as_dir=./$as_dir;;
14899
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14903
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14904
*) as_qdir=$as_dir;;
14906
as_dirs="'$as_qdir' $as_dirs"
14907
as_dir=`$as_dirname -- "$as_dir" ||
14908
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14909
X"$as_dir" : 'X\(//\)[^/]' \| \
14910
X"$as_dir" : 'X\(//\)$' \| \
14911
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14912
$as_echo X"$as_dir" |
14913
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14917
/^X\(\/\/\)[^/].*/{
14930
test -d "$as_dir" && break
14932
test -z "$as_dirs" || eval "mkdir $as_dirs"
14933
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14934
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14935
{ (exit 1); exit 1; }; }; }
14939
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14941
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14942
# A ".." for each directory in $ac_dir_suffix.
14943
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14944
case $ac_top_builddir_sub in
14945
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14946
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14949
ac_abs_top_builddir=$ac_pwd
14950
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14951
# for backward compatibility:
14952
ac_top_builddir=$ac_top_build_prefix
14955
.) # We are building in place.
14957
ac_top_srcdir=$ac_top_builddir_sub
14958
ac_abs_top_srcdir=$ac_pwd ;;
14959
[\\/]* | ?:[\\/]* ) # Absolute name.
14960
ac_srcdir=$srcdir$ac_dir_suffix;
14961
ac_top_srcdir=$srcdir
14962
ac_abs_top_srcdir=$srcdir ;;
14963
*) # Relative name.
14964
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14965
ac_top_srcdir=$ac_top_build_prefix$srcdir
14966
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14968
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14978
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14979
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14981
ac_MKDIR_P=$MKDIR_P
14983
[\\/$]* | ?:[\\/]* ) ;;
14984
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14988
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989
# If the template does not know about datarootdir, expand it.
14990
# FIXME: This hack should be removed a few years after 2.60.
14991
ac_datarootdir_hack=; ac_datarootdir_seen=
15004
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15005
*datarootdir*) ac_datarootdir_seen=yes;;
15006
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15007
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15008
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15010
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15011
ac_datarootdir_hack='
15012
s&@datadir@&$datadir&g
15013
s&@docdir@&$docdir&g
15014
s&@infodir@&$infodir&g
15015
s&@localedir@&$localedir&g
15016
s&@mandir@&$mandir&g
15017
s&\\\${datarootdir}&$datarootdir&g' ;;
15021
# Neutralize VPATH when `$srcdir' = `.'.
15022
# Shell code in configure.ac might set extrasub.
15023
# FIXME: do we really want to maintain this feature?
15024
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15025
ac_sed_extra="$ac_vpsub
15028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15030
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15031
s|@configure_input@|$ac_sed_conf_input|;t t
15032
s&@top_builddir@&$ac_top_builddir_sub&;t t
15033
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15034
s&@srcdir@&$ac_srcdir&;t t
15035
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15036
s&@top_srcdir@&$ac_top_srcdir&;t t
15037
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15038
s&@builddir@&$ac_builddir&;t t
15039
s&@abs_builddir@&$ac_abs_builddir&;t t
15040
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15041
s&@INSTALL@&$ac_INSTALL&;t t
15042
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15043
$ac_datarootdir_hack
15045
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15046
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15047
$as_echo "$as_me: error: could not create $ac_file" >&2;}
15048
{ (exit 1); exit 1; }; }
15050
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15051
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15052
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15053
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15054
which seems to be undefined. Please make sure it is defined." >&5
15055
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15056
which seems to be undefined. Please make sure it is defined." >&2;}
15060
-) cat "$tmp/out" && rm -f "$tmp/out";;
15061
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15063
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15064
$as_echo "$as_me: error: could not create $ac_file" >&2;}
15065
{ (exit 1); exit 1; }; }
15071
if test x"$ac_file" != x-; then
15073
$as_echo "/* $configure_input */" \
15074
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15075
} >"$tmp/config.h" \
15076
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15077
$as_echo "$as_me: error: could not create $ac_file" >&2;}
15078
{ (exit 1); exit 1; }; }
15079
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15080
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15081
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15084
mv "$tmp/config.h" "$ac_file" \
15085
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15086
$as_echo "$as_me: error: could not create $ac_file" >&2;}
15087
{ (exit 1); exit 1; }; }
15090
$as_echo "/* $configure_input */" \
15091
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15092
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15093
$as_echo "$as_me: error: could not create -" >&2;}
15094
{ (exit 1); exit 1; }; }
15096
# Compute "$ac_file"'s index in $config_headers.
15099
for _am_header in $config_headers :; do
15100
case $_am_header in
15101
$_am_arg | $_am_arg:* )
15104
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15107
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15108
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15109
X"$_am_arg" : 'X\(//\)[^/]' \| \
15110
X"$_am_arg" : 'X\(//\)$' \| \
15111
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15112
$as_echo X"$_am_arg" |
15113
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15117
/^X\(\/\/\)[^/].*/{
15129
s/.*/./; q'`/stamp-h$_am_stamp_count
15132
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15133
$as_echo "$as_me: executing $ac_file commands" >&6;}
15138
case $ac_file$ac_mode in
15139
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15140
# Autoconf 2.62 quotes --file arguments for eval, but not when files
15141
# are listed without --file. Let's play safe and only enable the eval
15142
# if we detect the quoting.
15143
case $CONFIG_FILES in
15144
*\'*) eval set x "$CONFIG_FILES" ;;
15145
*) set x $CONFIG_FILES ;;
15150
# Strip MF so we end up with the name of the file.
15151
mf=`echo "$mf" | sed -e 's/:.*$//'`
15152
# Check whether this is an Automake generated Makefile or not.
15153
# We used to match only the files named `Makefile.in', but
15154
# some people rename them; so instead we look at the file content.
15155
# Grep'ing the first line is not enough: some people post-process
15156
# each Makefile.in and add a new line on top of each file to say so.
15157
# Grep'ing the whole file is not good either: AIX grep has a line
15158
# limit of 2048, but all sed's we know have understand at least 4000.
15159
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15160
dirpart=`$as_dirname -- "$mf" ||
15161
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15162
X"$mf" : 'X\(//\)[^/]' \| \
15163
X"$mf" : 'X\(//\)$' \| \
15164
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15166
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15170
/^X\(\/\/\)[^/].*/{
15186
# Extract the definition of DEPDIR, am__include, and am__quote
15187
# from the Makefile without running `make'.
15188
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15189
test -z "$DEPDIR" && continue
15190
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15191
test -z "am__include" && continue
15192
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15193
# When using ansi2knr, U may be empty or an underscore; expand it
15194
U=`sed -n 's/^U = //p' < "$mf"`
15195
# Find all dependency output files, they are included files with
15196
# $(DEPDIR) in their names. We invoke sed twice because it is the
15197
# simplest approach to changing $(DEPDIR) to its actual value in the
15199
for file in `sed -n "
15200
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15201
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15202
# Make sure the directory exists.
15203
test -f "$dirpart/$file" && continue
15204
fdir=`$as_dirname -- "$file" ||
15205
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15206
X"$file" : 'X\(//\)[^/]' \| \
15207
X"$file" : 'X\(//\)$' \| \
15208
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15209
$as_echo X"$file" |
15210
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15214
/^X\(\/\/\)[^/].*/{
15227
{ as_dir=$dirpart/$fdir
15229
-*) as_dir=./$as_dir;;
15231
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15235
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15236
*) as_qdir=$as_dir;;
15238
as_dirs="'$as_qdir' $as_dirs"
15239
as_dir=`$as_dirname -- "$as_dir" ||
15240
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15241
X"$as_dir" : 'X\(//\)[^/]' \| \
15242
X"$as_dir" : 'X\(//\)$' \| \
15243
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15244
$as_echo X"$as_dir" |
15245
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15249
/^X\(\/\/\)[^/].*/{
15262
test -d "$as_dir" && break
15264
test -z "$as_dirs" || eval "mkdir $as_dirs"
15265
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15266
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15267
{ (exit 1); exit 1; }; }; }
15268
# echo "creating $dirpart/$file"
15269
echo '# dummy' > "$dirpart/$file"
15276
# See if we are running on zsh, and set the options which allow our
15277
# commands through without removal of \ escapes.
15278
if test -n "${ZSH_VERSION+set}" ; then
15279
setopt NO_GLOB_SUBST
15282
cfgfile="${ofile}T"
15283
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15286
cat <<_LT_EOF >> "$cfgfile"
15289
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15290
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15291
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15292
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15294
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15295
# 2006, 2007, 2008 Free Software Foundation, Inc.
15296
# Written by Gordon Matzigkeit, 1996
15298
# This file is part of GNU Libtool.
15300
# GNU Libtool is free software; you can redistribute it and/or
15301
# modify it under the terms of the GNU General Public License as
15302
# published by the Free Software Foundation; either version 2 of
15303
# the License, or (at your option) any later version.
15305
# As a special exception to the GNU General Public License,
15306
# if you distribute this file as part of a program or library that
15307
# is built using GNU Libtool, you may include this file under the
15308
# same distribution terms that you use for the rest of that program.
15310
# GNU Libtool is distributed in the hope that it will be useful,
15311
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15312
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15313
# GNU General Public License for more details.
15315
# You should have received a copy of the GNU General Public License
15316
# along with GNU Libtool; see the file COPYING. If not, a copy
15317
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15318
# obtained by writing to the Free Software Foundation, Inc.,
15319
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15322
# The names of the tagged configurations supported by this script.
15325
# ### BEGIN LIBTOOL CONFIG
15327
# Whether or not to build static libraries.
15328
build_old_libs=$enable_static
15330
# Which release of libtool.m4 was used?
15331
macro_version=$macro_version
15332
macro_revision=$macro_revision
15334
# Whether or not to build shared libraries.
15335
build_libtool_libs=$enable_shared
15337
# What type of objects to build.
15340
# Whether or not to optimize for fast installation.
15341
fast_install=$enable_fast_install
15344
host_alias=$host_alias
15348
# The build system.
15349
build_alias=$build_alias
15353
# A sed program that does not truncate output.
15356
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15357
Xsed="\$SED -e 1s/^X//"
15359
# A grep program that handles long lines.
15365
# A literal string matcher.
15368
# A BSD- or MS-compatible name lister.
15371
# Whether we need soft or hard links.
15374
# What is the maximum length of a command?
15375
max_cmd_len=$max_cmd_len
15377
# Object file suffix (normally "o").
15380
# Executable file suffix (normally "").
15383
# whether the shell understands "unset".
15386
# turn spaces into newlines.
15389
# turn newlines into spaces.
15392
# How to create reloadable object files.
15393
reload_flag=$lt_reload_flag
15394
reload_cmds=$lt_reload_cmds
15396
# An object symbol dumper.
15397
OBJDUMP=$lt_OBJDUMP
15399
# Method to check whether dependent libraries are shared objects.
15400
deplibs_check_method=$lt_deplibs_check_method
15402
# Command to use when deplibs_check_method == "file_magic".
15403
file_magic_cmd=$lt_file_magic_cmd
15407
AR_FLAGS=$lt_AR_FLAGS
15409
# A symbol stripping program.
15412
# Commands used to install an old-style archive.
15414
old_postinstall_cmds=$lt_old_postinstall_cmds
15415
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15420
# LTCC compiler flags.
15421
LTCFLAGS=$lt_CFLAGS
15423
# Take the output of nm and produce a listing of raw symbols and C names.
15424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15426
# Transform the output of nm in a proper C declaration.
15427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15429
# Transform the output of nm in a C name address pair.
15430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15432
# Transform the output of nm in a C name address pair when lib prefix is needed.
15433
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15435
# The name of the directory that contains temporary libtool files.
15438
# Shell to use when invoking shell scripts.
15441
# An echo program that does not interpret backslashes.
15444
# Used to examine libraries when file_magic_cmd begins with "file".
15445
MAGIC_CMD=$MAGIC_CMD
15447
# Must we lock files when doing compilation?
15448
need_locks=$lt_need_locks
15450
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15451
DSYMUTIL=$lt_DSYMUTIL
15453
# Tool to change global to local symbols on Mac OS X.
15456
# Tool to manipulate fat objects and archives on Mac OS X.
15459
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15462
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15463
OTOOL64=$lt_OTOOL64
15465
# Old archive suffix (normally "a").
15468
# Shared library suffix (normally ".so").
15469
shrext_cmds=$lt_shrext_cmds
15471
# The commands to extract the exported symbol list from a shared archive.
15472
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15474
# Variables whose values should be saved in libtool wrapper scripts and
15475
# restored at link time.
15476
variables_saved_for_relink=$lt_variables_saved_for_relink
15478
# Do we need the "lib" prefix for modules?
15479
need_lib_prefix=$need_lib_prefix
15481
# Do we need a version for libraries?
15482
need_version=$need_version
15484
# Library versioning type.
15485
version_type=$version_type
15487
# Shared library runtime path variable.
15488
runpath_var=$runpath_var
15490
# Shared library path variable.
15491
shlibpath_var=$shlibpath_var
15493
# Is shlibpath searched before the hard-coded library search path?
15494
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15496
# Format of library name prefix.
15497
libname_spec=$lt_libname_spec
15499
# List of archive names. First name is the real one, the rest are links.
15500
# The last name is the one that the linker finds with -lNAME
15501
library_names_spec=$lt_library_names_spec
15503
# The coded name of the library, if different from the real name.
15504
soname_spec=$lt_soname_spec
15506
# Command to use after installation of a shared archive.
15507
postinstall_cmds=$lt_postinstall_cmds
15509
# Command to use after uninstallation of a shared archive.
15510
postuninstall_cmds=$lt_postuninstall_cmds
15512
# Commands used to finish a libtool library installation in a directory.
15513
finish_cmds=$lt_finish_cmds
15515
# As "finish_cmds", except a single script fragment to be evaled but
15517
finish_eval=$lt_finish_eval
15519
# Whether we should hardcode library paths into libraries.
15520
hardcode_into_libs=$hardcode_into_libs
15522
# Compile-time system search path for libraries.
15523
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15525
# Run-time system search path for libraries.
15526
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15528
# Whether dlopen is supported.
15529
dlopen_support=$enable_dlopen
15531
# Whether dlopen of programs is supported.
15532
dlopen_self=$enable_dlopen_self
15534
# Whether dlopen of statically linked programs is supported.
15535
dlopen_self_static=$enable_dlopen_self_static
15537
# Commands to strip libraries.
15538
old_striplib=$lt_old_striplib
15539
striplib=$lt_striplib
15542
# The linker used to build libraries.
15545
# Commands used to build an old-style archive.
15546
old_archive_cmds=$lt_old_archive_cmds
15548
# A language specific compiler.
15551
# Is the compiler the GNU compiler?
15554
# Compiler flag to turn off builtin functions.
15555
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15557
# How to pass a linker flag through the compiler.
15558
wl=$lt_lt_prog_compiler_wl
15560
# Additional compiler flags for building library objects.
15561
pic_flag=$lt_lt_prog_compiler_pic
15563
# Compiler flag to prevent dynamic linking.
15564
link_static_flag=$lt_lt_prog_compiler_static
15566
# Does compiler simultaneously support -c and -o options?
15567
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15569
# Whether or not to add -lc for building shared libraries.
15570
build_libtool_need_lc=$archive_cmds_need_lc
15572
# Whether or not to disallow shared libs when runtime libs are static.
15573
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15575
# Compiler flag to allow reflexive dlopens.
15576
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15578
# Compiler flag to generate shared objects directly from archives.
15579
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15581
# Whether the compiler copes with passing no objects directly.
15582
compiler_needs_object=$lt_compiler_needs_object
15584
# Create an old-style archive from a shared archive.
15585
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15587
# Create a temporary old-style archive to link instead of a shared archive.
15588
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15590
# Commands used to build a shared archive.
15591
archive_cmds=$lt_archive_cmds
15592
archive_expsym_cmds=$lt_archive_expsym_cmds
15594
# Commands used to build a loadable module if different from building
15595
# a shared archive.
15596
module_cmds=$lt_module_cmds
15597
module_expsym_cmds=$lt_module_expsym_cmds
15599
# Whether we are building with GNU ld or not.
15600
with_gnu_ld=$lt_with_gnu_ld
15602
# Flag that allows shared libraries with undefined symbols to be built.
15603
allow_undefined_flag=$lt_allow_undefined_flag
15605
# Flag that enforces no undefined symbols.
15606
no_undefined_flag=$lt_no_undefined_flag
15608
# Flag to hardcode \$libdir into a binary during linking.
15609
# This must work even if \$libdir does not exist
15610
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15612
# If ld is used when linking, flag to hardcode \$libdir into a binary
15613
# during linking. This must work even if \$libdir does not exist.
15614
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15616
# Whether we need a single "-rpath" flag with a separated argument.
15617
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15619
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15620
# DIR into the resulting binary.
15621
hardcode_direct=$hardcode_direct
15623
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15624
# DIR into the resulting binary and the resulting library dependency is
15625
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15626
# library is relocated.
15627
hardcode_direct_absolute=$hardcode_direct_absolute
15629
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15630
# into the resulting binary.
15631
hardcode_minus_L=$hardcode_minus_L
15633
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15634
# into the resulting binary.
15635
hardcode_shlibpath_var=$hardcode_shlibpath_var
15637
# Set to "yes" if building a shared library automatically hardcodes DIR
15638
# into the library and all subsequent libraries and executables linked
15640
hardcode_automatic=$hardcode_automatic
15642
# Set to yes if linker adds runtime paths of dependent libraries
15643
# to runtime path list.
15644
inherit_rpath=$inherit_rpath
15646
# Whether libtool must link a program against all its dependency libraries.
15647
link_all_deplibs=$link_all_deplibs
15649
# Fix the shell variable \$srcfile for the compiler.
15650
fix_srcfile_path=$lt_fix_srcfile_path
15652
# Set to "yes" if exported symbols are required.
15653
always_export_symbols=$always_export_symbols
15655
# The commands to list exported symbols.
15656
export_symbols_cmds=$lt_export_symbols_cmds
15658
# Symbols that should not be listed in the preloaded symbols.
15659
exclude_expsyms=$lt_exclude_expsyms
15661
# Symbols that must always be exported.
15662
include_expsyms=$lt_include_expsyms
15664
# Commands necessary for linking programs (against libraries) with templates.
15665
prelink_cmds=$lt_prelink_cmds
15667
# Specify filename containing input files.
15668
file_list_spec=$lt_file_list_spec
15670
# How to hardcode a shared library path into an executable.
15671
hardcode_action=$hardcode_action
15673
# ### END LIBTOOL CONFIG
15679
cat <<\_LT_EOF >> "$cfgfile"
15680
# AIX sometimes has problems with the GCC collect2 program. For some
15681
# reason, if we set the COLLECT_NAMES environment variable, the problems
15682
# vanish in a puff of smoke.
15683
if test "X${COLLECT_NAMES+set}" != Xset; then
15685
export COLLECT_NAMES
15692
ltmain="$ac_aux_dir/ltmain.sh"
15695
# We use sed instead of cat because bash on DJGPP gets confused if
15696
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15697
# text mode, it properly converts lines to CR/LF. This bash problem
15698
# is reportedly fixed, but why not run on old versions too?
15699
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15700
|| (rm -f "$cfgfile"; exit 1)
15704
cat << \_LT_EOF >> "$cfgfile"
15706
# func_dirname file append nondir_replacement
15707
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15708
# otherwise set result to NONDIR_REPLACEMENT.
15712
*/*) func_dirname_result="${1%/*}${2}" ;;
15713
* ) func_dirname_result="${3}" ;;
15717
# func_basename file
15720
func_basename_result="${1##*/}"
15723
# func_dirname_and_basename file append nondir_replacement
15724
# perform func_basename and func_dirname in a single function
15726
# dirname: Compute the dirname of FILE. If nonempty,
15727
# add APPEND to the result, otherwise set result
15728
# to NONDIR_REPLACEMENT.
15729
# value returned in "$func_dirname_result"
15730
# basename: Compute filename of FILE.
15731
# value retuned in "$func_basename_result"
15732
# Implementation must be kept synchronized with func_dirname
15733
# and func_basename. For efficiency, we do not delegate to
15734
# those functions but instead duplicate the functionality here.
15735
func_dirname_and_basename ()
15738
*/*) func_dirname_result="${1%/*}${2}" ;;
15739
* ) func_dirname_result="${3}" ;;
15741
func_basename_result="${1##*/}"
15744
# func_stripname prefix suffix name
15745
# strip PREFIX and SUFFIX off of NAME.
15746
# PREFIX and SUFFIX must not contain globbing or regex special
15747
# characters, hashes, percent signs, but SUFFIX may contain a leading
15748
# dot (in which case that matches only a dot).
15751
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15752
# positional parameters, so assign one to ordinary parameter first.
15753
func_stripname_result=${3}
15754
func_stripname_result=${func_stripname_result#"${1}"}
15755
func_stripname_result=${func_stripname_result%"${2}"}
15761
func_opt_split_opt=${1%%=*}
15762
func_opt_split_arg=${1#*=}
15769
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15770
*) func_lo2o_result=${1} ;;
15774
# func_xform libobj-or-source
15777
func_xform_result=${1%.*}.lo
15780
# func_arith arithmetic-term...
15783
func_arith_result=$(( $* ))
15787
# STRING may not start with a hyphen.
15790
func_len_result=${#1}
15795
*) # Bourne compatible functions.
15796
cat << \_LT_EOF >> "$cfgfile"
15798
# func_dirname file append nondir_replacement
15799
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15800
# otherwise set result to NONDIR_REPLACEMENT.
15803
# Extract subdirectory from the argument.
15804
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15805
if test "X$func_dirname_result" = "X${1}"; then
15806
func_dirname_result="${3}"
15808
func_dirname_result="$func_dirname_result${2}"
15812
# func_basename file
15815
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15819
# func_stripname prefix suffix name
15820
# strip PREFIX and SUFFIX off of NAME.
15821
# PREFIX and SUFFIX must not contain globbing or regex special
15822
# characters, hashes, percent signs, but SUFFIX may contain a leading
15823
# dot (in which case that matches only a dot).
15824
# func_strip_suffix prefix name
15828
.*) func_stripname_result=`$ECHO "X${3}" \
15829
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15830
*) func_stripname_result=`$ECHO "X${3}" \
15831
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15836
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15837
my_sed_long_arg='1s/^-[^=]*=//'
15842
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15843
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15849
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15852
# func_xform libobj-or-source
15855
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15858
# func_arith arithmetic-term...
15861
func_arith_result=`expr "$@"`
15865
# STRING may not start with a hyphen.
15868
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15874
case $lt_shell_append in
15876
cat << \_LT_EOF >> "$cfgfile"
15878
# func_append var value
15879
# Append VALUE to the end of shell variable VAR.
15887
cat << \_LT_EOF >> "$cfgfile"
15889
# func_append var value
15890
# Append VALUE to the end of shell variable VAR.
15901
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15902
|| (rm -f "$cfgfile"; exit 1)
15904
mv -f "$cfgfile" "$ofile" ||
15905
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15914
{ (exit 0); exit 0; }
15916
chmod +x $CONFIG_STATUS
15917
ac_clean_files=$ac_clean_files_save
15919
test $ac_write_fail = 0 ||
15920
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15921
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15922
{ (exit 1); exit 1; }; }
15925
# configure is writing to config.log, and then calls config.status.
15926
# config.status does its own redirection, appending to config.log.
15927
# Unfortunately, on DOS this fails, as config.log is still kept open
15928
# by configure, so config.status won't be able to write to it; its
15929
# output is simply discarded. So we exec the FD to /dev/null,
15930
# effectively closing config.log, so it can be properly (re)opened and
15931
# appended to by config.status. When coming back to configure, we
15932
# need to make the FD available again.
15933
if test "$no_create" != yes; then
15935
ac_config_status_args=
15936
test "$silent" = yes &&
15937
ac_config_status_args="$ac_config_status_args --quiet"
15939
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15941
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15942
# would make configure fail if this is the last instruction.
15943
$ac_cs_success || { (exit 1); exit 1; }
15945
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15946
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15947
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}