2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for xf86-input-wacom 0.14.0.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1
179
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
PATH=/empty FPATH=/empty; export PATH FPATH
184
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
if (eval "$as_required") 2>/dev/null; then :
191
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
test -z "$as_dir" && as_dir=.
203
for as_base in sh bash ksh sh5; do
204
# Try only shells that exist, to save several forks.
205
as_shell=$as_dir/$as_base
206
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
CONFIG_SHELL=$as_shell as_have_required=yes
209
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
CONFIG_SHELL=$SHELL as_have_required=yes
224
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242
if test x$as_have_required = xno; then :
243
$as_echo "$0: This script requires a shell more modern than all"
244
$as_echo "$0: the shells that I found on your system."
245
if test x${ZSH_VERSION+set} = xset ; then
246
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
249
$as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251
$0: about your system, including any error possibly output
252
$0: before this message. Then install a modern shell, or
253
$0: manually run the script under such a shell if you do
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Unset more variables known to interfere with behavior of common tools.
263
CLICOLOR_FORCE= GREP_OPTIONS=
264
unset CLICOLOR_FORCE GREP_OPTIONS
266
## --------------------- ##
267
## M4sh Shell Functions. ##
268
## --------------------- ##
271
# Portably unset VAR.
274
{ eval $1=; unset $1;}
278
# as_fn_set_status STATUS
279
# -----------------------
280
# Set $? to STATUS, without forking.
288
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298
# Create "$as_dir" as a directory, including parents if necessary.
303
-*) as_dir=./$as_dir;;
305
test -d "$as_dir" || eval $as_mkdir_p || {
309
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312
as_dirs="'$as_qdir' $as_dirs"
313
as_dir=`$as_dirname -- "$as_dir" ||
314
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315
X"$as_dir" : 'X\(//\)[^/]' \| \
316
X"$as_dir" : 'X\(//\)$' \| \
317
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318
$as_echo X"$as_dir" |
319
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
test -d "$as_dir" && break
338
test -z "$as_dirs" || eval "mkdir $as_dirs"
339
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343
# as_fn_append VAR VALUE
344
# ----------------------
345
# Append the text in VALUE to the end of the definition contained in VAR. Take
346
# advantage of any shell optimizations that allow amortized linear growth over
347
# repeated appends, instead of the typical quadratic growth present in naive
349
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350
eval 'as_fn_append ()
363
# Perform arithmetic evaluation on the ARGs, and store the result in the
364
# global $as_val. Take advantage of shells that can avoid forks. The arguments
365
# must be portable across $(()) and expr.
366
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374
as_val=`expr "$@" || test $? -eq 1`
379
# as_fn_error STATUS ERROR [LINENO LOG_FD]
380
# ----------------------------------------
381
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383
# script with STATUS, using 1 if that was 0.
386
as_status=$1; test $as_status -eq 0 && as_status=1
388
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391
$as_echo "$as_me: error: $2" >&2
392
as_fn_exit $as_status
395
if expr a : '\(a\)' >/dev/null 2>&1 &&
396
test "X`expr 00001 : '.*\(...\)'`" = X001; then
402
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414
as_me=`$as_basename -- "$0" ||
415
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416
X"$0" : 'X\(//\)$' \| \
417
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419
sed '/^.*\/\([^/][^/]*\)\/*$/{
433
# Avoid depending upon Character Ranges.
434
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437
as_cr_digits='0123456789'
438
as_cr_alnum=$as_cr_Letters$as_cr_digits
441
as_lineno_1=$LINENO as_lineno_1a=$LINENO
442
as_lineno_2=$LINENO as_lineno_2a=$LINENO
443
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461
chmod +x "$as_me.lineno" ||
462
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464
# Don't try to exec as it changes $[0], causing all sort of problems
465
# (the dirname of $[0] is not the place where we might find the
466
# original and so on. Autoconf is especially sensitive to this).
468
# Exit status is that of the last command.
472
ECHO_C= ECHO_N= ECHO_T=
473
case `echo -n x` in #(((((
475
case `echo 'xy\c'` in
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
478
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485
rm -f conf$$ conf$$.exe conf$$.file
486
if test -d conf$$.dir; then
487
rm -f conf$$.dir/conf$$.file
490
mkdir conf$$.dir 2>/dev/null
492
if (echo >conf$$.file) 2>/dev/null; then
493
if ln -s conf$$.file conf$$ 2>/dev/null; then
495
# ... but there are two gotchas:
496
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498
# In both cases, we have to default to `cp -p'.
499
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501
elif ln conf$$.file conf$$ 2>/dev/null; then
509
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510
rmdir conf$$.dir 2>/dev/null
512
if mkdir -p . 2>/dev/null; then
513
as_mkdir_p='mkdir -p "$as_dir"'
515
test -d ./-p && rmdir ./-p
519
if test -x / >/dev/null 2>&1; then
522
if ls -dL / >/dev/null 2>&1; then
529
if test -d "$1"; then
535
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536
???[sx]*):;;*)false;;esac;fi
540
as_executable_p=$as_test_x
542
# Sed expression to map a string onto a valid CPP name.
543
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
# Sed expression to map a string onto a valid variable name.
546
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
SHELL=${CONFIG_SHELL-/bin/sh}
551
# Use only awk features that work with 7th edition Unix awk (1978).
552
# My, what an old awk you have, Mr. Solaris!
554
while (length(v1) && length(v2)) {
555
# Set d1 to be the next thing to compare from v1, and likewise for d2.
556
# Normally this is a single character, but if v1 and v2 contain digits,
557
# compare them as integers and fractions as strverscmp does.
558
if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559
# Split v1 and v2 into their leading digit string components d1 and d2,
560
# and advance v1 and v2 past the leading digit strings.
561
for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562
for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563
d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564
d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
567
# Compare two fractions.
568
while (d1 ~ /^0/ && d2 ~ /^0/) {
569
d1 = substr(d1, 2); len1--
570
d2 = substr(d2, 2); len2--
572
if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573
# The two components differ in length, and the common prefix
574
# contains only leading zeros. Consider the longer to be less.
578
# Otherwise, compare as strings.
583
# A fraction is less than an integer.
588
# An integer is greater than a fraction.
591
# Compare two integers.
597
# The normal case, without worrying about digits.
598
d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599
d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
604
# Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605
# which mishandles some comparisons of empty strings to integers.
606
if (length(v2)) exit 1
607
if (length(v1)) exit 2
611
test -n "$DJDIR" || exec 7<&0 </dev/null
615
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616
# so uname gets run too.
617
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
622
ac_default_prefix=/usr/local
624
ac_config_libobj_dir=.
631
# Identity of this package.
632
PACKAGE_NAME='xf86-input-wacom'
633
PACKAGE_TARNAME='xf86-input-wacom'
634
PACKAGE_VERSION='0.14.0'
635
PACKAGE_STRING='xf86-input-wacom 0.14.0'
636
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
639
ac_unique_file="Makefile.am"
640
# Factoring default headers for most tests.
641
ac_includes_default="\
643
#ifdef HAVE_SYS_TYPES_H
644
# include <sys/types.h>
646
#ifdef HAVE_SYS_STAT_H
647
# include <sys/stat.h>
653
# ifdef HAVE_STDLIB_H
658
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
663
#ifdef HAVE_STRINGS_H
664
# include <strings.h>
666
#ifdef HAVE_INTTYPES_H
667
# include <inttypes.h>
676
ac_subst_vars='am__EXEEXT_FALSE
682
HAS_XORG_CONF_DIR_FALSE
683
HAS_XORG_CONF_DIR_TRUE
771
MAINTAINER_MODE_FALSE
781
INSTALL_STRIP_PROGRAM
823
program_transform_name
836
enable_option_checking
837
enable_maintainer_mode
838
enable_dependency_tracking
846
enable_selective_werror
847
enable_strict_compilation
856
ac_precious_vars='build_alias
877
# Initialize some variables set by options.
879
ac_init_version=false
880
ac_unrecognized_opts=
882
# The variables have the same names as the options, with
883
# dashes changed to underlines.
891
program_transform_name=s,x,x,
899
# Installation directory options.
900
# These are left unexpanded so users can "make install exec_prefix=/foo"
901
# and all the variables that are supposed to be based on exec_prefix
902
# by default will actually change.
903
# Use braces instead of parens because sh, perl, etc. also accept them.
904
# (The list follows the same order as the GNU Coding Standards.)
905
bindir='${exec_prefix}/bin'
906
sbindir='${exec_prefix}/sbin'
907
libexecdir='${exec_prefix}/libexec'
908
datarootdir='${prefix}/share'
909
datadir='${datarootdir}'
910
sysconfdir='${prefix}/etc'
911
sharedstatedir='${prefix}/com'
912
localstatedir='${prefix}/var'
913
includedir='${prefix}/include'
914
oldincludedir='/usr/include'
915
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916
infodir='${datarootdir}/info'
921
libdir='${exec_prefix}/lib'
922
localedir='${datarootdir}/locale'
923
mandir='${datarootdir}/man'
929
# If the previous option needs an argument, assign it.
930
if test -n "$ac_prev"; then
931
eval $ac_prev=\$ac_option
937
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942
# Accept the important Cygnus configure options, so we can diagnose typos.
944
case $ac_dashdash$ac_option in
948
-bindir | --bindir | --bindi | --bind | --bin | --bi)
950
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953
-build | --build | --buil | --bui | --bu)
954
ac_prev=build_alias ;;
955
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
956
build_alias=$ac_optarg ;;
958
-cache-file | --cache-file | --cache-fil | --cache-fi \
959
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960
ac_prev=cache_file ;;
961
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963
cache_file=$ac_optarg ;;
966
cache_file=config.cache ;;
968
-datadir | --datadir | --datadi | --datad)
970
-datadir=* | --datadir=* | --datadi=* | --datad=*)
971
datadir=$ac_optarg ;;
973
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974
| --dataroo | --dataro | --datar)
975
ac_prev=datarootdir ;;
976
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978
datarootdir=$ac_optarg ;;
980
-disable-* | --disable-*)
981
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982
# Reject names that are not valid shell variable names.
983
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984
as_fn_error $? "invalid feature name: $ac_useropt"
985
ac_useropt_orig=$ac_useropt
986
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987
case $ac_user_opts in
991
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992
ac_unrecognized_sep=', ';;
994
eval enable_$ac_useropt=no ;;
996
-docdir | --docdir | --docdi | --doc | --do)
998
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004
dvidir=$ac_optarg ;;
1006
-enable-* | --enable-*)
1007
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008
# Reject names that are not valid shell variable names.
1009
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010
as_fn_error $? "invalid feature name: $ac_useropt"
1011
ac_useropt_orig=$ac_useropt
1012
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
case $ac_user_opts in
1015
"enable_$ac_useropt"
1017
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018
ac_unrecognized_sep=', ';;
1020
eval enable_$ac_useropt=\$ac_optarg ;;
1022
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024
| --exec | --exe | --ex)
1025
ac_prev=exec_prefix ;;
1026
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028
| --exec=* | --exe=* | --ex=*)
1029
exec_prefix=$ac_optarg ;;
1031
-gas | --gas | --ga | --g)
1032
# Obsolete; use --with-gas.
1035
-help | --help | --hel | --he | -h)
1036
ac_init_help=long ;;
1037
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038
ac_init_help=recursive ;;
1039
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040
ac_init_help=short ;;
1042
-host | --host | --hos | --ho)
1043
ac_prev=host_alias ;;
1044
-host=* | --host=* | --hos=* | --ho=*)
1045
host_alias=$ac_optarg ;;
1047
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051
htmldir=$ac_optarg ;;
1053
-includedir | --includedir | --includedi | --included | --include \
1054
| --includ | --inclu | --incl | --inc)
1055
ac_prev=includedir ;;
1056
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057
| --includ=* | --inclu=* | --incl=* | --inc=*)
1058
includedir=$ac_optarg ;;
1060
-infodir | --infodir | --infodi | --infod | --info | --inf)
1062
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063
infodir=$ac_optarg ;;
1065
-libdir | --libdir | --libdi | --libd)
1067
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1068
libdir=$ac_optarg ;;
1070
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071
| --libexe | --libex | --libe)
1072
ac_prev=libexecdir ;;
1073
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074
| --libexe=* | --libex=* | --libe=*)
1075
libexecdir=$ac_optarg ;;
1077
-localedir | --localedir | --localedi | --localed | --locale)
1078
ac_prev=localedir ;;
1079
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080
localedir=$ac_optarg ;;
1082
-localstatedir | --localstatedir | --localstatedi | --localstated \
1083
| --localstate | --localstat | --localsta | --localst | --locals)
1084
ac_prev=localstatedir ;;
1085
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087
localstatedir=$ac_optarg ;;
1089
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092
mandir=$ac_optarg ;;
1094
-nfp | --nfp | --nf)
1095
# Obsolete; use --without-fp.
1098
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099
| --no-cr | --no-c | -n)
1102
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108
| --oldin | --oldi | --old | --ol | --o)
1109
ac_prev=oldincludedir ;;
1110
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113
oldincludedir=$ac_optarg ;;
1115
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118
prefix=$ac_optarg ;;
1120
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1121
| --program-pre | --program-pr | --program-p)
1122
ac_prev=program_prefix ;;
1123
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1124
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125
program_prefix=$ac_optarg ;;
1127
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1128
| --program-suf | --program-su | --program-s)
1129
ac_prev=program_suffix ;;
1130
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1131
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132
program_suffix=$ac_optarg ;;
1134
-program-transform-name | --program-transform-name \
1135
| --program-transform-nam | --program-transform-na \
1136
| --program-transform-n | --program-transform- \
1137
| --program-transform | --program-transfor \
1138
| --program-transfo | --program-transf \
1139
| --program-trans | --program-tran \
1140
| --progr-tra | --program-tr | --program-t)
1141
ac_prev=program_transform_name ;;
1142
-program-transform-name=* | --program-transform-name=* \
1143
| --program-transform-nam=* | --program-transform-na=* \
1144
| --program-transform-n=* | --program-transform-=* \
1145
| --program-transform=* | --program-transfor=* \
1146
| --program-transfo=* | --program-transf=* \
1147
| --program-trans=* | --program-tran=* \
1148
| --progr-tra=* | --program-tr=* | --program-t=*)
1149
program_transform_name=$ac_optarg ;;
1151
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154
pdfdir=$ac_optarg ;;
1156
-psdir | --psdir | --psdi | --psd | --ps)
1158
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162
| -silent | --silent | --silen | --sile | --sil)
1165
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169
sbindir=$ac_optarg ;;
1171
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1172
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173
| --sharedst | --shareds | --shared | --share | --shar \
1175
ac_prev=sharedstatedir ;;
1176
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180
sharedstatedir=$ac_optarg ;;
1182
-site | --site | --sit)
1184
-site=* | --site=* | --sit=*)
1187
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190
srcdir=$ac_optarg ;;
1192
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193
| --syscon | --sysco | --sysc | --sys | --sy)
1194
ac_prev=sysconfdir ;;
1195
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197
sysconfdir=$ac_optarg ;;
1199
-target | --target | --targe | --targ | --tar | --ta | --t)
1200
ac_prev=target_alias ;;
1201
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202
target_alias=$ac_optarg ;;
1204
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1207
-version | --version | --versio | --versi | --vers | -V)
1208
ac_init_version=: ;;
1211
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212
# Reject names that are not valid shell variable names.
1213
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214
as_fn_error $? "invalid package name: $ac_useropt"
1215
ac_useropt_orig=$ac_useropt
1216
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217
case $ac_user_opts in
1221
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222
ac_unrecognized_sep=', ';;
1224
eval with_$ac_useropt=\$ac_optarg ;;
1226
-without-* | --without-*)
1227
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228
# Reject names that are not valid shell variable names.
1229
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230
as_fn_error $? "invalid package name: $ac_useropt"
1231
ac_useropt_orig=$ac_useropt
1232
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233
case $ac_user_opts in
1237
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238
ac_unrecognized_sep=', ';;
1240
eval with_$ac_useropt=no ;;
1243
# Obsolete; use --with-x.
1246
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247
| --x-incl | --x-inc | --x-in | --x-i)
1248
ac_prev=x_includes ;;
1249
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251
x_includes=$ac_optarg ;;
1253
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1254
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255
ac_prev=x_libraries ;;
1256
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258
x_libraries=$ac_optarg ;;
1260
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1261
Try \`$0 --help' for more information"
1265
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266
# Reject names that are not valid shell variable names.
1267
case $ac_envvar in #(
1268
'' | [0-9]* | *[!_$as_cr_alnum]* )
1269
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271
eval $ac_envvar=\$ac_optarg
1272
export $ac_envvar ;;
1275
# FIXME: should be removed in autoconf 3.0.
1276
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285
if test -n "$ac_prev"; then
1286
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287
as_fn_error $? "missing argument to $ac_option"
1290
if test -n "$ac_unrecognized_opts"; then
1291
case $enable_option_checking in
1293
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298
# Check all directory arguments for consistency.
1299
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300
datadir sysconfdir sharedstatedir localstatedir includedir \
1301
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302
libdir localedir mandir
1304
eval ac_val=\$$ac_var
1305
# Remove trailing slashes.
1308
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309
eval $ac_var=\$ac_val;;
1311
# Be sure to have absolute directory names.
1313
[\\/$]* | ?:[\\/]* ) continue;;
1314
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319
# There might be people who depend on the old broken behavior: `$host'
1320
# used to hold the argument of --host etc.
1321
# FIXME: To remove some day.
1324
target=$target_alias
1326
# FIXME: To remove some day.
1327
if test "x$host_alias" != x; then
1328
if test "x$build_alias" = x; then
1329
cross_compiling=maybe
1330
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1331
If a cross compiler is detected then cross compile mode will be used" >&2
1332
elif test "x$build_alias" != "x$host_alias"; then
1338
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
test "$silent" = yes && exec 6>/dev/null
1343
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344
ac_ls_di=`ls -di .` &&
1345
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346
as_fn_error $? "working directory cannot be determined"
1347
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348
as_fn_error $? "pwd does not report name of working directory"
1351
# Find the source files, if location was not specified.
1352
if test -z "$srcdir"; then
1353
ac_srcdir_defaulted=yes
1354
# Try the directory containing this script, then the parent directory.
1355
ac_confdir=`$as_dirname -- "$as_myself" ||
1356
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357
X"$as_myself" : 'X\(//\)[^/]' \| \
1358
X"$as_myself" : 'X\(//\)$' \| \
1359
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360
$as_echo X"$as_myself" |
1361
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379
if test ! -r "$srcdir/$ac_unique_file"; then
1383
ac_srcdir_defaulted=no
1385
if test ! -r "$srcdir/$ac_unique_file"; then
1386
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393
# When building in place, set srcdir=.
1394
if test "$ac_abs_confdir" = "$ac_pwd"; then
1397
# Remove unnecessary trailing slashes from srcdir.
1398
# Double slashes in file names in object file debugging info
1399
# mess up M-x gdb in Emacs.
1401
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403
for ac_var in $ac_precious_vars; do
1404
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405
eval ac_env_${ac_var}_value=\$${ac_var}
1406
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411
# Report the --help message.
1413
if test "$ac_init_help" = "long"; then
1414
# Omit some internal or obsolete options to make the list less imposing.
1415
# This message is too long to be a string in the A/UX 3.1 sh.
1417
\`configure' configures xf86-input-wacom 0.14.0 to adapt to many kinds of systems.
1419
Usage: $0 [OPTION]... [VAR=VALUE]...
1421
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422
VAR=VALUE. See below for descriptions of some of the useful variables.
1424
Defaults for the options are specified in brackets.
1427
-h, --help display this help and exit
1428
--help=short display options specific to this package
1429
--help=recursive display the short help of all the included packages
1430
-V, --version display version information and exit
1431
-q, --quiet, --silent do not print \`checking ...' messages
1432
--cache-file=FILE cache test results in FILE [disabled]
1433
-C, --config-cache alias for \`--cache-file=config.cache'
1434
-n, --no-create do not create output files
1435
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
Installation directories:
1438
--prefix=PREFIX install architecture-independent files in PREFIX
1439
[$ac_default_prefix]
1440
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443
By default, \`make install' will install all the files in
1444
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446
for instance \`--prefix=\$HOME'.
1448
For better control, use the options below.
1450
Fine tuning of the installation directories:
1451
--bindir=DIR user executables [EPREFIX/bin]
1452
--sbindir=DIR system admin executables [EPREFIX/sbin]
1453
--libexecdir=DIR program executables [EPREFIX/libexec]
1454
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457
--libdir=DIR object code libraries [EPREFIX/lib]
1458
--includedir=DIR C header files [PREFIX/include]
1459
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1460
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462
--infodir=DIR info documentation [DATAROOTDIR/info]
1463
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464
--mandir=DIR man documentation [DATAROOTDIR/man]
1465
--docdir=DIR documentation root
1466
[DATAROOTDIR/doc/xf86-input-wacom]
1467
--htmldir=DIR html documentation [DOCDIR]
1468
--dvidir=DIR dvi documentation [DOCDIR]
1469
--pdfdir=DIR pdf documentation [DOCDIR]
1470
--psdir=DIR ps documentation [DOCDIR]
1476
--program-prefix=PREFIX prepend PREFIX to installed program names
1477
--program-suffix=SUFFIX append SUFFIX to installed program names
1478
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481
--build=BUILD configure for building on BUILD [guessed]
1482
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1486
if test -n "$ac_init_help"; then
1487
case $ac_init_help in
1488
short | recursive ) echo "Configuration of xf86-input-wacom 0.14.0:";;
1493
--disable-option-checking ignore unrecognized --enable/--with options
1494
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496
--enable-maintainer-mode enable make rules and dependencies not useful
1497
(and sometimes confusing) to the casual installer
1498
--disable-dependency-tracking speeds up one-time build
1499
--enable-dependency-tracking do not reject slow dependency extractors
1500
--enable-static[=PKGS] build static libraries [default=no]
1501
--enable-shared[=PKGS] build shared libraries [default=yes]
1502
--enable-fast-install[=PKGS]
1503
optimize for fast installation [default=yes]
1504
--disable-libtool-lock avoid locking (might break parallel builds)
1505
--disable-selective-werror
1506
Turn off selective compiler errors. (default:
1508
--enable-strict-compilation
1509
Enable all warnings from compiler and make them
1510
errors (default: disabled)
1511
--enable-silent-rules less verbose build output (undo: `make V=1')
1512
--disable-silent-rules verbose build output (undo: `make V=0')
1513
--enable-debug Enable debugging (default: disabled)
1514
--enable-unit-tests Enable unit-tests (default: auto)
1517
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1521
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522
--with-sysroot=DIR Search for dependent libraries within DIR
1523
(or the compiler's sysroot if not specified).
1524
--with-doxygen Use doxygen to regenerate documentation (default:
1527
--with-xorg-module-dir=DIR
1528
Default xorg module directory
1529
[[default=$libdir/xorg/modules]]
1530
--with-xorg-conf-dir=DIR
1531
Default xorg.conf.d directory [[default=from
1532
$PKG_CONFIG xorg-server]]
1534
Some influential environment variables:
1535
CC C compiler command
1536
CFLAGS C compiler flags
1537
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538
nonstandard directory <lib dir>
1539
LIBS libraries to pass to the linker, e.g. -l<library>
1540
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541
you have headers in a nonstandard directory <include dir>
1543
PKG_CONFIG path to pkg-config utility
1545
directories to add to pkg-config's search path
1547
path overriding pkg-config's built-in search path
1548
DOXYGEN Path to doxygen command
1549
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1550
XORG_LIBS linker flags for XORG, overriding pkg-config
1551
X11_CFLAGS C compiler flags for X11, overriding pkg-config
1552
X11_LIBS linker flags for X11, overriding pkg-config
1553
UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1554
UDEV_LIBS linker flags for UDEV, overriding pkg-config
1556
Use these variables to override the choices made by `configure' or to help
1557
it to find libraries and programs with nonstandard names/locations.
1559
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1564
if test "$ac_init_help" = "recursive"; then
1565
# If there are subdirs, report their specific --help.
1566
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567
test -d "$ac_dir" ||
1568
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576
# A ".." for each directory in $ac_dir_suffix.
1577
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578
case $ac_top_builddir_sub in
1579
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583
ac_abs_top_builddir=$ac_pwd
1584
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585
# for backward compatibility:
1586
ac_top_builddir=$ac_top_build_prefix
1589
.) # We are building in place.
1591
ac_top_srcdir=$ac_top_builddir_sub
1592
ac_abs_top_srcdir=$ac_pwd ;;
1593
[\\/]* | ?:[\\/]* ) # Absolute name.
1594
ac_srcdir=$srcdir$ac_dir_suffix;
1595
ac_top_srcdir=$srcdir
1596
ac_abs_top_srcdir=$srcdir ;;
1598
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599
ac_top_srcdir=$ac_top_build_prefix$srcdir
1600
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
cd "$ac_dir" || { ac_status=$?; continue; }
1605
# Check for guested configure.
1606
if test -f "$ac_srcdir/configure.gnu"; then
1608
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609
elif test -f "$ac_srcdir/configure"; then
1611
$SHELL "$ac_srcdir/configure" --help=recursive
1613
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615
cd "$ac_pwd" || { ac_status=$?; break; }
1619
test -n "$ac_init_help" && exit $ac_status
1620
if $ac_init_version; then
1622
xf86-input-wacom configure 0.14.0
1623
generated by GNU Autoconf 2.68
1625
Copyright (C) 2010 Free Software Foundation, Inc.
1626
This configure script is free software; the Free Software Foundation
1627
gives unlimited permission to copy, distribute and modify it.
1632
## ------------------------ ##
1633
## Autoconf initialization. ##
1634
## ------------------------ ##
1636
# ac_fn_c_try_compile LINENO
1637
# --------------------------
1638
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1639
ac_fn_c_try_compile ()
1641
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642
rm -f conftest.$ac_objext
1643
if { { ac_try="$ac_compile"
1645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646
*) ac_try_echo=$ac_try;;
1648
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649
$as_echo "$ac_try_echo"; } >&5
1650
(eval "$ac_compile") 2>conftest.err
1652
if test -s conftest.err; then
1653
grep -v '^ *+' conftest.err >conftest.er1
1654
cat conftest.er1 >&5
1655
mv -f conftest.er1 conftest.err
1657
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658
test $ac_status = 0; } && {
1659
test -z "$ac_c_werror_flag" ||
1660
test ! -s conftest.err
1661
} && test -s conftest.$ac_objext; then :
1664
$as_echo "$as_me: failed program was:" >&5
1665
sed 's/^/| /' conftest.$ac_ext >&5
1669
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
as_fn_set_status $ac_retval
1672
} # ac_fn_c_try_compile
1674
# ac_fn_c_try_cpp LINENO
1675
# ----------------------
1676
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680
if { { ac_try="$ac_cpp conftest.$ac_ext"
1682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683
*) ac_try_echo=$ac_try;;
1685
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686
$as_echo "$ac_try_echo"; } >&5
1687
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689
if test -s conftest.err; then
1690
grep -v '^ *+' conftest.err >conftest.er1
1691
cat conftest.er1 >&5
1692
mv -f conftest.er1 conftest.err
1694
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695
test $ac_status = 0; } > conftest.i && {
1696
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697
test ! -s conftest.err
1701
$as_echo "$as_me: failed program was:" >&5
1702
sed 's/^/| /' conftest.$ac_ext >&5
1706
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
as_fn_set_status $ac_retval
1711
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712
# -------------------------------------------------------
1713
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714
# the include files in INCLUDES and setting the cache variable VAR
1716
ac_fn_c_check_header_mongrel ()
1718
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
if eval \${$3+:} false; then :
1720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721
$as_echo_n "checking for $2... " >&6; }
1722
if eval \${$3+:} false; then :
1723
$as_echo_n "(cached) " >&6
1726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
$as_echo "$ac_res" >&6; }
1729
# Is the header compilable?
1730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731
$as_echo_n "checking $2 usability... " >&6; }
1732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733
/* end confdefs.h. */
1737
if ac_fn_c_try_compile "$LINENO"; then :
1738
ac_header_compiler=yes
1740
ac_header_compiler=no
1742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744
$as_echo "$ac_header_compiler" >&6; }
1746
# Is the header present?
1747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748
$as_echo_n "checking $2 presence... " >&6; }
1749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750
/* end confdefs.h. */
1753
if ac_fn_c_try_cpp "$LINENO"; then :
1754
ac_header_preproc=yes
1756
ac_header_preproc=no
1758
rm -f conftest.err conftest.i conftest.$ac_ext
1759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760
$as_echo "$ac_header_preproc" >&6; }
1762
# So? What about this header?
1763
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1765
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781
( $as_echo "## ---------------------------------------------------------------------- ##
1782
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1783
## ---------------------------------------------------------------------- ##"
1784
) | sed "s/^/$as_me: WARNING: /" >&2
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788
$as_echo_n "checking for $2... " >&6; }
1789
if eval \${$3+:} false; then :
1790
$as_echo_n "(cached) " >&6
1792
eval "$3=\$ac_header_compiler"
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796
$as_echo "$ac_res" >&6; }
1798
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
} # ac_fn_c_check_header_mongrel
1802
# ac_fn_c_try_run LINENO
1803
# ----------------------
1804
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805
# that executables *can* be run.
1808
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809
if { { ac_try="$ac_link"
1811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812
*) ac_try_echo=$ac_try;;
1814
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815
$as_echo "$ac_try_echo"; } >&5
1816
(eval "$ac_link") 2>&5
1818
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820
{ { case "(($ac_try" in
1821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822
*) ac_try_echo=$ac_try;;
1824
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825
$as_echo "$ac_try_echo"; } >&5
1826
(eval "$ac_try") 2>&5
1828
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829
test $ac_status = 0; }; }; then :
1832
$as_echo "$as_me: program exited with status $ac_status" >&5
1833
$as_echo "$as_me: failed program was:" >&5
1834
sed 's/^/| /' conftest.$ac_ext >&5
1836
ac_retval=$ac_status
1838
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
as_fn_set_status $ac_retval
1844
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845
# -------------------------------------------------------
1846
# Tests whether HEADER exists and can be compiled using the include files in
1847
# INCLUDES, setting the cache variable VAR accordingly.
1848
ac_fn_c_check_header_compile ()
1850
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852
$as_echo_n "checking for $2... " >&6; }
1853
if eval \${$3+:} false; then :
1854
$as_echo_n "(cached) " >&6
1856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857
/* end confdefs.h. */
1861
if ac_fn_c_try_compile "$LINENO"; then :
1866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870
$as_echo "$ac_res" >&6; }
1871
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
} # ac_fn_c_check_header_compile
1875
# ac_fn_c_try_link LINENO
1876
# -----------------------
1877
# Try to link conftest.$ac_ext, and return whether this succeeded.
1880
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881
rm -f conftest.$ac_objext conftest$ac_exeext
1882
if { { ac_try="$ac_link"
1884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885
*) ac_try_echo=$ac_try;;
1887
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888
$as_echo "$ac_try_echo"; } >&5
1889
(eval "$ac_link") 2>conftest.err
1891
if test -s conftest.err; then
1892
grep -v '^ *+' conftest.err >conftest.er1
1893
cat conftest.er1 >&5
1894
mv -f conftest.er1 conftest.err
1896
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897
test $ac_status = 0; } && {
1898
test -z "$ac_c_werror_flag" ||
1899
test ! -s conftest.err
1900
} && test -s conftest$ac_exeext && {
1901
test "$cross_compiling" = yes ||
1902
$as_test_x conftest$ac_exeext
1906
$as_echo "$as_me: failed program was:" >&5
1907
sed 's/^/| /' conftest.$ac_ext >&5
1911
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913
# interfere with the next link command; also delete a directory that is
1914
# left behind by Apple's compiler. We do this before executing the actions.
1915
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
as_fn_set_status $ac_retval
1919
} # ac_fn_c_try_link
1921
# ac_fn_c_check_func LINENO FUNC VAR
1922
# ----------------------------------
1923
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924
ac_fn_c_check_func ()
1926
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928
$as_echo_n "checking for $2... " >&6; }
1929
if eval \${$3+:} false; then :
1930
$as_echo_n "(cached) " >&6
1932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933
/* end confdefs.h. */
1934
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936
#define $2 innocuous_$2
1938
/* System header to define __stub macros and hopefully few prototypes,
1939
which can conflict with char $2 (); below.
1940
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941
<limits.h> exists even on freestanding compilers. */
1944
# include <limits.h>
1946
# include <assert.h>
1951
/* Override any GCC internal prototype to avoid an error.
1952
Use char because int might match the return type of a GCC
1953
builtin and then its argument prototype would still apply. */
1958
/* The GNU C library defines this for functions which it implements
1959
to always fail with ENOSYS. Some functions are actually named
1960
something starting with __ and the normal name is an alias. */
1961
#if defined __stub_$2 || defined __stub___$2
1973
if ac_fn_c_try_link "$LINENO"; then :
1978
rm -f core conftest.err conftest.$ac_objext \
1979
conftest$ac_exeext conftest.$ac_ext
1982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983
$as_echo "$ac_res" >&6; }
1984
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
} # ac_fn_c_check_func
1988
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1989
# ---------------------------------------------
1990
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1992
ac_fn_c_check_decl ()
1994
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995
as_decl_name=`echo $2|sed 's/ *(.*//'`
1996
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1998
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1999
if eval \${$3+:} false; then :
2000
$as_echo_n "(cached) " >&6
2002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003
/* end confdefs.h. */
2008
#ifndef $as_decl_name
2010
(void) $as_decl_use;
2012
(void) $as_decl_name;
2020
if ac_fn_c_try_compile "$LINENO"; then :
2025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029
$as_echo "$ac_res" >&6; }
2030
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
} # ac_fn_c_check_decl
2033
cat >config.log <<_ACEOF
2034
This file contains any messages produced by compilers while
2035
running configure, to aid debugging if configure makes a mistake.
2037
It was created by xf86-input-wacom $as_me 0.14.0, which was
2038
generated by GNU Autoconf 2.68. Invocation command line was
2050
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2059
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073
test -z "$as_dir" && as_dir=.
2074
$as_echo "PATH: $as_dir"
2090
# Keep a trace of the command line.
2091
# Strip out --no-create and --no-recursion so they do not pile up.
2092
# Strip out --silent because we don't want to record it for future runs.
2093
# Also quote any args containing shell meta-characters.
2094
# Make two passes to allow for proper duplicate-argument suppression.
2098
ac_must_keep_next=false
2104
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106
| -silent | --silent | --silen | --sile | --sil)
2109
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114
as_fn_append ac_configure_args1 " '$ac_arg'"
2115
if test $ac_must_keep_next = true; then
2116
ac_must_keep_next=false # Got value, back to normal.
2119
*=* | --config-cache | -C | -disable-* | --disable-* \
2120
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122
| -with-* | --with-* | -without-* | --without-* | --x)
2123
case "$ac_configure_args0 " in
2124
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127
-* ) ac_must_keep_next=true ;;
2130
as_fn_append ac_configure_args " '$ac_arg'"
2135
{ ac_configure_args0=; unset ac_configure_args0;}
2136
{ ac_configure_args1=; unset ac_configure_args1;}
2138
# When interrupted or exit'd, cleanup temporary files, and complete
2139
# config.log. We remove comments because anyway the quotes in there
2140
# would cause problems or look ugly.
2141
# WARNING: Use '\'' to represent an apostrophe within the trap.
2142
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143
trap 'exit_status=$?
2144
# Save into config.log some information that might help in debugging.
2148
$as_echo "## ---------------- ##
2149
## Cache variables. ##
2150
## ---------------- ##"
2152
# The following way of writing the cache mishandles newlines in values,
2154
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155
eval ac_val=\$$ac_var
2159
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163
_ | IFS | as_nl) ;; #(
2164
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165
*) { eval $ac_var=; unset $ac_var;} ;;
2170
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171
*${as_nl}ac_space=\ *)
2173
"s/'\''/'\''\\\\'\'''\''/g;
2174
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184
$as_echo "## ----------------- ##
2185
## Output variables. ##
2186
## ----------------- ##"
2188
for ac_var in $ac_subst_vars
2190
eval ac_val=\$$ac_var
2192
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194
$as_echo "$ac_var='\''$ac_val'\''"
2198
if test -n "$ac_subst_files"; then
2199
$as_echo "## ------------------- ##
2200
## File substitutions. ##
2201
## ------------------- ##"
2203
for ac_var in $ac_subst_files
2205
eval ac_val=\$$ac_var
2207
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209
$as_echo "$ac_var='\''$ac_val'\''"
2214
if test -s confdefs.h; then
2215
$as_echo "## ----------- ##
2222
test "$ac_signal" != 0 &&
2223
$as_echo "$as_me: caught signal $ac_signal"
2224
$as_echo "$as_me: exit $exit_status"
2226
rm -f core *.core core.conftest.* &&
2227
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230
for ac_signal in 1 2 13 15; do
2231
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2236
rm -f -r conftest* confdefs.h
2238
$as_echo "/* confdefs.h */" > confdefs.h
2240
# Predefined preprocessor variables.
2242
cat >>confdefs.h <<_ACEOF
2243
#define PACKAGE_NAME "$PACKAGE_NAME"
2246
cat >>confdefs.h <<_ACEOF
2247
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250
cat >>confdefs.h <<_ACEOF
2251
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2254
cat >>confdefs.h <<_ACEOF
2255
#define PACKAGE_STRING "$PACKAGE_STRING"
2258
cat >>confdefs.h <<_ACEOF
2259
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262
cat >>confdefs.h <<_ACEOF
2263
#define PACKAGE_URL "$PACKAGE_URL"
2267
# Let the site file select an alternate cache file if it wants to.
2268
# Prefer an explicitly selected file to automatically selected ones.
2271
if test -n "$CONFIG_SITE"; then
2272
# We do not want a PATH search for config.site.
2273
case $CONFIG_SITE in #((
2274
-*) ac_site_file1=./$CONFIG_SITE;;
2275
*/*) ac_site_file1=$CONFIG_SITE;;
2276
*) ac_site_file1=./$CONFIG_SITE;;
2278
elif test "x$prefix" != xNONE; then
2279
ac_site_file1=$prefix/share/config.site
2280
ac_site_file2=$prefix/etc/config.site
2282
ac_site_file1=$ac_default_prefix/share/config.site
2283
ac_site_file2=$ac_default_prefix/etc/config.site
2285
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287
test "x$ac_site_file" = xNONE && continue
2288
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291
sed 's/^/| /' "$ac_site_file" >&5
2293
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295
as_fn_error $? "failed to load site script $ac_site_file
2296
See \`config.log' for more details" "$LINENO" 5; }
2300
if test -r "$cache_file"; then
2301
# Some versions of bash will fail to source /dev/null (special files
2302
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2303
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305
$as_echo "$as_me: loading cache $cache_file" >&6;}
2307
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2308
*) . "./$cache_file";;
2312
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313
$as_echo "$as_me: creating cache $cache_file" >&6;}
2317
# Check that the precious variables saved in the cache have kept the same
2319
ac_cache_corrupted=false
2320
for ac_var in $ac_precious_vars; do
2321
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322
eval ac_new_set=\$ac_env_${ac_var}_set
2323
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324
eval ac_new_val=\$ac_env_${ac_var}_value
2325
case $ac_old_set,$ac_new_set in
2327
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329
ac_cache_corrupted=: ;;
2331
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333
ac_cache_corrupted=: ;;
2336
if test "x$ac_old_val" != "x$ac_new_val"; then
2337
# differences in whitespace do not lead to failure.
2338
ac_old_val_w=`echo x $ac_old_val`
2339
ac_new_val_w=`echo x $ac_new_val`
2340
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343
ac_cache_corrupted=:
2345
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347
eval $ac_var=\$ac_old_val
2349
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2350
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2352
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355
# Pass precious variables to config.status.
2356
if test "$ac_new_set" = set; then
2358
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359
*) ac_arg=$ac_var=$ac_new_val ;;
2361
case " $ac_configure_args " in
2362
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2363
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2367
if $ac_cache_corrupted; then
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2374
## -------------------- ##
2375
## Main body of script. ##
2376
## -------------------- ##
2379
ac_cpp='$CPP $CPPFLAGS'
2380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
ac_config_headers="$ac_config_headers config.h"
2390
# Initialize Automake
2391
am__api_version='1.11'
2394
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2395
if test -f "$ac_dir/install-sh"; then
2397
ac_install_sh="$ac_aux_dir/install-sh -c"
2399
elif test -f "$ac_dir/install.sh"; then
2401
ac_install_sh="$ac_aux_dir/install.sh -c"
2403
elif test -f "$ac_dir/shtool"; then
2405
ac_install_sh="$ac_aux_dir/shtool install -c"
2409
if test -z "$ac_aux_dir"; then
2410
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2413
# These three variables are undocumented and unsupported,
2414
# and are intended to be withdrawn in a future Autoconf release.
2415
# They can cause serious problems if a builder's source tree is in a directory
2416
# whose full name contains unusual characters.
2417
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2418
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2419
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2422
# Find a good install program. We prefer a C program (faster),
2423
# so one script is as good as another. But avoid the broken or
2424
# incompatible versions:
2425
# SysV /etc/install, /usr/sbin/install
2426
# SunOS /usr/etc/install
2427
# IRIX /sbin/install
2429
# AmigaOS /C/install, which installs bootblocks on floppy discs
2430
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433
# OS/2's system install, which has a completely different semantic
2434
# ./install, which can be erroneously created by make from ./install.sh.
2435
# Reject install programs that cannot install multiple files.
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2438
if test -z "$INSTALL"; then
2439
if ${ac_cv_path_install+:} false; then :
2440
$as_echo_n "(cached) " >&6
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
test -z "$as_dir" && as_dir=.
2447
# Account for people who put trailing slashes in PATH elements.
2448
case $as_dir/ in #((
2449
./ | .// | /[cC]/* | \
2450
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2451
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2454
# OSF1 and SCO ODT 3.0 have their own names for install.
2455
# Don't use installbsd from OSF since it installs stuff as root
2457
for ac_prog in ginstall scoinst install; do
2458
for ac_exec_ext in '' $ac_executable_extensions; do
2459
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2460
if test $ac_prog = install &&
2461
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462
# AIX install. It has an incompatible calling convention.
2464
elif test $ac_prog = install &&
2465
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466
# program-specific install script used by HP pwplus--don't use.
2469
rm -rf conftest.one conftest.two conftest.dir
2470
echo one > conftest.one
2471
echo two > conftest.two
2473
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474
test -s conftest.one && test -s conftest.two &&
2475
test -s conftest.dir/conftest.one &&
2476
test -s conftest.dir/conftest.two
2478
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491
rm -rf conftest.one conftest.two conftest.dir
2494
if test "${ac_cv_path_install+set}" = set; then
2495
INSTALL=$ac_cv_path_install
2497
# As a last resort, use the slow shell script. Don't cache a
2498
# value for INSTALL within a source directory, because that will
2499
# break other packages using the cache if that directory is
2500
# removed, or if the value is a relative name.
2501
INSTALL=$ac_install_sh
2504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505
$as_echo "$INSTALL" >&6; }
2507
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508
# It thinks the first close brace ends the variable substitution.
2509
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2511
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2513
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2516
$as_echo_n "checking whether build environment is sane... " >&6; }
2519
echo timestamp > conftest.file
2520
# Reject unsafe characters in $srcdir or the absolute working directory
2521
# name. Accept space and tab only in the latter.
2525
*[\\\"\#\$\&\'\`$am_lf]*)
2526
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2533
# Do `set' in a subshell so we don't clobber the current shell's
2534
# arguments. Must try -L first in case configure is actually a
2535
# symlink; some systems play weird games with the mod time of symlinks
2536
# (eg FreeBSD returns the mod time of the symlink's containing
2539
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2540
if test "$*" = "X"; then
2542
set X `ls -t "$srcdir/configure" conftest.file`
2545
if test "$*" != "X $srcdir/configure conftest.file" \
2546
&& test "$*" != "X conftest.file $srcdir/configure"; then
2548
# If neither matched, then we have a broken ls. This can happen
2549
# if, for instance, CONFIG_SHELL is bash and it inherits a
2550
# broken ls alias from the environment. This has actually
2551
# happened. Such a system could not be considered "sane".
2552
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2553
alias in your environment" "$LINENO" 5
2556
test "$2" = conftest.file
2562
as_fn_error $? "newly created file is older than distributed files!
2563
Check your system clock" "$LINENO" 5
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566
$as_echo "yes" >&6; }
2567
test "$program_prefix" != NONE &&
2568
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2569
# Use a double $ so make ignores it.
2570
test "$program_suffix" != NONE &&
2571
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2572
# Double any \ or $.
2573
# By default was `s,x,x', remove it if useless.
2574
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2575
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2577
# expand $ac_aux_dir to an absolute path
2578
am_aux_dir=`cd $ac_aux_dir && pwd`
2580
if test x"${MISSING+set}" != xset; then
2583
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2585
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2588
# Use eval to expand $SHELL
2589
if eval "$MISSING --run true"; then
2590
am_missing_run="$MISSING --run "
2593
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2594
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2597
if test x"${install_sh}" != xset; then
2600
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2602
install_sh="\${SHELL} $am_aux_dir/install-sh"
2606
# Installed binaries are usually stripped using `strip' when the user
2607
# run `make install-strip'. However `strip' might not be the right
2608
# tool to use in cross-compilation environments, therefore Automake
2609
# will honor the `STRIP' environment variable to overrule this program.
2610
if test "$cross_compiling" != no; then
2611
if test -n "$ac_tool_prefix"; then
2612
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2613
set dummy ${ac_tool_prefix}strip; ac_word=$2
2614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615
$as_echo_n "checking for $ac_word... " >&6; }
2616
if ${ac_cv_prog_STRIP+:} false; then :
2617
$as_echo_n "(cached) " >&6
2619
if test -n "$STRIP"; then
2620
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626
test -z "$as_dir" && as_dir=.
2627
for ac_exec_ext in '' $ac_executable_extensions; do
2628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639
STRIP=$ac_cv_prog_STRIP
2640
if test -n "$STRIP"; then
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2642
$as_echo "$STRIP" >&6; }
2644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
$as_echo "no" >&6; }
2650
if test -z "$ac_cv_prog_STRIP"; then
2652
# Extract the first word of "strip", so it can be a program name with args.
2653
set dummy strip; ac_word=$2
2654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655
$as_echo_n "checking for $ac_word... " >&6; }
2656
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2657
$as_echo_n "(cached) " >&6
2659
if test -n "$ac_ct_STRIP"; then
2660
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
test -z "$as_dir" && as_dir=.
2667
for ac_exec_ext in '' $ac_executable_extensions; do
2668
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669
ac_cv_prog_ac_ct_STRIP="strip"
2670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2680
if test -n "$ac_ct_STRIP"; then
2681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2682
$as_echo "$ac_ct_STRIP" >&6; }
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685
$as_echo "no" >&6; }
2688
if test "x$ac_ct_STRIP" = x; then
2691
case $cross_compiling:$ac_tool_warned in
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695
ac_tool_warned=yes ;;
2700
STRIP="$ac_cv_prog_STRIP"
2704
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2707
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2708
if test -z "$MKDIR_P"; then
2709
if ${ac_cv_path_mkdir+:} false; then :
2710
$as_echo_n "(cached) " >&6
2712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2716
test -z "$as_dir" && as_dir=.
2717
for ac_prog in mkdir gmkdir; do
2718
for ac_exec_ext in '' $ac_executable_extensions; do
2719
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2720
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2721
'mkdir (GNU coreutils) '* | \
2722
'mkdir (coreutils) '* | \
2723
'mkdir (fileutils) '4.1*)
2724
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2734
test -d ./--version && rmdir ./--version
2735
if test "${ac_cv_path_mkdir+set}" = set; then
2736
MKDIR_P="$ac_cv_path_mkdir -p"
2738
# As a last resort, use the slow shell script. Don't cache a
2739
# value for MKDIR_P within a source directory, because that will
2740
# break other packages using the cache if that directory is
2741
# removed, or if the value is a relative name.
2742
MKDIR_P="$ac_install_sh -d"
2745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2746
$as_echo "$MKDIR_P" >&6; }
2750
[\\/$]* | ?:[\\/]*) ;;
2751
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2754
for ac_prog in gawk mawk nawk awk
2756
# Extract the first word of "$ac_prog", so it can be a program name with args.
2757
set dummy $ac_prog; ac_word=$2
2758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759
$as_echo_n "checking for $ac_word... " >&6; }
2760
if ${ac_cv_prog_AWK+:} false; then :
2761
$as_echo_n "(cached) " >&6
2763
if test -n "$AWK"; then
2764
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770
test -z "$as_dir" && as_dir=.
2771
for ac_exec_ext in '' $ac_executable_extensions; do
2772
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773
ac_cv_prog_AWK="$ac_prog"
2774
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784
if test -n "$AWK"; then
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786
$as_echo "$AWK" >&6; }
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789
$as_echo "no" >&6; }
2793
test -n "$AWK" && break
2796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2799
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801
$as_echo_n "(cached) " >&6
2803
cat >conftest.make <<\_ACEOF
2806
@echo '@@@%%%=$(MAKE)=@@@%%%'
2808
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2811
eval ac_cv_prog_make_${ac_make}_set=yes;;
2813
eval ac_cv_prog_make_${ac_make}_set=no;;
2817
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819
$as_echo "yes" >&6; }
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823
$as_echo "no" >&6; }
2824
SET_MAKE="MAKE=${MAKE-make}"
2827
rm -rf .tst 2>/dev/null
2828
mkdir .tst 2>/dev/null
2829
if test -d .tst; then
2834
rmdir .tst 2>/dev/null
2836
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838
# is not polluted with repeated "-I."
2839
am__isrc=' -I$(srcdir)'
2840
# test to see if srcdir already configured
2841
if test -f $srcdir/config.status; then
2842
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2846
# test whether we have cygpath
2847
if test -z "$CYGPATH_W"; then
2848
if (cygpath --version) >/dev/null 2>/dev/null; then
2849
CYGPATH_W='cygpath -w'
2856
# Define the identity of the package.
2857
PACKAGE='xf86-input-wacom'
2861
cat >>confdefs.h <<_ACEOF
2862
#define PACKAGE "$PACKAGE"
2866
cat >>confdefs.h <<_ACEOF
2867
#define VERSION "$VERSION"
2870
# Some tools Automake needs.
2872
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2875
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2878
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2881
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2884
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2886
# We need awk for the "check" target. The system "awk" is bad on
2888
# Always define AMTAR for backward compatibility. Yes, it's still used
2889
# in the wild :-( We should find a proper way to deprecate it ...
2892
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2900
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2901
# Check whether --enable-maintainer-mode was given.
2902
if test "${enable_maintainer_mode+set}" = set; then :
2903
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2905
USE_MAINTAINER_MODE=no
2908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2909
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2910
if test $USE_MAINTAINER_MODE = yes; then
2911
MAINTAINER_MODE_TRUE=
2912
MAINTAINER_MODE_FALSE='#'
2914
MAINTAINER_MODE_TRUE='#'
2915
MAINTAINER_MODE_FALSE=
2918
MAINT=$MAINTAINER_MODE_TRUE
2921
DEPDIR="${am__leading_dot}deps"
2923
ac_config_commands="$ac_config_commands depfiles"
2926
am_make=${MAKE-make}
2927
cat > confinc << 'END'
2929
@echo this is the am__doit target
2932
# If we don't find an include directive, just comment out the code.
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2934
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2938
# First try GNU make style include.
2939
echo "include confinc" > confmf
2940
# Ignore all kinds of additional output from `make'.
2941
case `$am_make -s -f confmf 2> /dev/null` in #(
2942
*the\ am__doit\ target*)
2948
# Now try BSD make style include.
2949
if test "$am__include" = "#"; then
2950
echo '.include "confinc"' > confmf
2951
case `$am_make -s -f confmf 2> /dev/null` in #(
2952
*the\ am__doit\ target*)
2953
am__include=.include
2961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2962
$as_echo "$_am_result" >&6; }
2963
rm -f confinc confmf
2965
# Check whether --enable-dependency-tracking was given.
2966
if test "${enable_dependency_tracking+set}" = set; then :
2967
enableval=$enable_dependency_tracking;
2970
if test "x$enable_dependency_tracking" != xno; then
2971
am_depcomp="$ac_aux_dir/depcomp"
2975
if test "x$enable_dependency_tracking" != xno; then
2985
ac_cpp='$CPP $CPPFLAGS'
2986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
if test -n "$ac_tool_prefix"; then
2990
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993
$as_echo_n "checking for $ac_word... " >&6; }
2994
if ${ac_cv_prog_CC+:} false; then :
2995
$as_echo_n "(cached) " >&6
2997
if test -n "$CC"; then
2998
ac_cv_prog_CC="$CC" # Let the user override the test.
3000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004
test -z "$as_dir" && as_dir=.
3005
for ac_exec_ext in '' $ac_executable_extensions; do
3006
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018
if test -n "$CC"; then
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020
$as_echo "$CC" >&6; }
3022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023
$as_echo "no" >&6; }
3028
if test -z "$ac_cv_prog_CC"; then
3030
# Extract the first word of "gcc", so it can be a program name with args.
3031
set dummy gcc; ac_word=$2
3032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033
$as_echo_n "checking for $ac_word... " >&6; }
3034
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035
$as_echo_n "(cached) " >&6
3037
if test -n "$ac_ct_CC"; then
3038
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044
test -z "$as_dir" && as_dir=.
3045
for ac_exec_ext in '' $ac_executable_extensions; do
3046
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047
ac_cv_prog_ac_ct_CC="gcc"
3048
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058
if test -n "$ac_ct_CC"; then
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060
$as_echo "$ac_ct_CC" >&6; }
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063
$as_echo "no" >&6; }
3066
if test "x$ac_ct_CC" = x; then
3069
case $cross_compiling:$ac_tool_warned in
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073
ac_tool_warned=yes ;;
3081
if test -z "$CC"; then
3082
if test -n "$ac_tool_prefix"; then
3083
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084
set dummy ${ac_tool_prefix}cc; ac_word=$2
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086
$as_echo_n "checking for $ac_word... " >&6; }
3087
if ${ac_cv_prog_CC+:} false; then :
3088
$as_echo_n "(cached) " >&6
3090
if test -n "$CC"; then
3091
ac_cv_prog_CC="$CC" # Let the user override the test.
3093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097
test -z "$as_dir" && as_dir=.
3098
for ac_exec_ext in '' $ac_executable_extensions; do
3099
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100
ac_cv_prog_CC="${ac_tool_prefix}cc"
3101
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111
if test -n "$CC"; then
3112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113
$as_echo "$CC" >&6; }
3115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116
$as_echo "no" >&6; }
3122
if test -z "$CC"; then
3123
# Extract the first word of "cc", so it can be a program name with args.
3124
set dummy cc; ac_word=$2
3125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126
$as_echo_n "checking for $ac_word... " >&6; }
3127
if ${ac_cv_prog_CC+:} false; then :
3128
$as_echo_n "(cached) " >&6
3130
if test -n "$CC"; then
3131
ac_cv_prog_CC="$CC" # Let the user override the test.
3134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138
test -z "$as_dir" && as_dir=.
3139
for ac_exec_ext in '' $ac_executable_extensions; do
3140
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142
ac_prog_rejected=yes
3146
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153
if test $ac_prog_rejected = yes; then
3154
# We found a bogon in the path, so make sure we never use it.
3155
set dummy $ac_cv_prog_CC
3157
if test $# != 0; then
3158
# We chose a different compiler from the bogus one.
3159
# However, it has the same basename, so the bogon will be chosen
3160
# first if we set CC to just the basename; use the full file name.
3162
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3168
if test -n "$CC"; then
3169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170
$as_echo "$CC" >&6; }
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173
$as_echo "no" >&6; }
3178
if test -z "$CC"; then
3179
if test -n "$ac_tool_prefix"; then
3180
for ac_prog in cl.exe
3182
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185
$as_echo_n "checking for $ac_word... " >&6; }
3186
if ${ac_cv_prog_CC+:} false; then :
3187
$as_echo_n "(cached) " >&6
3189
if test -n "$CC"; then
3190
ac_cv_prog_CC="$CC" # Let the user override the test.
3192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196
test -z "$as_dir" && as_dir=.
3197
for ac_exec_ext in '' $ac_executable_extensions; do
3198
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210
if test -n "$CC"; then
3211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212
$as_echo "$CC" >&6; }
3214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215
$as_echo "no" >&6; }
3219
test -n "$CC" && break
3222
if test -z "$CC"; then
3224
for ac_prog in cl.exe
3226
# Extract the first word of "$ac_prog", so it can be a program name with args.
3227
set dummy $ac_prog; ac_word=$2
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229
$as_echo_n "checking for $ac_word... " >&6; }
3230
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3231
$as_echo_n "(cached) " >&6
3233
if test -n "$ac_ct_CC"; then
3234
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240
test -z "$as_dir" && as_dir=.
3241
for ac_exec_ext in '' $ac_executable_extensions; do
3242
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243
ac_cv_prog_ac_ct_CC="$ac_prog"
3244
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254
if test -n "$ac_ct_CC"; then
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256
$as_echo "$ac_ct_CC" >&6; }
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259
$as_echo "no" >&6; }
3263
test -n "$ac_ct_CC" && break
3266
if test "x$ac_ct_CC" = x; then
3269
case $cross_compiling:$ac_tool_warned in
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273
ac_tool_warned=yes ;;
3282
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284
as_fn_error $? "no acceptable C compiler found in \$PATH
3285
See \`config.log' for more details" "$LINENO" 5; }
3287
# Provide some information about the compiler.
3288
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3291
for ac_option in --version -v -V -qversion; do
3292
{ { ac_try="$ac_compiler $ac_option >&5"
3294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295
*) ac_try_echo=$ac_try;;
3297
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298
$as_echo "$ac_try_echo"; } >&5
3299
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3301
if test -s conftest.err; then
3303
... rest of stderr output deleted ...
3304
10q' conftest.err >conftest.er1
3305
cat conftest.er1 >&5
3307
rm -f conftest.er1 conftest.err
3308
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309
test $ac_status = 0; }
3312
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313
/* end confdefs.h. */
3323
ac_clean_files_save=$ac_clean_files
3324
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325
# Try to create an executable without -o first, disregard a.out.
3326
# It will help us diagnose broken compilers, and finding out an intuition
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329
$as_echo_n "checking whether the C compiler works... " >&6; }
3330
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3332
# The possible output files:
3333
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3336
for ac_file in $ac_files
3339
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3345
if { { ac_try="$ac_link_default"
3347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348
*) ac_try_echo=$ac_try;;
3350
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351
$as_echo "$ac_try_echo"; } >&5
3352
(eval "$ac_link_default") 2>&5
3354
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355
test $ac_status = 0; }; then :
3356
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3359
# so that the user can short-circuit this test for compilers unknown to
3361
for ac_file in $ac_files ''
3363
test -f "$ac_file" || continue
3365
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3368
# We found the default executable, but exeext='' is most
3372
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3374
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376
# We set ac_cv_exeext here because the later test for it is not
3377
# safe: cross compilers may not add the suffix if given an `-o'
3378
# argument, so we may need to know it at that point already.
3379
# Even if this section looks crufty: it has the advantage of
3386
test "$ac_cv_exeext" = no && ac_cv_exeext=
3391
if test -z "$ac_file"; then :
3392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393
$as_echo "no" >&6; }
3394
$as_echo "$as_me: failed program was:" >&5
3395
sed 's/^/| /' conftest.$ac_ext >&5
3397
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399
as_fn_error 77 "C compiler cannot create executables
3400
See \`config.log' for more details" "$LINENO" 5; }
3402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403
$as_echo "yes" >&6; }
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406
$as_echo_n "checking for C compiler default output file name... " >&6; }
3407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408
$as_echo "$ac_file" >&6; }
3409
ac_exeext=$ac_cv_exeext
3411
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412
ac_clean_files=$ac_clean_files_save
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414
$as_echo_n "checking for suffix of executables... " >&6; }
3415
if { { ac_try="$ac_link"
3417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418
*) ac_try_echo=$ac_try;;
3420
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421
$as_echo "$ac_try_echo"; } >&5
3422
(eval "$ac_link") 2>&5
3424
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425
test $ac_status = 0; }; then :
3426
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3427
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3428
# work properly (i.e., refer to `conftest.exe'), while it won't with
3430
for ac_file in conftest.exe conftest conftest.*; do
3431
test -f "$ac_file" || continue
3433
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443
See \`config.log' for more details" "$LINENO" 5; }
3445
rm -f conftest conftest$ac_cv_exeext
3446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447
$as_echo "$ac_cv_exeext" >&6; }
3449
rm -f conftest.$ac_ext
3450
EXEEXT=$ac_cv_exeext
3452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453
/* end confdefs.h. */
3458
FILE *f = fopen ("conftest.out", "w");
3459
return ferror (f) || fclose (f) != 0;
3465
ac_clean_files="$ac_clean_files conftest.out"
3466
# Check that the compiler produces executables we can run. If not, either
3467
# the compiler is broken, or we cross compile.
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469
$as_echo_n "checking whether we are cross compiling... " >&6; }
3470
if test "$cross_compiling" != yes; then
3471
{ { ac_try="$ac_link"
3473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474
*) ac_try_echo=$ac_try;;
3476
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477
$as_echo "$ac_try_echo"; } >&5
3478
(eval "$ac_link") 2>&5
3480
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481
test $ac_status = 0; }
3482
if { ac_try='./conftest$ac_cv_exeext'
3483
{ { case "(($ac_try" in
3484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485
*) ac_try_echo=$ac_try;;
3487
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488
$as_echo "$ac_try_echo"; } >&5
3489
(eval "$ac_try") 2>&5
3491
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492
test $ac_status = 0; }; }; then
3495
if test "$cross_compiling" = maybe; then
3498
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500
as_fn_error $? "cannot run C compiled programs.
3501
If you meant to cross compile, use \`--host'.
3502
See \`config.log' for more details" "$LINENO" 5; }
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507
$as_echo "$cross_compiling" >&6; }
3509
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510
ac_clean_files=$ac_clean_files_save
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512
$as_echo_n "checking for suffix of object files... " >&6; }
3513
if ${ac_cv_objext+:} false; then :
3514
$as_echo_n "(cached) " >&6
3516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517
/* end confdefs.h. */
3527
rm -f conftest.o conftest.obj
3528
if { { ac_try="$ac_compile"
3530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531
*) ac_try_echo=$ac_try;;
3533
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534
$as_echo "$ac_try_echo"; } >&5
3535
(eval "$ac_compile") 2>&5
3537
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538
test $ac_status = 0; }; then :
3539
for ac_file in conftest.o conftest.obj conftest.*; do
3540
test -f "$ac_file" || continue;
3542
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3548
$as_echo "$as_me: failed program was:" >&5
3549
sed 's/^/| /' conftest.$ac_ext >&5
3551
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553
as_fn_error $? "cannot compute suffix of object files: cannot compile
3554
See \`config.log' for more details" "$LINENO" 5; }
3556
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559
$as_echo "$ac_cv_objext" >&6; }
3560
OBJEXT=$ac_cv_objext
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564
if ${ac_cv_c_compiler_gnu+:} false; then :
3565
$as_echo_n "(cached) " >&6
3567
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568
/* end confdefs.h. */
3581
if ac_fn_c_try_compile "$LINENO"; then :
3586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592
if test $ac_compiler_gnu = yes; then
3597
ac_test_CFLAGS=${CFLAGS+set}
3598
ac_save_CFLAGS=$CFLAGS
3599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3601
if ${ac_cv_prog_cc_g+:} false; then :
3602
$as_echo_n "(cached) " >&6
3604
ac_save_c_werror_flag=$ac_c_werror_flag
3605
ac_c_werror_flag=yes
3608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609
/* end confdefs.h. */
3619
if ac_fn_c_try_compile "$LINENO"; then :
3623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624
/* end confdefs.h. */
3634
if ac_fn_c_try_compile "$LINENO"; then :
3637
ac_c_werror_flag=$ac_save_c_werror_flag
3639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640
/* end confdefs.h. */
3650
if ac_fn_c_try_compile "$LINENO"; then :
3653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658
ac_c_werror_flag=$ac_save_c_werror_flag
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661
$as_echo "$ac_cv_prog_cc_g" >&6; }
3662
if test "$ac_test_CFLAGS" = set; then
3663
CFLAGS=$ac_save_CFLAGS
3664
elif test $ac_cv_prog_cc_g = yes; then
3665
if test "$GCC" = yes; then
3671
if test "$GCC" = yes; then
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679
if ${ac_cv_prog_cc_c89+:} false; then :
3680
$as_echo_n "(cached) " >&6
3682
ac_cv_prog_cc_c89=no
3684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685
/* end confdefs.h. */
3688
#include <sys/types.h>
3689
#include <sys/stat.h>
3690
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691
struct buf { int x; };
3692
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693
static char *e (p, i)
3699
static char *f (char * (*g) (char **, int), char **p, ...)
3704
s = g (p, va_arg (v,int));
3709
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710
function prototypes and stuff, but not '\xHH' hex character constants.
3711
These don't provoke an error unfortunately, instead are silently treated
3712
as 'x'. The following induces an error, until -std is added to get
3713
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714
array size at least. It's necessary to write '\x00'==0 to get something
3715
that's true only with -std. */
3716
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3718
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719
inside strings and character constants. */
3721
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3723
int test (int i, double x);
3724
struct s1 {int (*f) (int a);};
3725
struct s2 {int (*f) (double a);};
3726
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3737
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3740
CC="$ac_save_CC $ac_arg"
3741
if ac_fn_c_try_compile "$LINENO"; then :
3742
ac_cv_prog_cc_c89=$ac_arg
3744
rm -f core conftest.err conftest.$ac_objext
3745
test "x$ac_cv_prog_cc_c89" != "xno" && break
3747
rm -f conftest.$ac_ext
3752
case "x$ac_cv_prog_cc_c89" in
3754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755
$as_echo "none needed" >&6; } ;;
3757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758
$as_echo "unsupported" >&6; } ;;
3760
CC="$CC $ac_cv_prog_cc_c89"
3761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3764
if test "x$ac_cv_prog_cc_c89" != xno; then :
3769
ac_cpp='$CPP $CPPFLAGS'
3770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
depcc="$CC" am_compiler_list=
3776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777
$as_echo_n "checking dependency style of $depcc... " >&6; }
3778
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779
$as_echo_n "(cached) " >&6
3781
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782
# We make a subdir and do the tests there. Otherwise we can end up
3783
# making bogus files that we don't know about and never remove. For
3784
# instance it was reported that on HP-UX the gcc test will end up
3785
# making a dummy file named `D' -- because `-MD' means `put the output
3789
# Copy depcomp to subdir because otherwise we won't find it if we're
3790
# using a relative directory.
3791
cp "$am_depcomp" conftest.dir
3793
# We will build objects and dependencies in a subdirectory because
3794
# it helps to detect inapplicable dependency modes. For instance
3795
# both Tru64's cc and ICC support -MD to output dependencies as a
3796
# side effect of compilation, but ICC will put the dependencies in
3797
# the current directory while Tru64 will put them in the object
3801
am_cv_CC_dependencies_compiler_type=none
3802
if test "$am_compiler_list" = ""; then
3803
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806
case " $depcc " in #(
3807
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3810
for depmode in $am_compiler_list; do
3811
# Setup a source with many dependencies, because some compilers
3812
# like to wrap large dependency lists on column 80 (with \), and
3813
# we should not choose a depcomp mode which is confused by this.
3815
# We need to recreate these files for each test, as the compiler may
3816
# overwrite some of them when testing with obscure command lines.
3817
# This happens at least with the AIX C compiler.
3819
for i in 1 2 3 4 5 6; do
3820
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822
# Solaris 8's {/usr,}/bin/sh.
3823
touch sub/conftst$i.h
3825
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3828
# mode. It turns out that the SunPro C++ compiler does not properly
3829
# handle `-M -o', and we need to detect this. Also, some Intel
3830
# versions had trouble with output in subdirs
3831
am__obj=sub/conftest.${OBJEXT-o}
3832
am__minus_obj="-o $am__obj"
3835
# This depmode causes a compiler race in universal mode.
3836
test "$am__universal" = false || continue
3839
# after this tag, mechanisms are not by side-effect, so they'll
3840
# only be used when explicitly requested
3841
if test "x$enable_dependency_tracking" = xyes; then
3847
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848
# This compiler won't grok `-c -o', but also, the minuso test has
3849
# not run yet. These depmodes are late enough in the game, and
3850
# so weak that their functioning should not be impacted.
3851
am__obj=conftest.${OBJEXT-o}
3856
if depmode=$depmode \
3857
source=sub/conftest.c object=$am__obj \
3858
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860
>/dev/null 2>conftest.err &&
3861
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865
# icc doesn't choke on unknown options, it will just issue warnings
3866
# or remarks (even with -Werror). So we grep stderr for any message
3867
# that says an option was ignored or not supported.
3868
# When given -MP, icc 7.0 and 7.1 complain thusly:
3869
# icc: Command line warning: ignoring option '-M'; no argument required
3870
# The diagnosis changed in icc 8.0:
3871
# icc: Command line remark: option '-MP' not supported
3872
if (grep 'ignoring option' conftest.err ||
3873
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874
am_cv_CC_dependencies_compiler_type=$depmode
3883
am_cv_CC_dependencies_compiler_type=none
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892
test "x$enable_dependency_tracking" != xno \
3893
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895
am__fastdepCC_FALSE='#'
3897
am__fastdepCC_TRUE='#'
3898
am__fastdepCC_FALSE=
3904
ac_cpp='$CPP $CPPFLAGS'
3905
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3909
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3910
# On Suns, sometimes $CPP names a directory.
3911
if test -n "$CPP" && test -d "$CPP"; then
3914
if test -z "$CPP"; then
3915
if ${ac_cv_prog_CPP+:} false; then :
3916
$as_echo_n "(cached) " >&6
3918
# Double quotes because CPP needs to be expanded
3919
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3922
for ac_c_preproc_warn_flag in '' yes
3924
# Use a header file that comes with gcc, so configuring glibc
3925
# with a fresh cross-compiler works.
3926
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927
# <limits.h> exists even on freestanding compilers.
3928
# On the NeXT, cc -E runs the code through the compiler's parser,
3929
# not just through cpp. "Syntax error" is here to catch this case.
3930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931
/* end confdefs.h. */
3933
# include <limits.h>
3935
# include <assert.h>
3939
if ac_fn_c_try_cpp "$LINENO"; then :
3942
# Broken: fails on valid input.
3945
rm -f conftest.err conftest.i conftest.$ac_ext
3947
# OK, works on sane cases. Now check whether nonexistent headers
3948
# can be detected and how.
3949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950
/* end confdefs.h. */
3951
#include <ac_nonexistent.h>
3953
if ac_fn_c_try_cpp "$LINENO"; then :
3954
# Broken: success on invalid input.
3957
# Passes both tests.
3961
rm -f conftest.err conftest.i conftest.$ac_ext
3964
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3965
rm -f conftest.i conftest.err conftest.$ac_ext
3966
if $ac_preproc_ok; then :
3978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3979
$as_echo "$CPP" >&6; }
3981
for ac_c_preproc_warn_flag in '' yes
3983
# Use a header file that comes with gcc, so configuring glibc
3984
# with a fresh cross-compiler works.
3985
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986
# <limits.h> exists even on freestanding compilers.
3987
# On the NeXT, cc -E runs the code through the compiler's parser,
3988
# not just through cpp. "Syntax error" is here to catch this case.
3989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
/* end confdefs.h. */
3992
# include <limits.h>
3994
# include <assert.h>
3998
if ac_fn_c_try_cpp "$LINENO"; then :
4001
# Broken: fails on valid input.
4004
rm -f conftest.err conftest.i conftest.$ac_ext
4006
# OK, works on sane cases. Now check whether nonexistent headers
4007
# can be detected and how.
4008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009
/* end confdefs.h. */
4010
#include <ac_nonexistent.h>
4012
if ac_fn_c_try_cpp "$LINENO"; then :
4013
# Broken: success on invalid input.
4016
# Passes both tests.
4020
rm -f conftest.err conftest.i conftest.$ac_ext
4023
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4024
rm -f conftest.i conftest.err conftest.$ac_ext
4025
if $ac_preproc_ok; then :
4028
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4031
See \`config.log' for more details" "$LINENO" 5; }
4035
ac_cpp='$CPP $CPPFLAGS'
4036
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4042
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4043
if ${ac_cv_path_GREP+:} false; then :
4044
$as_echo_n "(cached) " >&6
4046
if test -z "$GREP"; then
4047
ac_path_GREP_found=false
4048
# Loop through the user's path and test for each of PROGNAME-LIST
4049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053
test -z "$as_dir" && as_dir=.
4054
for ac_prog in grep ggrep; do
4055
for ac_exec_ext in '' $ac_executable_extensions; do
4056
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4057
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4058
# Check for GNU ac_path_GREP and select it if it is found.
4059
# Check for GNU $ac_path_GREP
4060
case `"$ac_path_GREP" --version 2>&1` in
4062
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4065
$as_echo_n 0123456789 >"conftest.in"
4068
cat "conftest.in" "conftest.in" >"conftest.tmp"
4069
mv "conftest.tmp" "conftest.in"
4070
cp "conftest.in" "conftest.nl"
4071
$as_echo 'GREP' >> "conftest.nl"
4072
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074
as_fn_arith $ac_count + 1 && ac_count=$as_val
4075
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4076
# Best one so far, save it but keep looking for a better one
4077
ac_cv_path_GREP="$ac_path_GREP"
4078
ac_path_GREP_max=$ac_count
4080
# 10*(2^10) chars as input seems more than enough
4081
test $ac_count -gt 10 && break
4083
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086
$ac_path_GREP_found && break 3
4091
if test -z "$ac_cv_path_GREP"; then
4092
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4095
ac_cv_path_GREP=$GREP
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4100
$as_echo "$ac_cv_path_GREP" >&6; }
4101
GREP="$ac_cv_path_GREP"
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4105
$as_echo_n "checking for egrep... " >&6; }
4106
if ${ac_cv_path_EGREP+:} false; then :
4107
$as_echo_n "(cached) " >&6
4109
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4110
then ac_cv_path_EGREP="$GREP -E"
4112
if test -z "$EGREP"; then
4113
ac_path_EGREP_found=false
4114
# Loop through the user's path and test for each of PROGNAME-LIST
4115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119
test -z "$as_dir" && as_dir=.
4120
for ac_prog in egrep; do
4121
for ac_exec_ext in '' $ac_executable_extensions; do
4122
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4123
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4124
# Check for GNU ac_path_EGREP and select it if it is found.
4125
# Check for GNU $ac_path_EGREP
4126
case `"$ac_path_EGREP" --version 2>&1` in
4128
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4131
$as_echo_n 0123456789 >"conftest.in"
4134
cat "conftest.in" "conftest.in" >"conftest.tmp"
4135
mv "conftest.tmp" "conftest.in"
4136
cp "conftest.in" "conftest.nl"
4137
$as_echo 'EGREP' >> "conftest.nl"
4138
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140
as_fn_arith $ac_count + 1 && ac_count=$as_val
4141
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4142
# Best one so far, save it but keep looking for a better one
4143
ac_cv_path_EGREP="$ac_path_EGREP"
4144
ac_path_EGREP_max=$ac_count
4146
# 10*(2^10) chars as input seems more than enough
4147
test $ac_count -gt 10 && break
4149
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152
$ac_path_EGREP_found && break 3
4157
if test -z "$ac_cv_path_EGREP"; then
4158
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161
ac_cv_path_EGREP=$EGREP
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4167
$as_echo "$ac_cv_path_EGREP" >&6; }
4168
EGREP="$ac_cv_path_EGREP"
4171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4172
$as_echo_n "checking for ANSI C header files... " >&6; }
4173
if ${ac_cv_header_stdc+:} false; then :
4174
$as_echo_n "(cached) " >&6
4176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
/* end confdefs.h. */
4191
if ac_fn_c_try_compile "$LINENO"; then :
4192
ac_cv_header_stdc=yes
4194
ac_cv_header_stdc=no
4196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198
if test $ac_cv_header_stdc = yes; then
4199
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201
/* end confdefs.h. */
4205
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206
$EGREP "memchr" >/dev/null 2>&1; then :
4209
ac_cv_header_stdc=no
4215
if test $ac_cv_header_stdc = yes; then
4216
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4217
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218
/* end confdefs.h. */
4222
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223
$EGREP "free" >/dev/null 2>&1; then :
4226
ac_cv_header_stdc=no
4232
if test $ac_cv_header_stdc = yes; then
4233
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234
if test "$cross_compiling" = yes; then :
4237
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238
/* end confdefs.h. */
4241
#if ((' ' & 0x0FF) == 0x020)
4242
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4243
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245
# define ISLOWER(c) \
4246
(('a' <= (c) && (c) <= 'i') \
4247
|| ('j' <= (c) && (c) <= 'r') \
4248
|| ('s' <= (c) && (c) <= 'z'))
4249
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257
for (i = 0; i < 256; i++)
4258
if (XOR (islower (i), ISLOWER (i))
4259
|| toupper (i) != TOUPPER (i))
4264
if ac_fn_c_try_run "$LINENO"; then :
4267
ac_cv_header_stdc=no
4269
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4270
conftest.$ac_objext conftest.beam conftest.$ac_ext
4275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4276
$as_echo "$ac_cv_header_stdc" >&6; }
4277
if test $ac_cv_header_stdc = yes; then
4279
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4283
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285
inttypes.h stdint.h unistd.h
4287
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4290
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4291
cat >>confdefs.h <<_ACEOF
4292
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4302
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4309
if test "$MINIX" = yes; then
4311
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4314
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4317
$as_echo "#define _MINIX 1" >>confdefs.h
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4323
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4324
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4325
$as_echo_n "(cached) " >&6
4327
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328
/* end confdefs.h. */
4330
# define __EXTENSIONS__ 1
4331
$ac_includes_default
4340
if ac_fn_c_try_compile "$LINENO"; then :
4341
ac_cv_safe_to_define___extensions__=yes
4343
ac_cv_safe_to_define___extensions__=no
4345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4348
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4349
test $ac_cv_safe_to_define___extensions__ = yes &&
4350
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4352
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4354
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4356
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4358
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4362
# Initialize libtool
4363
# Check whether --enable-static was given.
4364
if test "${enable_static+set}" = set; then :
4365
enableval=$enable_static; p=${PACKAGE-default}
4367
yes) enable_static=yes ;;
4368
no) enable_static=no ;;
4371
# Look at the argument we got. We use all the common list separators.
4372
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4373
for pkg in $enableval; do
4375
if test "X$pkg" = "X$p"; then
4396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4397
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4402
macro_version='2.4.2'
4403
macro_revision='1.3337'
4417
ltmain="$ac_aux_dir/ltmain.sh"
4419
# Make sure we can run config.sub.
4420
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4421
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4424
$as_echo_n "checking build system type... " >&6; }
4425
if ${ac_cv_build+:} false; then :
4426
$as_echo_n "(cached) " >&6
4428
ac_build_alias=$build_alias
4429
test "x$ac_build_alias" = x &&
4430
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4431
test "x$ac_build_alias" = x &&
4432
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4433
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4434
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4438
$as_echo "$ac_cv_build" >&6; }
4439
case $ac_cv_build in
4441
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4444
ac_save_IFS=$IFS; IFS='-'
4450
# Remember, the first character of IFS is used to create $*,
4451
# except with old shells:
4454
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4458
$as_echo_n "checking host system type... " >&6; }
4459
if ${ac_cv_host+:} false; then :
4460
$as_echo_n "(cached) " >&6
4462
if test "x$host_alias" = x; then
4463
ac_cv_host=$ac_cv_build
4465
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4466
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4471
$as_echo "$ac_cv_host" >&6; }
4474
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4477
ac_save_IFS=$IFS; IFS='-'
4483
# Remember, the first character of IFS is used to create $*,
4484
# except with old shells:
4487
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4490
# Backslashify metacharacters that are still active within
4491
# double-quoted strings.
4492
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4494
# Same as above, but do not quote variable references.
4495
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4497
# Sed substitution to delay expansion of an escaped shell variable in a
4498
# double_quote_subst'ed string.
4499
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4501
# Sed substitution to delay expansion of an escaped single quote.
4502
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4504
# Sed substitution to avoid accidental globbing in evaled expressions
4505
no_glob_subst='s/\*/\\\*/g'
4507
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4508
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4509
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4512
$as_echo_n "checking how to print strings... " >&6; }
4513
# Test print first, because it will be a builtin if present.
4514
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4515
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4517
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4520
# Use this function as a fallback that always works.
4521
func_fallback_echo ()
4523
eval 'cat <<_LTECHO_EOF
4527
ECHO='func_fallback_echo'
4530
# func_echo_all arg...
4531
# Invoke $ECHO with all args, space-separated.
4538
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4539
$as_echo "printf" >&6; } ;;
4540
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4541
$as_echo "print -r" >&6; } ;;
4542
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4543
$as_echo "cat" >&6; } ;;
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4560
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4561
if ${ac_cv_path_SED+:} false; then :
4562
$as_echo_n "(cached) " >&6
4564
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4565
for ac_i in 1 2 3 4 5 6 7; do
4566
ac_script="$ac_script$as_nl$ac_script"
4568
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4569
{ ac_script=; unset ac_script;}
4570
if test -z "$SED"; then
4571
ac_path_SED_found=false
4572
# Loop through the user's path and test for each of PROGNAME-LIST
4573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577
test -z "$as_dir" && as_dir=.
4578
for ac_prog in sed gsed; do
4579
for ac_exec_ext in '' $ac_executable_extensions; do
4580
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4581
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4582
# Check for GNU ac_path_SED and select it if it is found.
4583
# Check for GNU $ac_path_SED
4584
case `"$ac_path_SED" --version 2>&1` in
4586
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4589
$as_echo_n 0123456789 >"conftest.in"
4592
cat "conftest.in" "conftest.in" >"conftest.tmp"
4593
mv "conftest.tmp" "conftest.in"
4594
cp "conftest.in" "conftest.nl"
4595
$as_echo '' >> "conftest.nl"
4596
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598
as_fn_arith $ac_count + 1 && ac_count=$as_val
4599
if test $ac_count -gt ${ac_path_SED_max-0}; then
4600
# Best one so far, save it but keep looking for a better one
4601
ac_cv_path_SED="$ac_path_SED"
4602
ac_path_SED_max=$ac_count
4604
# 10*(2^10) chars as input seems more than enough
4605
test $ac_count -gt 10 && break
4607
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610
$ac_path_SED_found && break 3
4615
if test -z "$ac_cv_path_SED"; then
4616
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4624
$as_echo "$ac_cv_path_SED" >&6; }
4625
SED="$ac_cv_path_SED"
4628
test -z "$SED" && SED=sed
4629
Xsed="$SED -e 1s/^X//"
4641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4642
$as_echo_n "checking for fgrep... " >&6; }
4643
if ${ac_cv_path_FGREP+:} false; then :
4644
$as_echo_n "(cached) " >&6
4646
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4647
then ac_cv_path_FGREP="$GREP -F"
4649
if test -z "$FGREP"; then
4650
ac_path_FGREP_found=false
4651
# Loop through the user's path and test for each of PROGNAME-LIST
4652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656
test -z "$as_dir" && as_dir=.
4657
for ac_prog in fgrep; do
4658
for ac_exec_ext in '' $ac_executable_extensions; do
4659
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4660
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4661
# Check for GNU ac_path_FGREP and select it if it is found.
4662
# Check for GNU $ac_path_FGREP
4663
case `"$ac_path_FGREP" --version 2>&1` in
4665
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4668
$as_echo_n 0123456789 >"conftest.in"
4671
cat "conftest.in" "conftest.in" >"conftest.tmp"
4672
mv "conftest.tmp" "conftest.in"
4673
cp "conftest.in" "conftest.nl"
4674
$as_echo 'FGREP' >> "conftest.nl"
4675
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677
as_fn_arith $ac_count + 1 && ac_count=$as_val
4678
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4679
# Best one so far, save it but keep looking for a better one
4680
ac_cv_path_FGREP="$ac_path_FGREP"
4681
ac_path_FGREP_max=$ac_count
4683
# 10*(2^10) chars as input seems more than enough
4684
test $ac_count -gt 10 && break
4686
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689
$ac_path_FGREP_found && break 3
4694
if test -z "$ac_cv_path_FGREP"; then
4695
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698
ac_cv_path_FGREP=$FGREP
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4704
$as_echo "$ac_cv_path_FGREP" >&6; }
4705
FGREP="$ac_cv_path_FGREP"
4708
test -z "$GREP" && GREP=grep
4728
# Check whether --with-gnu-ld was given.
4729
if test "${with_gnu_ld+set}" = set; then :
4730
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4736
if test "$GCC" = yes; then
4737
# Check if gcc -print-prog-name=ld gives a path.
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4739
$as_echo_n "checking for ld used by $CC... " >&6; }
4742
# gcc leaves a trailing carriage return which upsets mingw
4743
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4745
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4748
# Accept absolute paths.
4750
re_direlt='/[^/][^/]*/\.\./'
4751
# Canonicalize the pathname of ld
4752
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4753
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4754
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4756
test -z "$LD" && LD="$ac_prog"
4759
# If it fails, then pretend we aren't using GCC.
4763
# If it is relative, then search for the first ld in PATH.
4767
elif test "$with_gnu_ld" = yes; then
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4769
$as_echo_n "checking for GNU ld... " >&6; }
4771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4772
$as_echo_n "checking for non-GNU ld... " >&6; }
4774
if ${lt_cv_path_LD+:} false; then :
4775
$as_echo_n "(cached) " >&6
4777
if test -z "$LD"; then
4778
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4779
for ac_dir in $PATH; do
4781
test -z "$ac_dir" && ac_dir=.
4782
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4783
lt_cv_path_LD="$ac_dir/$ac_prog"
4784
# Check to see if the program is GNU ld. I'd rather use --version,
4785
# but apparently some variants of GNU ld only accept -v.
4786
# Break only if it was the GNU/non-GNU ld that we prefer.
4787
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4788
*GNU* | *'with BFD'*)
4789
test "$with_gnu_ld" != no && break
4792
test "$with_gnu_ld" != yes && break
4799
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4804
if test -n "$LD"; then
4805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4806
$as_echo "$LD" >&6; }
4808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809
$as_echo "no" >&6; }
4811
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4813
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4814
if ${lt_cv_prog_gnu_ld+:} false; then :
4815
$as_echo_n "(cached) " >&6
4817
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4818
case `$LD -v 2>&1 </dev/null` in
4819
*GNU* | *'with BFD'*)
4820
lt_cv_prog_gnu_ld=yes
4823
lt_cv_prog_gnu_ld=no
4827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4828
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4829
with_gnu_ld=$lt_cv_prog_gnu_ld
4839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4840
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4841
if ${lt_cv_path_NM+:} false; then :
4842
$as_echo_n "(cached) " >&6
4844
if test -n "$NM"; then
4845
# Let the user override the test.
4848
lt_nm_to_check="${ac_tool_prefix}nm"
4849
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4850
lt_nm_to_check="$lt_nm_to_check nm"
4852
for lt_tmp_nm in $lt_nm_to_check; do
4853
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4854
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4856
test -z "$ac_dir" && ac_dir=.
4857
tmp_nm="$ac_dir/$lt_tmp_nm"
4858
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4859
# Check to see if the nm accepts a BSD-compat flag.
4860
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4861
# nm: unknown option "B" ignored
4862
# Tru64's nm complains that /dev/null is an invalid object file
4863
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4864
*/dev/null* | *'Invalid file or object type'*)
4865
lt_cv_path_NM="$tmp_nm -B"
4869
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4871
lt_cv_path_NM="$tmp_nm -p"
4875
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4876
continue # so that we can try to find one that supports BSD flags
4885
: ${lt_cv_path_NM=no}
4888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4889
$as_echo "$lt_cv_path_NM" >&6; }
4890
if test "$lt_cv_path_NM" != "no"; then
4893
# Didn't find any BSD compatible name lister, look for dumpbin.
4894
if test -n "$DUMPBIN"; then :
4895
# Let the user override the test.
4897
if test -n "$ac_tool_prefix"; then
4898
for ac_prog in dumpbin "link -dump"
4900
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4901
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903
$as_echo_n "checking for $ac_word... " >&6; }
4904
if ${ac_cv_prog_DUMPBIN+:} false; then :
4905
$as_echo_n "(cached) " >&6
4907
if test -n "$DUMPBIN"; then
4908
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914
test -z "$as_dir" && as_dir=.
4915
for ac_exec_ext in '' $ac_executable_extensions; do
4916
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4918
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927
DUMPBIN=$ac_cv_prog_DUMPBIN
4928
if test -n "$DUMPBIN"; then
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4930
$as_echo "$DUMPBIN" >&6; }
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933
$as_echo "no" >&6; }
4937
test -n "$DUMPBIN" && break
4940
if test -z "$DUMPBIN"; then
4941
ac_ct_DUMPBIN=$DUMPBIN
4942
for ac_prog in dumpbin "link -dump"
4944
# Extract the first word of "$ac_prog", so it can be a program name with args.
4945
set dummy $ac_prog; ac_word=$2
4946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947
$as_echo_n "checking for $ac_word... " >&6; }
4948
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4949
$as_echo_n "(cached) " >&6
4951
if test -n "$ac_ct_DUMPBIN"; then
4952
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958
test -z "$as_dir" && as_dir=.
4959
for ac_exec_ext in '' $ac_executable_extensions; do
4960
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4962
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4972
if test -n "$ac_ct_DUMPBIN"; then
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4974
$as_echo "$ac_ct_DUMPBIN" >&6; }
4976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977
$as_echo "no" >&6; }
4981
test -n "$ac_ct_DUMPBIN" && break
4984
if test "x$ac_ct_DUMPBIN" = x; then
4987
case $cross_compiling:$ac_tool_warned in
4989
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991
ac_tool_warned=yes ;;
4993
DUMPBIN=$ac_ct_DUMPBIN
4997
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4999
DUMPBIN="$DUMPBIN -symbols"
5007
if test "$DUMPBIN" != ":"; then
5011
test -z "$NM" && NM=nm
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5019
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5020
if ${lt_cv_nm_interface+:} false; then :
5021
$as_echo_n "(cached) " >&6
5023
lt_cv_nm_interface="BSD nm"
5024
echo "int some_variable = 0;" > conftest.$ac_ext
5025
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5026
(eval "$ac_compile" 2>conftest.err)
5027
cat conftest.err >&5
5028
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5029
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5030
cat conftest.err >&5
5031
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5032
cat conftest.out >&5
5033
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5034
lt_cv_nm_interface="MS dumpbin"
5038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5039
$as_echo "$lt_cv_nm_interface" >&6; }
5041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5042
$as_echo_n "checking whether ln -s works... " >&6; }
5044
if test "$LN_S" = "ln -s"; then
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046
$as_echo "yes" >&6; }
5048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5049
$as_echo "no, using $LN_S" >&6; }
5052
# find the maximum length of command line arguments
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5054
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5055
if ${lt_cv_sys_max_cmd_len+:} false; then :
5056
$as_echo_n "(cached) " >&6
5063
# On DJGPP, this test can blow up pretty badly due to problems in libc
5064
# (any single argument exceeding 2000 bytes causes a buffer overrun
5065
# during glob expansion). Even if it were fixed, the result of this
5066
# check would be larger than it should be.
5067
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5071
# Under GNU Hurd, this test is not required because there is
5072
# no limit to the length of command line arguments.
5073
# Libtool will interpret -1 as no limit whatsoever
5074
lt_cv_sys_max_cmd_len=-1;
5077
cygwin* | mingw* | cegcc*)
5078
# On Win9x/ME, this test blows up -- it succeeds, but takes
5079
# about 5 minutes as the teststring grows exponentially.
5080
# Worse, since 9x/ME are not pre-emptively multitasking,
5081
# you end up with a "frozen" computer, even though with patience
5082
# the test eventually succeeds (with a max line length of 256k).
5083
# Instead, let's just punt: use the minimum linelength reported by
5084
# all of the supported platforms: 8192 (on NT/2K/XP).
5085
lt_cv_sys_max_cmd_len=8192;
5089
# On MiNT this can take a long time and run out of memory.
5090
lt_cv_sys_max_cmd_len=8192;
5094
# On AmigaOS with pdksh, this test takes hours, literally.
5095
# So we just punt and use a minimum line length of 8192.
5096
lt_cv_sys_max_cmd_len=8192;
5099
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5100
# This has been around since 386BSD, at least. Likely further.
5101
if test -x /sbin/sysctl; then
5102
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5103
elif test -x /usr/sbin/sysctl; then
5104
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5106
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5108
# And add a safety zone
5109
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5110
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5115
lt_cv_sys_max_cmd_len=196608
5119
# The test takes a long time on OS/2.
5120
lt_cv_sys_max_cmd_len=8192
5124
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5125
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5126
# nice to cause kernel panics so lets avoid the loop below.
5127
# First set a reasonable default.
5128
lt_cv_sys_max_cmd_len=16384
5130
if test -x /sbin/sysconfig; then
5131
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5132
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5137
lt_cv_sys_max_cmd_len=102400
5139
sysv5* | sco5v6* | sysv4.2uw2*)
5140
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5141
if test -n "$kargmax"; then
5142
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5144
lt_cv_sys_max_cmd_len=32768
5148
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5149
if test -n "$lt_cv_sys_max_cmd_len"; then
5150
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5151
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153
# Make teststring a little bigger before we do anything with it.
5154
# a 1K string should be a reasonable start.
5155
for i in 1 2 3 4 5 6 7 8 ; do
5156
teststring=$teststring$teststring
5158
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5159
# If test is not a shell built-in, we'll probably end up computing a
5160
# maximum length that is only half of the actual maximum length, but
5162
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5163
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5164
test $i != 17 # 1/2 MB should be enough
5167
teststring=$teststring$teststring
5169
# Only check the string length outside the loop.
5170
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5172
# Add a significant safety factor because C++ compilers can tack on
5173
# massive amounts of additional arguments before passing them to the
5174
# linker. It appears as though 1/2 is a usable value.
5175
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5182
if test -n $lt_cv_sys_max_cmd_len ; then
5183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5184
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5187
$as_echo "none" >&6; }
5189
max_cmd_len=$lt_cv_sys_max_cmd_len
5200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5201
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5202
# Try some XSI features
5205
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5207
&& eval 'test $(( 1 + 1 )) -eq 2 \
5208
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5211
$as_echo "$xsi_shell" >&6; }
5214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5215
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5217
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5219
&& lt_shell_append=yes
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5221
$as_echo "$lt_shell_append" >&6; }
5224
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5234
# test EBCDIC or ASCII
5235
case `echo X|tr X '\101'` in
5236
A) # ASCII based system
5237
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5238
lt_SP2NL='tr \040 \012'
5239
lt_NL2SP='tr \015\012 \040\040'
5241
*) # EBCDIC based system
5242
lt_SP2NL='tr \100 \n'
5243
lt_NL2SP='tr \r\n \100\100'
5255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5256
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5257
if ${lt_cv_to_host_file_cmd+:} false; then :
5258
$as_echo_n "(cached) " >&6
5263
*-*-mingw* ) # actually msys
5264
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5267
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5269
* ) # otherwise, assume *nix
5270
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5276
*-*-mingw* ) # actually msys
5277
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5280
lt_cv_to_host_file_cmd=func_convert_file_noop
5282
* ) # otherwise, assume *nix
5283
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5287
* ) # unhandled hosts (and "normal" native builds)
5288
lt_cv_to_host_file_cmd=func_convert_file_noop
5294
to_host_file_cmd=$lt_cv_to_host_file_cmd
5295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5296
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5303
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5304
if ${lt_cv_to_tool_file_cmd+:} false; then :
5305
$as_echo_n "(cached) " >&6
5307
#assume ordinary cross tools, or native build.
5308
lt_cv_to_tool_file_cmd=func_convert_file_noop
5312
*-*-mingw* ) # actually msys
5313
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5321
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5323
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5330
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5331
if ${lt_cv_ld_reload_flag+:} false; then :
5332
$as_echo_n "(cached) " >&6
5334
lt_cv_ld_reload_flag='-r'
5336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5337
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5338
reload_flag=$lt_cv_ld_reload_flag
5339
case $reload_flag in
5341
*) reload_flag=" $reload_flag" ;;
5343
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5345
cygwin* | mingw* | pw32* | cegcc*)
5346
if test "$GCC" != yes; then
5351
if test "$GCC" = yes; then
5352
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5354
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367
if test -n "$ac_tool_prefix"; then
5368
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5369
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371
$as_echo_n "checking for $ac_word... " >&6; }
5372
if ${ac_cv_prog_OBJDUMP+:} false; then :
5373
$as_echo_n "(cached) " >&6
5375
if test -n "$OBJDUMP"; then
5376
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382
test -z "$as_dir" && as_dir=.
5383
for ac_exec_ext in '' $ac_executable_extensions; do
5384
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5386
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395
OBJDUMP=$ac_cv_prog_OBJDUMP
5396
if test -n "$OBJDUMP"; then
5397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5398
$as_echo "$OBJDUMP" >&6; }
5400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401
$as_echo "no" >&6; }
5406
if test -z "$ac_cv_prog_OBJDUMP"; then
5407
ac_ct_OBJDUMP=$OBJDUMP
5408
# Extract the first word of "objdump", so it can be a program name with args.
5409
set dummy objdump; ac_word=$2
5410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411
$as_echo_n "checking for $ac_word... " >&6; }
5412
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5413
$as_echo_n "(cached) " >&6
5415
if test -n "$ac_ct_OBJDUMP"; then
5416
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422
test -z "$as_dir" && as_dir=.
5423
for ac_exec_ext in '' $ac_executable_extensions; do
5424
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5426
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5436
if test -n "$ac_ct_OBJDUMP"; then
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5438
$as_echo "$ac_ct_OBJDUMP" >&6; }
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441
$as_echo "no" >&6; }
5444
if test "x$ac_ct_OBJDUMP" = x; then
5447
case $cross_compiling:$ac_tool_warned in
5449
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451
ac_tool_warned=yes ;;
5453
OBJDUMP=$ac_ct_OBJDUMP
5456
OBJDUMP="$ac_cv_prog_OBJDUMP"
5459
test -z "$OBJDUMP" && OBJDUMP=objdump
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5470
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5471
if ${lt_cv_deplibs_check_method+:} false; then :
5472
$as_echo_n "(cached) " >&6
5474
lt_cv_file_magic_cmd='$MAGIC_CMD'
5475
lt_cv_file_magic_test_file=
5476
lt_cv_deplibs_check_method='unknown'
5477
# Need to set the preceding variable on all platforms that support
5478
# interlibrary dependencies.
5479
# 'none' -- dependencies not supported.
5480
# `unknown' -- same as none, but documents that we really don't know.
5481
# 'pass_all' -- all dependencies passed with no checks.
5482
# 'test_compile' -- check by making test program.
5483
# 'file_magic [[regex]]' -- check by looking for files in library path
5484
# which responds to the $file_magic_cmd with a given extended regex.
5485
# If you have `file' or equivalent on your system and you're not sure
5486
# whether `pass_all' will *always* work, you probably want this one.
5490
lt_cv_deplibs_check_method=pass_all
5494
lt_cv_deplibs_check_method=pass_all
5498
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5499
lt_cv_file_magic_cmd='/usr/bin/file -L'
5500
lt_cv_file_magic_test_file=/shlib/libc.so
5504
# func_win32_libid is a shell function defined in ltmain.sh
5505
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506
lt_cv_file_magic_cmd='func_win32_libid'
5510
# Base MSYS/MinGW do not provide the 'file' command needed by
5511
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5512
# unless we find 'file', for example because we are cross-compiling.
5513
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5514
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5515
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5516
lt_cv_file_magic_cmd='func_win32_libid'
5518
# Keep this pattern in sync with the one in func_win32_libid.
5519
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5520
lt_cv_file_magic_cmd='$OBJDUMP -f'
5525
# use the weaker test based on 'objdump'. See mingw*.
5526
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5527
lt_cv_file_magic_cmd='$OBJDUMP -f'
5530
darwin* | rhapsody*)
5531
lt_cv_deplibs_check_method=pass_all
5534
freebsd* | dragonfly*)
5535
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5538
# Not sure whether the presence of OpenBSD here was a mistake.
5539
# Let's accept both of them until this is cleared up.
5540
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5541
lt_cv_file_magic_cmd=/usr/bin/file
5542
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5546
lt_cv_deplibs_check_method=pass_all
5551
lt_cv_deplibs_check_method=pass_all
5555
lt_cv_deplibs_check_method=pass_all
5558
hpux10.20* | hpux11*)
5559
lt_cv_file_magic_cmd=/usr/bin/file
5562
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5563
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5566
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5567
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5570
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5571
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5578
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5581
irix5* | irix6* | nonstopux*)
5583
*-32|*"-32 ") libmagic=32-bit;;
5584
*-n32|*"-n32 ") libmagic=N32;;
5585
*-64|*"-64 ") libmagic=64-bit;;
5586
*) libmagic=never-match;;
5588
lt_cv_deplibs_check_method=pass_all
5591
# This must be glibc/ELF.
5592
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5593
lt_cv_deplibs_check_method=pass_all
5597
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5598
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5605
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5606
lt_cv_file_magic_cmd=/usr/bin/file
5607
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5611
lt_cv_deplibs_check_method=pass_all
5615
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5616
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5618
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5622
osf3* | osf4* | osf5*)
5623
lt_cv_deplibs_check_method=pass_all
5627
lt_cv_deplibs_check_method=pass_all
5631
lt_cv_deplibs_check_method=pass_all
5634
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5635
lt_cv_deplibs_check_method=pass_all
5639
case $host_vendor in
5641
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]'
5642
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5645
lt_cv_deplibs_check_method=pass_all
5648
lt_cv_file_magic_cmd='/bin/file'
5649
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5652
lt_cv_file_magic_cmd='/bin/file'
5653
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654
lt_cv_file_magic_test_file=/lib/libc.so
5657
lt_cv_deplibs_check_method=pass_all
5660
lt_cv_deplibs_check_method=pass_all
5666
lt_cv_deplibs_check_method=pass_all
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5672
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5676
if test "$build" = "$host"; then
5679
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5682
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5688
file_magic_cmd=$lt_cv_file_magic_cmd
5689
deplibs_check_method=$lt_cv_deplibs_check_method
5690
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5713
if test -n "$ac_tool_prefix"; then
5714
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717
$as_echo_n "checking for $ac_word... " >&6; }
5718
if ${ac_cv_prog_DLLTOOL+:} false; then :
5719
$as_echo_n "(cached) " >&6
5721
if test -n "$DLLTOOL"; then
5722
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728
test -z "$as_dir" && as_dir=.
5729
for ac_exec_ext in '' $ac_executable_extensions; do
5730
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741
DLLTOOL=$ac_cv_prog_DLLTOOL
5742
if test -n "$DLLTOOL"; then
5743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5744
$as_echo "$DLLTOOL" >&6; }
5746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747
$as_echo "no" >&6; }
5752
if test -z "$ac_cv_prog_DLLTOOL"; then
5753
ac_ct_DLLTOOL=$DLLTOOL
5754
# Extract the first word of "dlltool", so it can be a program name with args.
5755
set dummy dlltool; ac_word=$2
5756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757
$as_echo_n "checking for $ac_word... " >&6; }
5758
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5759
$as_echo_n "(cached) " >&6
5761
if test -n "$ac_ct_DLLTOOL"; then
5762
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768
test -z "$as_dir" && as_dir=.
5769
for ac_exec_ext in '' $ac_executable_extensions; do
5770
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5772
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5782
if test -n "$ac_ct_DLLTOOL"; then
5783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5784
$as_echo "$ac_ct_DLLTOOL" >&6; }
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787
$as_echo "no" >&6; }
5790
if test "x$ac_ct_DLLTOOL" = x; then
5793
case $cross_compiling:$ac_tool_warned in
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797
ac_tool_warned=yes ;;
5799
DLLTOOL=$ac_ct_DLLTOOL
5802
DLLTOOL="$ac_cv_prog_DLLTOOL"
5805
test -z "$DLLTOOL" && DLLTOOL=dlltool
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5817
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5818
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5819
$as_echo_n "(cached) " >&6
5821
lt_cv_sharedlib_from_linklib_cmd='unknown'
5824
cygwin* | mingw* | pw32* | cegcc*)
5825
# two different shell functions defined in ltmain.sh
5826
# decide which to use based on capabilities of $DLLTOOL
5827
case `$DLLTOOL --help 2>&1` in
5828
*--identify-strict*)
5829
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5832
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5837
# fallback: assume linklib IS sharedlib
5838
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5844
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5845
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5846
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5854
if test -n "$ac_tool_prefix"; then
5857
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5858
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860
$as_echo_n "checking for $ac_word... " >&6; }
5861
if ${ac_cv_prog_AR+:} false; then :
5862
$as_echo_n "(cached) " >&6
5864
if test -n "$AR"; then
5865
ac_cv_prog_AR="$AR" # Let the user override the test.
5867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871
test -z "$as_dir" && as_dir=.
5872
for ac_exec_ext in '' $ac_executable_extensions; do
5873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5875
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885
if test -n "$AR"; then
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5887
$as_echo "$AR" >&6; }
5889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890
$as_echo "no" >&6; }
5894
test -n "$AR" && break
5897
if test -z "$AR"; then
5901
# Extract the first word of "$ac_prog", so it can be a program name with args.
5902
set dummy $ac_prog; ac_word=$2
5903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904
$as_echo_n "checking for $ac_word... " >&6; }
5905
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5906
$as_echo_n "(cached) " >&6
5908
if test -n "$ac_ct_AR"; then
5909
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915
test -z "$as_dir" && as_dir=.
5916
for ac_exec_ext in '' $ac_executable_extensions; do
5917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918
ac_cv_prog_ac_ct_AR="$ac_prog"
5919
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5929
if test -n "$ac_ct_AR"; then
5930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5931
$as_echo "$ac_ct_AR" >&6; }
5933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934
$as_echo "no" >&6; }
5938
test -n "$ac_ct_AR" && break
5941
if test "x$ac_ct_AR" = x; then
5944
case $cross_compiling:$ac_tool_warned in
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948
ac_tool_warned=yes ;;
5967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5968
$as_echo_n "checking for archiver @FILE support... " >&6; }
5969
if ${lt_cv_ar_at_file+:} false; then :
5970
$as_echo_n "(cached) " >&6
5973
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974
/* end confdefs.h. */
5984
if ac_fn_c_try_compile "$LINENO"; then :
5985
echo conftest.$ac_objext > conftest.lst
5986
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5987
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5988
(eval $lt_ar_try) 2>&5
5990
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991
test $ac_status = 0; }
5992
if test "$ac_status" -eq 0; then
5993
# Ensure the archiver fails upon bogus file names.
5994
rm -f conftest.$ac_objext libconftest.a
5995
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996
(eval $lt_ar_try) 2>&5
5998
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999
test $ac_status = 0; }
6000
if test "$ac_status" -ne 0; then
6004
rm -f conftest.* libconftest.a
6007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6011
$as_echo "$lt_cv_ar_at_file" >&6; }
6013
if test "x$lt_cv_ar_at_file" = xno; then
6016
archiver_list_spec=$lt_cv_ar_at_file
6025
if test -n "$ac_tool_prefix"; then
6026
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027
set dummy ${ac_tool_prefix}strip; ac_word=$2
6028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029
$as_echo_n "checking for $ac_word... " >&6; }
6030
if ${ac_cv_prog_STRIP+:} false; then :
6031
$as_echo_n "(cached) " >&6
6033
if test -n "$STRIP"; then
6034
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040
test -z "$as_dir" && as_dir=.
6041
for ac_exec_ext in '' $ac_executable_extensions; do
6042
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053
STRIP=$ac_cv_prog_STRIP
6054
if test -n "$STRIP"; then
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6056
$as_echo "$STRIP" >&6; }
6058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059
$as_echo "no" >&6; }
6064
if test -z "$ac_cv_prog_STRIP"; then
6066
# Extract the first word of "strip", so it can be a program name with args.
6067
set dummy strip; ac_word=$2
6068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069
$as_echo_n "checking for $ac_word... " >&6; }
6070
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6071
$as_echo_n "(cached) " >&6
6073
if test -n "$ac_ct_STRIP"; then
6074
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080
test -z "$as_dir" && as_dir=.
6081
for ac_exec_ext in '' $ac_executable_extensions; do
6082
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083
ac_cv_prog_ac_ct_STRIP="strip"
6084
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6094
if test -n "$ac_ct_STRIP"; then
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6096
$as_echo "$ac_ct_STRIP" >&6; }
6098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099
$as_echo "no" >&6; }
6102
if test "x$ac_ct_STRIP" = x; then
6105
case $cross_compiling:$ac_tool_warned in
6107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109
ac_tool_warned=yes ;;
6114
STRIP="$ac_cv_prog_STRIP"
6117
test -z "$STRIP" && STRIP=:
6124
if test -n "$ac_tool_prefix"; then
6125
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6126
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128
$as_echo_n "checking for $ac_word... " >&6; }
6129
if ${ac_cv_prog_RANLIB+:} false; then :
6130
$as_echo_n "(cached) " >&6
6132
if test -n "$RANLIB"; then
6133
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139
test -z "$as_dir" && as_dir=.
6140
for ac_exec_ext in '' $ac_executable_extensions; do
6141
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6143
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152
RANLIB=$ac_cv_prog_RANLIB
6153
if test -n "$RANLIB"; then
6154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6155
$as_echo "$RANLIB" >&6; }
6157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158
$as_echo "no" >&6; }
6163
if test -z "$ac_cv_prog_RANLIB"; then
6164
ac_ct_RANLIB=$RANLIB
6165
# Extract the first word of "ranlib", so it can be a program name with args.
6166
set dummy ranlib; ac_word=$2
6167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168
$as_echo_n "checking for $ac_word... " >&6; }
6169
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6170
$as_echo_n "(cached) " >&6
6172
if test -n "$ac_ct_RANLIB"; then
6173
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
test -z "$as_dir" && as_dir=.
6180
for ac_exec_ext in '' $ac_executable_extensions; do
6181
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182
ac_cv_prog_ac_ct_RANLIB="ranlib"
6183
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6193
if test -n "$ac_ct_RANLIB"; then
6194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6195
$as_echo "$ac_ct_RANLIB" >&6; }
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198
$as_echo "no" >&6; }
6201
if test "x$ac_ct_RANLIB" = x; then
6204
case $cross_compiling:$ac_tool_warned in
6206
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208
ac_tool_warned=yes ;;
6210
RANLIB=$ac_ct_RANLIB
6213
RANLIB="$ac_cv_prog_RANLIB"
6216
test -z "$RANLIB" && RANLIB=:
6223
# Determine commands to create old-style static archives.
6224
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6225
old_postinstall_cmds='chmod 644 $oldlib'
6226
old_postuninstall_cmds=
6228
if test -n "$RANLIB"; then
6231
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6234
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6237
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6242
lock_old_archive_extraction=yes ;;
6244
lock_old_archive_extraction=no ;;
6285
# If no C compiler was specified, use CC.
6288
# If no C compiler flags were specified, use CFLAGS.
6289
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6291
# Allow CC to be a program name with arguments.
6295
# Check for command to grab the raw symbol name followed by C symbol from nm.
6296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6297
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6298
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6299
$as_echo_n "(cached) " >&6
6302
# These are sane defaults that work on at least a few old systems.
6303
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6305
# Character class describing NM global symbol codes.
6306
symcode='[BCDEGRST]'
6308
# Regexp to match symbols that can be accessed directly from C.
6309
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6311
# Define system-specific variables.
6316
cygwin* | mingw* | pw32* | cegcc*)
6317
symcode='[ABCDGISTW]'
6320
if test "$host_cpu" = ia64; then
6321
symcode='[ABCDEGRST]'
6325
symcode='[BCDEGRST]'
6328
symcode='[BCDEGQRST]'
6339
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6347
# If we're using GNU nm, then use its standard symbol codes.
6348
case `$NM -V 2>&1` in
6349
*GNU* | *'with BFD'*)
6350
symcode='[ABCDGIRSTW]' ;;
6353
# Transform an extracted symbol line into a proper C declaration.
6354
# Some systems (esp. on ia64) link data and code symbols differently,
6355
# so use this general approach.
6356
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358
# Transform an extracted symbol line into symbol name and symbol address
6359
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6360
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'"
6362
# Handle CRLF in mingw tool chain
6366
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6370
# Try without a prefix underscore, then with it.
6371
for ac_symprfx in "" "_"; do
6373
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6374
symxfrm="\\1 $ac_symprfx\\2 \\2"
6376
# Write the raw and C identifiers.
6377
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378
# Fake it for dumpbin and say T for any non-static function
6379
# and D for any global variable.
6380
# Also find C++ and __fastcall symbols from MSVC++,
6381
# which start with @ or ?.
6382
lt_cv_sys_global_symbol_pipe="$AWK '"\
6383
" {last_section=section; section=\$ 3};"\
6384
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6385
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6386
" \$ 0!~/External *\|/{next};"\
6387
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6388
" {if(hide[section]) next};"\
6389
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6390
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6391
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6392
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6393
" ' prfx=^$ac_symprfx"
6395
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6397
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6399
# Check to see that the pipe works correctly.
6403
cat > conftest.$ac_ext <<_LT_EOF
6408
void nm_test_func(void);
6409
void nm_test_func(void){}
6413
int main(){nm_test_var='a';nm_test_func();return(0);}
6416
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417
(eval $ac_compile) 2>&5
6419
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420
test $ac_status = 0; }; then
6421
# Now try to grab the symbols.
6423
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6424
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6426
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427
test $ac_status = 0; } && test -s "$nlist"; then
6428
# Try sorting and uniquifying the output.
6429
if sort "$nlist" | uniq > "$nlist"T; then
6430
mv -f "$nlist"T "$nlist"
6435
# Make sure that we snagged all the symbols we need.
6436
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6437
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6438
cat <<_LT_EOF > conftest.$ac_ext
6439
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6440
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6441
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6442
relocations are performed -- see ld's documentation on pseudo-relocs. */
6443
# define LT_DLSYM_CONST
6444
#elif defined(__osf__)
6445
/* This system does not cope well with relocations in const data. */
6446
# define LT_DLSYM_CONST
6448
# define LT_DLSYM_CONST const
6456
# Now generate the symbol file.
6457
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6459
cat <<_LT_EOF >> conftest.$ac_ext
6461
/* The mapping between symbol names and symbols. */
6462
LT_DLSYM_CONST struct {
6466
lt__PROGRAM__LTX_preloaded_symbols[] =
6468
{ "@PROGRAM@", (void *) 0 },
6470
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6471
cat <<\_LT_EOF >> conftest.$ac_ext
6475
/* This works around a problem in FreeBSD linker */
6476
#ifdef FREEBSD_WORKAROUND
6477
static const void *lt_preloaded_setup() {
6478
return lt__PROGRAM__LTX_preloaded_symbols;
6486
# Now try linking the two files.
6487
mv conftest.$ac_objext conftstm.$ac_objext
6488
lt_globsym_save_LIBS=$LIBS
6489
lt_globsym_save_CFLAGS=$CFLAGS
6490
LIBS="conftstm.$ac_objext"
6491
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6493
(eval $ac_link) 2>&5
6495
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6499
LIBS=$lt_globsym_save_LIBS
6500
CFLAGS=$lt_globsym_save_CFLAGS
6502
echo "cannot find nm_test_func in $nlist" >&5
6505
echo "cannot find nm_test_var in $nlist" >&5
6508
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511
echo "$progname: failed program was:" >&5
6512
cat conftest.$ac_ext >&5
6514
rm -rf conftest* conftst*
6516
# Do not use the global_symbol_pipe unless it works.
6517
if test "$pipe_works" = yes; then
6520
lt_cv_sys_global_symbol_pipe=
6526
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527
lt_cv_sys_global_symbol_to_cdecl=
6529
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6531
$as_echo "failed" >&6; }
6533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6534
$as_echo "ok" >&6; }
6537
# Response file support.
6538
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6539
nm_file_list_spec='@'
6540
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6541
nm_file_list_spec='@'
6570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6571
$as_echo_n "checking for sysroot... " >&6; }
6573
# Check whether --with-sysroot was given.
6574
if test "${with_sysroot+set}" = set; then :
6575
withval=$with_sysroot;
6582
case ${with_sysroot} in #(
6584
if test "$GCC" = yes; then
6585
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6589
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6595
$as_echo "${with_sysroot}" >&6; }
6596
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6601
$as_echo "${lt_sysroot:-no}" >&6; }
6607
# Check whether --enable-libtool-lock was given.
6608
if test "${enable_libtool_lock+set}" = set; then :
6609
enableval=$enable_libtool_lock;
6612
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6614
# Some flags need to be propagated to the compiler or linker for good
6618
# Find out which ABI we are using.
6619
echo 'int i;' > conftest.$ac_ext
6620
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621
(eval $ac_compile) 2>&5
6623
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624
test $ac_status = 0; }; then
6625
case `/usr/bin/file conftest.$ac_objext` in
6637
# Find out which ABI we are using.
6638
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6639
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640
(eval $ac_compile) 2>&5
6642
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643
test $ac_status = 0; }; then
6644
if test "$lt_cv_prog_gnu_ld" = yes; then
6645
case `/usr/bin/file conftest.$ac_objext` in
6647
LD="${LD-ld} -melf32bsmip"
6650
LD="${LD-ld} -melf32bmipn32"
6653
LD="${LD-ld} -melf64bmip"
6657
case `/usr/bin/file conftest.$ac_objext` in
6673
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6674
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6675
# Find out which ABI we are using.
6676
echo 'int i;' > conftest.$ac_ext
6677
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678
(eval $ac_compile) 2>&5
6680
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681
test $ac_status = 0; }; then
6682
case `/usr/bin/file conftest.o` in
6685
x86_64-*kfreebsd*-gnu)
6686
LD="${LD-ld} -m elf_i386_fbsd"
6689
LD="${LD-ld} -m elf_i386"
6691
ppc64-*linux*|powerpc64-*linux*)
6692
LD="${LD-ld} -m elf32ppclinux"
6695
LD="${LD-ld} -m elf_s390"
6698
LD="${LD-ld} -m elf32_sparc"
6704
x86_64-*kfreebsd*-gnu)
6705
LD="${LD-ld} -m elf_x86_64_fbsd"
6708
LD="${LD-ld} -m elf_x86_64"
6710
ppc*-*linux*|powerpc*-*linux*)
6711
LD="${LD-ld} -m elf64ppc"
6713
s390*-*linux*|s390*-*tpf*)
6714
LD="${LD-ld} -m elf64_s390"
6717
LD="${LD-ld} -m elf64_sparc"
6727
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6728
SAVE_CFLAGS="$CFLAGS"
6729
CFLAGS="$CFLAGS -belf"
6730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6731
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6732
if ${lt_cv_cc_needs_belf+:} false; then :
6733
$as_echo_n "(cached) " >&6
6736
ac_cpp='$CPP $CPPFLAGS'
6737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742
/* end confdefs.h. */
6752
if ac_fn_c_try_link "$LINENO"; then :
6753
lt_cv_cc_needs_belf=yes
6755
lt_cv_cc_needs_belf=no
6757
rm -f core conftest.err conftest.$ac_objext \
6758
conftest$ac_exeext conftest.$ac_ext
6760
ac_cpp='$CPP $CPPFLAGS'
6761
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6767
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6768
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6769
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6770
CFLAGS="$SAVE_CFLAGS"
6774
# Find out which ABI we are using.
6775
echo 'int i;' > conftest.$ac_ext
6776
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777
(eval $ac_compile) 2>&5
6779
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780
test $ac_status = 0; }; then
6781
case `/usr/bin/file conftest.o` in
6783
case $lt_cv_prog_gnu_ld in
6787
LD="${LD-ld} -m elf_x86_64"
6790
LD="${LD-ld} -m elf64_sparc"
6793
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6794
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6799
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6811
need_locks="$enable_libtool_lock"
6813
if test -n "$ac_tool_prefix"; then
6814
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6815
set dummy ${ac_tool_prefix}mt; ac_word=$2
6816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817
$as_echo_n "checking for $ac_word... " >&6; }
6818
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6819
$as_echo_n "(cached) " >&6
6821
if test -n "$MANIFEST_TOOL"; then
6822
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828
test -z "$as_dir" && as_dir=.
6829
for ac_exec_ext in '' $ac_executable_extensions; do
6830
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6832
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6842
if test -n "$MANIFEST_TOOL"; then
6843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6844
$as_echo "$MANIFEST_TOOL" >&6; }
6846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847
$as_echo "no" >&6; }
6852
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6853
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6854
# Extract the first word of "mt", so it can be a program name with args.
6855
set dummy mt; ac_word=$2
6856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857
$as_echo_n "checking for $ac_word... " >&6; }
6858
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6859
$as_echo_n "(cached) " >&6
6861
if test -n "$ac_ct_MANIFEST_TOOL"; then
6862
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868
test -z "$as_dir" && as_dir=.
6869
for ac_exec_ext in '' $ac_executable_extensions; do
6870
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6872
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6882
if test -n "$ac_ct_MANIFEST_TOOL"; then
6883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6884
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887
$as_echo "no" >&6; }
6890
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6893
case $cross_compiling:$ac_tool_warned in
6895
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897
ac_tool_warned=yes ;;
6899
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6902
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6905
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6907
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6908
if ${lt_cv_path_mainfest_tool+:} false; then :
6909
$as_echo_n "(cached) " >&6
6911
lt_cv_path_mainfest_tool=no
6912
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6913
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6914
cat conftest.err >&5
6915
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6916
lt_cv_path_mainfest_tool=yes
6920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6921
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6922
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6932
rhapsody* | darwin*)
6933
if test -n "$ac_tool_prefix"; then
6934
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6935
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937
$as_echo_n "checking for $ac_word... " >&6; }
6938
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6939
$as_echo_n "(cached) " >&6
6941
if test -n "$DSYMUTIL"; then
6942
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948
test -z "$as_dir" && as_dir=.
6949
for ac_exec_ext in '' $ac_executable_extensions; do
6950
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6952
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6962
if test -n "$DSYMUTIL"; then
6963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6964
$as_echo "$DSYMUTIL" >&6; }
6966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967
$as_echo "no" >&6; }
6972
if test -z "$ac_cv_prog_DSYMUTIL"; then
6973
ac_ct_DSYMUTIL=$DSYMUTIL
6974
# Extract the first word of "dsymutil", so it can be a program name with args.
6975
set dummy dsymutil; ac_word=$2
6976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977
$as_echo_n "checking for $ac_word... " >&6; }
6978
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6979
$as_echo_n "(cached) " >&6
6981
if test -n "$ac_ct_DSYMUTIL"; then
6982
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988
test -z "$as_dir" && as_dir=.
6989
for ac_exec_ext in '' $ac_executable_extensions; do
6990
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6992
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7002
if test -n "$ac_ct_DSYMUTIL"; then
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7004
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007
$as_echo "no" >&6; }
7010
if test "x$ac_ct_DSYMUTIL" = x; then
7013
case $cross_compiling:$ac_tool_warned in
7015
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017
ac_tool_warned=yes ;;
7019
DSYMUTIL=$ac_ct_DSYMUTIL
7022
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7025
if test -n "$ac_tool_prefix"; then
7026
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7027
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029
$as_echo_n "checking for $ac_word... " >&6; }
7030
if ${ac_cv_prog_NMEDIT+:} false; then :
7031
$as_echo_n "(cached) " >&6
7033
if test -n "$NMEDIT"; then
7034
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040
test -z "$as_dir" && as_dir=.
7041
for ac_exec_ext in '' $ac_executable_extensions; do
7042
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053
NMEDIT=$ac_cv_prog_NMEDIT
7054
if test -n "$NMEDIT"; then
7055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7056
$as_echo "$NMEDIT" >&6; }
7058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059
$as_echo "no" >&6; }
7064
if test -z "$ac_cv_prog_NMEDIT"; then
7065
ac_ct_NMEDIT=$NMEDIT
7066
# Extract the first word of "nmedit", so it can be a program name with args.
7067
set dummy nmedit; ac_word=$2
7068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069
$as_echo_n "checking for $ac_word... " >&6; }
7070
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7071
$as_echo_n "(cached) " >&6
7073
if test -n "$ac_ct_NMEDIT"; then
7074
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080
test -z "$as_dir" && as_dir=.
7081
for ac_exec_ext in '' $ac_executable_extensions; do
7082
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7084
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7094
if test -n "$ac_ct_NMEDIT"; then
7095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7096
$as_echo "$ac_ct_NMEDIT" >&6; }
7098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099
$as_echo "no" >&6; }
7102
if test "x$ac_ct_NMEDIT" = x; then
7105
case $cross_compiling:$ac_tool_warned in
7107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109
ac_tool_warned=yes ;;
7111
NMEDIT=$ac_ct_NMEDIT
7114
NMEDIT="$ac_cv_prog_NMEDIT"
7117
if test -n "$ac_tool_prefix"; then
7118
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7119
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121
$as_echo_n "checking for $ac_word... " >&6; }
7122
if ${ac_cv_prog_LIPO+:} false; then :
7123
$as_echo_n "(cached) " >&6
7125
if test -n "$LIPO"; then
7126
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132
test -z "$as_dir" && as_dir=.
7133
for ac_exec_ext in '' $ac_executable_extensions; do
7134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7136
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145
LIPO=$ac_cv_prog_LIPO
7146
if test -n "$LIPO"; then
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7148
$as_echo "$LIPO" >&6; }
7150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151
$as_echo "no" >&6; }
7156
if test -z "$ac_cv_prog_LIPO"; then
7158
# Extract the first word of "lipo", so it can be a program name with args.
7159
set dummy lipo; ac_word=$2
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161
$as_echo_n "checking for $ac_word... " >&6; }
7162
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7163
$as_echo_n "(cached) " >&6
7165
if test -n "$ac_ct_LIPO"; then
7166
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172
test -z "$as_dir" && as_dir=.
7173
for ac_exec_ext in '' $ac_executable_extensions; do
7174
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175
ac_cv_prog_ac_ct_LIPO="lipo"
7176
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7186
if test -n "$ac_ct_LIPO"; then
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7188
$as_echo "$ac_ct_LIPO" >&6; }
7190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191
$as_echo "no" >&6; }
7194
if test "x$ac_ct_LIPO" = x; then
7197
case $cross_compiling:$ac_tool_warned in
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201
ac_tool_warned=yes ;;
7206
LIPO="$ac_cv_prog_LIPO"
7209
if test -n "$ac_tool_prefix"; then
7210
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7211
set dummy ${ac_tool_prefix}otool; ac_word=$2
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213
$as_echo_n "checking for $ac_word... " >&6; }
7214
if ${ac_cv_prog_OTOOL+:} false; then :
7215
$as_echo_n "(cached) " >&6
7217
if test -n "$OTOOL"; then
7218
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224
test -z "$as_dir" && as_dir=.
7225
for ac_exec_ext in '' $ac_executable_extensions; do
7226
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7228
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237
OTOOL=$ac_cv_prog_OTOOL
7238
if test -n "$OTOOL"; then
7239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7240
$as_echo "$OTOOL" >&6; }
7242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243
$as_echo "no" >&6; }
7248
if test -z "$ac_cv_prog_OTOOL"; then
7250
# Extract the first word of "otool", so it can be a program name with args.
7251
set dummy otool; ac_word=$2
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253
$as_echo_n "checking for $ac_word... " >&6; }
7254
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7255
$as_echo_n "(cached) " >&6
7257
if test -n "$ac_ct_OTOOL"; then
7258
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264
test -z "$as_dir" && as_dir=.
7265
for ac_exec_ext in '' $ac_executable_extensions; do
7266
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267
ac_cv_prog_ac_ct_OTOOL="otool"
7268
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7278
if test -n "$ac_ct_OTOOL"; then
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7280
$as_echo "$ac_ct_OTOOL" >&6; }
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283
$as_echo "no" >&6; }
7286
if test "x$ac_ct_OTOOL" = x; then
7289
case $cross_compiling:$ac_tool_warned in
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293
ac_tool_warned=yes ;;
7298
OTOOL="$ac_cv_prog_OTOOL"
7301
if test -n "$ac_tool_prefix"; then
7302
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7303
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305
$as_echo_n "checking for $ac_word... " >&6; }
7306
if ${ac_cv_prog_OTOOL64+:} false; then :
7307
$as_echo_n "(cached) " >&6
7309
if test -n "$OTOOL64"; then
7310
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316
test -z "$as_dir" && as_dir=.
7317
for ac_exec_ext in '' $ac_executable_extensions; do
7318
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7320
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329
OTOOL64=$ac_cv_prog_OTOOL64
7330
if test -n "$OTOOL64"; then
7331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7332
$as_echo "$OTOOL64" >&6; }
7334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335
$as_echo "no" >&6; }
7340
if test -z "$ac_cv_prog_OTOOL64"; then
7341
ac_ct_OTOOL64=$OTOOL64
7342
# Extract the first word of "otool64", so it can be a program name with args.
7343
set dummy otool64; ac_word=$2
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345
$as_echo_n "checking for $ac_word... " >&6; }
7346
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7347
$as_echo_n "(cached) " >&6
7349
if test -n "$ac_ct_OTOOL64"; then
7350
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356
test -z "$as_dir" && as_dir=.
7357
for ac_exec_ext in '' $ac_executable_extensions; do
7358
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359
ac_cv_prog_ac_ct_OTOOL64="otool64"
7360
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7370
if test -n "$ac_ct_OTOOL64"; then
7371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7372
$as_echo "$ac_ct_OTOOL64" >&6; }
7374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375
$as_echo "no" >&6; }
7378
if test "x$ac_ct_OTOOL64" = x; then
7381
case $cross_compiling:$ac_tool_warned in
7383
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385
ac_tool_warned=yes ;;
7387
OTOOL64=$ac_ct_OTOOL64
7390
OTOOL64="$ac_cv_prog_OTOOL64"
7419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7420
$as_echo_n "checking for -single_module linker flag... " >&6; }
7421
if ${lt_cv_apple_cc_single_mod+:} false; then :
7422
$as_echo_n "(cached) " >&6
7424
lt_cv_apple_cc_single_mod=no
7425
if test -z "${LT_MULTI_MODULE}"; then
7426
# By default we will add the -single_module flag. You can override
7427
# by either setting the environment variable LT_MULTI_MODULE
7428
# non-empty at configure time, or by adding -multi_module to the
7430
rm -rf libconftest.dylib*
7431
echo "int foo(void){return 1;}" > conftest.c
7432
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7433
-dynamiclib -Wl,-single_module conftest.c" >&5
7434
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7435
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7437
# If there is a non-empty error log, and "single_module"
7438
# appears in it, assume the flag caused a linker warning
7439
if test -s conftest.err && $GREP single_module conftest.err; then
7440
cat conftest.err >&5
7441
# Otherwise, if the output was created with a 0 exit code from
7442
# the compiler, it worked.
7443
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7444
lt_cv_apple_cc_single_mod=yes
7446
cat conftest.err >&5
7448
rm -rf libconftest.dylib*
7452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7453
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7456
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7457
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7458
$as_echo_n "(cached) " >&6
7460
lt_cv_ld_exported_symbols_list=no
7461
save_LDFLAGS=$LDFLAGS
7462
echo "_main" > conftest.sym
7463
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465
/* end confdefs.h. */
7475
if ac_fn_c_try_link "$LINENO"; then :
7476
lt_cv_ld_exported_symbols_list=yes
7478
lt_cv_ld_exported_symbols_list=no
7480
rm -f core conftest.err conftest.$ac_objext \
7481
conftest$ac_exeext conftest.$ac_ext
7482
LDFLAGS="$save_LDFLAGS"
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7486
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7489
$as_echo_n "checking for -force_load linker flag... " >&6; }
7490
if ${lt_cv_ld_force_load+:} false; then :
7491
$as_echo_n "(cached) " >&6
7493
lt_cv_ld_force_load=no
7494
cat > conftest.c << _LT_EOF
7495
int forced_loaded() { return 2;}
7497
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7498
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7499
echo "$AR cru libconftest.a conftest.o" >&5
7500
$AR cru libconftest.a conftest.o 2>&5
7501
echo "$RANLIB libconftest.a" >&5
7502
$RANLIB libconftest.a 2>&5
7503
cat > conftest.c << _LT_EOF
7504
int main() { return 0;}
7506
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7507
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7509
if test -s conftest.err && $GREP force_load conftest.err; then
7510
cat conftest.err >&5
7511
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7512
lt_cv_ld_force_load=yes
7514
cat conftest.err >&5
7516
rm -f conftest.err libconftest.a conftest conftest.c
7517
rm -rf conftest.dSYM
7520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7521
$as_echo "$lt_cv_ld_force_load" >&6; }
7523
rhapsody* | darwin1.[012])
7524
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7526
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7527
darwin*) # darwin 5.x on
7528
# if running on 10.5 or later, the deployment target defaults
7529
# to the OS version, if on x86, and 10.4, the deployment
7530
# target defaults to 10.4. Don't you love it?
7531
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7532
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7533
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7535
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7537
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7541
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7542
_lt_dar_single_mod='$single_module'
7544
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7545
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7547
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7549
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7550
_lt_dsymutil='~$DSYMUTIL $lib || :'
7557
for ac_header in dlfcn.h
7559
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7561
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7562
cat >>confdefs.h <<_ACEOF
7563
#define HAVE_DLFCN_H 1
7584
# Check whether --enable-shared was given.
7585
if test "${enable_shared+set}" = set; then :
7586
enableval=$enable_shared; p=${PACKAGE-default}
7588
yes) enable_shared=yes ;;
7589
no) enable_shared=no ;;
7592
# Look at the argument we got. We use all the common list separators.
7593
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7594
for pkg in $enableval; do
7596
if test "X$pkg" = "X$p"; then
7617
# Check whether --with-pic was given.
7618
if test "${with_pic+set}" = set; then :
7619
withval=$with_pic; lt_p=${PACKAGE-default}
7621
yes|no) pic_mode=$withval ;;
7624
# Look at the argument we got. We use all the common list separators.
7625
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626
for lt_pkg in $withval; do
7628
if test "X$lt_pkg" = "X$lt_p"; then
7640
test -z "$pic_mode" && pic_mode=default
7648
# Check whether --enable-fast-install was given.
7649
if test "${enable_fast_install+set}" = set; then :
7650
enableval=$enable_fast_install; p=${PACKAGE-default}
7652
yes) enable_fast_install=yes ;;
7653
no) enable_fast_install=no ;;
7655
enable_fast_install=no
7656
# Look at the argument we got. We use all the common list separators.
7657
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7658
for pkg in $enableval; do
7660
if test "X$pkg" = "X$p"; then
7661
enable_fast_install=yes
7668
enable_fast_install=yes
7681
# This can be used to rebuild libtool when needed
7682
LIBTOOL_DEPS="$ltmain"
7684
# Always use our own libtool.
7685
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7716
test -z "$LN_S" && LN_S="ln -s"
7731
if test -n "${ZSH_VERSION+set}" ; then
7732
setopt NO_GLOB_SUBST
7735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7736
$as_echo_n "checking for objdir... " >&6; }
7737
if ${lt_cv_objdir+:} false; then :
7738
$as_echo_n "(cached) " >&6
7740
rm -f .libs 2>/dev/null
7741
mkdir .libs 2>/dev/null
7742
if test -d .libs; then
7745
# MS-DOS does not allow filenames that begin with a dot.
7748
rmdir .libs 2>/dev/null
7750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7751
$as_echo "$lt_cv_objdir" >&6; }
7752
objdir=$lt_cv_objdir
7758
cat >>confdefs.h <<_ACEOF
7759
#define LT_OBJDIR "$lt_cv_objdir/"
7767
# AIX sometimes has problems with the GCC collect2 program. For some
7768
# reason, if we set the COLLECT_NAMES environment variable, the problems
7769
# vanish in a puff of smoke.
7770
if test "X${COLLECT_NAMES+set}" != Xset; then
7772
export COLLECT_NAMES
7779
can_build_shared=yes
7781
# All known linkers require a `.a' archive for static linking (except MSVC,
7782
# which needs '.lib').
7785
with_gnu_ld="$lt_cv_prog_gnu_ld"
7788
old_CFLAGS="$CFLAGS"
7790
# Set sane defaults for various variables
7791
test -z "$CC" && CC=cc
7792
test -z "$LTCC" && LTCC=$CC
7793
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7794
test -z "$LD" && LD=ld
7795
test -z "$ac_objext" && ac_objext=o
7797
for cc_temp in $compiler""; do
7799
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7800
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7805
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7808
# Only perform the check for file, if the check method requires it
7809
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7810
case $deplibs_check_method in
7812
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7814
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7815
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7816
$as_echo_n "(cached) " >&6
7820
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7823
lt_save_MAGIC_CMD="$MAGIC_CMD"
7824
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7825
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7826
for ac_dir in $ac_dummy; do
7828
test -z "$ac_dir" && ac_dir=.
7829
if test -f $ac_dir/${ac_tool_prefix}file; then
7830
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7831
if test -n "$file_magic_test_file"; then
7832
case $deplibs_check_method in
7834
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7835
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7837
$EGREP "$file_magic_regex" > /dev/null; then
7842
*** Warning: the command libtool uses to detect shared libraries,
7843
*** $file_magic_cmd, produces output that libtool cannot recognize.
7844
*** The result is that libtool may fail to recognize shared libraries
7845
*** as such. This will affect the creation of libtool libraries that
7846
*** depend on shared libraries, but programs linked with such libtool
7847
*** libraries will work regardless of this problem. Nevertheless, you
7848
*** may want to report the problem to your system manager and/or to
7849
*** bug-libtool@gnu.org
7859
MAGIC_CMD="$lt_save_MAGIC_CMD"
7864
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865
if test -n "$MAGIC_CMD"; then
7866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7867
$as_echo "$MAGIC_CMD" >&6; }
7869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870
$as_echo "no" >&6; }
7877
if test -z "$lt_cv_path_MAGIC_CMD"; then
7878
if test -n "$ac_tool_prefix"; then
7879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7880
$as_echo_n "checking for file... " >&6; }
7881
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7882
$as_echo_n "(cached) " >&6
7886
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889
lt_save_MAGIC_CMD="$MAGIC_CMD"
7890
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892
for ac_dir in $ac_dummy; do
7894
test -z "$ac_dir" && ac_dir=.
7895
if test -f $ac_dir/file; then
7896
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7897
if test -n "$file_magic_test_file"; then
7898
case $deplibs_check_method in
7900
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903
$EGREP "$file_magic_regex" > /dev/null; then
7908
*** Warning: the command libtool uses to detect shared libraries,
7909
*** $file_magic_cmd, produces output that libtool cannot recognize.
7910
*** The result is that libtool may fail to recognize shared libraries
7911
*** as such. This will affect the creation of libtool libraries that
7912
*** depend on shared libraries, but programs linked with such libtool
7913
*** libraries will work regardless of this problem. Nevertheless, you
7914
*** may want to report the problem to your system manager and/or to
7915
*** bug-libtool@gnu.org
7925
MAGIC_CMD="$lt_save_MAGIC_CMD"
7930
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931
if test -n "$MAGIC_CMD"; then
7932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933
$as_echo "$MAGIC_CMD" >&6; }
7935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936
$as_echo "no" >&6; }
7949
# Use C for the default configuration in the libtool script
7953
ac_cpp='$CPP $CPPFLAGS'
7954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
# Source file extension for C test sources.
7962
# Object file extension for compiled C test sources.
7966
# Code to be used in simple compile tests
7967
lt_simple_compile_test_code="int some_variable = 0;"
7969
# Code to be used in simple link tests
7970
lt_simple_link_test_code='int main(){return(0);}'
7978
# If no C compiler was specified, use CC.
7981
# If no C compiler flags were specified, use CFLAGS.
7982
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7984
# Allow CC to be a program name with arguments.
7987
# Save the default compiler, since it gets overwritten when the other
7988
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7989
compiler_DEFAULT=$CC
7991
# save warnings/boilerplate of simple test code
7992
ac_outfile=conftest.$ac_objext
7993
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7994
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7995
_lt_compiler_boilerplate=`cat conftest.err`
7998
ac_outfile=conftest.$ac_objext
7999
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8000
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8001
_lt_linker_boilerplate=`cat conftest.err`
8005
if test -n "$compiler"; then
8007
lt_prog_compiler_no_builtin_flag=
8009
if test "$GCC" = yes; then
8010
case $cc_basename in
8012
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8014
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8018
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8019
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8020
$as_echo_n "(cached) " >&6
8022
lt_cv_prog_compiler_rtti_exceptions=no
8023
ac_outfile=conftest.$ac_objext
8024
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025
lt_compiler_flag="-fno-rtti -fno-exceptions"
8026
# Insert the option either (1) after the last *FLAGS variable, or
8027
# (2) before a word containing "conftest.", or (3) at the end.
8028
# Note that $ac_compile itself does not contain backslashes and begins
8029
# with a dollar sign (not a hyphen), so the echo should work correctly.
8030
# The option is referenced via a variable to avoid confusing sed.
8031
lt_compile=`echo "$ac_compile" | $SED \
8032
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034
-e 's:$: $lt_compiler_flag:'`
8035
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8036
(eval "$lt_compile" 2>conftest.err)
8038
cat conftest.err >&5
8039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040
if (exit $ac_status) && test -s "$ac_outfile"; then
8041
# The compiler can only warn and ignore the option if not recognized
8042
# So say no if there are warnings other than the usual output.
8043
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8044
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8045
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8046
lt_cv_prog_compiler_rtti_exceptions=yes
8052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8053
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8055
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8056
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8068
lt_prog_compiler_wl=
8069
lt_prog_compiler_pic=
8070
lt_prog_compiler_static=
8073
if test "$GCC" = yes; then
8074
lt_prog_compiler_wl='-Wl,'
8075
lt_prog_compiler_static='-static'
8079
# All AIX code is PIC.
8080
if test "$host_cpu" = ia64; then
8081
# AIX 5 now supports IA64 processor
8082
lt_prog_compiler_static='-Bstatic'
8089
# see comment about AmigaOS4 .so support
8090
lt_prog_compiler_pic='-fPIC'
8093
# FIXME: we need at least 68020 code to build shared libraries, but
8094
# adding the `-m68020' flag to GCC prevents building anything better,
8096
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8101
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8102
# PIC is the default for these OSes.
8105
mingw* | cygwin* | pw32* | os2* | cegcc*)
8106
# This hack is so that the source file can tell whether it is being
8107
# built for inclusion in a dll (and should export symbols for example).
8108
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8109
# (--disable-auto-import) libraries
8110
lt_prog_compiler_pic='-DDLL_EXPORT'
8113
darwin* | rhapsody*)
8114
# PIC is the default on this platform
8115
# Common symbols not allowed in MH_DYLIB files
8116
lt_prog_compiler_pic='-fno-common'
8120
# PIC is the default for Haiku.
8121
# The "-static" flag exists, but is broken.
8122
lt_prog_compiler_static=
8126
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8127
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8128
# sets the default TLS model and affects inlining.
8134
lt_prog_compiler_pic='-fPIC'
8140
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8141
# Instead, we relocate shared libraries at runtime.
8145
# Just because we use GCC doesn't mean we suddenly get shared libraries
8146
# on systems that don't support them.
8147
lt_prog_compiler_can_build_shared=no
8152
# QNX uses GNU C++, but need to define -shared option too, otherwise
8154
lt_prog_compiler_pic='-fPIC -shared'
8158
if test -d /usr/nec; then
8159
lt_prog_compiler_pic=-Kconform_pic
8164
lt_prog_compiler_pic='-fPIC'
8168
case $cc_basename in
8169
nvcc*) # Cuda Compiler Driver 2.2
8170
lt_prog_compiler_wl='-Xlinker '
8171
if test -n "$lt_prog_compiler_pic"; then
8172
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8177
# PORTME Check for flag to pass linker flags through the system compiler.
8180
lt_prog_compiler_wl='-Wl,'
8181
if test "$host_cpu" = ia64; then
8182
# AIX 5 now supports IA64 processor
8183
lt_prog_compiler_static='-Bstatic'
8185
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8189
mingw* | cygwin* | pw32* | os2* | cegcc*)
8190
# This hack is so that the source file can tell whether it is being
8191
# built for inclusion in a dll (and should export symbols for example).
8192
lt_prog_compiler_pic='-DDLL_EXPORT'
8195
hpux9* | hpux10* | hpux11*)
8196
lt_prog_compiler_wl='-Wl,'
8197
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8204
lt_prog_compiler_pic='+Z'
8207
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8208
lt_prog_compiler_static='${wl}-a ${wl}archive'
8211
irix5* | irix6* | nonstopux*)
8212
lt_prog_compiler_wl='-Wl,'
8213
# PIC (with -KPIC) is the default.
8214
lt_prog_compiler_static='-non_shared'
8217
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8218
case $cc_basename in
8219
# old Intel for x86_64 which still supported -KPIC.
8221
lt_prog_compiler_wl='-Wl,'
8222
lt_prog_compiler_pic='-KPIC'
8223
lt_prog_compiler_static='-static'
8225
# icc used to be incompatible with GCC.
8226
# ICC 10 doesn't accept -KPIC any more.
8228
lt_prog_compiler_wl='-Wl,'
8229
lt_prog_compiler_pic='-fPIC'
8230
lt_prog_compiler_static='-static'
8232
# Lahey Fortran 8.1.
8234
lt_prog_compiler_wl='-Wl,'
8235
lt_prog_compiler_pic='--shared'
8236
lt_prog_compiler_static='--static'
8239
# NAG Fortran compiler
8240
lt_prog_compiler_wl='-Wl,-Wl,,'
8241
lt_prog_compiler_pic='-PIC'
8242
lt_prog_compiler_static='-Bstatic'
8244
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8245
# Portland Group compilers (*not* the Pentium gcc compiler,
8246
# which looks to be a dead project)
8247
lt_prog_compiler_wl='-Wl,'
8248
lt_prog_compiler_pic='-fpic'
8249
lt_prog_compiler_static='-Bstatic'
8252
lt_prog_compiler_wl='-Wl,'
8253
# All Alpha code is PIC.
8254
lt_prog_compiler_static='-non_shared'
8256
xl* | bgxl* | bgf* | mpixl*)
8257
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8258
lt_prog_compiler_wl='-Wl,'
8259
lt_prog_compiler_pic='-qpic'
8260
lt_prog_compiler_static='-qstaticlink'
8263
case `$CC -V 2>&1 | sed 5q` in
8264
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8265
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8266
lt_prog_compiler_pic='-KPIC'
8267
lt_prog_compiler_static='-Bstatic'
8268
lt_prog_compiler_wl=''
8270
*Sun\ F* | *Sun*Fortran*)
8271
lt_prog_compiler_pic='-KPIC'
8272
lt_prog_compiler_static='-Bstatic'
8273
lt_prog_compiler_wl='-Qoption ld '
8277
lt_prog_compiler_pic='-KPIC'
8278
lt_prog_compiler_static='-Bstatic'
8279
lt_prog_compiler_wl='-Wl,'
8281
*Intel*\ [CF]*Compiler*)
8282
lt_prog_compiler_wl='-Wl,'
8283
lt_prog_compiler_pic='-fPIC'
8284
lt_prog_compiler_static='-static'
8287
lt_prog_compiler_wl='-Wl,'
8288
lt_prog_compiler_pic='-fpic'
8289
lt_prog_compiler_static='-Bstatic'
8297
lt_prog_compiler_pic='-KPIC'
8298
lt_prog_compiler_static='-Bstatic'
8302
# QNX uses GNU C++, but need to define -shared option too, otherwise
8304
lt_prog_compiler_pic='-fPIC -shared'
8307
osf3* | osf4* | osf5*)
8308
lt_prog_compiler_wl='-Wl,'
8309
# All OSF/1 code is PIC.
8310
lt_prog_compiler_static='-non_shared'
8314
lt_prog_compiler_static='-non_shared'
8318
lt_prog_compiler_pic='-KPIC'
8319
lt_prog_compiler_static='-Bstatic'
8320
case $cc_basename in
8321
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8322
lt_prog_compiler_wl='-Qoption ld ';;
8324
lt_prog_compiler_wl='-Wl,';;
8329
lt_prog_compiler_wl='-Qoption ld '
8330
lt_prog_compiler_pic='-PIC'
8331
lt_prog_compiler_static='-Bstatic'
8334
sysv4 | sysv4.2uw2* | sysv4.3*)
8335
lt_prog_compiler_wl='-Wl,'
8336
lt_prog_compiler_pic='-KPIC'
8337
lt_prog_compiler_static='-Bstatic'
8341
if test -d /usr/nec ;then
8342
lt_prog_compiler_pic='-Kconform_pic'
8343
lt_prog_compiler_static='-Bstatic'
8347
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8348
lt_prog_compiler_wl='-Wl,'
8349
lt_prog_compiler_pic='-KPIC'
8350
lt_prog_compiler_static='-Bstatic'
8354
lt_prog_compiler_wl='-Wl,'
8355
lt_prog_compiler_can_build_shared=no
8359
lt_prog_compiler_pic='-pic'
8360
lt_prog_compiler_static='-Bstatic'
8364
lt_prog_compiler_can_build_shared=no
8370
# For platforms which do not support PIC, -DPIC is meaningless:
8372
lt_prog_compiler_pic=
8375
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8380
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8381
if ${lt_cv_prog_compiler_pic+:} false; then :
8382
$as_echo_n "(cached) " >&6
8384
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8387
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8388
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8391
# Check to make sure the PIC flag actually works.
8393
if test -n "$lt_prog_compiler_pic"; then
8394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8395
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8396
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8397
$as_echo_n "(cached) " >&6
8399
lt_cv_prog_compiler_pic_works=no
8400
ac_outfile=conftest.$ac_objext
8401
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8402
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8403
# Insert the option either (1) after the last *FLAGS variable, or
8404
# (2) before a word containing "conftest.", or (3) at the end.
8405
# Note that $ac_compile itself does not contain backslashes and begins
8406
# with a dollar sign (not a hyphen), so the echo should work correctly.
8407
# The option is referenced via a variable to avoid confusing sed.
8408
lt_compile=`echo "$ac_compile" | $SED \
8409
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8410
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8411
-e 's:$: $lt_compiler_flag:'`
8412
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8413
(eval "$lt_compile" 2>conftest.err)
8415
cat conftest.err >&5
8416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417
if (exit $ac_status) && test -s "$ac_outfile"; then
8418
# The compiler can only warn and ignore the option if not recognized
8419
# So say no if there are warnings other than the usual output.
8420
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8421
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8422
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8423
lt_cv_prog_compiler_pic_works=yes
8429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8430
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8432
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8433
case $lt_prog_compiler_pic in
8435
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8438
lt_prog_compiler_pic=
8439
lt_prog_compiler_can_build_shared=no
8455
# Check to make sure the static flag actually works.
8457
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8459
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8460
if ${lt_cv_prog_compiler_static_works+:} false; then :
8461
$as_echo_n "(cached) " >&6
8463
lt_cv_prog_compiler_static_works=no
8464
save_LDFLAGS="$LDFLAGS"
8465
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8466
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8467
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8468
# The linker can only warn and ignore the option if not recognized
8469
# So say no if there are warnings
8470
if test -s conftest.err; then
8471
# Append any errors to the config.log.
8472
cat conftest.err 1>&5
8473
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8474
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475
if diff conftest.exp conftest.er2 >/dev/null; then
8476
lt_cv_prog_compiler_static_works=yes
8479
lt_cv_prog_compiler_static_works=yes
8483
LDFLAGS="$save_LDFLAGS"
8486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8487
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8489
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8492
lt_prog_compiler_static=
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8502
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8503
if ${lt_cv_prog_compiler_c_o+:} false; then :
8504
$as_echo_n "(cached) " >&6
8506
lt_cv_prog_compiler_c_o=no
8507
$RM -r conftest 2>/dev/null
8511
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513
lt_compiler_flag="-o out/conftest2.$ac_objext"
8514
# Insert the option either (1) after the last *FLAGS variable, or
8515
# (2) before a word containing "conftest.", or (3) at the end.
8516
# Note that $ac_compile itself does not contain backslashes and begins
8517
# with a dollar sign (not a hyphen), so the echo should work correctly.
8518
lt_compile=`echo "$ac_compile" | $SED \
8519
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521
-e 's:$: $lt_compiler_flag:'`
8522
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8523
(eval "$lt_compile" 2>out/conftest.err)
8525
cat out/conftest.err >&5
8526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8529
# The compiler can only warn and ignore the option if not recognized
8530
# So say no if there are warnings
8531
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8532
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8533
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8534
lt_cv_prog_compiler_c_o=yes
8539
# SGI C++ compiler will create directory out/ii_files/ for
8540
# template instantiation
8541
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8542
$RM out/* && rmdir out
8548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8549
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558
if ${lt_cv_prog_compiler_c_o+:} false; then :
8559
$as_echo_n "(cached) " >&6
8561
lt_cv_prog_compiler_c_o=no
8562
$RM -r conftest 2>/dev/null
8566
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568
lt_compiler_flag="-o out/conftest2.$ac_objext"
8569
# Insert the option either (1) after the last *FLAGS variable, or
8570
# (2) before a word containing "conftest.", or (3) at the end.
8571
# Note that $ac_compile itself does not contain backslashes and begins
8572
# with a dollar sign (not a hyphen), so the echo should work correctly.
8573
lt_compile=`echo "$ac_compile" | $SED \
8574
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576
-e 's:$: $lt_compiler_flag:'`
8577
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578
(eval "$lt_compile" 2>out/conftest.err)
8580
cat out/conftest.err >&5
8581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8584
# The compiler can only warn and ignore the option if not recognized
8585
# So say no if there are warnings
8586
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589
lt_cv_prog_compiler_c_o=yes
8594
# SGI C++ compiler will create directory out/ii_files/ for
8595
# template instantiation
8596
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597
$RM out/* && rmdir out
8603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8609
hard_links="nottested"
8610
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8611
# do not overwrite the value of need_locks provided by the user
8612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8613
$as_echo_n "checking if we can lock with hard links... " >&6; }
8616
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8618
ln conftest.a conftest.b 2>&5 || hard_links=no
8619
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8621
$as_echo "$hard_links" >&6; }
8622
if test "$hard_links" = no; then
8623
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8624
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8637
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8640
allow_undefined_flag=
8641
always_export_symbols=no
8643
archive_expsym_cmds=
8644
compiler_needs_object=no
8645
enable_shared_with_static_runtimes=no
8646
export_dynamic_flag_spec=
8647
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8648
hardcode_automatic=no
8650
hardcode_direct_absolute=no
8651
hardcode_libdir_flag_spec=
8652
hardcode_libdir_separator=
8654
hardcode_shlibpath_var=unsupported
8656
link_all_deplibs=unknown
8659
old_archive_from_new_cmds=
8660
old_archive_from_expsyms_cmds=
8661
thread_safe_flag_spec=
8662
whole_archive_flag_spec=
8663
# include_expsyms should be a list of space-separated symbols to be *always*
8664
# included in the symbol list
8666
# exclude_expsyms can be an extended regexp of symbols to exclude
8667
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8668
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8669
# as well as any symbol that contains `d'.
8670
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8671
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8672
# platforms (ab)use it in PIC code, but their linkers get confused if
8673
# the symbol is explicitly referenced. Since portable code cannot
8674
# rely on this symbol name, it's probably fine to never include it in
8675
# preloaded symbol tables.
8676
# Exclude shared library initialization/finalization symbols.
8677
extract_expsyms_cmds=
8680
cygwin* | mingw* | pw32* | cegcc*)
8681
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8682
# When not using gcc, we currently assume that we are using
8683
# Microsoft Visual C++.
8684
if test "$GCC" != yes; then
8689
# we just hope/assume this is gcc and not c89 (= MSVC++)
8699
# On some targets, GNU ld is compatible enough with the native linker
8700
# that we're better off using the native interface for both.
8701
lt_use_gnu_ld_interface=no
8702
if test "$with_gnu_ld" = yes; then
8705
# The AIX port of GNU ld has always aspired to compatibility
8706
# with the native linker. However, as the warning in the GNU ld
8707
# block says, versions before 2.19.5* couldn't really create working
8708
# shared libraries, regardless of the interface used.
8709
case `$LD -v 2>&1` in
8710
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8711
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8712
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8714
lt_use_gnu_ld_interface=yes
8719
lt_use_gnu_ld_interface=yes
8724
if test "$lt_use_gnu_ld_interface" = yes; then
8725
# If archive_cmds runs LD, not CC, wlarc should be empty
8728
# Set some defaults for GNU ld with shared library support. These
8729
# are reset later if shared libraries are not supported. Putting them
8730
# here allows them to be overridden if necessary.
8731
runpath_var=LD_RUN_PATH
8732
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733
export_dynamic_flag_spec='${wl}--export-dynamic'
8734
# ancient GNU ld didn't support --whole-archive et. al.
8735
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8736
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8738
whole_archive_flag_spec=
8740
supports_anon_versioning=no
8741
case `$LD -v 2>&1` in
8742
*GNU\ gold*) supports_anon_versioning=yes ;;
8743
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8744
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8745
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8746
*\ 2.11.*) ;; # other 2.11 versions
8747
*) supports_anon_versioning=yes ;;
8750
# See if GNU ld supports shared libraries.
8753
# On AIX/PPC, the GNU linker is very broken
8754
if test "$host_cpu" != ia64; then
8758
*** Warning: the GNU linker, at least up to release 2.19, is reported
8759
*** to be unable to reliably create shared libraries on AIX.
8760
*** Therefore, libtool is disabling shared libraries support. If you
8761
*** really care for shared libraries, you may want to install binutils
8762
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8763
*** You will then need to restart the configuration process.
8772
# see comment about AmigaOS4 .so support
8773
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774
archive_expsym_cmds=''
8777
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)'
8778
hardcode_libdir_flag_spec='-L$libdir'
8779
hardcode_minus_L=yes
8785
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786
allow_undefined_flag=unsupported
8787
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8788
# support --undefined. This deserves some investigation. FIXME
8789
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795
cygwin* | mingw* | pw32* | cegcc*)
8796
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8797
# as there is no search path for DLLs.
8798
hardcode_libdir_flag_spec='-L$libdir'
8799
export_dynamic_flag_spec='${wl}--export-all-symbols'
8800
allow_undefined_flag=unsupported
8801
always_export_symbols=no
8802
enable_shared_with_static_runtimes=yes
8803
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8804
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8806
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8807
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8808
# If the export-symbols file already is a .def file (1st line
8809
# is EXPORTS), use it as is; otherwise, prepend...
8810
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8811
cp $export_symbols $output_objdir/$soname.def;
8813
echo EXPORTS > $output_objdir/$soname.def;
8814
cat $export_symbols >> $output_objdir/$soname.def;
8816
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824
link_all_deplibs=yes
8829
hardcode_shlibpath_var=no
8830
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8831
export_dynamic_flag_spec='${wl}-E'
8832
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8833
# Instead, shared libraries are loaded at an image base (0x10000000 by
8834
# default) and relocated if they conflict, which is a slow very memory
8835
# consuming and fragmenting process. To avoid this, we pick a random,
8836
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8837
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8838
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8839
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'
8842
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8844
if test "$host_os" = linux-dietlibc; then
8845
case $cc_basename in
8846
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8849
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8850
&& test "$tmp_diet" = no
8852
tmp_addflag=' $pic_flag'
8853
tmp_sharedflag='-shared'
8854
case $cc_basename,$host_cpu in
8855
pgcc*) # Portland Group C compiler
8856
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8857
tmp_addflag=' $pic_flag'
8859
pgf77* | pgf90* | pgf95* | pgfortran*)
8860
# Portland Group f77 and f90 compilers
8861
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8862
tmp_addflag=' $pic_flag -Mnomain' ;;
8863
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8864
tmp_addflag=' -i_dynamic' ;;
8865
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8866
tmp_addflag=' -i_dynamic -nofor_main' ;;
8867
ifc* | ifort*) # Intel Fortran compiler
8868
tmp_addflag=' -nofor_main' ;;
8869
lf95*) # Lahey Fortran 8.1
8870
whole_archive_flag_spec=
8871
tmp_sharedflag='--shared' ;;
8872
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8873
tmp_sharedflag='-qmkshrobj'
8875
nvcc*) # Cuda Compiler Driver 2.2
8876
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8877
compiler_needs_object=yes
8880
case `$CC -V 2>&1 | sed 5q` in
8881
*Sun\ C*) # Sun C 5.9
8882
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8883
compiler_needs_object=yes
8884
tmp_sharedflag='-G' ;;
8885
*Sun\ F*) # Sun Fortran 8.3
8886
tmp_sharedflag='-G' ;;
8888
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890
if test "x$supports_anon_versioning" = xyes; then
8891
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8892
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8893
echo "local: *; };" >> $output_objdir/$libname.ver~
8894
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8897
case $cc_basename in
8898
xlf* | bgf* | bgxlf* | mpixlf*)
8899
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8900
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8901
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8903
if test "x$supports_anon_versioning" = xyes; then
8904
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8905
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906
echo "local: *; };" >> $output_objdir/$libname.ver~
8907
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8917
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8918
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8921
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8927
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8931
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8932
*** create shared libraries on Solaris systems. Therefore, libtool
8933
*** is disabling shared libraries support. We urge you to upgrade GNU
8934
*** binutils to release 2.9.1 or newer. Another option is to modify
8935
*** your PATH or compiler configuration so that the native linker is
8936
*** used, and then restart.
8939
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8947
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8948
case `$LD -v 2>&1` in
8949
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8953
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8954
*** reliably create shared libraries on SCO systems. Therefore, libtool
8955
*** is disabling shared libraries support. We urge you to upgrade GNU
8956
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8957
*** your PATH or compiler configuration so that the native linker is
8958
*** used, and then restart.
8963
# For security reasons, it is highly recommended that you always
8964
# use absolute paths for naming shared libraries, and exclude the
8965
# DT_RUNPATH tag from executables and libraries. But doing so
8966
# requires that you compile everything twice, which is a pain.
8967
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8982
hardcode_shlibpath_var=no
8986
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995
if test "$ld_shlibs" = no; then
8997
hardcode_libdir_flag_spec=
8998
export_dynamic_flag_spec=
8999
whole_archive_flag_spec=
9002
# PORTME fill in a description of your system's linker (not GNU ld)
9005
allow_undefined_flag=unsupported
9006
always_export_symbols=yes
9007
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'
9008
# Note: this linker hardcodes the directories in LIBPATH if there
9009
# are no directories specified by -L.
9010
hardcode_minus_L=yes
9011
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9012
# Neither direct hardcoding nor static linking is supported with a
9014
hardcode_direct=unsupported
9019
if test "$host_cpu" = ia64; then
9020
# On IA64, the linker does run time linking by default, so we don't
9021
# have to do anything special.
9022
aix_use_runtimelinking=no
9023
exp_sym_flag='-Bexport'
9026
# If we're using GNU nm, then we don't want the "-C" option.
9027
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9028
# Also, AIX nm treats weak defined symbols like other global
9029
# defined symbols, whereas GNU nm marks them as "W".
9030
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9031
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9033
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'
9035
aix_use_runtimelinking=no
9037
# Test if we are trying to use run time linking or normal
9038
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9039
# need to do runtime linking.
9040
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9041
for ld_flag in $LDFLAGS; do
9042
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9043
aix_use_runtimelinking=yes
9050
exp_sym_flag='-bexport'
9051
no_entry_flag='-bnoentry'
9054
# When large executables or shared objects are built, AIX ld can
9055
# have problems creating the table of contents. If linking a library
9056
# or program results in "error TOC overflow" add -mminimal-toc to
9057
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9058
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9062
hardcode_direct_absolute=yes
9063
hardcode_libdir_separator=':'
9064
link_all_deplibs=yes
9065
file_list_spec='${wl}-f,'
9067
if test "$GCC" = yes; then
9068
case $host_os in aix4.[012]|aix4.[012].*)
9069
# We only want to do this on AIX 4.2 and lower, the check
9070
# below for broken collect2 doesn't work under 4.3+
9071
collect2name=`${CC} -print-prog-name=collect2`
9072
if test -f "$collect2name" &&
9073
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9075
# We have reworked collect2
9078
# We have old collect2
9079
hardcode_direct=unsupported
9080
# It fails to find uninstalled libraries when the uninstalled
9081
# path is not listed in the libpath. Setting hardcode_minus_L
9082
# to unsupported forces relinking
9083
hardcode_minus_L=yes
9084
hardcode_libdir_flag_spec='-L$libdir'
9085
hardcode_libdir_separator=
9089
shared_flag='-shared'
9090
if test "$aix_use_runtimelinking" = yes; then
9091
shared_flag="$shared_flag "'${wl}-G'
9095
if test "$host_cpu" = ia64; then
9096
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9097
# chokes on -Wl,-G. The following line is correct:
9100
if test "$aix_use_runtimelinking" = yes; then
9101
shared_flag='${wl}-G'
9103
shared_flag='${wl}-bM:SRE'
9108
export_dynamic_flag_spec='${wl}-bexpall'
9109
# It seems that -bexpall does not export symbols beginning with
9110
# underscore (_), so it is better to generate a list of symbols to export.
9111
always_export_symbols=yes
9112
if test "$aix_use_runtimelinking" = yes; then
9113
# Warning - without using the other runtime loading flags (-brtl),
9114
# -berok will link without error, but may produce a broken library.
9115
allow_undefined_flag='-berok'
9116
# Determine the default libpath from the value encoded in an
9118
if test "${lt_cv_aix_libpath+set}" = set; then
9119
aix_libpath=$lt_cv_aix_libpath
9121
if ${lt_cv_aix_libpath_+:} false; then :
9122
$as_echo_n "(cached) " >&6
9124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125
/* end confdefs.h. */
9135
if ac_fn_c_try_link "$LINENO"; then :
9137
lt_aix_libpath_sed='
9138
/Import File Strings/,/^$/ {
9140
s/^0 *\([^ ]*\) *$/\1/
9144
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9145
# Check for a 64-bit object if we didn't find anything.
9146
if test -z "$lt_cv_aix_libpath_"; then
9147
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150
rm -f core conftest.err conftest.$ac_objext \
9151
conftest$ac_exeext conftest.$ac_ext
9152
if test -z "$lt_cv_aix_libpath_"; then
9153
lt_cv_aix_libpath_="/usr/lib:/lib"
9158
aix_libpath=$lt_cv_aix_libpath_
9161
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9162
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9164
if test "$host_cpu" = ia64; then
9165
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9166
allow_undefined_flag="-z nodefs"
9167
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"
9169
# Determine the default libpath from the value encoded in an
9171
if test "${lt_cv_aix_libpath+set}" = set; then
9172
aix_libpath=$lt_cv_aix_libpath
9174
if ${lt_cv_aix_libpath_+:} false; then :
9175
$as_echo_n "(cached) " >&6
9177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178
/* end confdefs.h. */
9188
if ac_fn_c_try_link "$LINENO"; then :
9190
lt_aix_libpath_sed='
9191
/Import File Strings/,/^$/ {
9193
s/^0 *\([^ ]*\) *$/\1/
9197
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198
# Check for a 64-bit object if we didn't find anything.
9199
if test -z "$lt_cv_aix_libpath_"; then
9200
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203
rm -f core conftest.err conftest.$ac_objext \
9204
conftest$ac_exeext conftest.$ac_ext
9205
if test -z "$lt_cv_aix_libpath_"; then
9206
lt_cv_aix_libpath_="/usr/lib:/lib"
9211
aix_libpath=$lt_cv_aix_libpath_
9214
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9215
# Warning - without using the other run time loading flags,
9216
# -berok will link without error, but may produce a broken library.
9217
no_undefined_flag=' ${wl}-bernotok'
9218
allow_undefined_flag=' ${wl}-berok'
9219
if test "$with_gnu_ld" = yes; then
9220
# We only use this code for GNU lds that support --whole-archive.
9221
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9223
# Exported symbols can be pulled into shared objects from archives
9224
whole_archive_flag_spec='$convenience'
9226
archive_cmds_need_lc=yes
9227
# This is similar to how AIX traditionally builds its shared libraries.
9228
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'
9236
# see comment about AmigaOS4 .so support
9237
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238
archive_expsym_cmds=''
9241
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)'
9242
hardcode_libdir_flag_spec='-L$libdir'
9243
hardcode_minus_L=yes
9249
export_dynamic_flag_spec=-rdynamic
9252
cygwin* | mingw* | pw32* | cegcc*)
9253
# When not using gcc, we currently assume that we are using
9254
# Microsoft Visual C++.
9255
# hardcode_libdir_flag_spec is actually meaningless, as there is
9256
# no search path for DLLs.
9257
case $cc_basename in
9260
hardcode_libdir_flag_spec=' '
9261
allow_undefined_flag=unsupported
9262
always_export_symbols=yes
9264
# Tell ltmain to make .lib files, not .a files.
9266
# Tell ltmain to make .dll files, not .so files.
9268
# FIXME: Setting linknames here is a bad hack.
9269
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9270
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9271
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9273
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9275
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9277
# The linker will not automatically build a static lib if we build a DLL.
9278
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9279
enable_shared_with_static_runtimes=yes
9280
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9281
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9283
old_postinstall_cmds='chmod 644 $oldlib'
9284
postlink_cmds='lt_outputfile="@OUTPUT@"~
9285
lt_tool_outputfile="@TOOL_OUTPUT@"~
9286
case $lt_outputfile in
9289
lt_outputfile="$lt_outputfile.exe"
9290
lt_tool_outputfile="$lt_tool_outputfile.exe"
9293
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9294
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9295
$RM "$lt_outputfile.manifest";
9299
# Assume MSVC wrapper
9300
hardcode_libdir_flag_spec=' '
9301
allow_undefined_flag=unsupported
9302
# Tell ltmain to make .lib files, not .a files.
9304
# Tell ltmain to make .dll files, not .so files.
9306
# FIXME: Setting linknames here is a bad hack.
9307
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9308
# The linker will automatically build a .lib file if we build a DLL.
9309
old_archive_from_new_cmds='true'
9310
# FIXME: Should let the user specify the lib program.
9311
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9312
enable_shared_with_static_runtimes=yes
9317
darwin* | rhapsody*)
9320
archive_cmds_need_lc=no
9322
hardcode_automatic=yes
9323
hardcode_shlibpath_var=unsupported
9324
if test "$lt_cv_ld_force_load" = "yes"; then
9325
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9328
whole_archive_flag_spec=''
9330
link_all_deplibs=yes
9331
allow_undefined_flag="$_lt_dar_allow_undefined"
9332
case $cc_basename in
9333
ifort*) _lt_dar_can_shared=yes ;;
9334
*) _lt_dar_can_shared=$GCC ;;
9336
if test "$_lt_dar_can_shared" = "yes"; then
9337
output_verbose_link_cmd=func_echo_all
9338
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9339
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9340
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}"
9341
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}"
9350
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351
hardcode_libdir_flag_spec='-L$libdir'
9352
hardcode_shlibpath_var=no
9355
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9356
# support. Future versions do this automatically, but an explicit c++rt0.o
9357
# does not break anything, and helps significantly (at the cost of a little
9360
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9361
hardcode_libdir_flag_spec='-R$libdir'
9363
hardcode_shlibpath_var=no
9366
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9368
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9370
hardcode_minus_L=yes
9371
hardcode_shlibpath_var=no
9374
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9375
freebsd* | dragonfly*)
9376
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9377
hardcode_libdir_flag_spec='-R$libdir'
9379
hardcode_shlibpath_var=no
9383
if test "$GCC" = yes; then
9384
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9386
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'
9388
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9389
hardcode_libdir_separator=:
9392
# hardcode_minus_L: Not really in the search PATH,
9393
# but as the default location of the library.
9394
hardcode_minus_L=yes
9395
export_dynamic_flag_spec='${wl}-E'
9399
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9400
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9402
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9404
if test "$with_gnu_ld" = no; then
9405
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406
hardcode_libdir_separator=:
9408
hardcode_direct_absolute=yes
9409
export_dynamic_flag_spec='${wl}-E'
9410
# hardcode_minus_L: Not really in the search PATH,
9411
# but as the default location of the library.
9412
hardcode_minus_L=yes
9417
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9420
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9426
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9439
# Older versions of the 11.00 compiler do not understand -b yet
9440
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9442
$as_echo_n "checking if $CC understands -b... " >&6; }
9443
if ${lt_cv_prog_compiler__b+:} false; then :
9444
$as_echo_n "(cached) " >&6
9446
lt_cv_prog_compiler__b=no
9447
save_LDFLAGS="$LDFLAGS"
9448
LDFLAGS="$LDFLAGS -b"
9449
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9450
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9451
# The linker can only warn and ignore the option if not recognized
9452
# So say no if there are warnings
9453
if test -s conftest.err; then
9454
# Append any errors to the config.log.
9455
cat conftest.err 1>&5
9456
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9457
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458
if diff conftest.exp conftest.er2 >/dev/null; then
9459
lt_cv_prog_compiler__b=yes
9462
lt_cv_prog_compiler__b=yes
9466
LDFLAGS="$save_LDFLAGS"
9469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9470
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9472
if test x"$lt_cv_prog_compiler__b" = xyes; then
9473
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9481
if test "$with_gnu_ld" = no; then
9482
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483
hardcode_libdir_separator=:
9488
hardcode_shlibpath_var=no
9492
hardcode_direct_absolute=yes
9493
export_dynamic_flag_spec='${wl}-E'
9495
# hardcode_minus_L: Not really in the search PATH,
9496
# but as the default location of the library.
9497
hardcode_minus_L=yes
9503
irix5* | irix6* | nonstopux*)
9504
if test "$GCC" = yes; then
9505
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9506
# Try to use the -exported_symbol ld option, if it does not
9507
# work, assume that -exports_file does not work either and
9508
# implicitly export all symbols.
9509
# This should be the same for all languages, so no per-tag cache variable.
9510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9511
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9512
if ${lt_cv_irix_exported_symbol+:} false; then :
9513
$as_echo_n "(cached) " >&6
9515
save_LDFLAGS="$LDFLAGS"
9516
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518
/* end confdefs.h. */
9519
int foo (void) { return 0; }
9521
if ac_fn_c_try_link "$LINENO"; then :
9522
lt_cv_irix_exported_symbol=yes
9524
lt_cv_irix_exported_symbol=no
9526
rm -f core conftest.err conftest.$ac_objext \
9527
conftest$ac_exeext conftest.$ac_ext
9528
LDFLAGS="$save_LDFLAGS"
9530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9531
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9532
if test "$lt_cv_irix_exported_symbol" = yes; then
9533
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9536
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9537
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9539
archive_cmds_need_lc='no'
9540
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541
hardcode_libdir_separator=:
9543
link_all_deplibs=yes
9547
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9548
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9550
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9552
hardcode_libdir_flag_spec='-R$libdir'
9554
hardcode_shlibpath_var=no
9558
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561
hardcode_libdir_separator=:
9562
hardcode_shlibpath_var=no
9569
if test -f /usr/libexec/ld.so; then
9571
hardcode_shlibpath_var=no
9572
hardcode_direct_absolute=yes
9573
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9574
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9575
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9576
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577
export_dynamic_flag_spec='${wl}-E'
9580
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9581
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582
hardcode_libdir_flag_spec='-R$libdir'
9585
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9586
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596
hardcode_libdir_flag_spec='-L$libdir'
9597
hardcode_minus_L=yes
9598
allow_undefined_flag=unsupported
9599
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'
9600
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9604
if test "$GCC" = yes; then
9605
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9608
allow_undefined_flag=' -expect_unresolved \*'
9609
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9611
archive_cmds_need_lc='no'
9612
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613
hardcode_libdir_separator=:
9616
osf4* | osf5*) # as osf3* with the addition of -msym flag
9617
if test "$GCC" = yes; then
9618
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9619
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9620
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622
allow_undefined_flag=' -expect_unresolved \*'
9623
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9624
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~
9625
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9627
# Both c and cxx compiler support -rpath directly
9628
hardcode_libdir_flag_spec='-rpath $libdir'
9630
archive_cmds_need_lc='no'
9631
hardcode_libdir_separator=:
9635
no_undefined_flag=' -z defs'
9636
if test "$GCC" = yes; then
9638
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9640
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9642
case `$CC -V 2>&1` in
9645
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9651
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9652
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9653
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657
hardcode_libdir_flag_spec='-R$libdir'
9658
hardcode_shlibpath_var=no
9660
solaris2.[0-5] | solaris2.[0-5].*) ;;
9662
# The compiler driver will combine and reorder linker options,
9663
# but understands `-z linker_flag'. GCC discards it without `$wl',
9664
# but is careful enough not to reorder.
9665
# Supported since Solaris 2.6 (maybe 2.5.1?)
9666
if test "$GCC" = yes; then
9667
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9669
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9673
link_all_deplibs=yes
9677
if test "x$host_vendor" = xsequent; then
9678
# Use $CC to link under sequent, because it throws in some extra .o
9679
# files that make .init and .fini sections work.
9680
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9682
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9684
hardcode_libdir_flag_spec='-L$libdir'
9686
hardcode_minus_L=yes
9687
hardcode_shlibpath_var=no
9691
case $host_vendor in
9693
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694
hardcode_direct=yes # is this really true???
9697
## LD is ld it makes a PLAMLIB
9698
## CC just makes a GrossModule.
9699
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9700
reload_cmds='$CC -r -o $output$reload_objs'
9704
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9708
runpath_var='LD_RUN_PATH'
9709
hardcode_shlibpath_var=no
9713
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714
hardcode_shlibpath_var=no
9715
export_dynamic_flag_spec='-Bexport'
9719
if test -d /usr/nec; then
9720
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721
hardcode_shlibpath_var=no
9722
runpath_var=LD_RUN_PATH
9723
hardcode_runpath_var=yes
9728
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9729
no_undefined_flag='${wl}-z,text'
9730
archive_cmds_need_lc=no
9731
hardcode_shlibpath_var=no
9732
runpath_var='LD_RUN_PATH'
9734
if test "$GCC" = yes; then
9735
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743
sysv5* | sco3.2v5* | sco5v6*)
9744
# Note: We can NOT use -z defs as we might desire, because we do not
9745
# link with -lc, and that would cause any symbols used from libc to
9746
# always be unresolved, which means just about no library would
9747
# ever link correctly. If we're not using GNU ld we use -z text
9748
# though, which does catch some bad symbols but isn't as heavy-handed
9750
no_undefined_flag='${wl}-z,text'
9751
allow_undefined_flag='${wl}-z,nodefs'
9752
archive_cmds_need_lc=no
9753
hardcode_shlibpath_var=no
9754
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9755
hardcode_libdir_separator=':'
9756
link_all_deplibs=yes
9757
export_dynamic_flag_spec='${wl}-Bexport'
9758
runpath_var='LD_RUN_PATH'
9760
if test "$GCC" = yes; then
9761
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771
hardcode_libdir_flag_spec='-L$libdir'
9772
hardcode_shlibpath_var=no
9780
if test x$host_vendor = xsni; then
9782
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9783
export_dynamic_flag_spec='${wl}-Blargedynsym'
9789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9790
$as_echo "$ld_shlibs" >&6; }
9791
test "$ld_shlibs" = no && can_build_shared=no
9793
with_gnu_ld=$with_gnu_ld
9810
# Do we need to explicitly link libc?
9812
case "x$archive_cmds_need_lc" in
9814
# Assume -lc should be added
9815
archive_cmds_need_lc=yes
9817
if test "$enable_shared" = yes && test "$GCC" = yes; then
9818
case $archive_cmds in
9820
# FIXME: we may have to deal with multi-command sequences.
9823
# Test whether the compiler implicitly links with -lc since on some
9824
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9825
# to ld, don't add -lc before -lgcc.
9826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9827
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9828
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9829
$as_echo_n "(cached) " >&6
9832
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9834
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9835
(eval $ac_compile) 2>&5
9837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838
test $ac_status = 0; } 2>conftest.err; then
9841
libobjs=conftest.$ac_objext
9843
wl=$lt_prog_compiler_wl
9844
pic_flag=$lt_prog_compiler_pic
9850
lt_save_allow_undefined_flag=$allow_undefined_flag
9851
allow_undefined_flag=
9852
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9853
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9855
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9856
test $ac_status = 0; }
9858
lt_cv_archive_cmds_need_lc=no
9860
lt_cv_archive_cmds_need_lc=yes
9862
allow_undefined_flag=$lt_save_allow_undefined_flag
9864
cat conftest.err 1>&5
9869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9870
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9871
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10030
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10032
if test "$GCC" = yes; then
10034
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10035
*) lt_awk_arg="/^libraries:/" ;;
10038
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10039
*) lt_sed_strip_eq="s,=/,/,g" ;;
10041
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10042
case $lt_search_path_spec in
10044
# if the path contains ";" then we assume it to be the separator
10045
# otherwise default to the standard path separator (i.e. ":") - it is
10046
# assumed that no part of a normal pathname contains ";" but that should
10047
# okay in the real world where ";" in dirpaths is itself problematic.
10048
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10051
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10054
# Ok, now we have the path, separated by spaces, we can step through it
10055
# and add multilib dir if necessary.
10056
lt_tmp_lt_search_path_spec=
10057
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10058
for lt_sys_path in $lt_search_path_spec; do
10059
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10060
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10062
test -d "$lt_sys_path" && \
10063
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10066
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10067
BEGIN {RS=" "; FS="/|\n";} {
10070
for (lt_i = NF; lt_i > 0; lt_i--) {
10071
if ($lt_i != "" && $lt_i != ".") {
10072
if ($lt_i == "..") {
10075
if (lt_count == 0) {
10076
lt_foo="/" $lt_i lt_foo;
10083
if (lt_foo != "") { lt_freq[lt_foo]++; }
10084
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10086
# AWK program above erroneously prepends '/' to C:/dos/paths
10089
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10090
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10092
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10094
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10096
library_names_spec=
10097
libname_spec='lib$name'
10101
postuninstall_cmds=
10105
shlibpath_overrides_runpath=unknown
10107
dynamic_linker="$host_os ld.so"
10108
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10109
need_lib_prefix=unknown
10110
hardcode_into_libs=no
10112
# when you set need_version to no, make sure it does not cause -set_version
10113
# flags to be left without arguments
10114
need_version=unknown
10118
version_type=linux # correct to gnu/linux during the next big refactor
10119
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10120
shlibpath_var=LIBPATH
10122
# AIX 3 has no versioning support, so we append a major version to the name.
10123
soname_spec='${libname}${release}${shared_ext}$major'
10127
version_type=linux # correct to gnu/linux during the next big refactor
10130
hardcode_into_libs=yes
10131
if test "$host_cpu" = ia64; then
10132
# AIX 5 supports IA64
10133
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10134
shlibpath_var=LD_LIBRARY_PATH
10136
# With GCC up to 2.95.x, collect2 would create an import file
10137
# for dependence libraries. The import file would start with
10138
# the line `#! .'. This would cause the generated library to
10139
# depend on `.', always an invalid library. This was fixed in
10140
# development snapshots of GCC prior to 3.0.
10142
aix4 | aix4.[01] | aix4.[01].*)
10143
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10145
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10148
can_build_shared=no
10152
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10153
# soname into executable. Probably we can add versioning support to
10154
# collect2, so additional links can be useful in future.
10155
if test "$aix_use_runtimelinking" = yes; then
10156
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10157
# instead of lib<name>.a to let people know that these are not
10158
# typical AIX shared libraries.
10159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161
# We preserve .a as extension for shared libraries through AIX4.2
10162
# and later when we are not doing run time linking.
10163
library_names_spec='${libname}${release}.a $libname.a'
10164
soname_spec='${libname}${release}${shared_ext}$major'
10166
shlibpath_var=LIBPATH
10173
# Since July 2007 AmigaOS4 officially supports .so libraries.
10174
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178
library_names_spec='$libname.ixlibrary $libname.a'
10179
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10180
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10186
library_names_spec='${libname}${shared_ext}'
10187
dynamic_linker="$host_os ld.so"
10188
shlibpath_var=LIBRARY_PATH
10192
version_type=linux # correct to gnu/linux during the next big refactor
10194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195
soname_spec='${libname}${release}${shared_ext}$major'
10196
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10197
shlibpath_var=LD_LIBRARY_PATH
10198
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10199
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10200
# the default ld.so.conf also contains /usr/contrib/lib and
10201
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10202
# libtool to hard-code these into programs
10205
cygwin* | mingw* | pw32* | cegcc*)
10206
version_type=windows
10211
case $GCC,$cc_basename in
10214
library_names_spec='$libname.dll.a'
10215
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10216
postinstall_cmds='base_file=`basename \${file}`~
10217
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10218
dldir=$destdir/`dirname \$dlpath`~
10219
test -d \$dldir || mkdir -p \$dldir~
10220
$install_prog $dir/$dlname \$dldir/$dlname~
10221
chmod a+x \$dldir/$dlname~
10222
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10223
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10225
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10226
dlpath=$dir/\$dldll~
10228
shlibpath_overrides_runpath=yes
10232
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10233
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10238
# MinGW DLLs use traditional 'lib' prefix
10239
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242
# pw32 DLLs use 'pw' prefix rather than 'lib'
10243
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10246
dynamic_linker='Win32 ld.exe'
10251
libname_spec='$name'
10252
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253
library_names_spec='${libname}.dll.lib'
10257
sys_lib_search_path_spec=
10260
for lt_path in $LIB
10263
# Let DOS variable expansion print the short 8.3 style file name.
10264
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10265
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10268
# Convert to MSYS style.
10269
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10272
# Convert to unix form, then to dos form, then back to unix form
10273
# but this time dos style (no spaces!) so that the unix form looks
10274
# like /cygdrive/c/PROGRA~1:/cygdr...
10275
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10276
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10277
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10280
sys_lib_search_path_spec="$LIB"
10281
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10282
# It is most probably a Windows format PATH.
10283
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10285
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10287
# FIXME: find the short name or the path components, as spaces are
10288
# common. (e.g. "Program Files" -> "PROGRA~1")
10292
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10293
postinstall_cmds='base_file=`basename \${file}`~
10294
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10295
dldir=$destdir/`dirname \$dlpath`~
10296
test -d \$dldir || mkdir -p \$dldir~
10297
$install_prog $dir/$dlname \$dldir/$dlname'
10298
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10299
dlpath=$dir/\$dldll~
10301
shlibpath_overrides_runpath=yes
10302
dynamic_linker='Win32 link.exe'
10306
# Assume MSVC wrapper
10307
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10308
dynamic_linker='Win32 ld.exe'
10311
# FIXME: first we should search . and the directory the executable is in
10315
darwin* | rhapsody*)
10316
dynamic_linker="$host_os dyld"
10317
version_type=darwin
10320
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10321
soname_spec='${libname}${release}${major}$shared_ext'
10322
shlibpath_overrides_runpath=yes
10323
shlibpath_var=DYLD_LIBRARY_PATH
10324
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10326
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10327
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10331
version_type=linux # correct to gnu/linux during the next big refactor
10334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10335
soname_spec='${libname}${release}${shared_ext}$major'
10336
shlibpath_var=LD_LIBRARY_PATH
10339
freebsd* | dragonfly*)
10340
# DragonFly does not have aout. When/if they implement a new
10341
# versioning mechanism, adjust this.
10342
if test -x /usr/bin/objformat; then
10343
objformat=`/usr/bin/objformat`
10346
freebsd[23].*) objformat=aout ;;
10347
*) objformat=elf ;;
10350
version_type=freebsd-$objformat
10351
case $version_type in
10353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10358
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10362
shlibpath_var=LD_LIBRARY_PATH
10365
shlibpath_overrides_runpath=yes
10367
freebsd3.[01]* | freebsdelf3.[01]*)
10368
shlibpath_overrides_runpath=yes
10369
hardcode_into_libs=yes
10371
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10372
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10373
shlibpath_overrides_runpath=no
10374
hardcode_into_libs=yes
10376
*) # from 4.6 on, and DragonFly
10377
shlibpath_overrides_runpath=yes
10378
hardcode_into_libs=yes
10384
version_type=linux # correct to gnu/linux during the next big refactor
10387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10388
soname_spec='${libname}${release}${shared_ext}$major'
10389
shlibpath_var=LD_LIBRARY_PATH
10390
shlibpath_overrides_runpath=no
10391
hardcode_into_libs=yes
10395
version_type=linux # correct to gnu/linux during the next big refactor
10398
dynamic_linker="$host_os runtime_loader"
10399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10400
soname_spec='${libname}${release}${shared_ext}$major'
10401
shlibpath_var=LIBRARY_PATH
10402
shlibpath_overrides_runpath=yes
10403
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10404
hardcode_into_libs=yes
10407
hpux9* | hpux10* | hpux11*)
10408
# Give a soname corresponding to the major version so that dld.sl refuses to
10409
# link against other versions.
10416
hardcode_into_libs=yes
10417
dynamic_linker="$host_os dld.so"
10418
shlibpath_var=LD_LIBRARY_PATH
10419
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421
soname_spec='${libname}${release}${shared_ext}$major'
10422
if test "X$HPUX_IA64_MODE" = X32; then
10423
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10425
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10427
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10431
hardcode_into_libs=yes
10432
dynamic_linker="$host_os dld.sl"
10433
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10434
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436
soname_spec='${libname}${release}${shared_ext}$major'
10437
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10438
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10442
dynamic_linker="$host_os dld.sl"
10443
shlibpath_var=SHLIB_PATH
10444
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446
soname_spec='${libname}${release}${shared_ext}$major'
10449
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10450
postinstall_cmds='chmod 555 $lib'
10451
# or fails outright, so override atomically:
10452
install_override_mode=555
10456
version_type=linux # correct to gnu/linux during the next big refactor
10459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10460
soname_spec='${libname}${release}${shared_ext}$major'
10461
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10462
shlibpath_var=LD_LIBRARY_PATH
10463
shlibpath_overrides_runpath=no
10464
hardcode_into_libs=yes
10467
irix5* | irix6* | nonstopux*)
10469
nonstopux*) version_type=nonstopux ;;
10471
if test "$lt_cv_prog_gnu_ld" = yes; then
10472
version_type=linux # correct to gnu/linux during the next big refactor
10479
soname_spec='${libname}${release}${shared_ext}$major'
10480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10482
irix5* | nonstopux*)
10483
libsuff= shlibsuff=
10486
case $LD in # libtool.m4 will add one of these switches to LD
10487
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10488
libsuff= shlibsuff= libmagic=32-bit;;
10489
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10490
libsuff=32 shlibsuff=N32 libmagic=N32;;
10491
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10492
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10493
*) libsuff= shlibsuff= libmagic=never-match;;
10497
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10498
shlibpath_overrides_runpath=no
10499
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10500
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10501
hardcode_into_libs=yes
10504
# No shared lib support for Linux oldld, aout, or coff.
10505
linux*oldld* | linux*aout* | linux*coff*)
10509
# This must be glibc/ELF.
10510
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10511
version_type=linux # correct to gnu/linux during the next big refactor
10514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515
soname_spec='${libname}${release}${shared_ext}$major'
10516
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10517
shlibpath_var=LD_LIBRARY_PATH
10518
shlibpath_overrides_runpath=no
10520
# Some binutils ld are patched to set DT_RUNPATH
10521
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10522
$as_echo_n "(cached) " >&6
10524
lt_cv_shlibpath_overrides_runpath=no
10525
save_LDFLAGS=$LDFLAGS
10526
save_libdir=$libdir
10527
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10528
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530
/* end confdefs.h. */
10540
if ac_fn_c_try_link "$LINENO"; then :
10541
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10542
lt_cv_shlibpath_overrides_runpath=yes
10545
rm -f core conftest.err conftest.$ac_objext \
10546
conftest$ac_exeext conftest.$ac_ext
10547
LDFLAGS=$save_LDFLAGS
10548
libdir=$save_libdir
10552
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10554
# This implies no fast_install, which is unacceptable.
10555
# Some rework will be needed to allow for fast_install
10556
# before this can be enabled.
10557
hardcode_into_libs=yes
10559
# Append ld.so.conf contents to the search path
10560
if test -f /etc/ld.so.conf; then
10561
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10562
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10565
# We used to test for /lib/ld.so.1 and disable shared libraries on
10566
# powerpc, because MkLinux only supported shared libraries with the
10567
# GNU dynamic linker. Since this was broken with cross compilers,
10568
# most powerpc-linux boxes support dynamic linking these days and
10569
# people can always --disable-shared, the test was removed, and we
10570
# assume the GNU/Linux dynamic linker is in use.
10571
dynamic_linker='GNU/Linux ld.so'
10578
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10581
dynamic_linker='NetBSD (a.out) ld.so'
10583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10584
soname_spec='${libname}${release}${shared_ext}$major'
10585
dynamic_linker='NetBSD ld.elf_so'
10587
shlibpath_var=LD_LIBRARY_PATH
10588
shlibpath_overrides_runpath=yes
10589
hardcode_into_libs=yes
10593
version_type=linux # correct to gnu/linux during the next big refactor
10594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595
shlibpath_var=LD_LIBRARY_PATH
10596
shlibpath_overrides_runpath=yes
10603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604
soname_spec='${libname}${release}${shared_ext}$major'
10605
shlibpath_var=LD_LIBRARY_PATH
10606
shlibpath_overrides_runpath=no
10607
hardcode_into_libs=yes
10608
dynamic_linker='ldqnx.so'
10613
sys_lib_dlsearch_path_spec="/usr/lib"
10615
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10617
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10618
*) need_version=no ;;
10620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10621
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10622
shlibpath_var=LD_LIBRARY_PATH
10623
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10625
openbsd2.[89] | openbsd2.[89].*)
10626
shlibpath_overrides_runpath=no
10629
shlibpath_overrides_runpath=yes
10633
shlibpath_overrides_runpath=yes
10638
libname_spec='$name'
10641
library_names_spec='$libname${shared_ext} $libname.a'
10642
dynamic_linker='OS/2 ld.exe'
10643
shlibpath_var=LIBPATH
10646
osf3* | osf4* | osf5*)
10650
soname_spec='${libname}${release}${shared_ext}$major'
10651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652
shlibpath_var=LD_LIBRARY_PATH
10653
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10654
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10662
version_type=linux # correct to gnu/linux during the next big refactor
10665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666
soname_spec='${libname}${release}${shared_ext}$major'
10667
shlibpath_var=LD_LIBRARY_PATH
10668
shlibpath_overrides_runpath=yes
10669
hardcode_into_libs=yes
10670
# ldd complains unless libraries are executable
10671
postinstall_cmds='chmod +x $lib'
10676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10677
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10678
shlibpath_var=LD_LIBRARY_PATH
10679
shlibpath_overrides_runpath=yes
10680
if test "$with_gnu_ld" = yes; then
10687
version_type=linux # correct to gnu/linux during the next big refactor
10688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689
soname_spec='${libname}${release}${shared_ext}$major'
10690
shlibpath_var=LD_LIBRARY_PATH
10691
case $host_vendor in
10693
shlibpath_overrides_runpath=no
10695
runpath_var=LD_RUN_PATH
10703
shlibpath_overrides_runpath=no
10704
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10710
if test -d /usr/nec ;then
10711
version_type=linux # correct to gnu/linux during the next big refactor
10712
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10713
soname_spec='$libname${shared_ext}.$major'
10714
shlibpath_var=LD_LIBRARY_PATH
10718
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10719
version_type=freebsd-elf
10722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10723
soname_spec='${libname}${release}${shared_ext}$major'
10724
shlibpath_var=LD_LIBRARY_PATH
10725
shlibpath_overrides_runpath=yes
10726
hardcode_into_libs=yes
10727
if test "$with_gnu_ld" = yes; then
10728
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10730
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10733
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10737
sys_lib_dlsearch_path_spec='/usr/lib'
10741
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10742
version_type=linux # correct to gnu/linux during the next big refactor
10745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746
shlibpath_var=LD_LIBRARY_PATH
10747
shlibpath_overrides_runpath=no
10748
hardcode_into_libs=yes
10752
version_type=linux # correct to gnu/linux during the next big refactor
10753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754
soname_spec='${libname}${release}${shared_ext}$major'
10755
shlibpath_var=LD_LIBRARY_PATH
10762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10763
$as_echo "$dynamic_linker" >&6; }
10764
test "$dynamic_linker" = no && can_build_shared=no
10766
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10767
if test "$GCC" = yes; then
10768
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10771
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10772
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10774
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10775
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10870
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10872
if test -n "$hardcode_libdir_flag_spec" ||
10873
test -n "$runpath_var" ||
10874
test "X$hardcode_automatic" = "Xyes" ; then
10876
# We can hardcode non-existent directories.
10877
if test "$hardcode_direct" != no &&
10878
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10879
# have to relink, otherwise we might link with an installed library
10880
# when we should be linking with a yet-to-be-installed one
10881
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10882
test "$hardcode_minus_L" != no; then
10883
# Linking always hardcodes the temporary library directory.
10884
hardcode_action=relink
10886
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10887
hardcode_action=immediate
10890
# We cannot hardcode anything, or else we can only hardcode existing
10892
hardcode_action=unsupported
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10895
$as_echo "$hardcode_action" >&6; }
10897
if test "$hardcode_action" = relink ||
10898
test "$inherit_rpath" = yes; then
10899
# Fast installation is not supported
10900
enable_fast_install=no
10901
elif test "$shlibpath_overrides_runpath" = yes ||
10902
test "$enable_shared" = no; then
10903
# Fast installation is not necessary
10904
enable_fast_install=needless
10912
if test "x$enable_dlopen" != xyes; then
10913
enable_dlopen=unknown
10914
enable_dlopen_self=unknown
10915
enable_dlopen_self_static=unknown
10922
lt_cv_dlopen="load_add_on"
10924
lt_cv_dlopen_self=yes
10927
mingw* | pw32* | cegcc*)
10928
lt_cv_dlopen="LoadLibrary"
10933
lt_cv_dlopen="dlopen"
10938
# if libdl is installed we need to link against it
10939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10941
if ${ac_cv_lib_dl_dlopen+:} false; then :
10942
$as_echo_n "(cached) " >&6
10944
ac_check_lib_save_LIBS=$LIBS
10946
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947
/* end confdefs.h. */
10949
/* Override any GCC internal prototype to avoid an error.
10950
Use char because int might match the return type of a GCC
10951
builtin and then its argument prototype would still apply. */
10964
if ac_fn_c_try_link "$LINENO"; then :
10965
ac_cv_lib_dl_dlopen=yes
10967
ac_cv_lib_dl_dlopen=no
10969
rm -f core conftest.err conftest.$ac_objext \
10970
conftest$ac_exeext conftest.$ac_ext
10971
LIBS=$ac_check_lib_save_LIBS
10973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10976
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10979
lt_cv_dlopen="dyld"
10981
lt_cv_dlopen_self=yes
10988
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10989
if test "x$ac_cv_func_shl_load" = xyes; then :
10990
lt_cv_dlopen="shl_load"
10992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10993
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10994
if ${ac_cv_lib_dld_shl_load+:} false; then :
10995
$as_echo_n "(cached) " >&6
10997
ac_check_lib_save_LIBS=$LIBS
10999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000
/* end confdefs.h. */
11002
/* Override any GCC internal prototype to avoid an error.
11003
Use char because int might match the return type of a GCC
11004
builtin and then its argument prototype would still apply. */
11012
return shl_load ();
11017
if ac_fn_c_try_link "$LINENO"; then :
11018
ac_cv_lib_dld_shl_load=yes
11020
ac_cv_lib_dld_shl_load=no
11022
rm -f core conftest.err conftest.$ac_objext \
11023
conftest$ac_exeext conftest.$ac_ext
11024
LIBS=$ac_check_lib_save_LIBS
11026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11027
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11028
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11029
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11031
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11032
if test "x$ac_cv_func_dlopen" = xyes; then :
11033
lt_cv_dlopen="dlopen"
11035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11036
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11037
if ${ac_cv_lib_dl_dlopen+:} false; then :
11038
$as_echo_n "(cached) " >&6
11040
ac_check_lib_save_LIBS=$LIBS
11042
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043
/* end confdefs.h. */
11045
/* Override any GCC internal prototype to avoid an error.
11046
Use char because int might match the return type of a GCC
11047
builtin and then its argument prototype would still apply. */
11060
if ac_fn_c_try_link "$LINENO"; then :
11061
ac_cv_lib_dl_dlopen=yes
11063
ac_cv_lib_dl_dlopen=no
11065
rm -f core conftest.err conftest.$ac_objext \
11066
conftest$ac_exeext conftest.$ac_ext
11067
LIBS=$ac_check_lib_save_LIBS
11069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11070
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11071
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11072
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11075
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11076
if ${ac_cv_lib_svld_dlopen+:} false; then :
11077
$as_echo_n "(cached) " >&6
11079
ac_check_lib_save_LIBS=$LIBS
11080
LIBS="-lsvld $LIBS"
11081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082
/* end confdefs.h. */
11084
/* Override any GCC internal prototype to avoid an error.
11085
Use char because int might match the return type of a GCC
11086
builtin and then its argument prototype would still apply. */
11099
if ac_fn_c_try_link "$LINENO"; then :
11100
ac_cv_lib_svld_dlopen=yes
11102
ac_cv_lib_svld_dlopen=no
11104
rm -f core conftest.err conftest.$ac_objext \
11105
conftest$ac_exeext conftest.$ac_ext
11106
LIBS=$ac_check_lib_save_LIBS
11108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11109
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11110
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11111
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11114
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11115
if ${ac_cv_lib_dld_dld_link+:} false; then :
11116
$as_echo_n "(cached) " >&6
11118
ac_check_lib_save_LIBS=$LIBS
11120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121
/* end confdefs.h. */
11123
/* Override any GCC internal prototype to avoid an error.
11124
Use char because int might match the return type of a GCC
11125
builtin and then its argument prototype would still apply. */
11133
return dld_link ();
11138
if ac_fn_c_try_link "$LINENO"; then :
11139
ac_cv_lib_dld_dld_link=yes
11141
ac_cv_lib_dld_dld_link=no
11143
rm -f core conftest.err conftest.$ac_objext \
11144
conftest$ac_exeext conftest.$ac_ext
11145
LIBS=$ac_check_lib_save_LIBS
11147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11148
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11150
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11171
if test "x$lt_cv_dlopen" != xno; then
11177
case $lt_cv_dlopen in
11179
save_CPPFLAGS="$CPPFLAGS"
11180
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11182
save_LDFLAGS="$LDFLAGS"
11183
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11186
LIBS="$lt_cv_dlopen_libs $LIBS"
11188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11189
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190
if ${lt_cv_dlopen_self+:} false; then :
11191
$as_echo_n "(cached) " >&6
11193
if test "$cross_compiling" = yes; then :
11194
lt_cv_dlopen_self=cross
11196
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197
lt_status=$lt_dlunknown
11198
cat > conftest.$ac_ext <<_LT_EOF
11199
#line $LINENO "configure"
11200
#include "confdefs.h"
11209
# define LT_DLGLOBAL RTLD_GLOBAL
11212
# define LT_DLGLOBAL DL_GLOBAL
11214
# define LT_DLGLOBAL 0
11218
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219
find out it does not work in some platform. */
11220
#ifndef LT_DLLAZY_OR_NOW
11222
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11225
# define LT_DLLAZY_OR_NOW DL_LAZY
11228
# define LT_DLLAZY_OR_NOW RTLD_NOW
11231
# define LT_DLLAZY_OR_NOW DL_NOW
11233
# define LT_DLLAZY_OR_NOW 0
11240
/* When -fvisbility=hidden is used, assume the code has been annotated
11241
correspondingly for the symbols needed. */
11242
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11243
int fnord () __attribute__((visibility("default")));
11246
int fnord () { return 42; }
11249
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250
int status = $lt_dlunknown;
11254
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11257
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11258
else puts (dlerror ());
11260
/* dlclose (self); */
11268
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11269
(eval $ac_link) 2>&5
11271
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11272
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11273
(./conftest; exit; ) >&5 2>/dev/null
11275
case x$lt_status in
11276
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11277
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11278
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11281
# compilation failed
11282
lt_cv_dlopen_self=no
11289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11290
$as_echo "$lt_cv_dlopen_self" >&6; }
11292
if test "x$lt_cv_dlopen_self" = xyes; then
11293
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11295
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11296
if ${lt_cv_dlopen_self_static+:} false; then :
11297
$as_echo_n "(cached) " >&6
11299
if test "$cross_compiling" = yes; then :
11300
lt_cv_dlopen_self_static=cross
11302
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11303
lt_status=$lt_dlunknown
11304
cat > conftest.$ac_ext <<_LT_EOF
11305
#line $LINENO "configure"
11306
#include "confdefs.h"
11315
# define LT_DLGLOBAL RTLD_GLOBAL
11318
# define LT_DLGLOBAL DL_GLOBAL
11320
# define LT_DLGLOBAL 0
11324
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11325
find out it does not work in some platform. */
11326
#ifndef LT_DLLAZY_OR_NOW
11328
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11331
# define LT_DLLAZY_OR_NOW DL_LAZY
11334
# define LT_DLLAZY_OR_NOW RTLD_NOW
11337
# define LT_DLLAZY_OR_NOW DL_NOW
11339
# define LT_DLLAZY_OR_NOW 0
11346
/* When -fvisbility=hidden is used, assume the code has been annotated
11347
correspondingly for the symbols needed. */
11348
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11349
int fnord () __attribute__((visibility("default")));
11352
int fnord () { return 42; }
11355
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11356
int status = $lt_dlunknown;
11360
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11363
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11364
else puts (dlerror ());
11366
/* dlclose (self); */
11374
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11375
(eval $ac_link) 2>&5
11377
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11378
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11379
(./conftest; exit; ) >&5 2>/dev/null
11381
case x$lt_status in
11382
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11383
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11384
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11387
# compilation failed
11388
lt_cv_dlopen_self_static=no
11395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11396
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11399
CPPFLAGS="$save_CPPFLAGS"
11400
LDFLAGS="$save_LDFLAGS"
11405
case $lt_cv_dlopen_self in
11406
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11407
*) enable_dlopen_self=unknown ;;
11410
case $lt_cv_dlopen_self_static in
11411
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11412
*) enable_dlopen_self_static=unknown ;;
11434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11435
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11436
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11437
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11438
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440
$as_echo "yes" >&6; }
11442
# FIXME - insert some real tests, host_os isn't really good enough
11445
if test -n "$STRIP" ; then
11446
striplib="$STRIP -x"
11447
old_striplib="$STRIP -S"
11448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449
$as_echo "yes" >&6; }
11451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452
$as_echo "no" >&6; }
11456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457
$as_echo "no" >&6; }
11473
# Report which library types will actually be built
11474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11475
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11477
$as_echo "$can_build_shared" >&6; }
11479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11480
$as_echo_n "checking whether to build shared libraries... " >&6; }
11481
test "$can_build_shared" = "no" && enable_shared=no
11483
# On AIX, shared libraries and static libraries use the same namespace, and
11484
# are all built from PIC.
11487
test "$enable_shared" = yes && enable_static=no
11488
if test -n "$RANLIB"; then
11489
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11490
postinstall_cmds='$RANLIB $lib'
11495
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11496
test "$enable_shared" = yes && enable_static=no
11500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11501
$as_echo "$enable_shared" >&6; }
11503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11504
$as_echo_n "checking whether to build static libraries... " >&6; }
11505
# Make sure either enable_shared or enable_static is yes.
11506
test "$enable_shared" = yes || enable_static=yes
11507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11508
$as_echo "$enable_static" >&6; }
11515
ac_cpp='$CPP $CPPFLAGS'
11516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536
ac_config_commands="$ac_config_commands libtool"
11541
# Only expand once:
11545
# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11558
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11559
if ${ac_cv_prog_cc_c99+:} false; then :
11560
$as_echo_n "(cached) " >&6
11562
ac_cv_prog_cc_c99=no
11564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565
/* end confdefs.h. */
11566
#include <stdarg.h>
11567
#include <stdbool.h>
11568
#include <stdlib.h>
11572
// Check varargs macros. These examples are taken from C99 6.10.3.5.
11573
#define debug(...) fprintf (stderr, __VA_ARGS__)
11574
#define showlist(...) puts (#__VA_ARGS__)
11575
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11577
test_varargs_macros (void)
11582
debug ("X = %d\n", x);
11583
showlist (The first, second, and third items.);
11584
report (x>y, "x is %d but y is %d", x, y);
11587
// Check long long types.
11588
#define BIG64 18446744073709551615ull
11589
#define BIG32 4294967295ul
11590
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11592
your preprocessor is broken;
11596
your preprocessor is broken;
11598
static long long int bignum = -9223372036854775807LL;
11599
static unsigned long long int ubignum = BIG64;
11601
struct incomplete_array
11607
struct named_init {
11609
const wchar_t *name;
11613
typedef const char *ccp;
11616
test_restrict (ccp restrict text)
11618
// See if C++-style comments work.
11619
// Iterate through items via the restricted pointer.
11620
// Also check for declarations in for loops.
11621
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11626
// Check varargs and va_copy.
11628
test_varargs (const char *format, ...)
11631
va_start (args, format);
11633
va_copy (args_copy, args);
11643
case 's': // string
11644
str = va_arg (args_copy, const char *);
11647
number = va_arg (args_copy, int);
11650
fnumber = va_arg (args_copy, double);
11656
va_end (args_copy);
11665
_Bool success = false;
11668
if (test_restrict ("String literal") == 0)
11670
char *restrict newvar = "Another string";
11673
test_varargs ("s, d' f .", "string", 65, 34.234);
11674
test_varargs_macros ();
11676
// Check flexible array members.
11677
struct incomplete_array *ia =
11678
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11680
for (int i = 0; i < ia->datasize; ++i)
11681
ia->data[i] = i * 1.234;
11683
// Check named initializers.
11684
struct named_init ni = {
11686
.name = L"Test wide string",
11687
.average = 543.34343,
11692
int dynamic_array[ni.number];
11693
dynamic_array[ni.number - 1] = 543;
11695
// work around unused variable warnings
11696
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11697
|| dynamic_array[ni.number - 1] != 543);
11703
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11705
CC="$ac_save_CC $ac_arg"
11706
if ac_fn_c_try_compile "$LINENO"; then :
11707
ac_cv_prog_cc_c99=$ac_arg
11709
rm -f core conftest.err conftest.$ac_objext
11710
test "x$ac_cv_prog_cc_c99" != "xno" && break
11712
rm -f conftest.$ac_ext
11717
case "x$ac_cv_prog_cc_c99" in
11719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11720
$as_echo "none needed" >&6; } ;;
11722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11723
$as_echo "unsupported" >&6; } ;;
11725
CC="$CC $ac_cv_prog_cc_c99"
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11727
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11729
if test "x$ac_cv_prog_cc_c99" != xno; then :
11736
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11737
if test "x$ac_cv_have_decl___clang__" = xyes; then :
11743
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11744
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11750
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11751
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11765
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11766
if test -n "$ac_tool_prefix"; then
11767
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11768
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770
$as_echo_n "checking for $ac_word... " >&6; }
11771
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11772
$as_echo_n "(cached) " >&6
11774
case $PKG_CONFIG in
11776
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780
for as_dir in $PATH
11783
test -z "$as_dir" && as_dir=.
11784
for ac_exec_ext in '' $ac_executable_extensions; do
11785
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11786
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11787
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11798
if test -n "$PKG_CONFIG"; then
11799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11800
$as_echo "$PKG_CONFIG" >&6; }
11802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803
$as_echo "no" >&6; }
11808
if test -z "$ac_cv_path_PKG_CONFIG"; then
11809
ac_pt_PKG_CONFIG=$PKG_CONFIG
11810
# Extract the first word of "pkg-config", so it can be a program name with args.
11811
set dummy pkg-config; ac_word=$2
11812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813
$as_echo_n "checking for $ac_word... " >&6; }
11814
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11815
$as_echo_n "(cached) " >&6
11817
case $ac_pt_PKG_CONFIG in
11819
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823
for as_dir in $PATH
11826
test -z "$as_dir" && as_dir=.
11827
for ac_exec_ext in '' $ac_executable_extensions; do
11828
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11830
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11841
if test -n "$ac_pt_PKG_CONFIG"; then
11842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11843
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846
$as_echo "no" >&6; }
11849
if test "x$ac_pt_PKG_CONFIG" = x; then
11852
case $cross_compiling:$ac_tool_warned in
11854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856
ac_tool_warned=yes ;;
11858
PKG_CONFIG=$ac_pt_PKG_CONFIG
11861
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11865
if test -n "$PKG_CONFIG"; then
11866
_pkg_min_version=0.9.0
11867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11868
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11869
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871
$as_echo "yes" >&6; }
11873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874
$as_echo "no" >&6; }
11883
# Check whether --enable-selective-werror was given.
11884
if test "${enable_selective_werror+set}" = set; then :
11885
enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11887
SELECTIVE_WERROR=yes
11891
# -v is too short to test reliably with XORG_TESTSET_CFLAG
11892
if test "x$SUNCC" = "xyes"; then
11898
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11904
xorg_testset_save_CFLAGS="$CFLAGS"
11906
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11907
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11909
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911
/* end confdefs.h. */
11914
if ac_fn_c_try_compile "$LINENO"; then :
11915
xorg_testset_unknown_warning_option=yes
11917
xorg_testset_unknown_warning_option=no
11919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
11921
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
11922
CFLAGS="$xorg_testset_save_CFLAGS"
11925
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11926
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11927
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11929
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11931
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933
/* end confdefs.h. */
11936
if ac_fn_c_try_compile "$LINENO"; then :
11937
xorg_testset_unused_command_line_argument=yes
11939
xorg_testset_unused_command_line_argument=no
11941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
11943
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
11944
CFLAGS="$xorg_testset_save_CFLAGS"
11949
if test $found = "no" ; then
11950
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11951
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11954
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11955
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11958
CFLAGS="$CFLAGS -Wall"
11960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11961
$as_echo_n "checking if $CC supports -Wall... " >&6; }
11962
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963
/* end confdefs.h. */
11973
if ac_fn_c_try_link "$LINENO"; then :
11978
rm -f core conftest.err conftest.$ac_objext \
11979
conftest$ac_exeext conftest.$ac_ext
11980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11981
$as_echo "$supported" >&6; }
11982
CFLAGS="$xorg_testset_save_CFLAGS"
11984
if test "$supported" = "yes" ; then
11985
BASE_CFLAGS="$BASE_CFLAGS -Wall"
11996
xorg_testset_save_CFLAGS="$CFLAGS"
11998
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11999
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12001
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003
/* end confdefs.h. */
12006
if ac_fn_c_try_compile "$LINENO"; then :
12007
xorg_testset_unknown_warning_option=yes
12009
xorg_testset_unknown_warning_option=no
12011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12013
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12014
CFLAGS="$xorg_testset_save_CFLAGS"
12017
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12018
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12019
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12021
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12023
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025
/* end confdefs.h. */
12028
if ac_fn_c_try_compile "$LINENO"; then :
12029
xorg_testset_unused_command_line_argument=yes
12031
xorg_testset_unused_command_line_argument=no
12033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12035
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12036
CFLAGS="$xorg_testset_save_CFLAGS"
12041
if test $found = "no" ; then
12042
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12043
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12046
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12047
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12050
CFLAGS="$CFLAGS -Wpointer-arith"
12052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12053
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055
/* end confdefs.h. */
12065
if ac_fn_c_try_link "$LINENO"; then :
12070
rm -f core conftest.err conftest.$ac_objext \
12071
conftest$ac_exeext conftest.$ac_ext
12072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12073
$as_echo "$supported" >&6; }
12074
CFLAGS="$xorg_testset_save_CFLAGS"
12076
if test "$supported" = "yes" ; then
12077
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12088
xorg_testset_save_CFLAGS="$CFLAGS"
12090
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12091
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12093
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12094
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095
/* end confdefs.h. */
12098
if ac_fn_c_try_compile "$LINENO"; then :
12099
xorg_testset_unknown_warning_option=yes
12101
xorg_testset_unknown_warning_option=no
12103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12105
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12106
CFLAGS="$xorg_testset_save_CFLAGS"
12109
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12110
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12111
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12113
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12115
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117
/* end confdefs.h. */
12120
if ac_fn_c_try_compile "$LINENO"; then :
12121
xorg_testset_unused_command_line_argument=yes
12123
xorg_testset_unused_command_line_argument=no
12125
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12127
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12128
CFLAGS="$xorg_testset_save_CFLAGS"
12133
if test $found = "no" ; then
12134
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12135
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12138
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12139
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12142
CFLAGS="$CFLAGS -Wstrict-prototypes"
12144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12145
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12146
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147
/* end confdefs.h. */
12157
if ac_fn_c_try_link "$LINENO"; then :
12162
rm -f core conftest.err conftest.$ac_objext \
12163
conftest$ac_exeext conftest.$ac_ext
12164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12165
$as_echo "$supported" >&6; }
12166
CFLAGS="$xorg_testset_save_CFLAGS"
12168
if test "$supported" = "yes" ; then
12169
BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12180
xorg_testset_save_CFLAGS="$CFLAGS"
12182
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12183
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12185
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187
/* end confdefs.h. */
12190
if ac_fn_c_try_compile "$LINENO"; then :
12191
xorg_testset_unknown_warning_option=yes
12193
xorg_testset_unknown_warning_option=no
12195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12197
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12198
CFLAGS="$xorg_testset_save_CFLAGS"
12201
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12202
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12203
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12205
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12207
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209
/* end confdefs.h. */
12212
if ac_fn_c_try_compile "$LINENO"; then :
12213
xorg_testset_unused_command_line_argument=yes
12215
xorg_testset_unused_command_line_argument=no
12217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12219
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12220
CFLAGS="$xorg_testset_save_CFLAGS"
12225
if test $found = "no" ; then
12226
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12227
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12231
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12234
CFLAGS="$CFLAGS -Wmissing-prototypes"
12236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12237
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239
/* end confdefs.h. */
12249
if ac_fn_c_try_link "$LINENO"; then :
12254
rm -f core conftest.err conftest.$ac_objext \
12255
conftest$ac_exeext conftest.$ac_ext
12256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12257
$as_echo "$supported" >&6; }
12258
CFLAGS="$xorg_testset_save_CFLAGS"
12260
if test "$supported" = "yes" ; then
12261
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12272
xorg_testset_save_CFLAGS="$CFLAGS"
12274
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12275
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12277
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279
/* end confdefs.h. */
12282
if ac_fn_c_try_compile "$LINENO"; then :
12283
xorg_testset_unknown_warning_option=yes
12285
xorg_testset_unknown_warning_option=no
12287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12289
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12290
CFLAGS="$xorg_testset_save_CFLAGS"
12293
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12294
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12295
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12297
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12299
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301
/* end confdefs.h. */
12304
if ac_fn_c_try_compile "$LINENO"; then :
12305
xorg_testset_unused_command_line_argument=yes
12307
xorg_testset_unused_command_line_argument=no
12309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12311
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12312
CFLAGS="$xorg_testset_save_CFLAGS"
12317
if test $found = "no" ; then
12318
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12319
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12322
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12323
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12326
CFLAGS="$CFLAGS -Wmissing-declarations"
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12329
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331
/* end confdefs.h. */
12341
if ac_fn_c_try_link "$LINENO"; then :
12346
rm -f core conftest.err conftest.$ac_objext \
12347
conftest$ac_exeext conftest.$ac_ext
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12349
$as_echo "$supported" >&6; }
12350
CFLAGS="$xorg_testset_save_CFLAGS"
12352
if test "$supported" = "yes" ; then
12353
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12364
xorg_testset_save_CFLAGS="$CFLAGS"
12366
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12367
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12369
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371
/* end confdefs.h. */
12374
if ac_fn_c_try_compile "$LINENO"; then :
12375
xorg_testset_unknown_warning_option=yes
12377
xorg_testset_unknown_warning_option=no
12379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12381
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12382
CFLAGS="$xorg_testset_save_CFLAGS"
12385
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12386
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12387
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12389
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12391
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393
/* end confdefs.h. */
12396
if ac_fn_c_try_compile "$LINENO"; then :
12397
xorg_testset_unused_command_line_argument=yes
12399
xorg_testset_unused_command_line_argument=no
12401
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12403
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12404
CFLAGS="$xorg_testset_save_CFLAGS"
12409
if test $found = "no" ; then
12410
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12411
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12414
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12415
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12418
CFLAGS="$CFLAGS -Wnested-externs"
12420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12421
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12422
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423
/* end confdefs.h. */
12433
if ac_fn_c_try_link "$LINENO"; then :
12438
rm -f core conftest.err conftest.$ac_objext \
12439
conftest$ac_exeext conftest.$ac_ext
12440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12441
$as_echo "$supported" >&6; }
12442
CFLAGS="$xorg_testset_save_CFLAGS"
12444
if test "$supported" = "yes" ; then
12445
BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12456
xorg_testset_save_CFLAGS="$CFLAGS"
12458
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12459
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12461
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12462
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463
/* end confdefs.h. */
12466
if ac_fn_c_try_compile "$LINENO"; then :
12467
xorg_testset_unknown_warning_option=yes
12469
xorg_testset_unknown_warning_option=no
12471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12473
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12474
CFLAGS="$xorg_testset_save_CFLAGS"
12477
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12478
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12479
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12481
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12483
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12484
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485
/* end confdefs.h. */
12488
if ac_fn_c_try_compile "$LINENO"; then :
12489
xorg_testset_unused_command_line_argument=yes
12491
xorg_testset_unused_command_line_argument=no
12493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12495
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12496
CFLAGS="$xorg_testset_save_CFLAGS"
12501
if test $found = "no" ; then
12502
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12503
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12506
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12507
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12510
CFLAGS="$CFLAGS -Wbad-function-cast"
12512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12513
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12514
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515
/* end confdefs.h. */
12525
if ac_fn_c_try_link "$LINENO"; then :
12530
rm -f core conftest.err conftest.$ac_objext \
12531
conftest$ac_exeext conftest.$ac_ext
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12533
$as_echo "$supported" >&6; }
12534
CFLAGS="$xorg_testset_save_CFLAGS"
12536
if test "$supported" = "yes" ; then
12537
BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12548
xorg_testset_save_CFLAGS="$CFLAGS"
12550
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12551
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12553
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555
/* end confdefs.h. */
12558
if ac_fn_c_try_compile "$LINENO"; then :
12559
xorg_testset_unknown_warning_option=yes
12561
xorg_testset_unknown_warning_option=no
12563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12565
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12566
CFLAGS="$xorg_testset_save_CFLAGS"
12569
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12570
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12571
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12573
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12575
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12576
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577
/* end confdefs.h. */
12580
if ac_fn_c_try_compile "$LINENO"; then :
12581
xorg_testset_unused_command_line_argument=yes
12583
xorg_testset_unused_command_line_argument=no
12585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12587
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12588
CFLAGS="$xorg_testset_save_CFLAGS"
12593
if test $found = "no" ; then
12594
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12595
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12598
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12599
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12602
CFLAGS="$CFLAGS -Wformat=2"
12604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12605
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12606
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607
/* end confdefs.h. */
12617
if ac_fn_c_try_link "$LINENO"; then :
12622
rm -f core conftest.err conftest.$ac_objext \
12623
conftest$ac_exeext conftest.$ac_ext
12624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12625
$as_echo "$supported" >&6; }
12626
CFLAGS="$xorg_testset_save_CFLAGS"
12628
if test "$supported" = "yes" ; then
12629
BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12634
if test $found = "no" ; then
12635
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12636
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12639
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12640
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12643
CFLAGS="$CFLAGS -Wformat"
12645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12646
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12647
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648
/* end confdefs.h. */
12658
if ac_fn_c_try_link "$LINENO"; then :
12663
rm -f core conftest.err conftest.$ac_objext \
12664
conftest$ac_exeext conftest.$ac_ext
12665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12666
$as_echo "$supported" >&6; }
12667
CFLAGS="$xorg_testset_save_CFLAGS"
12669
if test "$supported" = "yes" ; then
12670
BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12681
xorg_testset_save_CFLAGS="$CFLAGS"
12683
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12684
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12686
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12687
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688
/* end confdefs.h. */
12691
if ac_fn_c_try_compile "$LINENO"; then :
12692
xorg_testset_unknown_warning_option=yes
12694
xorg_testset_unknown_warning_option=no
12696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12698
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12699
CFLAGS="$xorg_testset_save_CFLAGS"
12702
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12703
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12704
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12708
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710
/* end confdefs.h. */
12713
if ac_fn_c_try_compile "$LINENO"; then :
12714
xorg_testset_unused_command_line_argument=yes
12716
xorg_testset_unused_command_line_argument=no
12718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12720
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12721
CFLAGS="$xorg_testset_save_CFLAGS"
12726
if test $found = "no" ; then
12727
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12728
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12731
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12732
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12735
CFLAGS="$CFLAGS -Wold-style-definition"
12737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12738
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740
/* end confdefs.h. */
12750
if ac_fn_c_try_link "$LINENO"; then :
12755
rm -f core conftest.err conftest.$ac_objext \
12756
conftest$ac_exeext conftest.$ac_ext
12757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12758
$as_echo "$supported" >&6; }
12759
CFLAGS="$xorg_testset_save_CFLAGS"
12761
if test "$supported" = "yes" ; then
12762
BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12773
xorg_testset_save_CFLAGS="$CFLAGS"
12775
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12776
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12778
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780
/* end confdefs.h. */
12783
if ac_fn_c_try_compile "$LINENO"; then :
12784
xorg_testset_unknown_warning_option=yes
12786
xorg_testset_unknown_warning_option=no
12788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12790
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12791
CFLAGS="$xorg_testset_save_CFLAGS"
12794
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12795
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12796
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12798
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12800
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802
/* end confdefs.h. */
12805
if ac_fn_c_try_compile "$LINENO"; then :
12806
xorg_testset_unused_command_line_argument=yes
12808
xorg_testset_unused_command_line_argument=no
12810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12812
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12813
CFLAGS="$xorg_testset_save_CFLAGS"
12818
if test $found = "no" ; then
12819
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12820
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12823
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12824
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12827
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12830
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832
/* end confdefs.h. */
12842
if ac_fn_c_try_link "$LINENO"; then :
12847
rm -f core conftest.err conftest.$ac_objext \
12848
conftest$ac_exeext conftest.$ac_ext
12849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12850
$as_echo "$supported" >&6; }
12851
CFLAGS="$xorg_testset_save_CFLAGS"
12853
if test "$supported" = "yes" ; then
12854
BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12861
# This chunk adds additional warnings that could catch undesired effects.
12867
xorg_testset_save_CFLAGS="$CFLAGS"
12869
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12870
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12872
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874
/* end confdefs.h. */
12877
if ac_fn_c_try_compile "$LINENO"; then :
12878
xorg_testset_unknown_warning_option=yes
12880
xorg_testset_unknown_warning_option=no
12882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12884
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12885
CFLAGS="$xorg_testset_save_CFLAGS"
12888
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12889
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12890
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12892
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12894
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896
/* end confdefs.h. */
12899
if ac_fn_c_try_compile "$LINENO"; then :
12900
xorg_testset_unused_command_line_argument=yes
12902
xorg_testset_unused_command_line_argument=no
12904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12906
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12907
CFLAGS="$xorg_testset_save_CFLAGS"
12912
if test $found = "no" ; then
12913
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12914
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12917
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12918
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12921
CFLAGS="$CFLAGS -Wunused"
12923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12924
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12925
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926
/* end confdefs.h. */
12936
if ac_fn_c_try_link "$LINENO"; then :
12941
rm -f core conftest.err conftest.$ac_objext \
12942
conftest$ac_exeext conftest.$ac_ext
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12944
$as_echo "$supported" >&6; }
12945
CFLAGS="$xorg_testset_save_CFLAGS"
12947
if test "$supported" = "yes" ; then
12948
BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12959
xorg_testset_save_CFLAGS="$CFLAGS"
12961
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12962
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12964
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12965
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966
/* end confdefs.h. */
12969
if ac_fn_c_try_compile "$LINENO"; then :
12970
xorg_testset_unknown_warning_option=yes
12972
xorg_testset_unknown_warning_option=no
12974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
12976
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
12977
CFLAGS="$xorg_testset_save_CFLAGS"
12980
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12981
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12982
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12984
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12986
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12987
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988
/* end confdefs.h. */
12991
if ac_fn_c_try_compile "$LINENO"; then :
12992
xorg_testset_unused_command_line_argument=yes
12994
xorg_testset_unused_command_line_argument=no
12996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
12998
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
12999
CFLAGS="$xorg_testset_save_CFLAGS"
13004
if test $found = "no" ; then
13005
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13006
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13010
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13013
CFLAGS="$CFLAGS -Wuninitialized"
13015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13016
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018
/* end confdefs.h. */
13028
if ac_fn_c_try_link "$LINENO"; then :
13033
rm -f core conftest.err conftest.$ac_objext \
13034
conftest$ac_exeext conftest.$ac_ext
13035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13036
$as_echo "$supported" >&6; }
13037
CFLAGS="$xorg_testset_save_CFLAGS"
13039
if test "$supported" = "yes" ; then
13040
BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13051
xorg_testset_save_CFLAGS="$CFLAGS"
13053
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13054
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13056
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058
/* end confdefs.h. */
13061
if ac_fn_c_try_compile "$LINENO"; then :
13062
xorg_testset_unknown_warning_option=yes
13064
xorg_testset_unknown_warning_option=no
13066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13068
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13069
CFLAGS="$xorg_testset_save_CFLAGS"
13072
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13073
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13074
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13076
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13078
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13079
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080
/* end confdefs.h. */
13083
if ac_fn_c_try_compile "$LINENO"; then :
13084
xorg_testset_unused_command_line_argument=yes
13086
xorg_testset_unused_command_line_argument=no
13088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13090
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13091
CFLAGS="$xorg_testset_save_CFLAGS"
13096
if test $found = "no" ; then
13097
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13098
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13101
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13102
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13105
CFLAGS="$CFLAGS -Wshadow"
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13108
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110
/* end confdefs.h. */
13120
if ac_fn_c_try_link "$LINENO"; then :
13125
rm -f core conftest.err conftest.$ac_objext \
13126
conftest$ac_exeext conftest.$ac_ext
13127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13128
$as_echo "$supported" >&6; }
13129
CFLAGS="$xorg_testset_save_CFLAGS"
13131
if test "$supported" = "yes" ; then
13132
BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13143
xorg_testset_save_CFLAGS="$CFLAGS"
13145
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13146
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13148
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150
/* end confdefs.h. */
13153
if ac_fn_c_try_compile "$LINENO"; then :
13154
xorg_testset_unknown_warning_option=yes
13156
xorg_testset_unknown_warning_option=no
13158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13160
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13161
CFLAGS="$xorg_testset_save_CFLAGS"
13164
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13165
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13166
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13168
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13170
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172
/* end confdefs.h. */
13175
if ac_fn_c_try_compile "$LINENO"; then :
13176
xorg_testset_unused_command_line_argument=yes
13178
xorg_testset_unused_command_line_argument=no
13180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13182
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13183
CFLAGS="$xorg_testset_save_CFLAGS"
13188
if test $found = "no" ; then
13189
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13190
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13193
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13194
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13197
CFLAGS="$CFLAGS -Wcast-qual"
13199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13200
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13201
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202
/* end confdefs.h. */
13212
if ac_fn_c_try_link "$LINENO"; then :
13217
rm -f core conftest.err conftest.$ac_objext \
13218
conftest$ac_exeext conftest.$ac_ext
13219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13220
$as_echo "$supported" >&6; }
13221
CFLAGS="$xorg_testset_save_CFLAGS"
13223
if test "$supported" = "yes" ; then
13224
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13235
xorg_testset_save_CFLAGS="$CFLAGS"
13237
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13238
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13240
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13241
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242
/* end confdefs.h. */
13245
if ac_fn_c_try_compile "$LINENO"; then :
13246
xorg_testset_unknown_warning_option=yes
13248
xorg_testset_unknown_warning_option=no
13250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13252
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13253
CFLAGS="$xorg_testset_save_CFLAGS"
13256
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13257
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13258
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13262
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13263
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264
/* end confdefs.h. */
13267
if ac_fn_c_try_compile "$LINENO"; then :
13268
xorg_testset_unused_command_line_argument=yes
13270
xorg_testset_unused_command_line_argument=no
13272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13274
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13275
CFLAGS="$xorg_testset_save_CFLAGS"
13280
if test $found = "no" ; then
13281
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13282
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13286
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13289
CFLAGS="$CFLAGS -Wmissing-noreturn"
13291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13292
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294
/* end confdefs.h. */
13304
if ac_fn_c_try_link "$LINENO"; then :
13309
rm -f core conftest.err conftest.$ac_objext \
13310
conftest$ac_exeext conftest.$ac_ext
13311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13312
$as_echo "$supported" >&6; }
13313
CFLAGS="$xorg_testset_save_CFLAGS"
13315
if test "$supported" = "yes" ; then
13316
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13327
xorg_testset_save_CFLAGS="$CFLAGS"
13329
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13330
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13332
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334
/* end confdefs.h. */
13337
if ac_fn_c_try_compile "$LINENO"; then :
13338
xorg_testset_unknown_warning_option=yes
13340
xorg_testset_unknown_warning_option=no
13342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13344
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13345
CFLAGS="$xorg_testset_save_CFLAGS"
13348
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13349
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13350
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13354
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13355
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356
/* end confdefs.h. */
13359
if ac_fn_c_try_compile "$LINENO"; then :
13360
xorg_testset_unused_command_line_argument=yes
13362
xorg_testset_unused_command_line_argument=no
13364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13366
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13367
CFLAGS="$xorg_testset_save_CFLAGS"
13372
if test $found = "no" ; then
13373
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13374
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13378
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381
CFLAGS="$CFLAGS -Wmissing-format-attribute"
13383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13384
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386
/* end confdefs.h. */
13396
if ac_fn_c_try_link "$LINENO"; then :
13401
rm -f core conftest.err conftest.$ac_objext \
13402
conftest$ac_exeext conftest.$ac_ext
13403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13404
$as_echo "$supported" >&6; }
13405
CFLAGS="$xorg_testset_save_CFLAGS"
13407
if test "$supported" = "yes" ; then
13408
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13419
xorg_testset_save_CFLAGS="$CFLAGS"
13421
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13422
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13424
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426
/* end confdefs.h. */
13429
if ac_fn_c_try_compile "$LINENO"; then :
13430
xorg_testset_unknown_warning_option=yes
13432
xorg_testset_unknown_warning_option=no
13434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13436
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13437
CFLAGS="$xorg_testset_save_CFLAGS"
13440
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13441
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13442
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13446
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448
/* end confdefs.h. */
13451
if ac_fn_c_try_compile "$LINENO"; then :
13452
xorg_testset_unused_command_line_argument=yes
13454
xorg_testset_unused_command_line_argument=no
13456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13458
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13459
CFLAGS="$xorg_testset_save_CFLAGS"
13464
if test $found = "no" ; then
13465
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13466
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13469
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13470
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13473
CFLAGS="$CFLAGS -Wredundant-decls"
13475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13476
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478
/* end confdefs.h. */
13488
if ac_fn_c_try_link "$LINENO"; then :
13493
rm -f core conftest.err conftest.$ac_objext \
13494
conftest$ac_exeext conftest.$ac_ext
13495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496
$as_echo "$supported" >&6; }
13497
CFLAGS="$xorg_testset_save_CFLAGS"
13499
if test "$supported" = "yes" ; then
13500
BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13507
# These are currently disabled because they are noisy. They will be enabled
13508
# in the future once the codebase is sufficiently modernized to silence
13509
# them. For now, I don't want them to drown out the other warnings.
13510
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
13511
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
13512
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
13514
# Turn some warnings into errors, so we don't accidently get successful builds
13515
# when there are problems that should be fixed.
13517
if test "x$SELECTIVE_WERROR" = "xyes" ; then
13523
xorg_testset_save_CFLAGS="$CFLAGS"
13525
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13526
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13528
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530
/* end confdefs.h. */
13533
if ac_fn_c_try_compile "$LINENO"; then :
13534
xorg_testset_unknown_warning_option=yes
13536
xorg_testset_unknown_warning_option=no
13538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13540
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13541
CFLAGS="$xorg_testset_save_CFLAGS"
13544
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13545
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13546
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13548
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552
/* end confdefs.h. */
13555
if ac_fn_c_try_compile "$LINENO"; then :
13556
xorg_testset_unused_command_line_argument=yes
13558
xorg_testset_unused_command_line_argument=no
13560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13562
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13563
CFLAGS="$xorg_testset_save_CFLAGS"
13568
if test $found = "no" ; then
13569
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13570
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13573
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13574
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13577
CFLAGS="$CFLAGS -Werror=implicit"
13579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13580
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582
/* end confdefs.h. */
13592
if ac_fn_c_try_link "$LINENO"; then :
13597
rm -f core conftest.err conftest.$ac_objext \
13598
conftest$ac_exeext conftest.$ac_ext
13599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13600
$as_echo "$supported" >&6; }
13601
CFLAGS="$xorg_testset_save_CFLAGS"
13603
if test "$supported" = "yes" ; then
13604
BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13609
if test $found = "no" ; then
13610
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13611
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13615
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13618
CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13621
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623
/* end confdefs.h. */
13633
if ac_fn_c_try_link "$LINENO"; then :
13638
rm -f core conftest.err conftest.$ac_objext \
13639
conftest$ac_exeext conftest.$ac_ext
13640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641
$as_echo "$supported" >&6; }
13642
CFLAGS="$xorg_testset_save_CFLAGS"
13644
if test "$supported" = "yes" ; then
13645
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13656
xorg_testset_save_CFLAGS="$CFLAGS"
13658
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13659
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13661
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663
/* end confdefs.h. */
13666
if ac_fn_c_try_compile "$LINENO"; then :
13667
xorg_testset_unknown_warning_option=yes
13669
xorg_testset_unknown_warning_option=no
13671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13673
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13674
CFLAGS="$xorg_testset_save_CFLAGS"
13677
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13678
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13679
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13681
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13683
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685
/* end confdefs.h. */
13688
if ac_fn_c_try_compile "$LINENO"; then :
13689
xorg_testset_unused_command_line_argument=yes
13691
xorg_testset_unused_command_line_argument=no
13693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13695
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13696
CFLAGS="$xorg_testset_save_CFLAGS"
13701
if test $found = "no" ; then
13702
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13703
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13706
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13707
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13710
CFLAGS="$CFLAGS -Werror=nonnull"
13712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13713
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715
/* end confdefs.h. */
13725
if ac_fn_c_try_link "$LINENO"; then :
13730
rm -f core conftest.err conftest.$ac_objext \
13731
conftest$ac_exeext conftest.$ac_ext
13732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13733
$as_echo "$supported" >&6; }
13734
CFLAGS="$xorg_testset_save_CFLAGS"
13736
if test "$supported" = "yes" ; then
13737
BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13748
xorg_testset_save_CFLAGS="$CFLAGS"
13750
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13751
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13753
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755
/* end confdefs.h. */
13758
if ac_fn_c_try_compile "$LINENO"; then :
13759
xorg_testset_unknown_warning_option=yes
13761
xorg_testset_unknown_warning_option=no
13763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13765
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13766
CFLAGS="$xorg_testset_save_CFLAGS"
13769
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13770
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13771
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13775
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777
/* end confdefs.h. */
13780
if ac_fn_c_try_compile "$LINENO"; then :
13781
xorg_testset_unused_command_line_argument=yes
13783
xorg_testset_unused_command_line_argument=no
13785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13787
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13788
CFLAGS="$xorg_testset_save_CFLAGS"
13793
if test $found = "no" ; then
13794
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13795
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13799
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13802
CFLAGS="$CFLAGS -Werror=init-self"
13804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13805
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807
/* end confdefs.h. */
13817
if ac_fn_c_try_link "$LINENO"; then :
13822
rm -f core conftest.err conftest.$ac_objext \
13823
conftest$ac_exeext conftest.$ac_ext
13824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13825
$as_echo "$supported" >&6; }
13826
CFLAGS="$xorg_testset_save_CFLAGS"
13828
if test "$supported" = "yes" ; then
13829
BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
13840
xorg_testset_save_CFLAGS="$CFLAGS"
13842
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13843
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13845
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847
/* end confdefs.h. */
13850
if ac_fn_c_try_compile "$LINENO"; then :
13851
xorg_testset_unknown_warning_option=yes
13853
xorg_testset_unknown_warning_option=no
13855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13857
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13858
CFLAGS="$xorg_testset_save_CFLAGS"
13861
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13862
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13863
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13865
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13867
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869
/* end confdefs.h. */
13872
if ac_fn_c_try_compile "$LINENO"; then :
13873
xorg_testset_unused_command_line_argument=yes
13875
xorg_testset_unused_command_line_argument=no
13877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13879
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13880
CFLAGS="$xorg_testset_save_CFLAGS"
13885
if test $found = "no" ; then
13886
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13887
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13890
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13891
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13894
CFLAGS="$CFLAGS -Werror=main"
13896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
13897
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
13898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899
/* end confdefs.h. */
13909
if ac_fn_c_try_link "$LINENO"; then :
13914
rm -f core conftest.err conftest.$ac_objext \
13915
conftest$ac_exeext conftest.$ac_ext
13916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13917
$as_echo "$supported" >&6; }
13918
CFLAGS="$xorg_testset_save_CFLAGS"
13920
if test "$supported" = "yes" ; then
13921
BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
13932
xorg_testset_save_CFLAGS="$CFLAGS"
13934
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13935
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13937
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939
/* end confdefs.h. */
13942
if ac_fn_c_try_compile "$LINENO"; then :
13943
xorg_testset_unknown_warning_option=yes
13945
xorg_testset_unknown_warning_option=no
13947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
13949
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
13950
CFLAGS="$xorg_testset_save_CFLAGS"
13953
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13954
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13955
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13959
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961
/* end confdefs.h. */
13964
if ac_fn_c_try_compile "$LINENO"; then :
13965
xorg_testset_unused_command_line_argument=yes
13967
xorg_testset_unused_command_line_argument=no
13969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
13971
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
13972
CFLAGS="$xorg_testset_save_CFLAGS"
13977
if test $found = "no" ; then
13978
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13979
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13982
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13983
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13986
CFLAGS="$CFLAGS -Werror=missing-braces"
13988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
13989
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
13990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991
/* end confdefs.h. */
14001
if ac_fn_c_try_link "$LINENO"; then :
14006
rm -f core conftest.err conftest.$ac_objext \
14007
conftest$ac_exeext conftest.$ac_ext
14008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14009
$as_echo "$supported" >&6; }
14010
CFLAGS="$xorg_testset_save_CFLAGS"
14012
if test "$supported" = "yes" ; then
14013
BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14024
xorg_testset_save_CFLAGS="$CFLAGS"
14026
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14027
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14029
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031
/* end confdefs.h. */
14034
if ac_fn_c_try_compile "$LINENO"; then :
14035
xorg_testset_unknown_warning_option=yes
14037
xorg_testset_unknown_warning_option=no
14039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14041
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14042
CFLAGS="$xorg_testset_save_CFLAGS"
14045
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14046
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14047
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14049
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14051
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053
/* end confdefs.h. */
14056
if ac_fn_c_try_compile "$LINENO"; then :
14057
xorg_testset_unused_command_line_argument=yes
14059
xorg_testset_unused_command_line_argument=no
14061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14063
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14064
CFLAGS="$xorg_testset_save_CFLAGS"
14069
if test $found = "no" ; then
14070
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14071
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14075
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14078
CFLAGS="$CFLAGS -Werror=sequence-point"
14080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14081
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083
/* end confdefs.h. */
14093
if ac_fn_c_try_link "$LINENO"; then :
14098
rm -f core conftest.err conftest.$ac_objext \
14099
conftest$ac_exeext conftest.$ac_ext
14100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14101
$as_echo "$supported" >&6; }
14102
CFLAGS="$xorg_testset_save_CFLAGS"
14104
if test "$supported" = "yes" ; then
14105
BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14116
xorg_testset_save_CFLAGS="$CFLAGS"
14118
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14119
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14121
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14122
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123
/* end confdefs.h. */
14126
if ac_fn_c_try_compile "$LINENO"; then :
14127
xorg_testset_unknown_warning_option=yes
14129
xorg_testset_unknown_warning_option=no
14131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14133
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14134
CFLAGS="$xorg_testset_save_CFLAGS"
14137
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14138
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14139
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14143
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145
/* end confdefs.h. */
14148
if ac_fn_c_try_compile "$LINENO"; then :
14149
xorg_testset_unused_command_line_argument=yes
14151
xorg_testset_unused_command_line_argument=no
14153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14155
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14156
CFLAGS="$xorg_testset_save_CFLAGS"
14161
if test $found = "no" ; then
14162
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14163
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14166
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14167
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14170
CFLAGS="$CFLAGS -Werror=return-type"
14172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14173
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14174
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175
/* end confdefs.h. */
14185
if ac_fn_c_try_link "$LINENO"; then :
14190
rm -f core conftest.err conftest.$ac_objext \
14191
conftest$ac_exeext conftest.$ac_ext
14192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14193
$as_echo "$supported" >&6; }
14194
CFLAGS="$xorg_testset_save_CFLAGS"
14196
if test "$supported" = "yes" ; then
14197
BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14202
if test $found = "no" ; then
14203
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14204
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14208
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211
CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14214
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216
/* end confdefs.h. */
14226
if ac_fn_c_try_link "$LINENO"; then :
14231
rm -f core conftest.err conftest.$ac_objext \
14232
conftest$ac_exeext conftest.$ac_ext
14233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14234
$as_echo "$supported" >&6; }
14235
CFLAGS="$xorg_testset_save_CFLAGS"
14237
if test "$supported" = "yes" ; then
14238
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14249
xorg_testset_save_CFLAGS="$CFLAGS"
14251
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14252
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256
/* end confdefs.h. */
14259
if ac_fn_c_try_compile "$LINENO"; then :
14260
xorg_testset_unknown_warning_option=yes
14262
xorg_testset_unknown_warning_option=no
14264
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14266
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14267
CFLAGS="$xorg_testset_save_CFLAGS"
14270
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14271
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14272
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14276
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278
/* end confdefs.h. */
14281
if ac_fn_c_try_compile "$LINENO"; then :
14282
xorg_testset_unused_command_line_argument=yes
14284
xorg_testset_unused_command_line_argument=no
14286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14288
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14289
CFLAGS="$xorg_testset_save_CFLAGS"
14294
if test $found = "no" ; then
14295
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14296
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14299
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14300
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14303
CFLAGS="$CFLAGS -Werror=trigraphs"
14305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14306
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308
/* end confdefs.h. */
14318
if ac_fn_c_try_link "$LINENO"; then :
14323
rm -f core conftest.err conftest.$ac_objext \
14324
conftest$ac_exeext conftest.$ac_ext
14325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14326
$as_echo "$supported" >&6; }
14327
CFLAGS="$xorg_testset_save_CFLAGS"
14329
if test "$supported" = "yes" ; then
14330
BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14341
xorg_testset_save_CFLAGS="$CFLAGS"
14343
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14344
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14346
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348
/* end confdefs.h. */
14351
if ac_fn_c_try_compile "$LINENO"; then :
14352
xorg_testset_unknown_warning_option=yes
14354
xorg_testset_unknown_warning_option=no
14356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14358
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14359
CFLAGS="$xorg_testset_save_CFLAGS"
14362
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14363
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14364
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14368
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370
/* end confdefs.h. */
14373
if ac_fn_c_try_compile "$LINENO"; then :
14374
xorg_testset_unused_command_line_argument=yes
14376
xorg_testset_unused_command_line_argument=no
14378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14380
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14381
CFLAGS="$xorg_testset_save_CFLAGS"
14386
if test $found = "no" ; then
14387
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14388
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14391
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14392
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14395
CFLAGS="$CFLAGS -Werror=array-bounds"
14397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14398
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400
/* end confdefs.h. */
14410
if ac_fn_c_try_link "$LINENO"; then :
14415
rm -f core conftest.err conftest.$ac_objext \
14416
conftest$ac_exeext conftest.$ac_ext
14417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418
$as_echo "$supported" >&6; }
14419
CFLAGS="$xorg_testset_save_CFLAGS"
14421
if test "$supported" = "yes" ; then
14422
BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14433
xorg_testset_save_CFLAGS="$CFLAGS"
14435
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14436
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14438
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440
/* end confdefs.h. */
14443
if ac_fn_c_try_compile "$LINENO"; then :
14444
xorg_testset_unknown_warning_option=yes
14446
xorg_testset_unknown_warning_option=no
14448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14450
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14451
CFLAGS="$xorg_testset_save_CFLAGS"
14454
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14455
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14456
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14460
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14461
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462
/* end confdefs.h. */
14465
if ac_fn_c_try_compile "$LINENO"; then :
14466
xorg_testset_unused_command_line_argument=yes
14468
xorg_testset_unused_command_line_argument=no
14470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14472
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14473
CFLAGS="$xorg_testset_save_CFLAGS"
14478
if test $found = "no" ; then
14479
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14480
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14484
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487
CFLAGS="$CFLAGS -Werror=write-strings"
14489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14490
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492
/* end confdefs.h. */
14502
if ac_fn_c_try_link "$LINENO"; then :
14507
rm -f core conftest.err conftest.$ac_objext \
14508
conftest$ac_exeext conftest.$ac_ext
14509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14510
$as_echo "$supported" >&6; }
14511
CFLAGS="$xorg_testset_save_CFLAGS"
14513
if test "$supported" = "yes" ; then
14514
BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14525
xorg_testset_save_CFLAGS="$CFLAGS"
14527
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14528
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14530
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532
/* end confdefs.h. */
14535
if ac_fn_c_try_compile "$LINENO"; then :
14536
xorg_testset_unknown_warning_option=yes
14538
xorg_testset_unknown_warning_option=no
14540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14542
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14543
CFLAGS="$xorg_testset_save_CFLAGS"
14546
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14547
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14548
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14550
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14552
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14553
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554
/* end confdefs.h. */
14557
if ac_fn_c_try_compile "$LINENO"; then :
14558
xorg_testset_unused_command_line_argument=yes
14560
xorg_testset_unused_command_line_argument=no
14562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14564
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14565
CFLAGS="$xorg_testset_save_CFLAGS"
14570
if test $found = "no" ; then
14571
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14572
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14575
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14576
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14579
CFLAGS="$CFLAGS -Werror=address"
14581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14582
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584
/* end confdefs.h. */
14594
if ac_fn_c_try_link "$LINENO"; then :
14599
rm -f core conftest.err conftest.$ac_objext \
14600
conftest$ac_exeext conftest.$ac_ext
14601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14602
$as_echo "$supported" >&6; }
14603
CFLAGS="$xorg_testset_save_CFLAGS"
14605
if test "$supported" = "yes" ; then
14606
BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
14617
xorg_testset_save_CFLAGS="$CFLAGS"
14619
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14620
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14622
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624
/* end confdefs.h. */
14627
if ac_fn_c_try_compile "$LINENO"; then :
14628
xorg_testset_unknown_warning_option=yes
14630
xorg_testset_unknown_warning_option=no
14632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14634
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14635
CFLAGS="$xorg_testset_save_CFLAGS"
14638
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14639
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14640
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14642
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14644
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646
/* end confdefs.h. */
14649
if ac_fn_c_try_compile "$LINENO"; then :
14650
xorg_testset_unused_command_line_argument=yes
14652
xorg_testset_unused_command_line_argument=no
14654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14656
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14657
CFLAGS="$xorg_testset_save_CFLAGS"
14662
if test $found = "no" ; then
14663
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14664
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14668
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14671
CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
14674
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
14675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676
/* end confdefs.h. */
14686
if ac_fn_c_try_link "$LINENO"; then :
14691
rm -f core conftest.err conftest.$ac_objext \
14692
conftest$ac_exeext conftest.$ac_ext
14693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14694
$as_echo "$supported" >&6; }
14695
CFLAGS="$xorg_testset_save_CFLAGS"
14697
if test "$supported" = "yes" ; then
14698
BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
14703
if test $found = "no" ; then
14704
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14705
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14708
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14709
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14712
CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
14714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
14715
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
14716
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717
/* end confdefs.h. */
14727
if ac_fn_c_try_link "$LINENO"; then :
14732
rm -f core conftest.err conftest.$ac_objext \
14733
conftest$ac_exeext conftest.$ac_ext
14734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14735
$as_echo "$supported" >&6; }
14736
CFLAGS="$xorg_testset_save_CFLAGS"
14738
if test "$supported" = "yes" ; then
14739
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
14750
xorg_testset_save_CFLAGS="$CFLAGS"
14752
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14753
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14755
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757
/* end confdefs.h. */
14760
if ac_fn_c_try_compile "$LINENO"; then :
14761
xorg_testset_unknown_warning_option=yes
14763
xorg_testset_unknown_warning_option=no
14765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14767
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14768
CFLAGS="$xorg_testset_save_CFLAGS"
14771
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14772
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14773
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14775
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14777
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779
/* end confdefs.h. */
14782
if ac_fn_c_try_compile "$LINENO"; then :
14783
xorg_testset_unused_command_line_argument=yes
14785
xorg_testset_unused_command_line_argument=no
14787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14789
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14790
CFLAGS="$xorg_testset_save_CFLAGS"
14795
if test $found = "no" ; then
14796
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14797
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14801
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804
CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
14806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
14807
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
14808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809
/* end confdefs.h. */
14819
if ac_fn_c_try_link "$LINENO"; then :
14824
rm -f core conftest.err conftest.$ac_objext \
14825
conftest$ac_exeext conftest.$ac_ext
14826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827
$as_echo "$supported" >&6; }
14828
CFLAGS="$xorg_testset_save_CFLAGS"
14830
if test "$supported" = "yes" ; then
14831
BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
14836
# Also -errwarn=E_BAD_PTR_INT_COMBINATION
14838
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
14839
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
14845
xorg_testset_save_CFLAGS="$CFLAGS"
14847
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14848
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14850
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14851
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852
/* end confdefs.h. */
14855
if ac_fn_c_try_compile "$LINENO"; then :
14856
xorg_testset_unknown_warning_option=yes
14858
xorg_testset_unknown_warning_option=no
14860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14862
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14863
CFLAGS="$xorg_testset_save_CFLAGS"
14866
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14867
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14868
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14870
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14872
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874
/* end confdefs.h. */
14877
if ac_fn_c_try_compile "$LINENO"; then :
14878
xorg_testset_unused_command_line_argument=yes
14880
xorg_testset_unused_command_line_argument=no
14882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14884
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14885
CFLAGS="$xorg_testset_save_CFLAGS"
14890
if test $found = "no" ; then
14891
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14892
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14895
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14896
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14899
CFLAGS="$CFLAGS -Wimplicit"
14901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
14902
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
14903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904
/* end confdefs.h. */
14914
if ac_fn_c_try_link "$LINENO"; then :
14919
rm -f core conftest.err conftest.$ac_objext \
14920
conftest$ac_exeext conftest.$ac_ext
14921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14922
$as_echo "$supported" >&6; }
14923
CFLAGS="$xorg_testset_save_CFLAGS"
14925
if test "$supported" = "yes" ; then
14926
BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
14937
xorg_testset_save_CFLAGS="$CFLAGS"
14939
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14940
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14942
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944
/* end confdefs.h. */
14947
if ac_fn_c_try_compile "$LINENO"; then :
14948
xorg_testset_unknown_warning_option=yes
14950
xorg_testset_unknown_warning_option=no
14952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
14954
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
14955
CFLAGS="$xorg_testset_save_CFLAGS"
14958
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14959
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14960
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14964
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14965
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966
/* end confdefs.h. */
14969
if ac_fn_c_try_compile "$LINENO"; then :
14970
xorg_testset_unused_command_line_argument=yes
14972
xorg_testset_unused_command_line_argument=no
14974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
14976
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
14977
CFLAGS="$xorg_testset_save_CFLAGS"
14982
if test $found = "no" ; then
14983
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14984
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14987
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14988
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14991
CFLAGS="$CFLAGS -Wnonnull"
14993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
14994
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
14995
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996
/* end confdefs.h. */
15006
if ac_fn_c_try_link "$LINENO"; then :
15011
rm -f core conftest.err conftest.$ac_objext \
15012
conftest$ac_exeext conftest.$ac_ext
15013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014
$as_echo "$supported" >&6; }
15015
CFLAGS="$xorg_testset_save_CFLAGS"
15017
if test "$supported" = "yes" ; then
15018
BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15029
xorg_testset_save_CFLAGS="$CFLAGS"
15031
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15032
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15034
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036
/* end confdefs.h. */
15039
if ac_fn_c_try_compile "$LINENO"; then :
15040
xorg_testset_unknown_warning_option=yes
15042
xorg_testset_unknown_warning_option=no
15044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15046
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15047
CFLAGS="$xorg_testset_save_CFLAGS"
15050
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15051
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15052
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15054
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15056
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058
/* end confdefs.h. */
15061
if ac_fn_c_try_compile "$LINENO"; then :
15062
xorg_testset_unused_command_line_argument=yes
15064
xorg_testset_unused_command_line_argument=no
15066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15068
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15069
CFLAGS="$xorg_testset_save_CFLAGS"
15074
if test $found = "no" ; then
15075
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15076
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15079
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15080
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15083
CFLAGS="$CFLAGS -Winit-self"
15085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15086
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15087
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088
/* end confdefs.h. */
15098
if ac_fn_c_try_link "$LINENO"; then :
15103
rm -f core conftest.err conftest.$ac_objext \
15104
conftest$ac_exeext conftest.$ac_ext
15105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15106
$as_echo "$supported" >&6; }
15107
CFLAGS="$xorg_testset_save_CFLAGS"
15109
if test "$supported" = "yes" ; then
15110
BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15121
xorg_testset_save_CFLAGS="$CFLAGS"
15123
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15124
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15126
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128
/* end confdefs.h. */
15131
if ac_fn_c_try_compile "$LINENO"; then :
15132
xorg_testset_unknown_warning_option=yes
15134
xorg_testset_unknown_warning_option=no
15136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15138
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15139
CFLAGS="$xorg_testset_save_CFLAGS"
15142
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15143
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15144
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15148
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150
/* end confdefs.h. */
15153
if ac_fn_c_try_compile "$LINENO"; then :
15154
xorg_testset_unused_command_line_argument=yes
15156
xorg_testset_unused_command_line_argument=no
15158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15160
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15161
CFLAGS="$xorg_testset_save_CFLAGS"
15166
if test $found = "no" ; then
15167
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15168
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15172
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15175
CFLAGS="$CFLAGS -Wmain"
15177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15178
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180
/* end confdefs.h. */
15190
if ac_fn_c_try_link "$LINENO"; then :
15195
rm -f core conftest.err conftest.$ac_objext \
15196
conftest$ac_exeext conftest.$ac_ext
15197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15198
$as_echo "$supported" >&6; }
15199
CFLAGS="$xorg_testset_save_CFLAGS"
15201
if test "$supported" = "yes" ; then
15202
BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15213
xorg_testset_save_CFLAGS="$CFLAGS"
15215
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15216
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15218
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220
/* end confdefs.h. */
15223
if ac_fn_c_try_compile "$LINENO"; then :
15224
xorg_testset_unknown_warning_option=yes
15226
xorg_testset_unknown_warning_option=no
15228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15230
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15231
CFLAGS="$xorg_testset_save_CFLAGS"
15234
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15235
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15236
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15240
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15241
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242
/* end confdefs.h. */
15245
if ac_fn_c_try_compile "$LINENO"; then :
15246
xorg_testset_unused_command_line_argument=yes
15248
xorg_testset_unused_command_line_argument=no
15250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15252
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15253
CFLAGS="$xorg_testset_save_CFLAGS"
15258
if test $found = "no" ; then
15259
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15260
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15263
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15264
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15267
CFLAGS="$CFLAGS -Wmissing-braces"
15269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15270
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272
/* end confdefs.h. */
15282
if ac_fn_c_try_link "$LINENO"; then :
15287
rm -f core conftest.err conftest.$ac_objext \
15288
conftest$ac_exeext conftest.$ac_ext
15289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15290
$as_echo "$supported" >&6; }
15291
CFLAGS="$xorg_testset_save_CFLAGS"
15293
if test "$supported" = "yes" ; then
15294
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15305
xorg_testset_save_CFLAGS="$CFLAGS"
15307
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15308
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15310
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312
/* end confdefs.h. */
15315
if ac_fn_c_try_compile "$LINENO"; then :
15316
xorg_testset_unknown_warning_option=yes
15318
xorg_testset_unknown_warning_option=no
15320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15322
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15323
CFLAGS="$xorg_testset_save_CFLAGS"
15326
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15327
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15328
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15332
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334
/* end confdefs.h. */
15337
if ac_fn_c_try_compile "$LINENO"; then :
15338
xorg_testset_unused_command_line_argument=yes
15340
xorg_testset_unused_command_line_argument=no
15342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15344
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15345
CFLAGS="$xorg_testset_save_CFLAGS"
15350
if test $found = "no" ; then
15351
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15352
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15355
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15356
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15359
CFLAGS="$CFLAGS -Wsequence-point"
15361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15362
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15363
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364
/* end confdefs.h. */
15374
if ac_fn_c_try_link "$LINENO"; then :
15379
rm -f core conftest.err conftest.$ac_objext \
15380
conftest$ac_exeext conftest.$ac_ext
15381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15382
$as_echo "$supported" >&6; }
15383
CFLAGS="$xorg_testset_save_CFLAGS"
15385
if test "$supported" = "yes" ; then
15386
BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15397
xorg_testset_save_CFLAGS="$CFLAGS"
15399
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15400
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15402
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404
/* end confdefs.h. */
15407
if ac_fn_c_try_compile "$LINENO"; then :
15408
xorg_testset_unknown_warning_option=yes
15410
xorg_testset_unknown_warning_option=no
15412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15414
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15415
CFLAGS="$xorg_testset_save_CFLAGS"
15418
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15419
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15420
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15424
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426
/* end confdefs.h. */
15429
if ac_fn_c_try_compile "$LINENO"; then :
15430
xorg_testset_unused_command_line_argument=yes
15432
xorg_testset_unused_command_line_argument=no
15434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15436
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15437
CFLAGS="$xorg_testset_save_CFLAGS"
15442
if test $found = "no" ; then
15443
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15444
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15448
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451
CFLAGS="$CFLAGS -Wreturn-type"
15453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
15454
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
15455
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456
/* end confdefs.h. */
15466
if ac_fn_c_try_link "$LINENO"; then :
15471
rm -f core conftest.err conftest.$ac_objext \
15472
conftest$ac_exeext conftest.$ac_ext
15473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474
$as_echo "$supported" >&6; }
15475
CFLAGS="$xorg_testset_save_CFLAGS"
15477
if test "$supported" = "yes" ; then
15478
BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
15489
xorg_testset_save_CFLAGS="$CFLAGS"
15491
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15492
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15494
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496
/* end confdefs.h. */
15499
if ac_fn_c_try_compile "$LINENO"; then :
15500
xorg_testset_unknown_warning_option=yes
15502
xorg_testset_unknown_warning_option=no
15504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15506
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15507
CFLAGS="$xorg_testset_save_CFLAGS"
15510
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15511
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15512
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15514
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15516
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518
/* end confdefs.h. */
15521
if ac_fn_c_try_compile "$LINENO"; then :
15522
xorg_testset_unused_command_line_argument=yes
15524
xorg_testset_unused_command_line_argument=no
15526
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15528
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15529
CFLAGS="$xorg_testset_save_CFLAGS"
15534
if test $found = "no" ; then
15535
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15536
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15539
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15540
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15543
CFLAGS="$CFLAGS -Wtrigraphs"
15545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
15546
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
15547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548
/* end confdefs.h. */
15558
if ac_fn_c_try_link "$LINENO"; then :
15563
rm -f core conftest.err conftest.$ac_objext \
15564
conftest$ac_exeext conftest.$ac_ext
15565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15566
$as_echo "$supported" >&6; }
15567
CFLAGS="$xorg_testset_save_CFLAGS"
15569
if test "$supported" = "yes" ; then
15570
BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
15581
xorg_testset_save_CFLAGS="$CFLAGS"
15583
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15584
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15586
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588
/* end confdefs.h. */
15591
if ac_fn_c_try_compile "$LINENO"; then :
15592
xorg_testset_unknown_warning_option=yes
15594
xorg_testset_unknown_warning_option=no
15596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15598
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15599
CFLAGS="$xorg_testset_save_CFLAGS"
15602
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15603
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15604
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15608
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15609
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610
/* end confdefs.h. */
15613
if ac_fn_c_try_compile "$LINENO"; then :
15614
xorg_testset_unused_command_line_argument=yes
15616
xorg_testset_unused_command_line_argument=no
15618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15620
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15621
CFLAGS="$xorg_testset_save_CFLAGS"
15626
if test $found = "no" ; then
15627
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15628
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15632
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15635
CFLAGS="$CFLAGS -Warray-bounds"
15637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
15638
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
15639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640
/* end confdefs.h. */
15650
if ac_fn_c_try_link "$LINENO"; then :
15655
rm -f core conftest.err conftest.$ac_objext \
15656
conftest$ac_exeext conftest.$ac_ext
15657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15658
$as_echo "$supported" >&6; }
15659
CFLAGS="$xorg_testset_save_CFLAGS"
15661
if test "$supported" = "yes" ; then
15662
BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
15673
xorg_testset_save_CFLAGS="$CFLAGS"
15675
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15676
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15678
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680
/* end confdefs.h. */
15683
if ac_fn_c_try_compile "$LINENO"; then :
15684
xorg_testset_unknown_warning_option=yes
15686
xorg_testset_unknown_warning_option=no
15688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15690
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15691
CFLAGS="$xorg_testset_save_CFLAGS"
15694
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15695
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15696
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15698
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15700
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702
/* end confdefs.h. */
15705
if ac_fn_c_try_compile "$LINENO"; then :
15706
xorg_testset_unused_command_line_argument=yes
15708
xorg_testset_unused_command_line_argument=no
15710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15712
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15713
CFLAGS="$xorg_testset_save_CFLAGS"
15718
if test $found = "no" ; then
15719
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15720
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15723
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15724
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15727
CFLAGS="$CFLAGS -Wwrite-strings"
15729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
15730
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
15731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732
/* end confdefs.h. */
15742
if ac_fn_c_try_link "$LINENO"; then :
15747
rm -f core conftest.err conftest.$ac_objext \
15748
conftest$ac_exeext conftest.$ac_ext
15749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15750
$as_echo "$supported" >&6; }
15751
CFLAGS="$xorg_testset_save_CFLAGS"
15753
if test "$supported" = "yes" ; then
15754
BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
15765
xorg_testset_save_CFLAGS="$CFLAGS"
15767
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15768
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15770
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772
/* end confdefs.h. */
15775
if ac_fn_c_try_compile "$LINENO"; then :
15776
xorg_testset_unknown_warning_option=yes
15778
xorg_testset_unknown_warning_option=no
15780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15782
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15783
CFLAGS="$xorg_testset_save_CFLAGS"
15786
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15787
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15788
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15790
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15792
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794
/* end confdefs.h. */
15797
if ac_fn_c_try_compile "$LINENO"; then :
15798
xorg_testset_unused_command_line_argument=yes
15800
xorg_testset_unused_command_line_argument=no
15802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15804
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15805
CFLAGS="$xorg_testset_save_CFLAGS"
15810
if test $found = "no" ; then
15811
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15812
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15815
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15816
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15819
CFLAGS="$CFLAGS -Waddress"
15821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
15822
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
15823
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824
/* end confdefs.h. */
15834
if ac_fn_c_try_link "$LINENO"; then :
15839
rm -f core conftest.err conftest.$ac_objext \
15840
conftest$ac_exeext conftest.$ac_ext
15841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15842
$as_echo "$supported" >&6; }
15843
CFLAGS="$xorg_testset_save_CFLAGS"
15845
if test "$supported" = "yes" ; then
15846
BASE_CFLAGS="$BASE_CFLAGS -Waddress"
15857
xorg_testset_save_CFLAGS="$CFLAGS"
15859
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15860
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15862
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864
/* end confdefs.h. */
15867
if ac_fn_c_try_compile "$LINENO"; then :
15868
xorg_testset_unknown_warning_option=yes
15870
xorg_testset_unknown_warning_option=no
15872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15874
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15875
CFLAGS="$xorg_testset_save_CFLAGS"
15878
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15879
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15880
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15884
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886
/* end confdefs.h. */
15889
if ac_fn_c_try_compile "$LINENO"; then :
15890
xorg_testset_unused_command_line_argument=yes
15892
xorg_testset_unused_command_line_argument=no
15894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15896
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15897
CFLAGS="$xorg_testset_save_CFLAGS"
15902
if test $found = "no" ; then
15903
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15904
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15908
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15911
CFLAGS="$CFLAGS -Wint-to-pointer-cast"
15913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
15914
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
15915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916
/* end confdefs.h. */
15926
if ac_fn_c_try_link "$LINENO"; then :
15931
rm -f core conftest.err conftest.$ac_objext \
15932
conftest$ac_exeext conftest.$ac_ext
15933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15934
$as_echo "$supported" >&6; }
15935
CFLAGS="$xorg_testset_save_CFLAGS"
15937
if test "$supported" = "yes" ; then
15938
BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
15949
xorg_testset_save_CFLAGS="$CFLAGS"
15951
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15952
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15956
/* end confdefs.h. */
15959
if ac_fn_c_try_compile "$LINENO"; then :
15960
xorg_testset_unknown_warning_option=yes
15962
xorg_testset_unknown_warning_option=no
15964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
15966
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
15967
CFLAGS="$xorg_testset_save_CFLAGS"
15970
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15971
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15972
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15974
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15976
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15977
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978
/* end confdefs.h. */
15981
if ac_fn_c_try_compile "$LINENO"; then :
15982
xorg_testset_unused_command_line_argument=yes
15984
xorg_testset_unused_command_line_argument=no
15986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
15988
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
15989
CFLAGS="$xorg_testset_save_CFLAGS"
15994
if test $found = "no" ; then
15995
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15996
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15999
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16000
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16003
CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16006
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16007
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008
/* end confdefs.h. */
16018
if ac_fn_c_try_link "$LINENO"; then :
16023
rm -f core conftest.err conftest.$ac_objext \
16024
conftest$ac_exeext conftest.$ac_ext
16025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16026
$as_echo "$supported" >&6; }
16027
CFLAGS="$xorg_testset_save_CFLAGS"
16029
if test "$supported" = "yes" ; then
16030
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16043
CWARNFLAGS="$BASE_CFLAGS"
16044
if test "x$GCC" = xyes ; then
16045
CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16053
# Check whether --enable-strict-compilation was given.
16054
if test "${enable_strict_compilation+set}" = set; then :
16055
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16067
xorg_testset_save_CFLAGS="$CFLAGS"
16069
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16070
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16072
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16073
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074
/* end confdefs.h. */
16077
if ac_fn_c_try_compile "$LINENO"; then :
16078
xorg_testset_unknown_warning_option=yes
16080
xorg_testset_unknown_warning_option=no
16082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16084
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16085
CFLAGS="$xorg_testset_save_CFLAGS"
16088
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16089
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16090
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16092
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16094
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096
/* end confdefs.h. */
16099
if ac_fn_c_try_compile "$LINENO"; then :
16100
xorg_testset_unused_command_line_argument=yes
16102
xorg_testset_unused_command_line_argument=no
16104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16106
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16107
CFLAGS="$xorg_testset_save_CFLAGS"
16112
if test $found = "no" ; then
16113
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16114
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16117
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16118
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16121
CFLAGS="$CFLAGS -pedantic"
16123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16124
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
16125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126
/* end confdefs.h. */
16136
if ac_fn_c_try_link "$LINENO"; then :
16141
rm -f core conftest.err conftest.$ac_objext \
16142
conftest$ac_exeext conftest.$ac_ext
16143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16144
$as_echo "$supported" >&6; }
16145
CFLAGS="$xorg_testset_save_CFLAGS"
16147
if test "$supported" = "yes" ; then
16148
STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16159
xorg_testset_save_CFLAGS="$CFLAGS"
16161
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16162
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166
/* end confdefs.h. */
16169
if ac_fn_c_try_compile "$LINENO"; then :
16170
xorg_testset_unknown_warning_option=yes
16172
xorg_testset_unknown_warning_option=no
16174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16176
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16177
CFLAGS="$xorg_testset_save_CFLAGS"
16180
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16181
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16182
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16186
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188
/* end confdefs.h. */
16191
if ac_fn_c_try_compile "$LINENO"; then :
16192
xorg_testset_unused_command_line_argument=yes
16194
xorg_testset_unused_command_line_argument=no
16196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16198
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16199
CFLAGS="$xorg_testset_save_CFLAGS"
16204
if test $found = "no" ; then
16205
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16206
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16209
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16210
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16213
CFLAGS="$CFLAGS -Werror"
16215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
16216
$as_echo_n "checking if $CC supports -Werror... " >&6; }
16217
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218
/* end confdefs.h. */
16228
if ac_fn_c_try_link "$LINENO"; then :
16233
rm -f core conftest.err conftest.$ac_objext \
16234
conftest$ac_exeext conftest.$ac_ext
16235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16236
$as_echo "$supported" >&6; }
16237
CFLAGS="$xorg_testset_save_CFLAGS"
16239
if test "$supported" = "yes" ; then
16240
STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
16245
if test $found = "no" ; then
16246
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16247
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16251
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16254
CFLAGS="$CFLAGS -errwarn"
16256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
16257
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
16258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259
/* end confdefs.h. */
16269
if ac_fn_c_try_link "$LINENO"; then :
16274
rm -f core conftest.err conftest.$ac_objext \
16275
conftest$ac_exeext conftest.$ac_ext
16276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16277
$as_echo "$supported" >&6; }
16278
CFLAGS="$xorg_testset_save_CFLAGS"
16280
if test "$supported" = "yes" ; then
16281
STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
16288
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
16289
# activate it with -Werror, so we add it here explicitly.
16295
xorg_testset_save_CFLAGS="$CFLAGS"
16297
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16298
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16300
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302
/* end confdefs.h. */
16305
if ac_fn_c_try_compile "$LINENO"; then :
16306
xorg_testset_unknown_warning_option=yes
16308
xorg_testset_unknown_warning_option=no
16310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
16312
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
16313
CFLAGS="$xorg_testset_save_CFLAGS"
16316
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16317
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16318
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16322
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324
/* end confdefs.h. */
16327
if ac_fn_c_try_compile "$LINENO"; then :
16328
xorg_testset_unused_command_line_argument=yes
16330
xorg_testset_unused_command_line_argument=no
16332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
16334
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
16335
CFLAGS="$xorg_testset_save_CFLAGS"
16340
if test $found = "no" ; then
16341
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16342
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16345
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16346
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16349
CFLAGS="$CFLAGS -Werror=attributes"
16351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
16352
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
16353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354
/* end confdefs.h. */
16364
if ac_fn_c_try_link "$LINENO"; then :
16369
rm -f core conftest.err conftest.$ac_objext \
16370
conftest$ac_exeext conftest.$ac_ext
16371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372
$as_echo "$supported" >&6; }
16373
CFLAGS="$xorg_testset_save_CFLAGS"
16375
if test "$supported" = "yes" ; then
16376
STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
16383
if test "x$STRICT_COMPILE" = "xyes"; then
16384
BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
16385
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
16393
cat >>confdefs.h <<_ACEOF
16394
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
16397
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
16398
if test "x$PVM" = "x"; then
16402
cat >>confdefs.h <<_ACEOF
16403
#define PACKAGE_VERSION_MINOR $PVM
16406
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
16407
if test "x$PVP" = "x"; then
16411
cat >>confdefs.h <<_ACEOF
16412
#define PACKAGE_VERSION_PATCHLEVEL $PVP
16417
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
16418
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
16419
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
16420
echo 'git directory not found: installing possibly empty changelog.' >&2)"
16425
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
16426
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
16427
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
16428
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
16429
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
16436
if test x$APP_MAN_SUFFIX = x ; then
16439
if test x$APP_MAN_DIR = x ; then
16440
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
16443
if test x$LIB_MAN_SUFFIX = x ; then
16446
if test x$LIB_MAN_DIR = x ; then
16447
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
16450
if test x$FILE_MAN_SUFFIX = x ; then
16452
solaris*) FILE_MAN_SUFFIX=4 ;;
16453
*) FILE_MAN_SUFFIX=5 ;;
16456
if test x$FILE_MAN_DIR = x ; then
16457
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
16460
if test x$MISC_MAN_SUFFIX = x ; then
16462
solaris*) MISC_MAN_SUFFIX=5 ;;
16463
*) MISC_MAN_SUFFIX=7 ;;
16466
if test x$MISC_MAN_DIR = x ; then
16467
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
16470
if test x$DRIVER_MAN_SUFFIX = x ; then
16472
solaris*) DRIVER_MAN_SUFFIX=7 ;;
16473
*) DRIVER_MAN_SUFFIX=4 ;;
16476
if test x$DRIVER_MAN_DIR = x ; then
16477
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
16480
if test x$ADMIN_MAN_SUFFIX = x ; then
16482
solaris*) ADMIN_MAN_SUFFIX=1m ;;
16483
*) ADMIN_MAN_SUFFIX=8 ;;
16486
if test x$ADMIN_MAN_DIR = x ; then
16487
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
16504
XORG_MAN_PAGE="X Version 11"
16507
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
16508
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
16509
-e 's|__xservername__|Xorg|g' \
16510
-e 's|__xconfigfile__|xorg.conf|g' \
16511
-e 's|__projectroot__|\$(prefix)|g' \
16512
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
16513
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
16514
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
16515
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
16516
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
16517
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
16518
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
16522
# Check whether --enable-silent-rules was given.
16523
if test "${enable_silent_rules+set}" = set; then :
16524
enableval=$enable_silent_rules;
16527
case $enable_silent_rules in
16528
yes) AM_DEFAULT_VERBOSITY=0;;
16529
no) AM_DEFAULT_VERBOSITY=1;;
16530
*) AM_DEFAULT_VERBOSITY=0;;
16532
am_make=${MAKE-make}
16533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16534
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16535
if ${am_cv_make_support_nested_variables+:} false; then :
16536
$as_echo_n "(cached) " >&6
16538
if $as_echo 'TRUE=$(BAR$(V))
16544
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16545
am_cv_make_support_nested_variables=yes
16547
am_cv_make_support_nested_variables=no
16550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16551
$as_echo "$am_cv_make_support_nested_variables" >&6; }
16552
if test $am_cv_make_support_nested_variables = yes; then
16554
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16556
AM_V=$AM_DEFAULT_VERBOSITY
16557
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16566
# Check whether --with-doxygen was given.
16567
if test "${with_doxygen+set}" = set; then :
16568
withval=$with_doxygen; use_doxygen=$withval
16575
if test "x$use_doxygen" = x"auto"; then
16576
# Extract the first word of "doxygen", so it can be a program name with args.
16577
set dummy doxygen; ac_word=$2
16578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16579
$as_echo_n "checking for $ac_word... " >&6; }
16580
if ${ac_cv_path_DOXYGEN+:} false; then :
16581
$as_echo_n "(cached) " >&6
16585
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589
for as_dir in $PATH
16592
test -z "$as_dir" && as_dir=.
16593
for ac_exec_ext in '' $ac_executable_extensions; do
16594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16595
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606
DOXYGEN=$ac_cv_path_DOXYGEN
16607
if test -n "$DOXYGEN"; then
16608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16609
$as_echo "$DOXYGEN" >&6; }
16611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612
$as_echo "no" >&6; }
16616
if test "x$DOXYGEN" = "x"; then
16617
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
16618
$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
16623
elif test "x$use_doxygen" = x"yes" ; then
16624
# Extract the first word of "doxygen", so it can be a program name with args.
16625
set dummy doxygen; ac_word=$2
16626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16627
$as_echo_n "checking for $ac_word... " >&6; }
16628
if ${ac_cv_path_DOXYGEN+:} false; then :
16629
$as_echo_n "(cached) " >&6
16633
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16637
for as_dir in $PATH
16640
test -z "$as_dir" && as_dir=.
16641
for ac_exec_ext in '' $ac_executable_extensions; do
16642
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16643
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16644
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16654
DOXYGEN=$ac_cv_path_DOXYGEN
16655
if test -n "$DOXYGEN"; then
16656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16657
$as_echo "$DOXYGEN" >&6; }
16659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660
$as_echo "no" >&6; }
16664
if test "x$DOXYGEN" = "x"; then
16665
as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
16668
elif test "x$use_doxygen" = x"no" ; then
16669
if test "x$DOXYGEN" != "x"; then
16670
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
16671
$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
16675
as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
16677
if test "$have_doxygen" = yes; then
16678
# scrape the doxygen version
16679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
16680
$as_echo_n "checking the doxygen version... " >&6; }
16681
doxygen_version=`$DOXYGEN --version 2>/dev/null`
16682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
16683
$as_echo "$doxygen_version" >&6; }
16684
as_arg_v1=$doxygen_version
16686
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16689
if test "x$use_doxygen" = xauto; then
16690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
16691
$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
16694
as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
16704
if test "$have_doxygen" = yes; then
16706
HAVE_DOXYGEN_FALSE='#'
16708
HAVE_DOXYGEN_TRUE='#'
16709
HAVE_DOXYGEN_FALSE=
16714
# Checks for libraries.
16715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
16716
$as_echo_n "checking for rint in -lm... " >&6; }
16717
if ${ac_cv_lib_m_rint+:} false; then :
16718
$as_echo_n "(cached) " >&6
16720
ac_check_lib_save_LIBS=$LIBS
16722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723
/* end confdefs.h. */
16725
/* Override any GCC internal prototype to avoid an error.
16726
Use char because int might match the return type of a GCC
16727
builtin and then its argument prototype would still apply. */
16740
if ac_fn_c_try_link "$LINENO"; then :
16741
ac_cv_lib_m_rint=yes
16743
ac_cv_lib_m_rint=no
16745
rm -f core conftest.err conftest.$ac_objext \
16746
conftest$ac_exeext conftest.$ac_ext
16747
LIBS=$ac_check_lib_save_LIBS
16749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
16750
$as_echo "$ac_cv_lib_m_rint" >&6; }
16751
if test "x$ac_cv_lib_m_rint" = xyes; then :
16752
cat >>confdefs.h <<_ACEOF
16753
#define HAVE_LIBM 1
16761
# Obtain compiler/linker options from server and required extensions
16764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
16765
$as_echo_n "checking for XORG... " >&6; }
16767
if test -n "$XORG_CFLAGS"; then
16768
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
16769
elif test -n "$PKG_CONFIG"; then
16770
if test -n "$PKG_CONFIG" && \
16771
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto\""; } >&5
16772
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto") 2>&5
16774
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16775
test $ac_status = 0; }; then
16776
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>/dev/null`
16777
test "x$?" != "x0" && pkg_failed=yes
16784
if test -n "$XORG_LIBS"; then
16785
pkg_cv_XORG_LIBS="$XORG_LIBS"
16786
elif test -n "$PKG_CONFIG"; then
16787
if test -n "$PKG_CONFIG" && \
16788
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto\""; } >&5
16789
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto") 2>&5
16791
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16792
test $ac_status = 0; }; then
16793
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>/dev/null`
16794
test "x$?" != "x0" && pkg_failed=yes
16804
if test $pkg_failed = yes; then
16805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806
$as_echo "no" >&6; }
16808
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16809
_pkg_short_errors_supported=yes
16811
_pkg_short_errors_supported=no
16813
if test $_pkg_short_errors_supported = yes; then
16814
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>&1`
16816
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto" 2>&1`
16818
# Put the nasty error message in config.log where it belongs
16819
echo "$XORG_PKG_ERRORS" >&5
16821
as_fn_error $? "Package requirements (xorg-server >= 1.7.0 xproto xext kbproto inputproto randrproto) were not met:
16825
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16826
installed software in a non-standard prefix.
16828
Alternatively, you may set the environment variables XORG_CFLAGS
16829
and XORG_LIBS to avoid the need to call pkg-config.
16830
See the pkg-config man page for more details." "$LINENO" 5
16831
elif test $pkg_failed = untried; then
16832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833
$as_echo "no" >&6; }
16834
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16835
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16836
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16837
is in your PATH or set the PKG_CONFIG environment variable to the full
16838
path to pkg-config.
16840
Alternatively, you may set the environment variables XORG_CFLAGS
16841
and XORG_LIBS to avoid the need to call pkg-config.
16842
See the pkg-config man page for more details.
16844
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16845
See \`config.log' for more details" "$LINENO" 5; }
16847
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
16848
XORG_LIBS=$pkg_cv_XORG_LIBS
16849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850
$as_echo "yes" >&6; }
16854
# Obtain compiler/linker options for the xsetwacom tool
16857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
16858
$as_echo_n "checking for X11... " >&6; }
16860
if test -n "$X11_CFLAGS"; then
16861
pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16862
elif test -n "$PKG_CONFIG"; then
16863
if test -n "$PKG_CONFIG" && \
16864
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama\""; } >&5
16865
($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama") 2>&5
16867
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868
test $ac_status = 0; }; then
16869
pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xi xrandr xinerama" 2>/dev/null`
16870
test "x$?" != "x0" && pkg_failed=yes
16877
if test -n "$X11_LIBS"; then
16878
pkg_cv_X11_LIBS="$X11_LIBS"
16879
elif test -n "$PKG_CONFIG"; then
16880
if test -n "$PKG_CONFIG" && \
16881
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xi xrandr xinerama\""; } >&5
16882
($PKG_CONFIG --exists --print-errors "x11 xi xrandr xinerama") 2>&5
16884
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885
test $ac_status = 0; }; then
16886
pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xi xrandr xinerama" 2>/dev/null`
16887
test "x$?" != "x0" && pkg_failed=yes
16897
if test $pkg_failed = yes; then
16898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899
$as_echo "no" >&6; }
16901
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16902
_pkg_short_errors_supported=yes
16904
_pkg_short_errors_supported=no
16906
if test $_pkg_short_errors_supported = yes; then
16907
X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xi xrandr xinerama" 2>&1`
16909
X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xi xrandr xinerama" 2>&1`
16911
# Put the nasty error message in config.log where it belongs
16912
echo "$X11_PKG_ERRORS" >&5
16914
as_fn_error $? "Package requirements (x11 xi xrandr xinerama) were not met:
16918
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16919
installed software in a non-standard prefix.
16921
Alternatively, you may set the environment variables X11_CFLAGS
16922
and X11_LIBS to avoid the need to call pkg-config.
16923
See the pkg-config man page for more details." "$LINENO" 5
16924
elif test $pkg_failed = untried; then
16925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926
$as_echo "no" >&6; }
16927
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16928
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16929
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16930
is in your PATH or set the PKG_CONFIG environment variable to the full
16931
path to pkg-config.
16933
Alternatively, you may set the environment variables X11_CFLAGS
16934
and X11_LIBS to avoid the need to call pkg-config.
16935
See the pkg-config man page for more details.
16937
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16938
See \`config.log' for more details" "$LINENO" 5; }
16940
X11_CFLAGS=$pkg_cv_X11_CFLAGS
16941
X11_LIBS=$pkg_cv_X11_LIBS
16942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16943
$as_echo "yes" >&6; }
16947
# Obtain compiler/linker options for libudev used by ISDV4 code
16950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
16951
$as_echo_n "checking for UDEV... " >&6; }
16953
if test -n "$UDEV_CFLAGS"; then
16954
pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
16955
elif test -n "$PKG_CONFIG"; then
16956
if test -n "$PKG_CONFIG" && \
16957
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16958
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961
test $ac_status = 0; }; then
16962
pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
16963
test "x$?" != "x0" && pkg_failed=yes
16970
if test -n "$UDEV_LIBS"; then
16971
pkg_cv_UDEV_LIBS="$UDEV_LIBS"
16972
elif test -n "$PKG_CONFIG"; then
16973
if test -n "$PKG_CONFIG" && \
16974
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
16975
($PKG_CONFIG --exists --print-errors "libudev") 2>&5
16977
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16978
test $ac_status = 0; }; then
16979
pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
16980
test "x$?" != "x0" && pkg_failed=yes
16990
if test $pkg_failed = yes; then
16991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992
$as_echo "no" >&6; }
16994
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16995
_pkg_short_errors_supported=yes
16997
_pkg_short_errors_supported=no
16999
if test $_pkg_short_errors_supported = yes; then
17000
UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
17002
UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
17004
# Put the nasty error message in config.log where it belongs
17005
echo "$UDEV_PKG_ERRORS" >&5
17007
as_fn_error $? "Package requirements (libudev) were not met:
17011
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17012
installed software in a non-standard prefix.
17014
Alternatively, you may set the environment variables UDEV_CFLAGS
17015
and UDEV_LIBS to avoid the need to call pkg-config.
17016
See the pkg-config man page for more details." "$LINENO" 5
17017
elif test $pkg_failed = untried; then
17018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17019
$as_echo "no" >&6; }
17020
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17021
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17022
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17023
is in your PATH or set the PKG_CONFIG environment variable to the full
17024
path to pkg-config.
17026
Alternatively, you may set the environment variables UDEV_CFLAGS
17027
and UDEV_LIBS to avoid the need to call pkg-config.
17028
See the pkg-config man page for more details.
17030
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17031
See \`config.log' for more details" "$LINENO" 5; }
17033
UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17034
UDEV_LIBS=$pkg_cv_UDEV_LIBS
17035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17036
$as_echo "yes" >&6; }
17040
# X Server SDK location is required to install wacom header files
17041
# This location is also relayed in the xorg-wacom.pc file
17042
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
17044
# Workaround overriding sdkdir to be able to create a tarball when user has no
17045
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
17047
# Check whether --with-sdkdir was given.
17048
if test "${with_sdkdir+set}" = set; then :
17049
withval=$with_sdkdir; sdkdir="$withval"
17057
# -----------------------------------------------------------------------------
17058
# Configuration options
17059
# -----------------------------------------------------------------------------
17060
# Define a configure option for code debugging
17061
# Check whether --enable-debug was given.
17062
if test "${enable_debug+set}" = set; then :
17063
enableval=$enable_debug; DEBUGGING=$enableval
17069
# Define the C preprocessor macro DEBUG in config.h
17070
if test "x$DEBUGGING" = xyes; then
17072
$as_echo "#define DEBUG 1" >>confdefs.h
17076
# Define a configure option for an alternate input module directory
17078
# Check whether --with-xorg-module-dir was given.
17079
if test "${with_xorg_module_dir+set}" = set; then :
17080
withval=$with_xorg_module_dir; moduledir="$withval"
17082
moduledir="$libdir/xorg/modules"
17085
inputdir=${moduledir}/input
17088
# Define a configure option for an alternate X Server configuration directory
17089
sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
17091
# Check whether --with-xorg-conf-dir was given.
17092
if test "${with_xorg_conf_dir+set}" = set; then :
17093
withval=$with_xorg_conf_dir; configdir="$withval"
17095
configdir="$sysconfigdir"
17099
if test "x$configdir" != "x"; then
17100
HAS_XORG_CONF_DIR_TRUE=
17101
HAS_XORG_CONF_DIR_FALSE='#'
17103
HAS_XORG_CONF_DIR_TRUE='#'
17104
HAS_XORG_CONF_DIR_FALSE=
17108
# Check whether --enable-unit-tests was given.
17109
if test "${enable_unit_tests+set}" = set; then :
17110
enableval=$enable_unit_tests; UNITTESTS=$enableval
17116
# If unittests aren't explicitly disabled, check for required support
17117
if test "x$UNITTESTS" != xno ; then
17118
# Check if linker supports -wrap, passed via compiler flags
17119
# When cross-compiling, reports no, since unit tests run from
17120
# "make check", so would be running on build machine, not target
17121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5
17122
$as_echo_n "checking whether the linker supports -wrap... " >&6; }
17123
save_LDFLAGS="$LDFLAGS"
17124
LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
17125
if test "$cross_compiling" = yes; then :
17126
linker_can_wrap="no"
17128
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129
/* end confdefs.h. */
17131
void __wrap_exit (int s)
17143
if ac_fn_c_try_run "$LINENO"; then :
17144
linker_can_wrap="yes"
17146
linker_can_wrap="no"
17148
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17149
conftest.$ac_objext conftest.beam conftest.$ac_ext
17152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5
17153
$as_echo "$linker_can_wrap" >&6; }
17154
LDFLAGS="$save_LDFLAGS"
17157
if test "x$UNITTESTS" = xauto; then
17158
if test "x$linker_can_wrap" = xyes; then
17164
if test "x$UNITTESTS" = xyes; then
17165
if test "x$linker_can_wrap" = xno; then
17166
as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5
17169
$as_echo "#define UNITTESTS 1" >>confdefs.h
17172
if test "x$UNITTESTS" = xyes; then
17174
UNITTESTS_FALSE='#'
17183
# -----------------------------------------------------------------------------
17185
ac_config_files="$ac_config_files Makefile conf/Makefile doc/Makefile doc/doxygen.conf src/Makefile man/Makefile include/Makefile tools/Makefile test/Makefile xorg-wacom.pc"
17187
cat >confcache <<\_ACEOF
17188
# This file is a shell script that caches the results of configure
17189
# tests run on this system so they can be shared between configure
17190
# scripts and configure runs, see configure's option --config-cache.
17191
# It is not useful on other systems. If it contains results you don't
17192
# want to keep, you may remove or edit it.
17194
# config.status only pays attention to the cache file if you give it
17195
# the --recheck option to rerun configure.
17197
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17198
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17199
# following values.
17203
# The following way of writing the cache mishandles newlines in values,
17204
# but we know of no workaround that is simple, portable, and efficient.
17205
# So, we kill variables containing newlines.
17206
# Ultrix sh set writes to stderr and can't be redirected directly,
17207
# and sets the high bit in the cache file unless we assign to the vars.
17209
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17210
eval ac_val=\$$ac_var
17214
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17215
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17218
_ | IFS | as_nl) ;; #(
17219
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17220
*) { eval $ac_var=; unset $ac_var;} ;;
17226
case $as_nl`(ac_space=' '; set) 2>&1` in #(
17227
*${as_nl}ac_space=\ *)
17228
# `set' does not quote correctly, so add quotes: double-quote
17229
# substitution turns \\\\ into \\, and sed turns \\ into \.
17232
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17235
# `set' quotes correctly as required by POSIX, so do not add quotes.
17236
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17245
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17247
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17249
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17250
if test -w "$cache_file"; then
17251
if test "x$cache_file" != "x/dev/null"; then
17252
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17253
$as_echo "$as_me: updating cache $cache_file" >&6;}
17254
if test ! -f "$cache_file" || test -h "$cache_file"; then
17255
cat confcache >"$cache_file"
17257
case $cache_file in #(
17259
mv -f confcache "$cache_file"$$ &&
17260
mv -f "$cache_file"$$ "$cache_file" ;; #(
17262
mv -f confcache "$cache_file" ;;
17267
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17268
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17273
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17274
# Let make expand exec_prefix.
17275
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17277
DEFS=-DHAVE_CONFIG_H
17282
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17283
# 1. Remove the extension, and $U if already installed.
17284
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17285
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17286
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17287
# will be set to the directory where LIBOBJS objects are built.
17288
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17289
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17291
LIBOBJS=$ac_libobjs
17293
LTLIBOBJS=$ac_ltlibobjs
17296
if test -n "$EXEEXT"; then
17298
am__EXEEXT_FALSE='#'
17300
am__EXEEXT_TRUE='#'
17304
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17305
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17306
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17309
as_fn_error $? "conditional \"AMDEP\" was never defined.
17310
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17313
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
17317
as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
17318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320
if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
17321
as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
17322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324
if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
17325
as_fn_error $? "conditional \"UNITTESTS\" was never defined.
17326
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17329
: "${CONFIG_STATUS=./config.status}"
17331
ac_clean_files_save=$ac_clean_files
17332
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17333
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17334
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17336
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17338
# Generated by $as_me.
17339
# Run this file to recreate the current configuration.
17340
# Compiler output produced by configure, useful for debugging
17341
# configure, is in config.log if it exists.
17344
ac_cs_recheck=false
17347
SHELL=\${CONFIG_SHELL-$SHELL}
17350
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17351
## -------------------- ##
17352
## M4sh Initialization. ##
17353
## -------------------- ##
17355
# Be more Bourne compatible
17356
DUALCASE=1; export DUALCASE # for MKS sh
17357
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17360
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17361
# is contrary to our usage. Disable this feature.
17362
alias -g '${1+"$@"}'='"$@"'
17363
setopt NO_GLOB_SUBST
17365
case `(set -o) 2>/dev/null` in #(
17377
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17378
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17379
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17380
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17381
# Prefer a ksh shell builtin over an external printf program on Solaris,
17382
# but without wasting forks for bash or zsh.
17383
if test -z "$BASH_VERSION$ZSH_VERSION" \
17384
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17385
as_echo='print -r --'
17386
as_echo_n='print -rn --'
17387
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17388
as_echo='printf %s\n'
17389
as_echo_n='printf %s'
17391
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17392
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17393
as_echo_n='/usr/ucb/echo -n'
17395
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17396
as_echo_n_body='eval
17400
expr "X$arg" : "X\\(.*\\)$as_nl";
17401
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17403
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17405
export as_echo_n_body
17406
as_echo_n='sh -c $as_echo_n_body as_echo'
17408
export as_echo_body
17409
as_echo='sh -c $as_echo_body as_echo'
17412
# The user is always right.
17413
if test "${PATH_SEPARATOR+set}" != set; then
17415
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17416
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17423
# We need space, tab and new line, in precisely that order. Quoting is
17424
# there to prevent editors from complaining about space-tab.
17425
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17426
# splitting by setting IFS to empty value.)
17429
# Find who we are. Look in the path if we contain no directory separator.
17432
*[\\/]* ) as_myself=$0 ;;
17433
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434
for as_dir in $PATH
17437
test -z "$as_dir" && as_dir=.
17438
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17444
# We did not find ourselves, most probably we were run as `sh COMMAND'
17445
# in which case we are not to be found in the path.
17446
if test "x$as_myself" = x; then
17449
if test ! -f "$as_myself"; then
17450
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17454
# Unset variables that we do not need and which cause bugs (e.g. in
17455
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17456
# suppresses any "Segmentation fault" message there. '((' could
17457
# trigger a bug in pdksh 5.2.14.
17458
for as_var in BASH_ENV ENV MAIL MAILPATH
17459
do eval test x\${$as_var+set} = xset \
17460
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17473
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17476
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17477
# ----------------------------------------
17478
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17479
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17480
# script with STATUS, using 1 if that was 0.
17483
as_status=$1; test $as_status -eq 0 && as_status=1
17485
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17486
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17488
$as_echo "$as_me: error: $2" >&2
17489
as_fn_exit $as_status
17493
# as_fn_set_status STATUS
17494
# -----------------------
17495
# Set $? to STATUS, without forking.
17496
as_fn_set_status ()
17499
} # as_fn_set_status
17501
# as_fn_exit STATUS
17502
# -----------------
17503
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17507
as_fn_set_status $1
17513
# Portably unset VAR.
17516
{ eval $1=; unset $1;}
17518
as_unset=as_fn_unset
17519
# as_fn_append VAR VALUE
17520
# ----------------------
17521
# Append the text in VALUE to the end of the definition contained in VAR. Take
17522
# advantage of any shell optimizations that allow amortized linear growth over
17523
# repeated appends, instead of the typical quadratic growth present in naive
17525
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17526
eval 'as_fn_append ()
17537
# as_fn_arith ARG...
17538
# ------------------
17539
# Perform arithmetic evaluation on the ARGs, and store the result in the
17540
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17541
# must be portable across $(()) and expr.
17542
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17543
eval 'as_fn_arith ()
17550
as_val=`expr "$@" || test $? -eq 1`
17555
if expr a : '\(a\)' >/dev/null 2>&1 &&
17556
test "X`expr 00001 : '.*\(...\)'`" = X001; then
17562
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17563
as_basename=basename
17568
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17574
as_me=`$as_basename -- "$0" ||
17575
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17576
X"$0" : 'X\(//\)$' \| \
17577
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17579
sed '/^.*\/\([^/][^/]*\)\/*$/{
17593
# Avoid depending upon Character Ranges.
17594
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17595
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17596
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17597
as_cr_digits='0123456789'
17598
as_cr_alnum=$as_cr_Letters$as_cr_digits
17600
ECHO_C= ECHO_N= ECHO_T=
17601
case `echo -n x` in #(((((
17603
case `echo 'xy\c'` in
17604
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
17606
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17613
rm -f conf$$ conf$$.exe conf$$.file
17614
if test -d conf$$.dir; then
17615
rm -f conf$$.dir/conf$$.file
17618
mkdir conf$$.dir 2>/dev/null
17620
if (echo >conf$$.file) 2>/dev/null; then
17621
if ln -s conf$$.file conf$$ 2>/dev/null; then
17623
# ... but there are two gotchas:
17624
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17625
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17626
# In both cases, we have to default to `cp -p'.
17627
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17629
elif ln conf$$.file conf$$ 2>/dev/null; then
17637
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17638
rmdir conf$$.dir 2>/dev/null
17643
# Create "$as_dir" as a directory, including parents if necessary.
17648
-*) as_dir=./$as_dir;;
17650
test -d "$as_dir" || eval $as_mkdir_p || {
17654
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17655
*) as_qdir=$as_dir;;
17657
as_dirs="'$as_qdir' $as_dirs"
17658
as_dir=`$as_dirname -- "$as_dir" ||
17659
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660
X"$as_dir" : 'X\(//\)[^/]' \| \
17661
X"$as_dir" : 'X\(//\)$' \| \
17662
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17663
$as_echo X"$as_dir" |
17664
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17668
/^X\(\/\/\)[^/].*/{
17681
test -d "$as_dir" && break
17683
test -z "$as_dirs" || eval "mkdir $as_dirs"
17684
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17688
if mkdir -p . 2>/dev/null; then
17689
as_mkdir_p='mkdir -p "$as_dir"'
17691
test -d ./-p && rmdir ./-p
17695
if test -x / >/dev/null 2>&1; then
17696
as_test_x='test -x'
17698
if ls -dL / >/dev/null 2>&1; then
17705
if test -d "$1"; then
17711
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17712
???[sx]*):;;*)false;;esac;fi
17716
as_executable_p=$as_test_x
17718
# Sed expression to map a string onto a valid CPP name.
17719
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17721
# Sed expression to map a string onto a valid variable name.
17722
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17726
## ----------------------------------- ##
17727
## Main body of $CONFIG_STATUS script. ##
17728
## ----------------------------------- ##
17730
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17732
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17733
# Save the log message, to keep $0 and so on meaningful, and to
17734
# report actual input values of CONFIG_FILES etc. instead of their
17735
# values after options handling.
17737
This file was extended by xf86-input-wacom $as_me 0.14.0, which was
17738
generated by GNU Autoconf 2.68. Invocation command line was
17740
CONFIG_FILES = $CONFIG_FILES
17741
CONFIG_HEADERS = $CONFIG_HEADERS
17742
CONFIG_LINKS = $CONFIG_LINKS
17743
CONFIG_COMMANDS = $CONFIG_COMMANDS
17746
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17751
case $ac_config_files in *"
17752
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17755
case $ac_config_headers in *"
17756
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17760
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17761
# Files that config.status was made for.
17762
config_files="$ac_config_files"
17763
config_headers="$ac_config_headers"
17764
config_commands="$ac_config_commands"
17768
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17770
\`$as_me' instantiates files and other configuration actions
17771
from templates according to the current configuration. Unless the files
17772
and actions are specified as TAGs, all are instantiated by default.
17774
Usage: $0 [OPTION]... [TAG]...
17776
-h, --help print this help, then exit
17777
-V, --version print version number and configuration settings, then exit
17778
--config print configuration, then exit
17779
-q, --quiet, --silent
17780
do not print progress messages
17781
-d, --debug don't remove temporary files
17782
--recheck update $as_me by reconfiguring in the same conditions
17783
--file=FILE[:TEMPLATE]
17784
instantiate the configuration file FILE
17785
--header=FILE[:TEMPLATE]
17786
instantiate the configuration header FILE
17788
Configuration files:
17791
Configuration headers:
17794
Configuration commands:
17797
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
17800
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17801
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17803
xf86-input-wacom config.status 0.14.0
17804
configured by $0, generated by GNU Autoconf 2.68,
17805
with options \\"\$ac_cs_config\\"
17807
Copyright (C) 2010 Free Software Foundation, Inc.
17808
This config.status script is free software; the Free Software Foundation
17809
gives unlimited permission to copy, distribute and modify it."
17816
test -n "\$AWK" || AWK=awk
17819
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17820
# The default lists apply if the user does not specify any file.
17826
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17827
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17831
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17843
# Handling of the options.
17844
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17846
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17847
$as_echo "$ac_cs_version"; exit ;;
17848
--config | --confi | --conf | --con | --co | --c )
17849
$as_echo "$ac_cs_config"; exit ;;
17850
--debug | --debu | --deb | --de | --d | -d )
17852
--file | --fil | --fi | --f )
17855
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856
'') as_fn_error $? "missing file argument" ;;
17858
as_fn_append CONFIG_FILES " '$ac_optarg'"
17859
ac_need_defaults=false;;
17860
--header | --heade | --head | --hea )
17863
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17865
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17866
ac_need_defaults=false;;
17868
# Conflict between --help and --header
17869
as_fn_error $? "ambiguous option: \`$1'
17870
Try \`$0 --help' for more information.";;
17871
--help | --hel | -h )
17872
$as_echo "$ac_cs_usage"; exit ;;
17873
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
17874
| -silent | --silent | --silen | --sile | --sil | --si | --s)
17877
# This is an error.
17878
-*) as_fn_error $? "unrecognized option: \`$1'
17879
Try \`$0 --help' for more information." ;;
17881
*) as_fn_append ac_config_targets " $1"
17882
ac_need_defaults=false ;;
17888
ac_configure_extra_args=
17890
if $ac_cs_silent; then
17892
ac_configure_extra_args="$ac_configure_extra_args --silent"
17896
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897
if \$ac_cs_recheck; then
17898
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17900
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17901
CONFIG_SHELL='$SHELL'
17902
export CONFIG_SHELL
17907
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17911
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17912
## Running $as_me. ##
17918
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17925
# The HP-UX ksh and POSIX shell print the target directory to stdout
17926
# if CDPATH is set.
17927
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17929
sed_quote_subst='$sed_quote_subst'
17930
double_quote_subst='$double_quote_subst'
17931
delay_variable_subst='$delay_variable_subst'
17932
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17933
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17934
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17935
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17936
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17937
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17938
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17939
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17940
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17941
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17942
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17943
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17944
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17945
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17946
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17947
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17948
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17949
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17950
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17951
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17952
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17953
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17954
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17955
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17956
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17957
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17958
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17959
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17960
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17961
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17962
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17963
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17964
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17965
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17966
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17967
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17968
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17969
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17970
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17971
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17972
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17973
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17974
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17975
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17976
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17977
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17978
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17979
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17980
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17981
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17982
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17983
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17984
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17985
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17986
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17987
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17988
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17989
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17990
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17991
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17992
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17993
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17994
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17995
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17996
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17997
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17998
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17999
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18000
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18001
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18002
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18003
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18004
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18005
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18006
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18007
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18008
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18009
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18010
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18011
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18012
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18013
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18014
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18015
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18016
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18017
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18018
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18019
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18020
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18021
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18022
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18023
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18024
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18025
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18026
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18027
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18028
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18029
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18030
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18031
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18032
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18033
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18034
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18035
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18036
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18037
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18038
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18039
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18040
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18041
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18042
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18043
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18044
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18045
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18046
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18047
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18048
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18049
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18050
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18051
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18052
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18053
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18054
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18055
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18056
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18057
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18058
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18059
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18060
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18061
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18064
LTCFLAGS='$LTCFLAGS'
18065
compiler='$compiler_DEFAULT'
18067
# A function that is used when there is no print builtin or printf.
18068
func_fallback_echo ()
18070
eval 'cat <<_LTECHO_EOF
18075
# Quote evaled strings.
18090
deplibs_check_method \
18095
sharedlib_from_linklib_cmd \
18098
archiver_list_spec \
18104
lt_cv_sys_global_symbol_pipe \
18105
lt_cv_sys_global_symbol_to_cdecl \
18106
lt_cv_sys_global_symbol_to_c_name_address \
18107
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18108
nm_file_list_spec \
18109
lt_prog_compiler_no_builtin_flag \
18110
lt_prog_compiler_pic \
18111
lt_prog_compiler_wl \
18112
lt_prog_compiler_static \
18113
lt_cv_prog_compiler_c_o \
18122
export_dynamic_flag_spec \
18123
whole_archive_flag_spec \
18124
compiler_needs_object \
18126
allow_undefined_flag \
18127
no_undefined_flag \
18128
hardcode_libdir_flag_spec \
18129
hardcode_libdir_separator \
18133
variables_saved_for_relink \
18135
library_names_spec \
18137
install_override_mode \
18141
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18142
*[\\\\\\\`\\"\\\$]*)
18143
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18146
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18151
# Double-quote double-evaled strings.
18152
for var in reload_cmds \
18153
old_postinstall_cmds \
18154
old_postuninstall_cmds \
18156
extract_expsyms_cmds \
18157
old_archive_from_new_cmds \
18158
old_archive_from_expsyms_cmds \
18160
archive_expsym_cmds \
18162
module_expsym_cmds \
18163
export_symbols_cmds \
18167
postuninstall_cmds \
18169
sys_lib_search_path_spec \
18170
sys_lib_dlsearch_path_spec; do
18171
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18172
*[\\\\\\\`\\"\\\$]*)
18173
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18176
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18181
ac_aux_dir='$ac_aux_dir'
18182
xsi_shell='$xsi_shell'
18183
lt_shell_append='$lt_shell_append'
18185
# See if we are running on zsh, and set the options which allow our
18186
# commands through without removal of \ escapes INIT.
18187
if test -n "\${ZSH_VERSION+set}" ; then
18188
setopt NO_GLOB_SUBST
18194
TIMESTAMP='$TIMESTAMP'
18203
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205
# Handling of arguments.
18206
for ac_config_target in $ac_config_targets
18208
case $ac_config_target in
18209
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18210
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18211
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18212
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18213
"conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18214
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18215
"doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
18216
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18217
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18218
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18219
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18220
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18221
"xorg-wacom.pc") CONFIG_FILES="$CONFIG_FILES xorg-wacom.pc" ;;
18223
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18228
# If the user did not use the arguments to specify the items to instantiate,
18229
# then the envvar interface is used. Set only those that are not.
18230
# We use the long form for the default assignment because of an extremely
18231
# bizarre bug on SunOS 4.1.3.
18232
if $ac_need_defaults; then
18233
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18234
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18235
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18238
# Have a temporary directory for convenience. Make it in the build tree
18239
# simply because there is no reason against having it here, and in addition,
18240
# creating and moving files from /tmp can sometimes cause problems.
18241
# Hook for its removal unless debugging.
18242
# Note that there is a small window in which the directory will not be cleaned:
18243
# after its creation but before its name has been assigned to `$tmp'.
18247
trap 'exit_status=$?
18248
: "${ac_tmp:=$tmp}"
18249
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18251
trap 'as_fn_exit 1' 1 2 13 15
18253
# Create a (secure) tmp directory for tmp files.
18256
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18260
tmp=./conf$$-$RANDOM
18261
(umask 077 && mkdir "$tmp")
18262
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18265
# Set up the scripts for CONFIG_FILES section.
18266
# No need to generate them if there are no CONFIG_FILES.
18267
# This happens for instance with `./config.status config.h'.
18268
if test -n "$CONFIG_FILES"; then
18271
ac_cr=`echo X | tr X '\015'`
18272
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18273
# But we know of no other shell where ac_cr would be empty at this
18274
# point, so we can use a bashism as a fallback.
18275
if test "x$ac_cr" = x; then
18276
eval ac_cr=\$\'\\r\'
18278
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18279
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18282
ac_cs_awk_cr=$ac_cr
18285
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18290
echo "cat >conf$$subs.awk <<_ACEOF" &&
18291
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18293
} >conf$$subs.sh ||
18294
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18295
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18297
for ac_last_try in false false false false false :; do
18298
. ./conf$$subs.sh ||
18299
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18301
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18302
if test $ac_delim_n = $ac_delim_num; then
18304
elif $ac_last_try; then
18305
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18307
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18310
rm -f conf$$subs.sh
18312
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18313
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18317
s/^/S["/; s/!.*/"]=/
18327
s/\(.\{148\}\)..*/\1/
18329
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18334
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18341
s/\(.\{148\}\)..*/\1/
18343
s/["\\]/\\&/g; s/^/"/; s/$/"/
18347
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18352
' <conf$$subs.awk | sed '
18357
' >>$CONFIG_STATUS || ac_write_fail=1
18358
rm -f conf$$subs.awk
18359
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18361
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18362
for (key in S) S_is_set[key] = 1
18368
nfields = split(line, field, "@")
18370
len = length(field[1])
18371
for (i = 2; i < nfields; i++) {
18373
keylen = length(key)
18374
if (S_is_set[key]) {
18376
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18377
len += length(value) + length(field[++i])
18388
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18390
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18393
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18394
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18397
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18398
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18399
# trailing colons and then remove the whole line if VPATH becomes empty
18400
# (actually we leave an empty line to preserve line numbers).
18401
if test "x$srcdir" = x.; then
18402
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18420
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421
fi # test -n "$CONFIG_FILES"
18423
# Set up the scripts for CONFIG_HEADERS section.
18424
# No need to generate them if there are no CONFIG_HEADERS.
18425
# This happens for instance with `./config.status Makefile'.
18426
if test -n "$CONFIG_HEADERS"; then
18427
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18431
# Transform confdefs.h into an awk script `defines.awk', embedded as
18432
# here-document in config.status, that substitutes the proper values into
18433
# config.h.in to produce config.h.
18435
# Create a delimiter string that does not exist in confdefs.h, to ease
18436
# handling of long lines.
18438
for ac_last_try in false false :; do
18439
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18440
if test -z "$ac_tt"; then
18442
elif $ac_last_try; then
18443
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18445
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18449
# For the awk script, D is an array of macro values keyed by name,
18450
# likewise P contains macro parameters if any. Preserve backslash
18451
# newline sequences.
18453
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18455
s/.\{148\}/&'"$ac_delim"'/g
18458
s/^[ ]*#[ ]*define[ ][ ]*/ /
18465
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18467
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18471
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18472
D["\1"]=" \3\\\\\\n"\\/p
18474
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18479
s/.\{148\}/&'"$ac_delim"'/g
18484
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18487
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18489
' <confdefs.h | sed '
18490
s/'"$ac_delim"'/"\\\
18491
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18493
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494
for (key in D) D_is_set[key] = 1
18497
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18499
split(line, arg, " ")
18500
if (arg[1] == "#") {
18504
defundef = substr(arg[1], 2)
18507
split(mac1, mac2, "(") #)
18509
prefix = substr(line, 1, index(line, defundef) - 1)
18510
if (D_is_set[macro]) {
18511
# Preserve the white space surrounding the "#".
18512
print prefix "define", macro P[macro] D[macro]
18515
# Replace #undef with comments. This is necessary, for example,
18516
# in the case of _POSIX_SOURCE, which is predefined and required
18517
# on some systems where configure will not decide to define it.
18518
if (defundef == "undef") {
18519
print "/*", prefix defundef, macro, "*/"
18527
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18528
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18529
fi # test -n "$CONFIG_HEADERS"
18532
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18537
:[FHLC]) ac_mode=$ac_tag; continue;;
18539
case $ac_mode$ac_tag in
18541
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18542
:[FH]-) ac_tag=-:-;;
18543
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18560
-) ac_f="$ac_tmp/stdin";;
18561
*) # Look for the file first in the build tree, then in the source tree
18562
# (if the path is not absolute). The absolute path cannot be DOS-style,
18563
# because $ac_f cannot contain `:'.
18567
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18569
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18571
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18572
as_fn_append ac_file_inputs " '$ac_f'"
18575
# Let's still pretend it is `configure' which instantiates (i.e., don't
18576
# use $as_me), people would be surprised to read:
18577
# /* config.h. Generated by config.status. */
18578
configure_input='Generated from '`
18579
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18581
if test x"$ac_file" != x-; then
18582
configure_input="$ac_file. $configure_input"
18583
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18584
$as_echo "$as_me: creating $ac_file" >&6;}
18586
# Neutralize special characters interpreted by sed in replacement strings.
18587
case $configure_input in #(
18588
*\&* | *\|* | *\\* )
18589
ac_sed_conf_input=`$as_echo "$configure_input" |
18590
sed 's/[\\\\&|]/\\\\&/g'`;; #(
18591
*) ac_sed_conf_input=$configure_input;;
18595
*:-:* | *:-) cat >"$ac_tmp/stdin" \
18596
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18601
ac_dir=`$as_dirname -- "$ac_file" ||
18602
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18603
X"$ac_file" : 'X\(//\)[^/]' \| \
18604
X"$ac_file" : 'X\(//\)$' \| \
18605
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18606
$as_echo X"$ac_file" |
18607
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18611
/^X\(\/\/\)[^/].*/{
18624
as_dir="$ac_dir"; as_fn_mkdir_p
18628
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18630
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18631
# A ".." for each directory in $ac_dir_suffix.
18632
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18633
case $ac_top_builddir_sub in
18634
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18635
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18638
ac_abs_top_builddir=$ac_pwd
18639
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18640
# for backward compatibility:
18641
ac_top_builddir=$ac_top_build_prefix
18644
.) # We are building in place.
18646
ac_top_srcdir=$ac_top_builddir_sub
18647
ac_abs_top_srcdir=$ac_pwd ;;
18648
[\\/]* | ?:[\\/]* ) # Absolute name.
18649
ac_srcdir=$srcdir$ac_dir_suffix;
18650
ac_top_srcdir=$srcdir
18651
ac_abs_top_srcdir=$srcdir ;;
18652
*) # Relative name.
18653
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18654
ac_top_srcdir=$ac_top_build_prefix$srcdir
18655
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18657
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18667
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18668
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18670
ac_MKDIR_P=$MKDIR_P
18672
[\\/$]* | ?:[\\/]* ) ;;
18673
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18677
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678
# If the template does not know about datarootdir, expand it.
18679
# FIXME: This hack should be removed a few years after 2.60.
18680
ac_datarootdir_hack=; ac_datarootdir_seen=
18691
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18692
*datarootdir*) ac_datarootdir_seen=yes;;
18693
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18695
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18697
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698
ac_datarootdir_hack='
18699
s&@datadir@&$datadir&g
18700
s&@docdir@&$docdir&g
18701
s&@infodir@&$infodir&g
18702
s&@localedir@&$localedir&g
18703
s&@mandir@&$mandir&g
18704
s&\\\${datarootdir}&$datarootdir&g' ;;
18708
# Neutralize VPATH when `$srcdir' = `.'.
18709
# Shell code in configure.ac might set extrasub.
18710
# FIXME: do we really want to maintain this feature?
18711
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18712
ac_sed_extra="$ac_vpsub
18715
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18717
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18718
s|@configure_input@|$ac_sed_conf_input|;t t
18719
s&@top_builddir@&$ac_top_builddir_sub&;t t
18720
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18721
s&@srcdir@&$ac_srcdir&;t t
18722
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18723
s&@top_srcdir@&$ac_top_srcdir&;t t
18724
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18725
s&@builddir@&$ac_builddir&;t t
18726
s&@abs_builddir@&$ac_abs_builddir&;t t
18727
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18728
s&@INSTALL@&$ac_INSTALL&;t t
18729
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18730
$ac_datarootdir_hack
18732
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18733
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18735
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18736
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18737
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18738
"$ac_tmp/out"`; test -z "$ac_out"; } &&
18739
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18740
which seems to be undefined. Please make sure it is defined" >&5
18741
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18742
which seems to be undefined. Please make sure it is defined" >&2;}
18744
rm -f "$ac_tmp/stdin"
18746
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18747
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18749
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18755
if test x"$ac_file" != x-; then
18757
$as_echo "/* $configure_input */" \
18758
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18759
} >"$ac_tmp/config.h" \
18760
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18761
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18762
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18763
$as_echo "$as_me: $ac_file is unchanged" >&6;}
18766
mv "$ac_tmp/config.h" "$ac_file" \
18767
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18770
$as_echo "/* $configure_input */" \
18771
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18772
|| as_fn_error $? "could not create -" "$LINENO" 5
18774
# Compute "$ac_file"'s index in $config_headers.
18777
for _am_header in $config_headers :; do
18778
case $_am_header in
18779
$_am_arg | $_am_arg:* )
18782
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
18785
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18786
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18787
X"$_am_arg" : 'X\(//\)[^/]' \| \
18788
X"$_am_arg" : 'X\(//\)$' \| \
18789
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18790
$as_echo X"$_am_arg" |
18791
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18795
/^X\(\/\/\)[^/].*/{
18807
s/.*/./; q'`/stamp-h$_am_stamp_count
18810
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18811
$as_echo "$as_me: executing $ac_file commands" >&6;}
18816
case $ac_file$ac_mode in
18817
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18818
# Autoconf 2.62 quotes --file arguments for eval, but not when files
18819
# are listed without --file. Let's play safe and only enable the eval
18820
# if we detect the quoting.
18821
case $CONFIG_FILES in
18822
*\'*) eval set x "$CONFIG_FILES" ;;
18823
*) set x $CONFIG_FILES ;;
18828
# Strip MF so we end up with the name of the file.
18829
mf=`echo "$mf" | sed -e 's/:.*$//'`
18830
# Check whether this is an Automake generated Makefile or not.
18831
# We used to match only the files named `Makefile.in', but
18832
# some people rename them; so instead we look at the file content.
18833
# Grep'ing the first line is not enough: some people post-process
18834
# each Makefile.in and add a new line on top of each file to say so.
18835
# Grep'ing the whole file is not good either: AIX grep has a line
18836
# limit of 2048, but all sed's we know have understand at least 4000.
18837
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18838
dirpart=`$as_dirname -- "$mf" ||
18839
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840
X"$mf" : 'X\(//\)[^/]' \| \
18841
X"$mf" : 'X\(//\)$' \| \
18842
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18844
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18848
/^X\(\/\/\)[^/].*/{
18864
# Extract the definition of DEPDIR, am__include, and am__quote
18865
# from the Makefile without running `make'.
18866
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18867
test -z "$DEPDIR" && continue
18868
am__include=`sed -n 's/^am__include = //p' < "$mf"`
18869
test -z "am__include" && continue
18870
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18871
# When using ansi2knr, U may be empty or an underscore; expand it
18872
U=`sed -n 's/^U = //p' < "$mf"`
18873
# Find all dependency output files, they are included files with
18874
# $(DEPDIR) in their names. We invoke sed twice because it is the
18875
# simplest approach to changing $(DEPDIR) to its actual value in the
18877
for file in `sed -n "
18878
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18879
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18880
# Make sure the directory exists.
18881
test -f "$dirpart/$file" && continue
18882
fdir=`$as_dirname -- "$file" ||
18883
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18884
X"$file" : 'X\(//\)[^/]' \| \
18885
X"$file" : 'X\(//\)$' \| \
18886
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18887
$as_echo X"$file" |
18888
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18892
/^X\(\/\/\)[^/].*/{
18905
as_dir=$dirpart/$fdir; as_fn_mkdir_p
18906
# echo "creating $dirpart/$file"
18907
echo '# dummy' > "$dirpart/$file"
18914
# See if we are running on zsh, and set the options which allow our
18915
# commands through without removal of \ escapes.
18916
if test -n "${ZSH_VERSION+set}" ; then
18917
setopt NO_GLOB_SUBST
18920
cfgfile="${ofile}T"
18921
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18924
cat <<_LT_EOF >> "$cfgfile"
18927
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18928
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18929
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18930
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18932
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18933
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18935
# Written by Gordon Matzigkeit, 1996
18937
# This file is part of GNU Libtool.
18939
# GNU Libtool is free software; you can redistribute it and/or
18940
# modify it under the terms of the GNU General Public License as
18941
# published by the Free Software Foundation; either version 2 of
18942
# the License, or (at your option) any later version.
18944
# As a special exception to the GNU General Public License,
18945
# if you distribute this file as part of a program or library that
18946
# is built using GNU Libtool, you may include this file under the
18947
# same distribution terms that you use for the rest of that program.
18949
# GNU Libtool is distributed in the hope that it will be useful,
18950
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18951
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18952
# GNU General Public License for more details.
18954
# You should have received a copy of the GNU General Public License
18955
# along with GNU Libtool; see the file COPYING. If not, a copy
18956
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18957
# obtained by writing to the Free Software Foundation, Inc.,
18958
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18961
# The names of the tagged configurations supported by this script.
18964
# ### BEGIN LIBTOOL CONFIG
18966
# Whether or not to build static libraries.
18967
build_old_libs=$enable_static
18969
# Which release of libtool.m4 was used?
18970
macro_version=$macro_version
18971
macro_revision=$macro_revision
18973
# Whether or not to build shared libraries.
18974
build_libtool_libs=$enable_shared
18976
# What type of objects to build.
18979
# Whether or not to optimize for fast installation.
18980
fast_install=$enable_fast_install
18982
# Shell to use when invoking shell scripts.
18985
# An echo program that protects backslashes.
18988
# The PATH separator for the build system.
18989
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18992
host_alias=$host_alias
18996
# The build system.
18997
build_alias=$build_alias
19001
# A sed program that does not truncate output.
19004
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19005
Xsed="\$SED -e 1s/^X//"
19007
# A grep program that handles long lines.
19013
# A literal string matcher.
19016
# A BSD- or MS-compatible name lister.
19019
# Whether we need soft or hard links.
19022
# What is the maximum length of a command?
19023
max_cmd_len=$max_cmd_len
19025
# Object file suffix (normally "o").
19028
# Executable file suffix (normally "").
19031
# whether the shell understands "unset".
19034
# turn spaces into newlines.
19037
# turn newlines into spaces.
19040
# convert \$build file names to \$host format.
19041
to_host_file_cmd=$lt_cv_to_host_file_cmd
19043
# convert \$build files to toolchain format.
19044
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19046
# An object symbol dumper.
19047
OBJDUMP=$lt_OBJDUMP
19049
# Method to check whether dependent libraries are shared objects.
19050
deplibs_check_method=$lt_deplibs_check_method
19052
# Command to use when deplibs_check_method = "file_magic".
19053
file_magic_cmd=$lt_file_magic_cmd
19055
# How to find potential files when deplibs_check_method = "file_magic".
19056
file_magic_glob=$lt_file_magic_glob
19058
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19059
want_nocaseglob=$lt_want_nocaseglob
19061
# DLL creation program.
19062
DLLTOOL=$lt_DLLTOOL
19064
# Command to associate shared and link libraries.
19065
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19070
# Flags to create an archive.
19071
AR_FLAGS=$lt_AR_FLAGS
19073
# How to feed a file listing to the archiver.
19074
archiver_list_spec=$lt_archiver_list_spec
19076
# A symbol stripping program.
19079
# Commands used to install an old-style archive.
19081
old_postinstall_cmds=$lt_old_postinstall_cmds
19082
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19084
# Whether to use a lock for old archive extraction.
19085
lock_old_archive_extraction=$lock_old_archive_extraction
19090
# LTCC compiler flags.
19091
LTCFLAGS=$lt_CFLAGS
19093
# Take the output of nm and produce a listing of raw symbols and C names.
19094
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19096
# Transform the output of nm in a proper C declaration.
19097
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19099
# Transform the output of nm in a C name address pair.
19100
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19102
# Transform the output of nm in a C name address pair when lib prefix is needed.
19103
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19105
# Specify filename containing input files for \$NM.
19106
nm_file_list_spec=$lt_nm_file_list_spec
19108
# The root where to search for dependent libraries,and in which our libraries should be installed.
19109
lt_sysroot=$lt_sysroot
19111
# The name of the directory that contains temporary libtool files.
19114
# Used to examine libraries when file_magic_cmd begins with "file".
19115
MAGIC_CMD=$MAGIC_CMD
19117
# Must we lock files when doing compilation?
19118
need_locks=$lt_need_locks
19121
MANIFEST_TOOL=$lt_MANIFEST_TOOL
19123
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19124
DSYMUTIL=$lt_DSYMUTIL
19126
# Tool to change global to local symbols on Mac OS X.
19129
# Tool to manipulate fat objects and archives on Mac OS X.
19132
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19135
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19136
OTOOL64=$lt_OTOOL64
19138
# Old archive suffix (normally "a").
19141
# Shared library suffix (normally ".so").
19142
shrext_cmds=$lt_shrext_cmds
19144
# The commands to extract the exported symbol list from a shared archive.
19145
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19147
# Variables whose values should be saved in libtool wrapper scripts and
19148
# restored at link time.
19149
variables_saved_for_relink=$lt_variables_saved_for_relink
19151
# Do we need the "lib" prefix for modules?
19152
need_lib_prefix=$need_lib_prefix
19154
# Do we need a version for libraries?
19155
need_version=$need_version
19157
# Library versioning type.
19158
version_type=$version_type
19160
# Shared library runtime path variable.
19161
runpath_var=$runpath_var
19163
# Shared library path variable.
19164
shlibpath_var=$shlibpath_var
19166
# Is shlibpath searched before the hard-coded library search path?
19167
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19169
# Format of library name prefix.
19170
libname_spec=$lt_libname_spec
19172
# List of archive names. First name is the real one, the rest are links.
19173
# The last name is the one that the linker finds with -lNAME
19174
library_names_spec=$lt_library_names_spec
19176
# The coded name of the library, if different from the real name.
19177
soname_spec=$lt_soname_spec
19179
# Permission mode override for installation of shared libraries.
19180
install_override_mode=$lt_install_override_mode
19182
# Command to use after installation of a shared archive.
19183
postinstall_cmds=$lt_postinstall_cmds
19185
# Command to use after uninstallation of a shared archive.
19186
postuninstall_cmds=$lt_postuninstall_cmds
19188
# Commands used to finish a libtool library installation in a directory.
19189
finish_cmds=$lt_finish_cmds
19191
# As "finish_cmds", except a single script fragment to be evaled but
19193
finish_eval=$lt_finish_eval
19195
# Whether we should hardcode library paths into libraries.
19196
hardcode_into_libs=$hardcode_into_libs
19198
# Compile-time system search path for libraries.
19199
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19201
# Run-time system search path for libraries.
19202
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19204
# Whether dlopen is supported.
19205
dlopen_support=$enable_dlopen
19207
# Whether dlopen of programs is supported.
19208
dlopen_self=$enable_dlopen_self
19210
# Whether dlopen of statically linked programs is supported.
19211
dlopen_self_static=$enable_dlopen_self_static
19213
# Commands to strip libraries.
19214
old_striplib=$lt_old_striplib
19215
striplib=$lt_striplib
19218
# The linker used to build libraries.
19221
# How to create reloadable object files.
19222
reload_flag=$lt_reload_flag
19223
reload_cmds=$lt_reload_cmds
19225
# Commands used to build an old-style archive.
19226
old_archive_cmds=$lt_old_archive_cmds
19228
# A language specific compiler.
19231
# Is the compiler the GNU compiler?
19234
# Compiler flag to turn off builtin functions.
19235
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19237
# Additional compiler flags for building library objects.
19238
pic_flag=$lt_lt_prog_compiler_pic
19240
# How to pass a linker flag through the compiler.
19241
wl=$lt_lt_prog_compiler_wl
19243
# Compiler flag to prevent dynamic linking.
19244
link_static_flag=$lt_lt_prog_compiler_static
19246
# Does compiler simultaneously support -c and -o options?
19247
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19249
# Whether or not to add -lc for building shared libraries.
19250
build_libtool_need_lc=$archive_cmds_need_lc
19252
# Whether or not to disallow shared libs when runtime libs are static.
19253
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19255
# Compiler flag to allow reflexive dlopens.
19256
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19258
# Compiler flag to generate shared objects directly from archives.
19259
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19261
# Whether the compiler copes with passing no objects directly.
19262
compiler_needs_object=$lt_compiler_needs_object
19264
# Create an old-style archive from a shared archive.
19265
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19267
# Create a temporary old-style archive to link instead of a shared archive.
19268
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19270
# Commands used to build a shared archive.
19271
archive_cmds=$lt_archive_cmds
19272
archive_expsym_cmds=$lt_archive_expsym_cmds
19274
# Commands used to build a loadable module if different from building
19275
# a shared archive.
19276
module_cmds=$lt_module_cmds
19277
module_expsym_cmds=$lt_module_expsym_cmds
19279
# Whether we are building with GNU ld or not.
19280
with_gnu_ld=$lt_with_gnu_ld
19282
# Flag that allows shared libraries with undefined symbols to be built.
19283
allow_undefined_flag=$lt_allow_undefined_flag
19285
# Flag that enforces no undefined symbols.
19286
no_undefined_flag=$lt_no_undefined_flag
19288
# Flag to hardcode \$libdir into a binary during linking.
19289
# This must work even if \$libdir does not exist
19290
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19292
# Whether we need a single "-rpath" flag with a separated argument.
19293
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19295
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19296
# DIR into the resulting binary.
19297
hardcode_direct=$hardcode_direct
19299
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19300
# DIR into the resulting binary and the resulting library dependency is
19301
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19302
# library is relocated.
19303
hardcode_direct_absolute=$hardcode_direct_absolute
19305
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19306
# into the resulting binary.
19307
hardcode_minus_L=$hardcode_minus_L
19309
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19310
# into the resulting binary.
19311
hardcode_shlibpath_var=$hardcode_shlibpath_var
19313
# Set to "yes" if building a shared library automatically hardcodes DIR
19314
# into the library and all subsequent libraries and executables linked
19316
hardcode_automatic=$hardcode_automatic
19318
# Set to yes if linker adds runtime paths of dependent libraries
19319
# to runtime path list.
19320
inherit_rpath=$inherit_rpath
19322
# Whether libtool must link a program against all its dependency libraries.
19323
link_all_deplibs=$link_all_deplibs
19325
# Set to "yes" if exported symbols are required.
19326
always_export_symbols=$always_export_symbols
19328
# The commands to list exported symbols.
19329
export_symbols_cmds=$lt_export_symbols_cmds
19331
# Symbols that should not be listed in the preloaded symbols.
19332
exclude_expsyms=$lt_exclude_expsyms
19334
# Symbols that must always be exported.
19335
include_expsyms=$lt_include_expsyms
19337
# Commands necessary for linking programs (against libraries) with templates.
19338
prelink_cmds=$lt_prelink_cmds
19340
# Commands necessary for finishing linking programs.
19341
postlink_cmds=$lt_postlink_cmds
19343
# Specify filename containing input files.
19344
file_list_spec=$lt_file_list_spec
19346
# How to hardcode a shared library path into an executable.
19347
hardcode_action=$hardcode_action
19349
# ### END LIBTOOL CONFIG
19355
cat <<\_LT_EOF >> "$cfgfile"
19356
# AIX sometimes has problems with the GCC collect2 program. For some
19357
# reason, if we set the COLLECT_NAMES environment variable, the problems
19358
# vanish in a puff of smoke.
19359
if test "X${COLLECT_NAMES+set}" != Xset; then
19361
export COLLECT_NAMES
19368
ltmain="$ac_aux_dir/ltmain.sh"
19371
# We use sed instead of cat because bash on DJGPP gets confused if
19372
# if finds mixed CR/LF and LF-only lines. Since sed operates in
19373
# text mode, it properly converts lines to CR/LF. This bash problem
19374
# is reportedly fixed, but why not run on old versions too?
19375
sed '$q' "$ltmain" >> "$cfgfile" \
19376
|| (rm -f "$cfgfile"; exit 1)
19378
if test x"$xsi_shell" = xyes; then
19379
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19383
\ */*) func_dirname_result="${1%/*}${2}" ;;\
19384
\ * ) func_dirname_result="${3}" ;;\
19386
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19387
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19388
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19389
test 0 -eq $? || _lt_function_replace_fail=:
19392
sed -e '/^func_basename ()$/,/^} # func_basename /c\
19395
\ func_basename_result="${1##*/}"\
19396
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19397
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19398
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19399
test 0 -eq $? || _lt_function_replace_fail=:
19402
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19403
func_dirname_and_basename ()\
19406
\ */*) func_dirname_result="${1%/*}${2}" ;;\
19407
\ * ) func_dirname_result="${3}" ;;\
19409
\ func_basename_result="${1##*/}"\
19410
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19411
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19412
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19413
test 0 -eq $? || _lt_function_replace_fail=:
19416
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19419
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19420
\ # positional parameters, so assign one to ordinary parameter first.\
19421
\ func_stripname_result=${3}\
19422
\ func_stripname_result=${func_stripname_result#"${1}"}\
19423
\ func_stripname_result=${func_stripname_result%"${2}"}\
19424
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19425
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19426
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19427
test 0 -eq $? || _lt_function_replace_fail=:
19430
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19431
func_split_long_opt ()\
19433
\ func_split_long_opt_name=${1%%=*}\
19434
\ func_split_long_opt_arg=${1#*=}\
19435
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19436
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19437
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19438
test 0 -eq $? || _lt_function_replace_fail=:
19441
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19442
func_split_short_opt ()\
19444
\ func_split_short_opt_arg=${1#??}\
19445
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19446
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19447
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19448
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19449
test 0 -eq $? || _lt_function_replace_fail=:
19452
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19456
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19457
\ *) func_lo2o_result=${1} ;;\
19459
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19460
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19461
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19462
test 0 -eq $? || _lt_function_replace_fail=:
19465
sed -e '/^func_xform ()$/,/^} # func_xform /c\
19468
func_xform_result=${1%.*}.lo\
19469
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19470
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19471
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19472
test 0 -eq $? || _lt_function_replace_fail=:
19475
sed -e '/^func_arith ()$/,/^} # func_arith /c\
19478
func_arith_result=$(( $* ))\
19479
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19480
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19481
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19482
test 0 -eq $? || _lt_function_replace_fail=:
19485
sed -e '/^func_len ()$/,/^} # func_len /c\
19488
func_len_result=${#1}\
19489
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19490
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19491
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19492
test 0 -eq $? || _lt_function_replace_fail=:
19496
if test x"$lt_shell_append" = xyes; then
19497
sed -e '/^func_append ()$/,/^} # func_append /c\
19500
eval "${1}+=\\${2}"\
19501
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19502
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19503
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19504
test 0 -eq $? || _lt_function_replace_fail=:
19507
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19508
func_append_quoted ()\
19510
\ func_quote_for_eval "${2}"\
19511
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19512
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19513
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19514
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19515
test 0 -eq $? || _lt_function_replace_fail=:
19518
# Save a `func_append' function call where possible by direct use of '+='
19519
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19520
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19521
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19522
test 0 -eq $? || _lt_function_replace_fail=:
19524
# Save a `func_append' function call even when '+=' is not available
19525
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19526
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19527
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19528
test 0 -eq $? || _lt_function_replace_fail=:
19531
if test x"$_lt_function_replace_fail" = x":"; then
19532
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19533
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19537
mv -f "$cfgfile" "$ofile" ||
19538
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19549
ac_clean_files=$ac_clean_files_save
19551
test $ac_write_fail = 0 ||
19552
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19555
# configure is writing to config.log, and then calls config.status.
19556
# config.status does its own redirection, appending to config.log.
19557
# Unfortunately, on DOS this fails, as config.log is still kept open
19558
# by configure, so config.status won't be able to write to it; its
19559
# output is simply discarded. So we exec the FD to /dev/null,
19560
# effectively closing config.log, so it can be properly (re)opened and
19561
# appended to by config.status. When coming back to configure, we
19562
# need to make the FD available again.
19563
if test "$no_create" != yes; then
19565
ac_config_status_args=
19566
test "$silent" = yes &&
19567
ac_config_status_args="$ac_config_status_args --quiet"
19569
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19571
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19572
# would make configure fail if this is the last instruction.
19573
$ac_cs_success || as_fn_exit 1
19575
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19576
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19577
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}