2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for xf86-input-mouse 1.9.0.
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
306
# as_fn_set_status STATUS
307
# -----------------------
308
# Set $? to STATUS, without forking.
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Create "$as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
# as_fn_executable_p FILE
373
# -----------------------
374
# Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} # as_fn_executable_p
379
# as_fn_append VAR VALUE
380
# ----------------------
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
382
# advantage of any shell optimizations that allow amortized linear growth over
383
# repeated appends, instead of the typical quadratic growth present in naive
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
401
# must be portable across $(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
416
# ----------------------------------------
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
# script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in #(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='xf86-input-mouse'
593
PACKAGE_TARNAME='xf86-input-mouse'
594
PACKAGE_VERSION='1.9.0'
595
PACKAGE_STRING='xf86-input-mouse 1.9.0'
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
599
ac_unique_file="Makefile.am"
600
# Factoring default headers for most tests.
601
ac_includes_default="\
603
#ifdef HAVE_SYS_TYPES_H
604
# include <sys/types.h>
606
#ifdef HAVE_SYS_STAT_H
607
# include <sys/stat.h>
613
# ifdef HAVE_STDLIB_H
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623
#ifdef HAVE_STRINGS_H
624
# include <strings.h>
626
#ifdef HAVE_INTTYPES_H
627
# include <inttypes.h>
636
ac_subst_vars='am__EXEEXT_FALSE
731
INSTALL_STRIP_PROGRAM
773
program_transform_name
786
enable_option_checking
791
enable_dependency_tracking
795
enable_selective_werror
796
enable_strict_compilation
802
ac_precious_vars='build_alias
820
# Initialize some variables set by options.
822
ac_init_version=false
823
ac_unrecognized_opts=
825
# The variables have the same names as the options, with
826
# dashes changed to underlines.
834
program_transform_name=s,x,x,
842
# Installation directory options.
843
# These are left unexpanded so users can "make install exec_prefix=/foo"
844
# and all the variables that are supposed to be based on exec_prefix
845
# by default will actually change.
846
# Use braces instead of parens because sh, perl, etc. also accept them.
847
# (The list follows the same order as the GNU Coding Standards.)
848
bindir='${exec_prefix}/bin'
849
sbindir='${exec_prefix}/sbin'
850
libexecdir='${exec_prefix}/libexec'
851
datarootdir='${prefix}/share'
852
datadir='${datarootdir}'
853
sysconfdir='${prefix}/etc'
854
sharedstatedir='${prefix}/com'
855
localstatedir='${prefix}/var'
856
includedir='${prefix}/include'
857
oldincludedir='/usr/include'
858
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859
infodir='${datarootdir}/info'
864
libdir='${exec_prefix}/lib'
865
localedir='${datarootdir}/locale'
866
mandir='${datarootdir}/man'
872
# If the previous option needs an argument, assign it.
873
if test -n "$ac_prev"; then
874
eval $ac_prev=\$ac_option
880
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885
# Accept the important Cygnus configure options, so we can diagnose typos.
887
case $ac_dashdash$ac_option in
891
-bindir | --bindir | --bindi | --bind | --bin | --bi)
893
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896
-build | --build | --buil | --bui | --bu)
897
ac_prev=build_alias ;;
898
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
899
build_alias=$ac_optarg ;;
901
-cache-file | --cache-file | --cache-fil | --cache-fi \
902
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903
ac_prev=cache_file ;;
904
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906
cache_file=$ac_optarg ;;
909
cache_file=config.cache ;;
911
-datadir | --datadir | --datadi | --datad)
913
-datadir=* | --datadir=* | --datadi=* | --datad=*)
914
datadir=$ac_optarg ;;
916
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917
| --dataroo | --dataro | --datar)
918
ac_prev=datarootdir ;;
919
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921
datarootdir=$ac_optarg ;;
923
-disable-* | --disable-*)
924
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925
# Reject names that are not valid shell variable names.
926
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927
as_fn_error $? "invalid feature name: $ac_useropt"
928
ac_useropt_orig=$ac_useropt
929
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930
case $ac_user_opts in
934
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935
ac_unrecognized_sep=', ';;
937
eval enable_$ac_useropt=no ;;
939
-docdir | --docdir | --docdi | --doc | --do)
941
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949
-enable-* | --enable-*)
950
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951
# Reject names that are not valid shell variable names.
952
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953
as_fn_error $? "invalid feature name: $ac_useropt"
954
ac_useropt_orig=$ac_useropt
955
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956
case $ac_user_opts in
960
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961
ac_unrecognized_sep=', ';;
963
eval enable_$ac_useropt=\$ac_optarg ;;
965
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967
| --exec | --exe | --ex)
968
ac_prev=exec_prefix ;;
969
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971
| --exec=* | --exe=* | --ex=*)
972
exec_prefix=$ac_optarg ;;
974
-gas | --gas | --ga | --g)
975
# Obsolete; use --with-gas.
978
-help | --help | --hel | --he | -h)
980
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981
ac_init_help=recursive ;;
982
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983
ac_init_help=short ;;
985
-host | --host | --hos | --ho)
986
ac_prev=host_alias ;;
987
-host=* | --host=* | --hos=* | --ho=*)
988
host_alias=$ac_optarg ;;
990
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994
htmldir=$ac_optarg ;;
996
-includedir | --includedir | --includedi | --included | --include \
997
| --includ | --inclu | --incl | --inc)
998
ac_prev=includedir ;;
999
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000
| --includ=* | --inclu=* | --incl=* | --inc=*)
1001
includedir=$ac_optarg ;;
1003
-infodir | --infodir | --infodi | --infod | --info | --inf)
1005
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006
infodir=$ac_optarg ;;
1008
-libdir | --libdir | --libdi | --libd)
1010
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1011
libdir=$ac_optarg ;;
1013
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014
| --libexe | --libex | --libe)
1015
ac_prev=libexecdir ;;
1016
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017
| --libexe=* | --libex=* | --libe=*)
1018
libexecdir=$ac_optarg ;;
1020
-localedir | --localedir | --localedi | --localed | --locale)
1021
ac_prev=localedir ;;
1022
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023
localedir=$ac_optarg ;;
1025
-localstatedir | --localstatedir | --localstatedi | --localstated \
1026
| --localstate | --localstat | --localsta | --localst | --locals)
1027
ac_prev=localstatedir ;;
1028
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030
localstatedir=$ac_optarg ;;
1032
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035
mandir=$ac_optarg ;;
1037
-nfp | --nfp | --nf)
1038
# Obsolete; use --without-fp.
1041
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042
| --no-cr | --no-c | -n)
1045
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051
| --oldin | --oldi | --old | --ol | --o)
1052
ac_prev=oldincludedir ;;
1053
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056
oldincludedir=$ac_optarg ;;
1058
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061
prefix=$ac_optarg ;;
1063
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1064
| --program-pre | --program-pr | --program-p)
1065
ac_prev=program_prefix ;;
1066
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1067
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068
program_prefix=$ac_optarg ;;
1070
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1071
| --program-suf | --program-su | --program-s)
1072
ac_prev=program_suffix ;;
1073
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1074
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075
program_suffix=$ac_optarg ;;
1077
-program-transform-name | --program-transform-name \
1078
| --program-transform-nam | --program-transform-na \
1079
| --program-transform-n | --program-transform- \
1080
| --program-transform | --program-transfor \
1081
| --program-transfo | --program-transf \
1082
| --program-trans | --program-tran \
1083
| --progr-tra | --program-tr | --program-t)
1084
ac_prev=program_transform_name ;;
1085
-program-transform-name=* | --program-transform-name=* \
1086
| --program-transform-nam=* | --program-transform-na=* \
1087
| --program-transform-n=* | --program-transform-=* \
1088
| --program-transform=* | --program-transfor=* \
1089
| --program-transfo=* | --program-transf=* \
1090
| --program-trans=* | --program-tran=* \
1091
| --progr-tra=* | --program-tr=* | --program-t=*)
1092
program_transform_name=$ac_optarg ;;
1094
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097
pdfdir=$ac_optarg ;;
1099
-psdir | --psdir | --psdi | --psd | --ps)
1101
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105
| -silent | --silent | --silen | --sile | --sil)
1108
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112
sbindir=$ac_optarg ;;
1114
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1115
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116
| --sharedst | --shareds | --shared | --share | --shar \
1118
ac_prev=sharedstatedir ;;
1119
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123
sharedstatedir=$ac_optarg ;;
1125
-site | --site | --sit)
1127
-site=* | --site=* | --sit=*)
1130
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133
srcdir=$ac_optarg ;;
1135
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136
| --syscon | --sysco | --sysc | --sys | --sy)
1137
ac_prev=sysconfdir ;;
1138
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140
sysconfdir=$ac_optarg ;;
1142
-target | --target | --targe | --targ | --tar | --ta | --t)
1143
ac_prev=target_alias ;;
1144
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145
target_alias=$ac_optarg ;;
1147
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1150
-version | --version | --versio | --versi | --vers | -V)
1151
ac_init_version=: ;;
1154
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155
# Reject names that are not valid shell variable names.
1156
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157
as_fn_error $? "invalid package name: $ac_useropt"
1158
ac_useropt_orig=$ac_useropt
1159
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160
case $ac_user_opts in
1164
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165
ac_unrecognized_sep=', ';;
1167
eval with_$ac_useropt=\$ac_optarg ;;
1169
-without-* | --without-*)
1170
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171
# Reject names that are not valid shell variable names.
1172
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173
as_fn_error $? "invalid package name: $ac_useropt"
1174
ac_useropt_orig=$ac_useropt
1175
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176
case $ac_user_opts in
1180
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181
ac_unrecognized_sep=', ';;
1183
eval with_$ac_useropt=no ;;
1186
# Obsolete; use --with-x.
1189
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190
| --x-incl | --x-inc | --x-in | --x-i)
1191
ac_prev=x_includes ;;
1192
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194
x_includes=$ac_optarg ;;
1196
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1197
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198
ac_prev=x_libraries ;;
1199
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201
x_libraries=$ac_optarg ;;
1203
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1204
Try \`$0 --help' for more information"
1208
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209
# Reject names that are not valid shell variable names.
1210
case $ac_envvar in #(
1211
'' | [0-9]* | *[!_$as_cr_alnum]* )
1212
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214
eval $ac_envvar=\$ac_optarg
1215
export $ac_envvar ;;
1218
# FIXME: should be removed in autoconf 3.0.
1219
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228
if test -n "$ac_prev"; then
1229
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230
as_fn_error $? "missing argument to $ac_option"
1233
if test -n "$ac_unrecognized_opts"; then
1234
case $enable_option_checking in
1236
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241
# Check all directory arguments for consistency.
1242
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243
datadir sysconfdir sharedstatedir localstatedir includedir \
1244
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245
libdir localedir mandir
1247
eval ac_val=\$$ac_var
1248
# Remove trailing slashes.
1251
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252
eval $ac_var=\$ac_val;;
1254
# Be sure to have absolute directory names.
1256
[\\/$]* | ?:[\\/]* ) continue;;
1257
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262
# There might be people who depend on the old broken behavior: `$host'
1263
# used to hold the argument of --host etc.
1264
# FIXME: To remove some day.
1267
target=$target_alias
1269
# FIXME: To remove some day.
1270
if test "x$host_alias" != x; then
1271
if test "x$build_alias" = x; then
1272
cross_compiling=maybe
1273
elif test "x$build_alias" != "x$host_alias"; then
1279
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
test "$silent" = yes && exec 6>/dev/null
1284
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285
ac_ls_di=`ls -di .` &&
1286
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287
as_fn_error $? "working directory cannot be determined"
1288
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289
as_fn_error $? "pwd does not report name of working directory"
1292
# Find the source files, if location was not specified.
1293
if test -z "$srcdir"; then
1294
ac_srcdir_defaulted=yes
1295
# Try the directory containing this script, then the parent directory.
1296
ac_confdir=`$as_dirname -- "$as_myself" ||
1297
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298
X"$as_myself" : 'X\(//\)[^/]' \| \
1299
X"$as_myself" : 'X\(//\)$' \| \
1300
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301
$as_echo X"$as_myself" |
1302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320
if test ! -r "$srcdir/$ac_unique_file"; then
1324
ac_srcdir_defaulted=no
1326
if test ! -r "$srcdir/$ac_unique_file"; then
1327
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334
# When building in place, set srcdir=.
1335
if test "$ac_abs_confdir" = "$ac_pwd"; then
1338
# Remove unnecessary trailing slashes from srcdir.
1339
# Double slashes in file names in object file debugging info
1340
# mess up M-x gdb in Emacs.
1342
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344
for ac_var in $ac_precious_vars; do
1345
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346
eval ac_env_${ac_var}_value=\$${ac_var}
1347
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352
# Report the --help message.
1354
if test "$ac_init_help" = "long"; then
1355
# Omit some internal or obsolete options to make the list less imposing.
1356
# This message is too long to be a string in the A/UX 3.1 sh.
1358
\`configure' configures xf86-input-mouse 1.9.0 to adapt to many kinds of systems.
1360
Usage: $0 [OPTION]... [VAR=VALUE]...
1362
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363
VAR=VALUE. See below for descriptions of some of the useful variables.
1365
Defaults for the options are specified in brackets.
1368
-h, --help display this help and exit
1369
--help=short display options specific to this package
1370
--help=recursive display the short help of all the included packages
1371
-V, --version display version information and exit
1372
-q, --quiet, --silent do not print \`checking ...' messages
1373
--cache-file=FILE cache test results in FILE [disabled]
1374
-C, --config-cache alias for \`--cache-file=config.cache'
1375
-n, --no-create do not create output files
1376
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
Installation directories:
1379
--prefix=PREFIX install architecture-independent files in PREFIX
1380
[$ac_default_prefix]
1381
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384
By default, \`make install' will install all the files in
1385
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387
for instance \`--prefix=\$HOME'.
1389
For better control, use the options below.
1391
Fine tuning of the installation directories:
1392
--bindir=DIR user executables [EPREFIX/bin]
1393
--sbindir=DIR system admin executables [EPREFIX/sbin]
1394
--libexecdir=DIR program executables [EPREFIX/libexec]
1395
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398
--libdir=DIR object code libraries [EPREFIX/lib]
1399
--includedir=DIR C header files [PREFIX/include]
1400
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1401
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403
--infodir=DIR info documentation [DATAROOTDIR/info]
1404
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405
--mandir=DIR man documentation [DATAROOTDIR/man]
1406
--docdir=DIR documentation root
1407
[DATAROOTDIR/doc/xf86-input-mouse]
1408
--htmldir=DIR html documentation [DOCDIR]
1409
--dvidir=DIR dvi documentation [DOCDIR]
1410
--pdfdir=DIR pdf documentation [DOCDIR]
1411
--psdir=DIR ps documentation [DOCDIR]
1417
--program-prefix=PREFIX prepend PREFIX to installed program names
1418
--program-suffix=SUFFIX append SUFFIX to installed program names
1419
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
--build=BUILD configure for building on BUILD [guessed]
1423
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1427
if test -n "$ac_init_help"; then
1428
case $ac_init_help in
1429
short | recursive ) echo "Configuration of xf86-input-mouse 1.9.0:";;
1434
--disable-option-checking ignore unrecognized --enable/--with options
1435
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437
--enable-static[=PKGS] build static libraries [default=no]
1438
--enable-shared[=PKGS] build shared libraries [default=yes]
1439
--enable-fast-install[=PKGS]
1440
optimize for fast installation [default=yes]
1441
--enable-dependency-tracking
1442
do not reject slow dependency extractors
1443
--disable-dependency-tracking
1444
speeds up one-time build
1445
--disable-libtool-lock avoid locking (might break parallel builds)
1446
--disable-selective-werror
1447
Turn off selective compiler errors. (default:
1449
--enable-strict-compilation
1450
Enable all warnings from compiler and make them
1451
errors (default: disabled)
1452
--enable-silent-rules less verbose build output (undo: "make V=1")
1453
--disable-silent-rules verbose build output (undo: "make V=0")
1456
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461
--with-sysroot=DIR Search for dependent libraries within DIR
1462
(or the compiler's sysroot if not specified).
1463
--with-lint Use a lint-style source code checker (default:
1465
--with-xorg-module-dir=DIR
1466
Default xorg module directory
1467
[[default=$libdir/xorg/modules]]
1470
Some influential environment variables:
1471
CC C compiler command
1472
CFLAGS C compiler flags
1473
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474
nonstandard directory <lib dir>
1475
LIBS libraries to pass to the linker, e.g. -l<library>
1476
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477
you have headers in a nonstandard directory <include dir>
1479
PKG_CONFIG path to pkg-config utility
1481
directories to add to pkg-config's search path
1483
path overriding pkg-config's built-in search path
1484
LINT Path to a lint-style command
1485
LINT_FLAGS Flags for the lint-style command
1486
XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1487
XORG_LIBS linker flags for XORG, overriding pkg-config
1489
Use these variables to override the choices made by `configure' or to help
1490
it to find libraries and programs with nonstandard names/locations.
1492
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497
if test "$ac_init_help" = "recursive"; then
1498
# If there are subdirs, report their specific --help.
1499
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500
test -d "$ac_dir" ||
1501
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509
# A ".." for each directory in $ac_dir_suffix.
1510
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511
case $ac_top_builddir_sub in
1512
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516
ac_abs_top_builddir=$ac_pwd
1517
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518
# for backward compatibility:
1519
ac_top_builddir=$ac_top_build_prefix
1522
.) # We are building in place.
1524
ac_top_srcdir=$ac_top_builddir_sub
1525
ac_abs_top_srcdir=$ac_pwd ;;
1526
[\\/]* | ?:[\\/]* ) # Absolute name.
1527
ac_srcdir=$srcdir$ac_dir_suffix;
1528
ac_top_srcdir=$srcdir
1529
ac_abs_top_srcdir=$srcdir ;;
1531
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532
ac_top_srcdir=$ac_top_build_prefix$srcdir
1533
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
cd "$ac_dir" || { ac_status=$?; continue; }
1538
# Check for guested configure.
1539
if test -f "$ac_srcdir/configure.gnu"; then
1541
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542
elif test -f "$ac_srcdir/configure"; then
1544
$SHELL "$ac_srcdir/configure" --help=recursive
1546
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548
cd "$ac_pwd" || { ac_status=$?; break; }
1552
test -n "$ac_init_help" && exit $ac_status
1553
if $ac_init_version; then
1555
xf86-input-mouse configure 1.9.0
1556
generated by GNU Autoconf 2.69
1558
Copyright (C) 2012 Free Software Foundation, Inc.
1559
This configure script is free software; the Free Software Foundation
1560
gives unlimited permission to copy, distribute and modify it.
1565
## ------------------------ ##
1566
## Autoconf initialization. ##
1567
## ------------------------ ##
1569
# ac_fn_c_try_compile LINENO
1570
# --------------------------
1571
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572
ac_fn_c_try_compile ()
1574
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575
rm -f conftest.$ac_objext
1576
if { { ac_try="$ac_compile"
1578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579
*) ac_try_echo=$ac_try;;
1581
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582
$as_echo "$ac_try_echo"; } >&5
1583
(eval "$ac_compile") 2>conftest.err
1585
if test -s conftest.err; then
1586
grep -v '^ *+' conftest.err >conftest.er1
1587
cat conftest.er1 >&5
1588
mv -f conftest.er1 conftest.err
1590
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591
test $ac_status = 0; } && {
1592
test -z "$ac_c_werror_flag" ||
1593
test ! -s conftest.err
1594
} && test -s conftest.$ac_objext; then :
1597
$as_echo "$as_me: failed program was:" >&5
1598
sed 's/^/| /' conftest.$ac_ext >&5
1602
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603
as_fn_set_status $ac_retval
1605
} # ac_fn_c_try_compile
1607
# ac_fn_c_try_link LINENO
1608
# -----------------------
1609
# Try to link conftest.$ac_ext, and return whether this succeeded.
1612
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613
rm -f conftest.$ac_objext conftest$ac_exeext
1614
if { { ac_try="$ac_link"
1616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617
*) ac_try_echo=$ac_try;;
1619
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620
$as_echo "$ac_try_echo"; } >&5
1621
(eval "$ac_link") 2>conftest.err
1623
if test -s conftest.err; then
1624
grep -v '^ *+' conftest.err >conftest.er1
1625
cat conftest.er1 >&5
1626
mv -f conftest.er1 conftest.err
1628
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629
test $ac_status = 0; } && {
1630
test -z "$ac_c_werror_flag" ||
1631
test ! -s conftest.err
1632
} && test -s conftest$ac_exeext && {
1633
test "$cross_compiling" = yes ||
1634
test -x conftest$ac_exeext
1638
$as_echo "$as_me: failed program was:" >&5
1639
sed 's/^/| /' conftest.$ac_ext >&5
1643
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645
# interfere with the next link command; also delete a directory that is
1646
# left behind by Apple's compiler. We do this before executing the actions.
1647
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
as_fn_set_status $ac_retval
1651
} # ac_fn_c_try_link
1653
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654
# -------------------------------------------------------
1655
# Tests whether HEADER exists and can be compiled using the include files in
1656
# INCLUDES, setting the cache variable VAR accordingly.
1657
ac_fn_c_check_header_compile ()
1659
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661
$as_echo_n "checking for $2... " >&6; }
1662
if eval \${$3+:} false; then :
1663
$as_echo_n "(cached) " >&6
1665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666
/* end confdefs.h. */
1670
if ac_fn_c_try_compile "$LINENO"; then :
1675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679
$as_echo "$ac_res" >&6; }
1680
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
} # ac_fn_c_check_header_compile
1684
# ac_fn_c_try_cpp LINENO
1685
# ----------------------
1686
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690
if { { ac_try="$ac_cpp conftest.$ac_ext"
1692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693
*) ac_try_echo=$ac_try;;
1695
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696
$as_echo "$ac_try_echo"; } >&5
1697
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699
if test -s conftest.err; then
1700
grep -v '^ *+' conftest.err >conftest.er1
1701
cat conftest.er1 >&5
1702
mv -f conftest.er1 conftest.err
1704
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705
test $ac_status = 0; } > conftest.i && {
1706
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707
test ! -s conftest.err
1711
$as_echo "$as_me: failed program was:" >&5
1712
sed 's/^/| /' conftest.$ac_ext >&5
1716
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
as_fn_set_status $ac_retval
1721
# ac_fn_c_try_run LINENO
1722
# ----------------------
1723
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724
# that executables *can* be run.
1727
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
if { { ac_try="$ac_link"
1730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731
*) ac_try_echo=$ac_try;;
1733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734
$as_echo "$ac_try_echo"; } >&5
1735
(eval "$ac_link") 2>&5
1737
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739
{ { case "(($ac_try" in
1740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741
*) ac_try_echo=$ac_try;;
1743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744
$as_echo "$ac_try_echo"; } >&5
1745
(eval "$ac_try") 2>&5
1747
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
test $ac_status = 0; }; }; then :
1751
$as_echo "$as_me: program exited with status $ac_status" >&5
1752
$as_echo "$as_me: failed program was:" >&5
1753
sed 's/^/| /' conftest.$ac_ext >&5
1755
ac_retval=$ac_status
1757
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
as_fn_set_status $ac_retval
1763
# ac_fn_c_check_func LINENO FUNC VAR
1764
# ----------------------------------
1765
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766
ac_fn_c_check_func ()
1768
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770
$as_echo_n "checking for $2... " >&6; }
1771
if eval \${$3+:} false; then :
1772
$as_echo_n "(cached) " >&6
1774
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775
/* end confdefs.h. */
1776
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778
#define $2 innocuous_$2
1780
/* System header to define __stub macros and hopefully few prototypes,
1781
which can conflict with char $2 (); below.
1782
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783
<limits.h> exists even on freestanding compilers. */
1786
# include <limits.h>
1788
# include <assert.h>
1793
/* Override any GCC internal prototype to avoid an error.
1794
Use char because int might match the return type of a GCC
1795
builtin and then its argument prototype would still apply. */
1800
/* The GNU C library defines this for functions which it implements
1801
to always fail with ENOSYS. Some functions are actually named
1802
something starting with __ and the normal name is an alias. */
1803
#if defined __stub_$2 || defined __stub___$2
1815
if ac_fn_c_try_link "$LINENO"; then :
1820
rm -f core conftest.err conftest.$ac_objext \
1821
conftest$ac_exeext conftest.$ac_ext
1824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825
$as_echo "$ac_res" >&6; }
1826
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
} # ac_fn_c_check_func
1830
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831
# ---------------------------------------------
1832
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1834
ac_fn_c_check_decl ()
1836
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837
as_decl_name=`echo $2|sed 's/ *(.*//'`
1838
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841
if eval \${$3+:} false; then :
1842
$as_echo_n "(cached) " >&6
1844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845
/* end confdefs.h. */
1850
#ifndef $as_decl_name
1852
(void) $as_decl_use;
1854
(void) $as_decl_name;
1862
if ac_fn_c_try_compile "$LINENO"; then :
1867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871
$as_echo "$ac_res" >&6; }
1872
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
} # ac_fn_c_check_decl
1875
cat >config.log <<_ACEOF
1876
This file contains any messages produced by compilers while
1877
running configure, to aid debugging if configure makes a mistake.
1879
It was created by xf86-input-mouse $as_me 1.9.0, which was
1880
generated by GNU Autoconf 2.69. Invocation command line was
1892
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915
test -z "$as_dir" && as_dir=.
1916
$as_echo "PATH: $as_dir"
1932
# Keep a trace of the command line.
1933
# Strip out --no-create and --no-recursion so they do not pile up.
1934
# Strip out --silent because we don't want to record it for future runs.
1935
# Also quote any args containing shell meta-characters.
1936
# Make two passes to allow for proper duplicate-argument suppression.
1940
ac_must_keep_next=false
1946
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948
| -silent | --silent | --silen | --sile | --sil)
1951
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956
as_fn_append ac_configure_args1 " '$ac_arg'"
1957
if test $ac_must_keep_next = true; then
1958
ac_must_keep_next=false # Got value, back to normal.
1961
*=* | --config-cache | -C | -disable-* | --disable-* \
1962
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964
| -with-* | --with-* | -without-* | --without-* | --x)
1965
case "$ac_configure_args0 " in
1966
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969
-* ) ac_must_keep_next=true ;;
1972
as_fn_append ac_configure_args " '$ac_arg'"
1977
{ ac_configure_args0=; unset ac_configure_args0;}
1978
{ ac_configure_args1=; unset ac_configure_args1;}
1980
# When interrupted or exit'd, cleanup temporary files, and complete
1981
# config.log. We remove comments because anyway the quotes in there
1982
# would cause problems or look ugly.
1983
# WARNING: Use '\'' to represent an apostrophe within the trap.
1984
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985
trap 'exit_status=$?
1986
# Save into config.log some information that might help in debugging.
1990
$as_echo "## ---------------- ##
1991
## Cache variables. ##
1992
## ---------------- ##"
1994
# The following way of writing the cache mishandles newlines in values,
1996
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997
eval ac_val=\$$ac_var
2001
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005
_ | IFS | as_nl) ;; #(
2006
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007
*) { eval $ac_var=; unset $ac_var;} ;;
2012
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013
*${as_nl}ac_space=\ *)
2015
"s/'\''/'\''\\\\'\'''\''/g;
2016
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026
$as_echo "## ----------------- ##
2027
## Output variables. ##
2028
## ----------------- ##"
2030
for ac_var in $ac_subst_vars
2032
eval ac_val=\$$ac_var
2034
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036
$as_echo "$ac_var='\''$ac_val'\''"
2040
if test -n "$ac_subst_files"; then
2041
$as_echo "## ------------------- ##
2042
## File substitutions. ##
2043
## ------------------- ##"
2045
for ac_var in $ac_subst_files
2047
eval ac_val=\$$ac_var
2049
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051
$as_echo "$ac_var='\''$ac_val'\''"
2056
if test -s confdefs.h; then
2057
$as_echo "## ----------- ##
2064
test "$ac_signal" != 0 &&
2065
$as_echo "$as_me: caught signal $ac_signal"
2066
$as_echo "$as_me: exit $exit_status"
2068
rm -f core *.core core.conftest.* &&
2069
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072
for ac_signal in 1 2 13 15; do
2073
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2078
rm -f -r conftest* confdefs.h
2080
$as_echo "/* confdefs.h */" > confdefs.h
2082
# Predefined preprocessor variables.
2084
cat >>confdefs.h <<_ACEOF
2085
#define PACKAGE_NAME "$PACKAGE_NAME"
2088
cat >>confdefs.h <<_ACEOF
2089
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092
cat >>confdefs.h <<_ACEOF
2093
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096
cat >>confdefs.h <<_ACEOF
2097
#define PACKAGE_STRING "$PACKAGE_STRING"
2100
cat >>confdefs.h <<_ACEOF
2101
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104
cat >>confdefs.h <<_ACEOF
2105
#define PACKAGE_URL "$PACKAGE_URL"
2109
# Let the site file select an alternate cache file if it wants to.
2110
# Prefer an explicitly selected file to automatically selected ones.
2113
if test -n "$CONFIG_SITE"; then
2114
# We do not want a PATH search for config.site.
2115
case $CONFIG_SITE in #((
2116
-*) ac_site_file1=./$CONFIG_SITE;;
2117
*/*) ac_site_file1=$CONFIG_SITE;;
2118
*) ac_site_file1=./$CONFIG_SITE;;
2120
elif test "x$prefix" != xNONE; then
2121
ac_site_file1=$prefix/share/config.site
2122
ac_site_file2=$prefix/etc/config.site
2124
ac_site_file1=$ac_default_prefix/share/config.site
2125
ac_site_file2=$ac_default_prefix/etc/config.site
2127
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129
test "x$ac_site_file" = xNONE && continue
2130
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133
sed 's/^/| /' "$ac_site_file" >&5
2135
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137
as_fn_error $? "failed to load site script $ac_site_file
2138
See \`config.log' for more details" "$LINENO" 5; }
2142
if test -r "$cache_file"; then
2143
# Some versions of bash will fail to source /dev/null (special files
2144
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147
$as_echo "$as_me: loading cache $cache_file" >&6;}
2149
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2150
*) . "./$cache_file";;
2154
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155
$as_echo "$as_me: creating cache $cache_file" >&6;}
2159
# Check that the precious variables saved in the cache have kept the same
2161
ac_cache_corrupted=false
2162
for ac_var in $ac_precious_vars; do
2163
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164
eval ac_new_set=\$ac_env_${ac_var}_set
2165
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166
eval ac_new_val=\$ac_env_${ac_var}_value
2167
case $ac_old_set,$ac_new_set in
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171
ac_cache_corrupted=: ;;
2173
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175
ac_cache_corrupted=: ;;
2178
if test "x$ac_old_val" != "x$ac_new_val"; then
2179
# differences in whitespace do not lead to failure.
2180
ac_old_val_w=`echo x $ac_old_val`
2181
ac_new_val_w=`echo x $ac_new_val`
2182
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185
ac_cache_corrupted=:
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189
eval $ac_var=\$ac_old_val
2191
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197
# Pass precious variables to config.status.
2198
if test "$ac_new_set" = set; then
2200
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201
*) ac_arg=$ac_var=$ac_new_val ;;
2203
case " $ac_configure_args " in
2204
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209
if $ac_cache_corrupted; then
2210
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216
## -------------------- ##
2217
## Main body of script. ##
2218
## -------------------- ##
2221
ac_cpp='$CPP $CPPFLAGS'
2222
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
ac_config_headers="$ac_config_headers config.h"
2231
for ac_dir in . "$srcdir"/.; do
2232
if test -f "$ac_dir/install-sh"; then
2234
ac_install_sh="$ac_aux_dir/install-sh -c"
2236
elif test -f "$ac_dir/install.sh"; then
2238
ac_install_sh="$ac_aux_dir/install.sh -c"
2240
elif test -f "$ac_dir/shtool"; then
2242
ac_install_sh="$ac_aux_dir/shtool install -c"
2246
if test -z "$ac_aux_dir"; then
2247
as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2250
# These three variables are undocumented and unsupported,
2251
# and are intended to be withdrawn in a future Autoconf release.
2252
# They can cause serious problems if a builder's source tree is in a directory
2253
# whose full name contains unusual characters.
2254
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260
# Initialize Automake
2261
am__api_version='1.12'
2263
# Find a good install program. We prefer a C program (faster),
2264
# so one script is as good as another. But avoid the broken or
2265
# incompatible versions:
2266
# SysV /etc/install, /usr/sbin/install
2267
# SunOS /usr/etc/install
2268
# IRIX /sbin/install
2270
# AmigaOS /C/install, which installs bootblocks on floppy discs
2271
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2272
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2273
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2274
# OS/2's system install, which has a completely different semantic
2275
# ./install, which can be erroneously created by make from ./install.sh.
2276
# Reject install programs that cannot install multiple files.
2277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2278
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2279
if test -z "$INSTALL"; then
2280
if ${ac_cv_path_install+:} false; then :
2281
$as_echo_n "(cached) " >&6
2283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
test -z "$as_dir" && as_dir=.
2288
# Account for people who put trailing slashes in PATH elements.
2289
case $as_dir/ in #((
2290
./ | .// | /[cC]/* | \
2291
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2292
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2295
# OSF1 and SCO ODT 3.0 have their own names for install.
2296
# Don't use installbsd from OSF since it installs stuff as root
2298
for ac_prog in ginstall scoinst install; do
2299
for ac_exec_ext in '' $ac_executable_extensions; do
2300
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2301
if test $ac_prog = install &&
2302
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303
# AIX install. It has an incompatible calling convention.
2305
elif test $ac_prog = install &&
2306
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307
# program-specific install script used by HP pwplus--don't use.
2310
rm -rf conftest.one conftest.two conftest.dir
2311
echo one > conftest.one
2312
echo two > conftest.two
2314
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2315
test -s conftest.one && test -s conftest.two &&
2316
test -s conftest.dir/conftest.one &&
2317
test -s conftest.dir/conftest.two
2319
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2332
rm -rf conftest.one conftest.two conftest.dir
2335
if test "${ac_cv_path_install+set}" = set; then
2336
INSTALL=$ac_cv_path_install
2338
# As a last resort, use the slow shell script. Don't cache a
2339
# value for INSTALL within a source directory, because that will
2340
# break other packages using the cache if that directory is
2341
# removed, or if the value is a relative name.
2342
INSTALL=$ac_install_sh
2345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2346
$as_echo "$INSTALL" >&6; }
2348
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2349
# It thinks the first close brace ends the variable substitution.
2350
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2352
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2354
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2357
$as_echo_n "checking whether build environment is sane... " >&6; }
2358
# Reject unsafe characters in $srcdir or the absolute working directory
2359
# name. Accept space and tab only in the latter.
2363
*[\\\"\#\$\&\'\`$am_lf]*)
2364
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2367
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2371
# Do 'set' in a subshell so we don't clobber the current shell's
2372
# arguments. Must try -L first in case configure is actually a
2373
# symlink; some systems play weird games with the mod time of symlinks
2374
# (eg FreeBSD returns the mod time of the symlink's containing
2378
for am_try in 1 2; do
2379
echo "timestamp, slept: $am_has_slept" > conftest.file
2380
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381
if test "$*" = "X"; then
2383
set X `ls -t "$srcdir/configure" conftest.file`
2385
if test "$*" != "X $srcdir/configure conftest.file" \
2386
&& test "$*" != "X conftest.file $srcdir/configure"; then
2388
# If neither matched, then we have a broken ls. This can happen
2389
# if, for instance, CONFIG_SHELL is bash and it inherits a
2390
# broken ls alias from the environment. This has actually
2391
# happened. Such a system could not be considered "sane".
2392
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393
alias in your environment" "$LINENO" 5
2395
if test "$2" = conftest.file || test $am_try -eq 2; then
2402
test "$2" = conftest.file
2408
as_fn_error $? "newly created file is older than distributed files!
2409
Check your system clock" "$LINENO" 5
2411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2412
$as_echo "yes" >&6; }
2413
# If we didn't sleep, we still need to ensure time stamps of config.status and
2414
# generated files are strictly newer.
2416
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423
test "$program_prefix" != NONE &&
2424
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425
# Use a double $ so make ignores it.
2426
test "$program_suffix" != NONE &&
2427
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428
# Double any \ or $.
2429
# By default was `s,x,x', remove it if useless.
2430
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2433
# expand $ac_aux_dir to an absolute path
2434
am_aux_dir=`cd $ac_aux_dir && pwd`
2436
if test x"${MISSING+set}" != xset; then
2439
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2441
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444
# Use eval to expand $SHELL
2445
if eval "$MISSING --run true"; then
2446
am_missing_run="$MISSING --run "
2449
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2453
if test x"${install_sh}" != xset; then
2456
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2458
install_sh="\${SHELL} $am_aux_dir/install-sh"
2462
# Installed binaries are usually stripped using 'strip' when the user
2463
# run "make install-strip". However 'strip' might not be the right
2464
# tool to use in cross-compilation environments, therefore Automake
2465
# will honor the 'STRIP' environment variable to overrule this program.
2466
if test "$cross_compiling" != no; then
2467
if test -n "$ac_tool_prefix"; then
2468
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469
set dummy ${ac_tool_prefix}strip; ac_word=$2
2470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471
$as_echo_n "checking for $ac_word... " >&6; }
2472
if ${ac_cv_prog_STRIP+:} false; then :
2473
$as_echo_n "(cached) " >&6
2475
if test -n "$STRIP"; then
2476
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
test -z "$as_dir" && as_dir=.
2483
for ac_exec_ext in '' $ac_executable_extensions; do
2484
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495
STRIP=$ac_cv_prog_STRIP
2496
if test -n "$STRIP"; then
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498
$as_echo "$STRIP" >&6; }
2500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501
$as_echo "no" >&6; }
2506
if test -z "$ac_cv_prog_STRIP"; then
2508
# Extract the first word of "strip", so it can be a program name with args.
2509
set dummy strip; ac_word=$2
2510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511
$as_echo_n "checking for $ac_word... " >&6; }
2512
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513
$as_echo_n "(cached) " >&6
2515
if test -n "$ac_ct_STRIP"; then
2516
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
test -z "$as_dir" && as_dir=.
2523
for ac_exec_ext in '' $ac_executable_extensions; do
2524
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525
ac_cv_prog_ac_ct_STRIP="strip"
2526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536
if test -n "$ac_ct_STRIP"; then
2537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538
$as_echo "$ac_ct_STRIP" >&6; }
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541
$as_echo "no" >&6; }
2544
if test "x$ac_ct_STRIP" = x; then
2547
case $cross_compiling:$ac_tool_warned in
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551
ac_tool_warned=yes ;;
2556
STRIP="$ac_cv_prog_STRIP"
2560
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564
if test -z "$MKDIR_P"; then
2565
if ${ac_cv_path_mkdir+:} false; then :
2566
$as_echo_n "(cached) " >&6
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572
test -z "$as_dir" && as_dir=.
2573
for ac_prog in mkdir gmkdir; do
2574
for ac_exec_ext in '' $ac_executable_extensions; do
2575
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2576
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577
'mkdir (GNU coreutils) '* | \
2578
'mkdir (coreutils) '* | \
2579
'mkdir (fileutils) '4.1*)
2580
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590
test -d ./--version && rmdir ./--version
2591
if test "${ac_cv_path_mkdir+set}" = set; then
2592
MKDIR_P="$ac_cv_path_mkdir -p"
2594
# As a last resort, use the slow shell script. Don't cache a
2595
# value for MKDIR_P within a source directory, because that will
2596
# break other packages using the cache if that directory is
2597
# removed, or if the value is a relative name.
2598
MKDIR_P="$ac_install_sh -d"
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602
$as_echo "$MKDIR_P" >&6; }
2604
for ac_prog in gawk mawk nawk awk
2606
# Extract the first word of "$ac_prog", so it can be a program name with args.
2607
set dummy $ac_prog; ac_word=$2
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609
$as_echo_n "checking for $ac_word... " >&6; }
2610
if ${ac_cv_prog_AWK+:} false; then :
2611
$as_echo_n "(cached) " >&6
2613
if test -n "$AWK"; then
2614
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620
test -z "$as_dir" && as_dir=.
2621
for ac_exec_ext in '' $ac_executable_extensions; do
2622
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623
ac_cv_prog_AWK="$ac_prog"
2624
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634
if test -n "$AWK"; then
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2636
$as_echo "$AWK" >&6; }
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639
$as_echo "no" >&6; }
2643
test -n "$AWK" && break
2646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2647
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2649
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2650
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2651
$as_echo_n "(cached) " >&6
2653
cat >conftest.make <<\_ACEOF
2656
@echo '@@@%%%=$(MAKE)=@@@%%%'
2658
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2659
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2661
eval ac_cv_prog_make_${ac_make}_set=yes;;
2663
eval ac_cv_prog_make_${ac_make}_set=no;;
2667
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669
$as_echo "yes" >&6; }
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673
$as_echo "no" >&6; }
2674
SET_MAKE="MAKE=${MAKE-make}"
2677
rm -rf .tst 2>/dev/null
2678
mkdir .tst 2>/dev/null
2679
if test -d .tst; then
2684
rmdir .tst 2>/dev/null
2686
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2687
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2688
# is not polluted with repeated "-I."
2689
am__isrc=' -I$(srcdir)'
2690
# test to see if srcdir already configured
2691
if test -f $srcdir/config.status; then
2692
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2696
# test whether we have cygpath
2697
if test -z "$CYGPATH_W"; then
2698
if (cygpath --version) >/dev/null 2>/dev/null; then
2699
CYGPATH_W='cygpath -w'
2706
# Define the identity of the package.
2707
PACKAGE='xf86-input-mouse'
2711
cat >>confdefs.h <<_ACEOF
2712
#define PACKAGE "$PACKAGE"
2716
cat >>confdefs.h <<_ACEOF
2717
#define VERSION "$VERSION"
2720
# Some tools Automake needs.
2722
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2725
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2728
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2731
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2734
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2736
# For better backward compatibility. To be removed once Automake 1.9.x
2737
# dies out for good. For more background, see:
2738
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740
mkdir_p='$(MKDIR_P)'
2742
# We need awk for the "check" target. The system "awk" is bad on
2744
# Always define AMTAR for backward compatibility. Yes, it's still used
2745
# in the wild :-( We should find a proper way to deprecate it ...
2748
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2755
# Initialize libtool
2756
# Check whether --enable-static was given.
2757
if test "${enable_static+set}" = set; then :
2758
enableval=$enable_static; p=${PACKAGE-default}
2760
yes) enable_static=yes ;;
2761
no) enable_static=no ;;
2764
# Look at the argument we got. We use all the common list separators.
2765
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2766
for pkg in $enableval; do
2768
if test "X$pkg" = "X$p"; then
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2790
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2795
macro_version='2.4.2'
2796
macro_revision='1.3337'
2810
ltmain="$ac_aux_dir/ltmain.sh"
2812
# Make sure we can run config.sub.
2813
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817
$as_echo_n "checking build system type... " >&6; }
2818
if ${ac_cv_build+:} false; then :
2819
$as_echo_n "(cached) " >&6
2821
ac_build_alias=$build_alias
2822
test "x$ac_build_alias" = x &&
2823
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824
test "x$ac_build_alias" = x &&
2825
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831
$as_echo "$ac_cv_build" >&6; }
2832
case $ac_cv_build in
2834
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2837
ac_save_IFS=$IFS; IFS='-'
2843
# Remember, the first character of IFS is used to create $*,
2844
# except with old shells:
2847
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851
$as_echo_n "checking host system type... " >&6; }
2852
if ${ac_cv_host+:} false; then :
2853
$as_echo_n "(cached) " >&6
2855
if test "x$host_alias" = x; then
2856
ac_cv_host=$ac_cv_build
2858
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864
$as_echo "$ac_cv_host" >&6; }
2867
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2870
ac_save_IFS=$IFS; IFS='-'
2876
# Remember, the first character of IFS is used to create $*,
2877
# except with old shells:
2880
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2883
# Backslashify metacharacters that are still active within
2884
# double-quoted strings.
2885
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2887
# Same as above, but do not quote variable references.
2888
double_quote_subst='s/\(["`\\]\)/\\\1/g'
2890
# Sed substitution to delay expansion of an escaped shell variable in a
2891
# double_quote_subst'ed string.
2892
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2894
# Sed substitution to delay expansion of an escaped single quote.
2895
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2897
# Sed substitution to avoid accidental globbing in evaled expressions
2898
no_glob_subst='s/\*/\\\*/g'
2900
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2901
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2902
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2905
$as_echo_n "checking how to print strings... " >&6; }
2906
# Test print first, because it will be a builtin if present.
2907
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2908
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2910
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2913
# Use this function as a fallback that always works.
2914
func_fallback_echo ()
2916
eval 'cat <<_LTECHO_EOF
2920
ECHO='func_fallback_echo'
2923
# func_echo_all arg...
2924
# Invoke $ECHO with all args, space-separated.
2931
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2932
$as_echo "printf" >&6; } ;;
2933
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2934
$as_echo "print -r" >&6; } ;;
2935
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2936
$as_echo "cat" >&6; } ;;
2952
DEPDIR="${am__leading_dot}deps"
2954
ac_config_commands="$ac_config_commands depfiles"
2957
am_make=${MAKE-make}
2958
cat > confinc << 'END'
2960
@echo this is the am__doit target
2963
# If we don't find an include directive, just comment out the code.
2964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2965
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2969
# First try GNU make style include.
2970
echo "include confinc" > confmf
2971
# Ignore all kinds of additional output from 'make'.
2972
case `$am_make -s -f confmf 2> /dev/null` in #(
2973
*the\ am__doit\ target*)
2979
# Now try BSD make style include.
2980
if test "$am__include" = "#"; then
2981
echo '.include "confinc"' > confmf
2982
case `$am_make -s -f confmf 2> /dev/null` in #(
2983
*the\ am__doit\ target*)
2984
am__include=.include
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2993
$as_echo "$_am_result" >&6; }
2994
rm -f confinc confmf
2996
# Check whether --enable-dependency-tracking was given.
2997
if test "${enable_dependency_tracking+set}" = set; then :
2998
enableval=$enable_dependency_tracking;
3001
if test "x$enable_dependency_tracking" != xno; then
3002
am_depcomp="$ac_aux_dir/depcomp"
3006
if test "x$enable_dependency_tracking" != xno; then
3016
ac_cpp='$CPP $CPPFLAGS'
3017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
if test -n "$ac_tool_prefix"; then
3021
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024
$as_echo_n "checking for $ac_word... " >&6; }
3025
if ${ac_cv_prog_CC+:} false; then :
3026
$as_echo_n "(cached) " >&6
3028
if test -n "$CC"; then
3029
ac_cv_prog_CC="$CC" # Let the user override the test.
3031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035
test -z "$as_dir" && as_dir=.
3036
for ac_exec_ext in '' $ac_executable_extensions; do
3037
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049
if test -n "$CC"; then
3050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051
$as_echo "$CC" >&6; }
3053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054
$as_echo "no" >&6; }
3059
if test -z "$ac_cv_prog_CC"; then
3061
# Extract the first word of "gcc", so it can be a program name with args.
3062
set dummy gcc; ac_word=$2
3063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064
$as_echo_n "checking for $ac_word... " >&6; }
3065
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066
$as_echo_n "(cached) " >&6
3068
if test -n "$ac_ct_CC"; then
3069
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075
test -z "$as_dir" && as_dir=.
3076
for ac_exec_ext in '' $ac_executable_extensions; do
3077
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078
ac_cv_prog_ac_ct_CC="gcc"
3079
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089
if test -n "$ac_ct_CC"; then
3090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091
$as_echo "$ac_ct_CC" >&6; }
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094
$as_echo "no" >&6; }
3097
if test "x$ac_ct_CC" = x; then
3100
case $cross_compiling:$ac_tool_warned in
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104
ac_tool_warned=yes ;;
3112
if test -z "$CC"; then
3113
if test -n "$ac_tool_prefix"; then
3114
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115
set dummy ${ac_tool_prefix}cc; ac_word=$2
3116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117
$as_echo_n "checking for $ac_word... " >&6; }
3118
if ${ac_cv_prog_CC+:} false; then :
3119
$as_echo_n "(cached) " >&6
3121
if test -n "$CC"; then
3122
ac_cv_prog_CC="$CC" # Let the user override the test.
3124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128
test -z "$as_dir" && as_dir=.
3129
for ac_exec_ext in '' $ac_executable_extensions; do
3130
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131
ac_cv_prog_CC="${ac_tool_prefix}cc"
3132
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142
if test -n "$CC"; then
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144
$as_echo "$CC" >&6; }
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147
$as_echo "no" >&6; }
3153
if test -z "$CC"; then
3154
# Extract the first word of "cc", so it can be a program name with args.
3155
set dummy cc; ac_word=$2
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157
$as_echo_n "checking for $ac_word... " >&6; }
3158
if ${ac_cv_prog_CC+:} false; then :
3159
$as_echo_n "(cached) " >&6
3161
if test -n "$CC"; then
3162
ac_cv_prog_CC="$CC" # Let the user override the test.
3165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169
test -z "$as_dir" && as_dir=.
3170
for ac_exec_ext in '' $ac_executable_extensions; do
3171
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173
ac_prog_rejected=yes
3177
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184
if test $ac_prog_rejected = yes; then
3185
# We found a bogon in the path, so make sure we never use it.
3186
set dummy $ac_cv_prog_CC
3188
if test $# != 0; then
3189
# We chose a different compiler from the bogus one.
3190
# However, it has the same basename, so the bogon will be chosen
3191
# first if we set CC to just the basename; use the full file name.
3193
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199
if test -n "$CC"; then
3200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201
$as_echo "$CC" >&6; }
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204
$as_echo "no" >&6; }
3209
if test -z "$CC"; then
3210
if test -n "$ac_tool_prefix"; then
3211
for ac_prog in cl.exe
3213
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216
$as_echo_n "checking for $ac_word... " >&6; }
3217
if ${ac_cv_prog_CC+:} false; then :
3218
$as_echo_n "(cached) " >&6
3220
if test -n "$CC"; then
3221
ac_cv_prog_CC="$CC" # Let the user override the test.
3223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227
test -z "$as_dir" && as_dir=.
3228
for ac_exec_ext in '' $ac_executable_extensions; do
3229
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241
if test -n "$CC"; then
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243
$as_echo "$CC" >&6; }
3245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246
$as_echo "no" >&6; }
3250
test -n "$CC" && break
3253
if test -z "$CC"; then
3255
for ac_prog in cl.exe
3257
# Extract the first word of "$ac_prog", so it can be a program name with args.
3258
set dummy $ac_prog; ac_word=$2
3259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260
$as_echo_n "checking for $ac_word... " >&6; }
3261
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262
$as_echo_n "(cached) " >&6
3264
if test -n "$ac_ct_CC"; then
3265
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271
test -z "$as_dir" && as_dir=.
3272
for ac_exec_ext in '' $ac_executable_extensions; do
3273
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274
ac_cv_prog_ac_ct_CC="$ac_prog"
3275
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285
if test -n "$ac_ct_CC"; then
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287
$as_echo "$ac_ct_CC" >&6; }
3289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290
$as_echo "no" >&6; }
3294
test -n "$ac_ct_CC" && break
3297
if test "x$ac_ct_CC" = x; then
3300
case $cross_compiling:$ac_tool_warned in
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304
ac_tool_warned=yes ;;
3313
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315
as_fn_error $? "no acceptable C compiler found in \$PATH
3316
See \`config.log' for more details" "$LINENO" 5; }
3318
# Provide some information about the compiler.
3319
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322
for ac_option in --version -v -V -qversion; do
3323
{ { ac_try="$ac_compiler $ac_option >&5"
3325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326
*) ac_try_echo=$ac_try;;
3328
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329
$as_echo "$ac_try_echo"; } >&5
3330
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332
if test -s conftest.err; then
3334
... rest of stderr output deleted ...
3335
10q' conftest.err >conftest.er1
3336
cat conftest.er1 >&5
3338
rm -f conftest.er1 conftest.err
3339
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340
test $ac_status = 0; }
3343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344
/* end confdefs.h. */
3354
ac_clean_files_save=$ac_clean_files
3355
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356
# Try to create an executable without -o first, disregard a.out.
3357
# It will help us diagnose broken compilers, and finding out an intuition
3359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360
$as_echo_n "checking whether the C compiler works... " >&6; }
3361
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363
# The possible output files:
3364
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367
for ac_file in $ac_files
3370
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376
if { { ac_try="$ac_link_default"
3378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379
*) ac_try_echo=$ac_try;;
3381
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382
$as_echo "$ac_try_echo"; } >&5
3383
(eval "$ac_link_default") 2>&5
3385
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386
test $ac_status = 0; }; then :
3387
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3390
# so that the user can short-circuit this test for compilers unknown to
3392
for ac_file in $ac_files ''
3394
test -f "$ac_file" || continue
3396
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399
# We found the default executable, but exeext='' is most
3403
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407
# We set ac_cv_exeext here because the later test for it is not
3408
# safe: cross compilers may not add the suffix if given an `-o'
3409
# argument, so we may need to know it at that point already.
3410
# Even if this section looks crufty: it has the advantage of
3417
test "$ac_cv_exeext" = no && ac_cv_exeext=
3422
if test -z "$ac_file"; then :
3423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424
$as_echo "no" >&6; }
3425
$as_echo "$as_me: failed program was:" >&5
3426
sed 's/^/| /' conftest.$ac_ext >&5
3428
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430
as_fn_error 77 "C compiler cannot create executables
3431
See \`config.log' for more details" "$LINENO" 5; }
3433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434
$as_echo "yes" >&6; }
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437
$as_echo_n "checking for C compiler default output file name... " >&6; }
3438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439
$as_echo "$ac_file" >&6; }
3440
ac_exeext=$ac_cv_exeext
3442
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443
ac_clean_files=$ac_clean_files_save
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445
$as_echo_n "checking for suffix of executables... " >&6; }
3446
if { { ac_try="$ac_link"
3448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449
*) ac_try_echo=$ac_try;;
3451
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452
$as_echo "$ac_try_echo"; } >&5
3453
(eval "$ac_link") 2>&5
3455
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456
test $ac_status = 0; }; then :
3457
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3458
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3459
# work properly (i.e., refer to `conftest.exe'), while it won't with
3461
for ac_file in conftest.exe conftest conftest.*; do
3462
test -f "$ac_file" || continue
3464
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474
See \`config.log' for more details" "$LINENO" 5; }
3476
rm -f conftest conftest$ac_cv_exeext
3477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478
$as_echo "$ac_cv_exeext" >&6; }
3480
rm -f conftest.$ac_ext
3481
EXEEXT=$ac_cv_exeext
3483
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484
/* end confdefs.h. */
3489
FILE *f = fopen ("conftest.out", "w");
3490
return ferror (f) || fclose (f) != 0;
3496
ac_clean_files="$ac_clean_files conftest.out"
3497
# Check that the compiler produces executables we can run. If not, either
3498
# the compiler is broken, or we cross compile.
3499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500
$as_echo_n "checking whether we are cross compiling... " >&6; }
3501
if test "$cross_compiling" != yes; then
3502
{ { ac_try="$ac_link"
3504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505
*) ac_try_echo=$ac_try;;
3507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508
$as_echo "$ac_try_echo"; } >&5
3509
(eval "$ac_link") 2>&5
3511
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512
test $ac_status = 0; }
3513
if { ac_try='./conftest$ac_cv_exeext'
3514
{ { case "(($ac_try" in
3515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516
*) ac_try_echo=$ac_try;;
3518
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519
$as_echo "$ac_try_echo"; } >&5
3520
(eval "$ac_try") 2>&5
3522
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523
test $ac_status = 0; }; }; then
3526
if test "$cross_compiling" = maybe; then
3529
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531
as_fn_error $? "cannot run C compiled programs.
3532
If you meant to cross compile, use \`--host'.
3533
See \`config.log' for more details" "$LINENO" 5; }
3537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538
$as_echo "$cross_compiling" >&6; }
3540
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541
ac_clean_files=$ac_clean_files_save
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543
$as_echo_n "checking for suffix of object files... " >&6; }
3544
if ${ac_cv_objext+:} false; then :
3545
$as_echo_n "(cached) " >&6
3547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548
/* end confdefs.h. */
3558
rm -f conftest.o conftest.obj
3559
if { { ac_try="$ac_compile"
3561
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562
*) ac_try_echo=$ac_try;;
3564
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565
$as_echo "$ac_try_echo"; } >&5
3566
(eval "$ac_compile") 2>&5
3568
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569
test $ac_status = 0; }; then :
3570
for ac_file in conftest.o conftest.obj conftest.*; do
3571
test -f "$ac_file" || continue;
3573
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579
$as_echo "$as_me: failed program was:" >&5
3580
sed 's/^/| /' conftest.$ac_ext >&5
3582
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584
as_fn_error $? "cannot compute suffix of object files: cannot compile
3585
See \`config.log' for more details" "$LINENO" 5; }
3587
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590
$as_echo "$ac_cv_objext" >&6; }
3591
OBJEXT=$ac_cv_objext
3593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595
if ${ac_cv_c_compiler_gnu+:} false; then :
3596
$as_echo_n "(cached) " >&6
3598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599
/* end confdefs.h. */
3612
if ac_fn_c_try_compile "$LINENO"; then :
3617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623
if test $ac_compiler_gnu = yes; then
3628
ac_test_CFLAGS=${CFLAGS+set}
3629
ac_save_CFLAGS=$CFLAGS
3630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3632
if ${ac_cv_prog_cc_g+:} false; then :
3633
$as_echo_n "(cached) " >&6
3635
ac_save_c_werror_flag=$ac_c_werror_flag
3636
ac_c_werror_flag=yes
3639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640
/* end confdefs.h. */
3650
if ac_fn_c_try_compile "$LINENO"; then :
3654
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655
/* end confdefs.h. */
3665
if ac_fn_c_try_compile "$LINENO"; then :
3668
ac_c_werror_flag=$ac_save_c_werror_flag
3670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671
/* end confdefs.h. */
3681
if ac_fn_c_try_compile "$LINENO"; then :
3684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689
ac_c_werror_flag=$ac_save_c_werror_flag
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692
$as_echo "$ac_cv_prog_cc_g" >&6; }
3693
if test "$ac_test_CFLAGS" = set; then
3694
CFLAGS=$ac_save_CFLAGS
3695
elif test $ac_cv_prog_cc_g = yes; then
3696
if test "$GCC" = yes; then
3702
if test "$GCC" = yes; then
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710
if ${ac_cv_prog_cc_c89+:} false; then :
3711
$as_echo_n "(cached) " >&6
3713
ac_cv_prog_cc_c89=no
3715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716
/* end confdefs.h. */
3720
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721
struct buf { int x; };
3722
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723
static char *e (p, i)
3729
static char *f (char * (*g) (char **, int), char **p, ...)
3734
s = g (p, va_arg (v,int));
3739
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740
function prototypes and stuff, but not '\xHH' hex character constants.
3741
These don't provoke an error unfortunately, instead are silently treated
3742
as 'x'. The following induces an error, until -std is added to get
3743
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744
array size at least. It's necessary to write '\x00'==0 to get something
3745
that's true only with -std. */
3746
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749
inside strings and character constants. */
3751
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
int test (int i, double x);
3754
struct s1 {int (*f) (int a);};
3755
struct s2 {int (*f) (double a);};
3756
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770
CC="$ac_save_CC $ac_arg"
3771
if ac_fn_c_try_compile "$LINENO"; then :
3772
ac_cv_prog_cc_c89=$ac_arg
3774
rm -f core conftest.err conftest.$ac_objext
3775
test "x$ac_cv_prog_cc_c89" != "xno" && break
3777
rm -f conftest.$ac_ext
3782
case "x$ac_cv_prog_cc_c89" in
3784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785
$as_echo "none needed" >&6; } ;;
3787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788
$as_echo "unsupported" >&6; } ;;
3790
CC="$CC $ac_cv_prog_cc_c89"
3791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794
if test "x$ac_cv_prog_cc_c89" != xno; then :
3799
ac_cpp='$CPP $CPPFLAGS'
3800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
depcc="$CC" am_compiler_list=
3806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807
$as_echo_n "checking dependency style of $depcc... " >&6; }
3808
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3809
$as_echo_n "(cached) " >&6
3811
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812
# We make a subdir and do the tests there. Otherwise we can end up
3813
# making bogus files that we don't know about and never remove. For
3814
# instance it was reported that on HP-UX the gcc test will end up
3815
# making a dummy file named 'D' -- because '-MD' means "put the output
3819
# Copy depcomp to subdir because otherwise we won't find it if we're
3820
# using a relative directory.
3821
cp "$am_depcomp" conftest.dir
3823
# We will build objects and dependencies in a subdirectory because
3824
# it helps to detect inapplicable dependency modes. For instance
3825
# both Tru64's cc and ICC support -MD to output dependencies as a
3826
# side effect of compilation, but ICC will put the dependencies in
3827
# the current directory while Tru64 will put them in the object
3831
am_cv_CC_dependencies_compiler_type=none
3832
if test "$am_compiler_list" = ""; then
3833
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3836
case " $depcc " in #(
3837
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3840
for depmode in $am_compiler_list; do
3841
# Setup a source with many dependencies, because some compilers
3842
# like to wrap large dependency lists on column 80 (with \), and
3843
# we should not choose a depcomp mode which is confused by this.
3845
# We need to recreate these files for each test, as the compiler may
3846
# overwrite some of them when testing with obscure command lines.
3847
# This happens at least with the AIX C compiler.
3849
for i in 1 2 3 4 5 6; do
3850
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3852
# Solaris 10 /bin/sh.
3853
echo '/* dummy */' > sub/conftst$i.h
3855
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3858
# mode. It turns out that the SunPro C++ compiler does not properly
3859
# handle '-M -o', and we need to detect this. Also, some Intel
3860
# versions had trouble with output in subdirs.
3861
am__obj=sub/conftest.${OBJEXT-o}
3862
am__minus_obj="-o $am__obj"
3865
# This depmode causes a compiler race in universal mode.
3866
test "$am__universal" = false || continue
3869
# After this tag, mechanisms are not by side-effect, so they'll
3870
# only be used when explicitly requested.
3871
if test "x$enable_dependency_tracking" = xyes; then
3877
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3878
# This compiler won't grok '-c -o', but also, the minuso test has
3879
# not run yet. These depmodes are late enough in the game, and
3880
# so weak that their functioning should not be impacted.
3881
am__obj=conftest.${OBJEXT-o}
3886
if depmode=$depmode \
3887
source=sub/conftest.c object=$am__obj \
3888
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3890
>/dev/null 2>conftest.err &&
3891
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3894
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895
# icc doesn't choke on unknown options, it will just issue warnings
3896
# or remarks (even with -Werror). So we grep stderr for any message
3897
# that says an option was ignored or not supported.
3898
# When given -MP, icc 7.0 and 7.1 complain thusly:
3899
# icc: Command line warning: ignoring option '-M'; no argument required
3900
# The diagnosis changed in icc 8.0:
3901
# icc: Command line remark: option '-MP' not supported
3902
if (grep 'ignoring option' conftest.err ||
3903
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904
am_cv_CC_dependencies_compiler_type=$depmode
3913
am_cv_CC_dependencies_compiler_type=none
3917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3918
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3919
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922
test "x$enable_dependency_tracking" != xno \
3923
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925
am__fastdepCC_FALSE='#'
3927
am__fastdepCC_TRUE='#'
3928
am__fastdepCC_FALSE=
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3933
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934
if ${ac_cv_path_SED+:} false; then :
3935
$as_echo_n "(cached) " >&6
3937
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938
for ac_i in 1 2 3 4 5 6 7; do
3939
ac_script="$ac_script$as_nl$ac_script"
3941
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942
{ ac_script=; unset ac_script;}
3943
if test -z "$SED"; then
3944
ac_path_SED_found=false
3945
# Loop through the user's path and test for each of PROGNAME-LIST
3946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950
test -z "$as_dir" && as_dir=.
3951
for ac_prog in sed gsed; do
3952
for ac_exec_ext in '' $ac_executable_extensions; do
3953
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954
as_fn_executable_p "$ac_path_SED" || continue
3955
# Check for GNU ac_path_SED and select it if it is found.
3956
# Check for GNU $ac_path_SED
3957
case `"$ac_path_SED" --version 2>&1` in
3959
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3962
$as_echo_n 0123456789 >"conftest.in"
3965
cat "conftest.in" "conftest.in" >"conftest.tmp"
3966
mv "conftest.tmp" "conftest.in"
3967
cp "conftest.in" "conftest.nl"
3968
$as_echo '' >> "conftest.nl"
3969
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971
as_fn_arith $ac_count + 1 && ac_count=$as_val
3972
if test $ac_count -gt ${ac_path_SED_max-0}; then
3973
# Best one so far, save it but keep looking for a better one
3974
ac_cv_path_SED="$ac_path_SED"
3975
ac_path_SED_max=$ac_count
3977
# 10*(2^10) chars as input seems more than enough
3978
test $ac_count -gt 10 && break
3980
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983
$ac_path_SED_found && break 3
3988
if test -z "$ac_cv_path_SED"; then
3989
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3997
$as_echo "$ac_cv_path_SED" >&6; }
3998
SED="$ac_cv_path_SED"
4001
test -z "$SED" && SED=sed
4002
Xsed="$SED -e 1s/^X//"
4014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4015
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016
if ${ac_cv_path_GREP+:} false; then :
4017
$as_echo_n "(cached) " >&6
4019
if test -z "$GREP"; then
4020
ac_path_GREP_found=false
4021
# Loop through the user's path and test for each of PROGNAME-LIST
4022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026
test -z "$as_dir" && as_dir=.
4027
for ac_prog in grep ggrep; do
4028
for ac_exec_ext in '' $ac_executable_extensions; do
4029
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030
as_fn_executable_p "$ac_path_GREP" || continue
4031
# Check for GNU ac_path_GREP and select it if it is found.
4032
# Check for GNU $ac_path_GREP
4033
case `"$ac_path_GREP" --version 2>&1` in
4035
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4038
$as_echo_n 0123456789 >"conftest.in"
4041
cat "conftest.in" "conftest.in" >"conftest.tmp"
4042
mv "conftest.tmp" "conftest.in"
4043
cp "conftest.in" "conftest.nl"
4044
$as_echo 'GREP' >> "conftest.nl"
4045
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047
as_fn_arith $ac_count + 1 && ac_count=$as_val
4048
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049
# Best one so far, save it but keep looking for a better one
4050
ac_cv_path_GREP="$ac_path_GREP"
4051
ac_path_GREP_max=$ac_count
4053
# 10*(2^10) chars as input seems more than enough
4054
test $ac_count -gt 10 && break
4056
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059
$ac_path_GREP_found && break 3
4064
if test -z "$ac_cv_path_GREP"; then
4065
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068
ac_cv_path_GREP=$GREP
4072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4073
$as_echo "$ac_cv_path_GREP" >&6; }
4074
GREP="$ac_cv_path_GREP"
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4078
$as_echo_n "checking for egrep... " >&6; }
4079
if ${ac_cv_path_EGREP+:} false; then :
4080
$as_echo_n "(cached) " >&6
4082
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083
then ac_cv_path_EGREP="$GREP -E"
4085
if test -z "$EGREP"; then
4086
ac_path_EGREP_found=false
4087
# Loop through the user's path and test for each of PROGNAME-LIST
4088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092
test -z "$as_dir" && as_dir=.
4093
for ac_prog in egrep; do
4094
for ac_exec_ext in '' $ac_executable_extensions; do
4095
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096
as_fn_executable_p "$ac_path_EGREP" || continue
4097
# Check for GNU ac_path_EGREP and select it if it is found.
4098
# Check for GNU $ac_path_EGREP
4099
case `"$ac_path_EGREP" --version 2>&1` in
4101
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104
$as_echo_n 0123456789 >"conftest.in"
4107
cat "conftest.in" "conftest.in" >"conftest.tmp"
4108
mv "conftest.tmp" "conftest.in"
4109
cp "conftest.in" "conftest.nl"
4110
$as_echo 'EGREP' >> "conftest.nl"
4111
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113
as_fn_arith $ac_count + 1 && ac_count=$as_val
4114
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115
# Best one so far, save it but keep looking for a better one
4116
ac_cv_path_EGREP="$ac_path_EGREP"
4117
ac_path_EGREP_max=$ac_count
4119
# 10*(2^10) chars as input seems more than enough
4120
test $ac_count -gt 10 && break
4122
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125
$ac_path_EGREP_found && break 3
4130
if test -z "$ac_cv_path_EGREP"; then
4131
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134
ac_cv_path_EGREP=$EGREP
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4140
$as_echo "$ac_cv_path_EGREP" >&6; }
4141
EGREP="$ac_cv_path_EGREP"
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4145
$as_echo_n "checking for fgrep... " >&6; }
4146
if ${ac_cv_path_FGREP+:} false; then :
4147
$as_echo_n "(cached) " >&6
4149
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4150
then ac_cv_path_FGREP="$GREP -F"
4152
if test -z "$FGREP"; then
4153
ac_path_FGREP_found=false
4154
# Loop through the user's path and test for each of PROGNAME-LIST
4155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159
test -z "$as_dir" && as_dir=.
4160
for ac_prog in fgrep; do
4161
for ac_exec_ext in '' $ac_executable_extensions; do
4162
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4163
as_fn_executable_p "$ac_path_FGREP" || continue
4164
# Check for GNU ac_path_FGREP and select it if it is found.
4165
# Check for GNU $ac_path_FGREP
4166
case `"$ac_path_FGREP" --version 2>&1` in
4168
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4171
$as_echo_n 0123456789 >"conftest.in"
4174
cat "conftest.in" "conftest.in" >"conftest.tmp"
4175
mv "conftest.tmp" "conftest.in"
4176
cp "conftest.in" "conftest.nl"
4177
$as_echo 'FGREP' >> "conftest.nl"
4178
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180
as_fn_arith $ac_count + 1 && ac_count=$as_val
4181
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4182
# Best one so far, save it but keep looking for a better one
4183
ac_cv_path_FGREP="$ac_path_FGREP"
4184
ac_path_FGREP_max=$ac_count
4186
# 10*(2^10) chars as input seems more than enough
4187
test $ac_count -gt 10 && break
4189
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192
$ac_path_FGREP_found && break 3
4197
if test -z "$ac_cv_path_FGREP"; then
4198
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201
ac_cv_path_FGREP=$FGREP
4206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4207
$as_echo "$ac_cv_path_FGREP" >&6; }
4208
FGREP="$ac_cv_path_FGREP"
4211
test -z "$GREP" && GREP=grep
4231
# Check whether --with-gnu-ld was given.
4232
if test "${with_gnu_ld+set}" = set; then :
4233
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4239
if test "$GCC" = yes; then
4240
# Check if gcc -print-prog-name=ld gives a path.
4241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4242
$as_echo_n "checking for ld used by $CC... " >&6; }
4245
# gcc leaves a trailing carriage return which upsets mingw
4246
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4248
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4251
# Accept absolute paths.
4253
re_direlt='/[^/][^/]*/\.\./'
4254
# Canonicalize the pathname of ld
4255
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4256
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4257
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4259
test -z "$LD" && LD="$ac_prog"
4262
# If it fails, then pretend we aren't using GCC.
4266
# If it is relative, then search for the first ld in PATH.
4270
elif test "$with_gnu_ld" = yes; then
4271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4272
$as_echo_n "checking for GNU ld... " >&6; }
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4275
$as_echo_n "checking for non-GNU ld... " >&6; }
4277
if ${lt_cv_path_LD+:} false; then :
4278
$as_echo_n "(cached) " >&6
4280
if test -z "$LD"; then
4281
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4282
for ac_dir in $PATH; do
4284
test -z "$ac_dir" && ac_dir=.
4285
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4286
lt_cv_path_LD="$ac_dir/$ac_prog"
4287
# Check to see if the program is GNU ld. I'd rather use --version,
4288
# but apparently some variants of GNU ld only accept -v.
4289
# Break only if it was the GNU/non-GNU ld that we prefer.
4290
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4291
*GNU* | *'with BFD'*)
4292
test "$with_gnu_ld" != no && break
4295
test "$with_gnu_ld" != yes && break
4302
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4307
if test -n "$LD"; then
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4309
$as_echo "$LD" >&6; }
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312
$as_echo "no" >&6; }
4314
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4316
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4317
if ${lt_cv_prog_gnu_ld+:} false; then :
4318
$as_echo_n "(cached) " >&6
4320
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4321
case `$LD -v 2>&1 </dev/null` in
4322
*GNU* | *'with BFD'*)
4323
lt_cv_prog_gnu_ld=yes
4326
lt_cv_prog_gnu_ld=no
4330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4331
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4332
with_gnu_ld=$lt_cv_prog_gnu_ld
4342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4343
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4344
if ${lt_cv_path_NM+:} false; then :
4345
$as_echo_n "(cached) " >&6
4347
if test -n "$NM"; then
4348
# Let the user override the test.
4351
lt_nm_to_check="${ac_tool_prefix}nm"
4352
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4353
lt_nm_to_check="$lt_nm_to_check nm"
4355
for lt_tmp_nm in $lt_nm_to_check; do
4356
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4357
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4359
test -z "$ac_dir" && ac_dir=.
4360
tmp_nm="$ac_dir/$lt_tmp_nm"
4361
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4362
# Check to see if the nm accepts a BSD-compat flag.
4363
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4364
# nm: unknown option "B" ignored
4365
# Tru64's nm complains that /dev/null is an invalid object file
4366
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4367
*/dev/null* | *'Invalid file or object type'*)
4368
lt_cv_path_NM="$tmp_nm -B"
4372
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4374
lt_cv_path_NM="$tmp_nm -p"
4378
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4379
continue # so that we can try to find one that supports BSD flags
4388
: ${lt_cv_path_NM=no}
4391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4392
$as_echo "$lt_cv_path_NM" >&6; }
4393
if test "$lt_cv_path_NM" != "no"; then
4396
# Didn't find any BSD compatible name lister, look for dumpbin.
4397
if test -n "$DUMPBIN"; then :
4398
# Let the user override the test.
4400
if test -n "$ac_tool_prefix"; then
4401
for ac_prog in dumpbin "link -dump"
4403
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406
$as_echo_n "checking for $ac_word... " >&6; }
4407
if ${ac_cv_prog_DUMPBIN+:} false; then :
4408
$as_echo_n "(cached) " >&6
4410
if test -n "$DUMPBIN"; then
4411
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417
test -z "$as_dir" && as_dir=.
4418
for ac_exec_ext in '' $ac_executable_extensions; do
4419
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4421
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430
DUMPBIN=$ac_cv_prog_DUMPBIN
4431
if test -n "$DUMPBIN"; then
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4433
$as_echo "$DUMPBIN" >&6; }
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436
$as_echo "no" >&6; }
4440
test -n "$DUMPBIN" && break
4443
if test -z "$DUMPBIN"; then
4444
ac_ct_DUMPBIN=$DUMPBIN
4445
for ac_prog in dumpbin "link -dump"
4447
# Extract the first word of "$ac_prog", so it can be a program name with args.
4448
set dummy $ac_prog; ac_word=$2
4449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450
$as_echo_n "checking for $ac_word... " >&6; }
4451
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4452
$as_echo_n "(cached) " >&6
4454
if test -n "$ac_ct_DUMPBIN"; then
4455
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461
test -z "$as_dir" && as_dir=.
4462
for ac_exec_ext in '' $ac_executable_extensions; do
4463
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4465
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475
if test -n "$ac_ct_DUMPBIN"; then
4476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4477
$as_echo "$ac_ct_DUMPBIN" >&6; }
4479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480
$as_echo "no" >&6; }
4484
test -n "$ac_ct_DUMPBIN" && break
4487
if test "x$ac_ct_DUMPBIN" = x; then
4490
case $cross_compiling:$ac_tool_warned in
4492
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494
ac_tool_warned=yes ;;
4496
DUMPBIN=$ac_ct_DUMPBIN
4500
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4502
DUMPBIN="$DUMPBIN -symbols"
4510
if test "$DUMPBIN" != ":"; then
4514
test -z "$NM" && NM=nm
4521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4522
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4523
if ${lt_cv_nm_interface+:} false; then :
4524
$as_echo_n "(cached) " >&6
4526
lt_cv_nm_interface="BSD nm"
4527
echo "int some_variable = 0;" > conftest.$ac_ext
4528
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4529
(eval "$ac_compile" 2>conftest.err)
4530
cat conftest.err >&5
4531
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4532
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4533
cat conftest.err >&5
4534
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4535
cat conftest.out >&5
4536
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4537
lt_cv_nm_interface="MS dumpbin"
4541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4542
$as_echo "$lt_cv_nm_interface" >&6; }
4544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4545
$as_echo_n "checking whether ln -s works... " >&6; }
4547
if test "$LN_S" = "ln -s"; then
4548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549
$as_echo "yes" >&6; }
4551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4552
$as_echo "no, using $LN_S" >&6; }
4555
# find the maximum length of command line arguments
4556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4557
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4558
if ${lt_cv_sys_max_cmd_len+:} false; then :
4559
$as_echo_n "(cached) " >&6
4566
# On DJGPP, this test can blow up pretty badly due to problems in libc
4567
# (any single argument exceeding 2000 bytes causes a buffer overrun
4568
# during glob expansion). Even if it were fixed, the result of this
4569
# check would be larger than it should be.
4570
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4574
# Under GNU Hurd, this test is not required because there is
4575
# no limit to the length of command line arguments.
4576
# Libtool will interpret -1 as no limit whatsoever
4577
lt_cv_sys_max_cmd_len=-1;
4580
cygwin* | mingw* | cegcc*)
4581
# On Win9x/ME, this test blows up -- it succeeds, but takes
4582
# about 5 minutes as the teststring grows exponentially.
4583
# Worse, since 9x/ME are not pre-emptively multitasking,
4584
# you end up with a "frozen" computer, even though with patience
4585
# the test eventually succeeds (with a max line length of 256k).
4586
# Instead, let's just punt: use the minimum linelength reported by
4587
# all of the supported platforms: 8192 (on NT/2K/XP).
4588
lt_cv_sys_max_cmd_len=8192;
4592
# On MiNT this can take a long time and run out of memory.
4593
lt_cv_sys_max_cmd_len=8192;
4597
# On AmigaOS with pdksh, this test takes hours, literally.
4598
# So we just punt and use a minimum line length of 8192.
4599
lt_cv_sys_max_cmd_len=8192;
4602
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4603
# This has been around since 386BSD, at least. Likely further.
4604
if test -x /sbin/sysctl; then
4605
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4606
elif test -x /usr/sbin/sysctl; then
4607
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4609
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4611
# And add a safety zone
4612
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4613
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4617
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4618
lt_cv_sys_max_cmd_len=196608
4622
# The test takes a long time on OS/2.
4623
lt_cv_sys_max_cmd_len=8192
4627
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4628
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4629
# nice to cause kernel panics so lets avoid the loop below.
4630
# First set a reasonable default.
4631
lt_cv_sys_max_cmd_len=16384
4633
if test -x /sbin/sysconfig; then
4634
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4635
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4640
lt_cv_sys_max_cmd_len=102400
4642
sysv5* | sco5v6* | sysv4.2uw2*)
4643
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4644
if test -n "$kargmax"; then
4645
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4647
lt_cv_sys_max_cmd_len=32768
4651
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4652
if test -n "$lt_cv_sys_max_cmd_len"; then
4653
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4656
# Make teststring a little bigger before we do anything with it.
4657
# a 1K string should be a reasonable start.
4658
for i in 1 2 3 4 5 6 7 8 ; do
4659
teststring=$teststring$teststring
4661
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662
# If test is not a shell built-in, we'll probably end up computing a
4663
# maximum length that is only half of the actual maximum length, but
4665
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4666
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4667
test $i != 17 # 1/2 MB should be enough
4670
teststring=$teststring$teststring
4672
# Only check the string length outside the loop.
4673
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4675
# Add a significant safety factor because C++ compilers can tack on
4676
# massive amounts of additional arguments before passing them to the
4677
# linker. It appears as though 1/2 is a usable value.
4678
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4685
if test -n $lt_cv_sys_max_cmd_len ; then
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4687
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4690
$as_echo "none" >&6; }
4692
max_cmd_len=$lt_cv_sys_max_cmd_len
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4704
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4705
# Try some XSI features
4708
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4710
&& eval 'test $(( 1 + 1 )) -eq 2 \
4711
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4714
$as_echo "$xsi_shell" >&6; }
4717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4718
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4720
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4722
&& lt_shell_append=yes
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4724
$as_echo "$lt_shell_append" >&6; }
4727
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4737
# test EBCDIC or ASCII
4738
case `echo X|tr X '\101'` in
4739
A) # ASCII based system
4740
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4741
lt_SP2NL='tr \040 \012'
4742
lt_NL2SP='tr \015\012 \040\040'
4744
*) # EBCDIC based system
4745
lt_SP2NL='tr \100 \n'
4746
lt_NL2SP='tr \r\n \100\100'
4758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4759
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4760
if ${lt_cv_to_host_file_cmd+:} false; then :
4761
$as_echo_n "(cached) " >&6
4766
*-*-mingw* ) # actually msys
4767
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4770
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4772
* ) # otherwise, assume *nix
4773
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4779
*-*-mingw* ) # actually msys
4780
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4783
lt_cv_to_host_file_cmd=func_convert_file_noop
4785
* ) # otherwise, assume *nix
4786
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4790
* ) # unhandled hosts (and "normal" native builds)
4791
lt_cv_to_host_file_cmd=func_convert_file_noop
4797
to_host_file_cmd=$lt_cv_to_host_file_cmd
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4799
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4806
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4807
if ${lt_cv_to_tool_file_cmd+:} false; then :
4808
$as_echo_n "(cached) " >&6
4810
#assume ordinary cross tools, or native build.
4811
lt_cv_to_tool_file_cmd=func_convert_file_noop
4815
*-*-mingw* ) # actually msys
4816
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4824
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4826
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4833
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4834
if ${lt_cv_ld_reload_flag+:} false; then :
4835
$as_echo_n "(cached) " >&6
4837
lt_cv_ld_reload_flag='-r'
4839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4840
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4841
reload_flag=$lt_cv_ld_reload_flag
4842
case $reload_flag in
4844
*) reload_flag=" $reload_flag" ;;
4846
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4848
cygwin* | mingw* | pw32* | cegcc*)
4849
if test "$GCC" != yes; then
4854
if test "$GCC" = yes; then
4855
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4857
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4870
if test -n "$ac_tool_prefix"; then
4871
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4872
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874
$as_echo_n "checking for $ac_word... " >&6; }
4875
if ${ac_cv_prog_OBJDUMP+:} false; then :
4876
$as_echo_n "(cached) " >&6
4878
if test -n "$OBJDUMP"; then
4879
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885
test -z "$as_dir" && as_dir=.
4886
for ac_exec_ext in '' $ac_executable_extensions; do
4887
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4889
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898
OBJDUMP=$ac_cv_prog_OBJDUMP
4899
if test -n "$OBJDUMP"; then
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4901
$as_echo "$OBJDUMP" >&6; }
4903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904
$as_echo "no" >&6; }
4909
if test -z "$ac_cv_prog_OBJDUMP"; then
4910
ac_ct_OBJDUMP=$OBJDUMP
4911
# Extract the first word of "objdump", so it can be a program name with args.
4912
set dummy objdump; ac_word=$2
4913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914
$as_echo_n "checking for $ac_word... " >&6; }
4915
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4916
$as_echo_n "(cached) " >&6
4918
if test -n "$ac_ct_OBJDUMP"; then
4919
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925
test -z "$as_dir" && as_dir=.
4926
for ac_exec_ext in '' $ac_executable_extensions; do
4927
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4929
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4939
if test -n "$ac_ct_OBJDUMP"; then
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4941
$as_echo "$ac_ct_OBJDUMP" >&6; }
4943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944
$as_echo "no" >&6; }
4947
if test "x$ac_ct_OBJDUMP" = x; then
4950
case $cross_compiling:$ac_tool_warned in
4952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954
ac_tool_warned=yes ;;
4956
OBJDUMP=$ac_ct_OBJDUMP
4959
OBJDUMP="$ac_cv_prog_OBJDUMP"
4962
test -z "$OBJDUMP" && OBJDUMP=objdump
4972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4973
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4974
if ${lt_cv_deplibs_check_method+:} false; then :
4975
$as_echo_n "(cached) " >&6
4977
lt_cv_file_magic_cmd='$MAGIC_CMD'
4978
lt_cv_file_magic_test_file=
4979
lt_cv_deplibs_check_method='unknown'
4980
# Need to set the preceding variable on all platforms that support
4981
# interlibrary dependencies.
4982
# 'none' -- dependencies not supported.
4983
# `unknown' -- same as none, but documents that we really don't know.
4984
# 'pass_all' -- all dependencies passed with no checks.
4985
# 'test_compile' -- check by making test program.
4986
# 'file_magic [[regex]]' -- check by looking for files in library path
4987
# which responds to the $file_magic_cmd with a given extended regex.
4988
# If you have `file' or equivalent on your system and you're not sure
4989
# whether `pass_all' will *always* work, you probably want this one.
4993
lt_cv_deplibs_check_method=pass_all
4997
lt_cv_deplibs_check_method=pass_all
5001
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5002
lt_cv_file_magic_cmd='/usr/bin/file -L'
5003
lt_cv_file_magic_test_file=/shlib/libc.so
5007
# func_win32_libid is a shell function defined in ltmain.sh
5008
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5009
lt_cv_file_magic_cmd='func_win32_libid'
5013
# Base MSYS/MinGW do not provide the 'file' command needed by
5014
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5015
# unless we find 'file', for example because we are cross-compiling.
5016
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5017
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5018
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5019
lt_cv_file_magic_cmd='func_win32_libid'
5021
# Keep this pattern in sync with the one in func_win32_libid.
5022
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5023
lt_cv_file_magic_cmd='$OBJDUMP -f'
5028
# use the weaker test based on 'objdump'. See mingw*.
5029
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5030
lt_cv_file_magic_cmd='$OBJDUMP -f'
5033
darwin* | rhapsody*)
5034
lt_cv_deplibs_check_method=pass_all
5037
freebsd* | dragonfly*)
5038
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5041
# Not sure whether the presence of OpenBSD here was a mistake.
5042
# Let's accept both of them until this is cleared up.
5043
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5044
lt_cv_file_magic_cmd=/usr/bin/file
5045
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5049
lt_cv_deplibs_check_method=pass_all
5054
lt_cv_deplibs_check_method=pass_all
5058
lt_cv_deplibs_check_method=pass_all
5061
hpux10.20* | hpux11*)
5062
lt_cv_file_magic_cmd=/usr/bin/file
5065
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5066
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5069
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]'
5070
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5073
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5074
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5080
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5081
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5084
irix5* | irix6* | nonstopux*)
5086
*-32|*"-32 ") libmagic=32-bit;;
5087
*-n32|*"-n32 ") libmagic=N32;;
5088
*-64|*"-64 ") libmagic=64-bit;;
5089
*) libmagic=never-match;;
5091
lt_cv_deplibs_check_method=pass_all
5094
# This must be glibc/ELF.
5095
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5096
lt_cv_deplibs_check_method=pass_all
5100
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5101
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5103
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5108
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5109
lt_cv_file_magic_cmd=/usr/bin/file
5110
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5114
lt_cv_deplibs_check_method=pass_all
5118
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5119
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5121
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5125
osf3* | osf4* | osf5*)
5126
lt_cv_deplibs_check_method=pass_all
5130
lt_cv_deplibs_check_method=pass_all
5134
lt_cv_deplibs_check_method=pass_all
5137
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5138
lt_cv_deplibs_check_method=pass_all
5142
case $host_vendor in
5144
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]'
5145
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5148
lt_cv_deplibs_check_method=pass_all
5151
lt_cv_file_magic_cmd='/bin/file'
5152
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5155
lt_cv_file_magic_cmd='/bin/file'
5156
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157
lt_cv_file_magic_test_file=/lib/libc.so
5160
lt_cv_deplibs_check_method=pass_all
5163
lt_cv_deplibs_check_method=pass_all
5169
lt_cv_deplibs_check_method=pass_all
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5175
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5179
if test "$build" = "$host"; then
5182
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5185
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5191
file_magic_cmd=$lt_cv_file_magic_cmd
5192
deplibs_check_method=$lt_cv_deplibs_check_method
5193
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5216
if test -n "$ac_tool_prefix"; then
5217
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5218
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220
$as_echo_n "checking for $ac_word... " >&6; }
5221
if ${ac_cv_prog_DLLTOOL+:} false; then :
5222
$as_echo_n "(cached) " >&6
5224
if test -n "$DLLTOOL"; then
5225
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231
test -z "$as_dir" && as_dir=.
5232
for ac_exec_ext in '' $ac_executable_extensions; do
5233
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5235
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244
DLLTOOL=$ac_cv_prog_DLLTOOL
5245
if test -n "$DLLTOOL"; then
5246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5247
$as_echo "$DLLTOOL" >&6; }
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250
$as_echo "no" >&6; }
5255
if test -z "$ac_cv_prog_DLLTOOL"; then
5256
ac_ct_DLLTOOL=$DLLTOOL
5257
# Extract the first word of "dlltool", so it can be a program name with args.
5258
set dummy dlltool; ac_word=$2
5259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260
$as_echo_n "checking for $ac_word... " >&6; }
5261
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5262
$as_echo_n "(cached) " >&6
5264
if test -n "$ac_ct_DLLTOOL"; then
5265
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271
test -z "$as_dir" && as_dir=.
5272
for ac_exec_ext in '' $ac_executable_extensions; do
5273
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5275
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5285
if test -n "$ac_ct_DLLTOOL"; then
5286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5287
$as_echo "$ac_ct_DLLTOOL" >&6; }
5289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290
$as_echo "no" >&6; }
5293
if test "x$ac_ct_DLLTOOL" = x; then
5296
case $cross_compiling:$ac_tool_warned in
5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300
ac_tool_warned=yes ;;
5302
DLLTOOL=$ac_ct_DLLTOOL
5305
DLLTOOL="$ac_cv_prog_DLLTOOL"
5308
test -z "$DLLTOOL" && DLLTOOL=dlltool
5319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5320
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5321
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5322
$as_echo_n "(cached) " >&6
5324
lt_cv_sharedlib_from_linklib_cmd='unknown'
5327
cygwin* | mingw* | pw32* | cegcc*)
5328
# two different shell functions defined in ltmain.sh
5329
# decide which to use based on capabilities of $DLLTOOL
5330
case `$DLLTOOL --help 2>&1` in
5331
*--identify-strict*)
5332
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5335
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5340
# fallback: assume linklib IS sharedlib
5341
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5347
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5348
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5349
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5358
if test -n "$ac_tool_prefix"; then
5361
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364
$as_echo_n "checking for $ac_word... " >&6; }
5365
if ${ac_cv_prog_AR+:} false; then :
5366
$as_echo_n "(cached) " >&6
5368
if test -n "$AR"; then
5369
ac_cv_prog_AR="$AR" # Let the user override the test.
5371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375
test -z "$as_dir" && as_dir=.
5376
for ac_exec_ext in '' $ac_executable_extensions; do
5377
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5379
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389
if test -n "$AR"; then
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5391
$as_echo "$AR" >&6; }
5393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394
$as_echo "no" >&6; }
5398
test -n "$AR" && break
5401
if test -z "$AR"; then
5405
# Extract the first word of "$ac_prog", so it can be a program name with args.
5406
set dummy $ac_prog; ac_word=$2
5407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408
$as_echo_n "checking for $ac_word... " >&6; }
5409
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5410
$as_echo_n "(cached) " >&6
5412
if test -n "$ac_ct_AR"; then
5413
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419
test -z "$as_dir" && as_dir=.
5420
for ac_exec_ext in '' $ac_executable_extensions; do
5421
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422
ac_cv_prog_ac_ct_AR="$ac_prog"
5423
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433
if test -n "$ac_ct_AR"; then
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5435
$as_echo "$ac_ct_AR" >&6; }
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438
$as_echo "no" >&6; }
5442
test -n "$ac_ct_AR" && break
5445
if test "x$ac_ct_AR" = x; then
5448
case $cross_compiling:$ac_tool_warned in
5450
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452
ac_tool_warned=yes ;;
5471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5472
$as_echo_n "checking for archiver @FILE support... " >&6; }
5473
if ${lt_cv_ar_at_file+:} false; then :
5474
$as_echo_n "(cached) " >&6
5477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478
/* end confdefs.h. */
5488
if ac_fn_c_try_compile "$LINENO"; then :
5489
echo conftest.$ac_objext > conftest.lst
5490
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5491
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5492
(eval $lt_ar_try) 2>&5
5494
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5495
test $ac_status = 0; }
5496
if test "$ac_status" -eq 0; then
5497
# Ensure the archiver fails upon bogus file names.
5498
rm -f conftest.$ac_objext libconftest.a
5499
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5500
(eval $lt_ar_try) 2>&5
5502
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503
test $ac_status = 0; }
5504
if test "$ac_status" -ne 0; then
5508
rm -f conftest.* libconftest.a
5511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5515
$as_echo "$lt_cv_ar_at_file" >&6; }
5517
if test "x$lt_cv_ar_at_file" = xno; then
5520
archiver_list_spec=$lt_cv_ar_at_file
5529
if test -n "$ac_tool_prefix"; then
5530
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5531
set dummy ${ac_tool_prefix}strip; ac_word=$2
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533
$as_echo_n "checking for $ac_word... " >&6; }
5534
if ${ac_cv_prog_STRIP+:} false; then :
5535
$as_echo_n "(cached) " >&6
5537
if test -n "$STRIP"; then
5538
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544
test -z "$as_dir" && as_dir=.
5545
for ac_exec_ext in '' $ac_executable_extensions; do
5546
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5548
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557
STRIP=$ac_cv_prog_STRIP
5558
if test -n "$STRIP"; then
5559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5560
$as_echo "$STRIP" >&6; }
5562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563
$as_echo "no" >&6; }
5568
if test -z "$ac_cv_prog_STRIP"; then
5570
# Extract the first word of "strip", so it can be a program name with args.
5571
set dummy strip; ac_word=$2
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573
$as_echo_n "checking for $ac_word... " >&6; }
5574
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5575
$as_echo_n "(cached) " >&6
5577
if test -n "$ac_ct_STRIP"; then
5578
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584
test -z "$as_dir" && as_dir=.
5585
for ac_exec_ext in '' $ac_executable_extensions; do
5586
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587
ac_cv_prog_ac_ct_STRIP="strip"
5588
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598
if test -n "$ac_ct_STRIP"; then
5599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5600
$as_echo "$ac_ct_STRIP" >&6; }
5602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603
$as_echo "no" >&6; }
5606
if test "x$ac_ct_STRIP" = x; then
5609
case $cross_compiling:$ac_tool_warned in
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613
ac_tool_warned=yes ;;
5618
STRIP="$ac_cv_prog_STRIP"
5621
test -z "$STRIP" && STRIP=:
5628
if test -n "$ac_tool_prefix"; then
5629
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5630
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632
$as_echo_n "checking for $ac_word... " >&6; }
5633
if ${ac_cv_prog_RANLIB+:} false; then :
5634
$as_echo_n "(cached) " >&6
5636
if test -n "$RANLIB"; then
5637
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643
test -z "$as_dir" && as_dir=.
5644
for ac_exec_ext in '' $ac_executable_extensions; do
5645
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5647
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656
RANLIB=$ac_cv_prog_RANLIB
5657
if test -n "$RANLIB"; then
5658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5659
$as_echo "$RANLIB" >&6; }
5661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662
$as_echo "no" >&6; }
5667
if test -z "$ac_cv_prog_RANLIB"; then
5668
ac_ct_RANLIB=$RANLIB
5669
# Extract the first word of "ranlib", so it can be a program name with args.
5670
set dummy ranlib; ac_word=$2
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672
$as_echo_n "checking for $ac_word... " >&6; }
5673
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5674
$as_echo_n "(cached) " >&6
5676
if test -n "$ac_ct_RANLIB"; then
5677
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683
test -z "$as_dir" && as_dir=.
5684
for ac_exec_ext in '' $ac_executable_extensions; do
5685
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686
ac_cv_prog_ac_ct_RANLIB="ranlib"
5687
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697
if test -n "$ac_ct_RANLIB"; then
5698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5699
$as_echo "$ac_ct_RANLIB" >&6; }
5701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702
$as_echo "no" >&6; }
5705
if test "x$ac_ct_RANLIB" = x; then
5708
case $cross_compiling:$ac_tool_warned in
5710
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712
ac_tool_warned=yes ;;
5714
RANLIB=$ac_ct_RANLIB
5717
RANLIB="$ac_cv_prog_RANLIB"
5720
test -z "$RANLIB" && RANLIB=:
5727
# Determine commands to create old-style static archives.
5728
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729
old_postinstall_cmds='chmod 644 $oldlib'
5730
old_postuninstall_cmds=
5732
if test -n "$RANLIB"; then
5735
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5738
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5741
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5746
lock_old_archive_extraction=yes ;;
5748
lock_old_archive_extraction=no ;;
5789
# If no C compiler was specified, use CC.
5792
# If no C compiler flags were specified, use CFLAGS.
5793
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5795
# Allow CC to be a program name with arguments.
5799
# Check for command to grab the raw symbol name followed by C symbol from nm.
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5801
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5802
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5803
$as_echo_n "(cached) " >&6
5806
# These are sane defaults that work on at least a few old systems.
5807
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5809
# Character class describing NM global symbol codes.
5810
symcode='[BCDEGRST]'
5812
# Regexp to match symbols that can be accessed directly from C.
5813
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5815
# Define system-specific variables.
5820
cygwin* | mingw* | pw32* | cegcc*)
5821
symcode='[ABCDGISTW]'
5824
if test "$host_cpu" = ia64; then
5825
symcode='[ABCDEGRST]'
5829
symcode='[BCDEGRST]'
5832
symcode='[BCDEGQRST]'
5843
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5851
# If we're using GNU nm, then use its standard symbol codes.
5852
case `$NM -V 2>&1` in
5853
*GNU* | *'with BFD'*)
5854
symcode='[ABCDGIRSTW]' ;;
5857
# Transform an extracted symbol line into a proper C declaration.
5858
# Some systems (esp. on ia64) link data and code symbols differently,
5859
# so use this general approach.
5860
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5862
# Transform an extracted symbol line into symbol name and symbol address
5863
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5864
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'"
5866
# Handle CRLF in mingw tool chain
5870
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5874
# Try without a prefix underscore, then with it.
5875
for ac_symprfx in "" "_"; do
5877
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5878
symxfrm="\\1 $ac_symprfx\\2 \\2"
5880
# Write the raw and C identifiers.
5881
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5882
# Fake it for dumpbin and say T for any non-static function
5883
# and D for any global variable.
5884
# Also find C++ and __fastcall symbols from MSVC++,
5885
# which start with @ or ?.
5886
lt_cv_sys_global_symbol_pipe="$AWK '"\
5887
" {last_section=section; section=\$ 3};"\
5888
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5889
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5890
" \$ 0!~/External *\|/{next};"\
5891
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5892
" {if(hide[section]) next};"\
5893
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5894
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5895
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5896
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5897
" ' prfx=^$ac_symprfx"
5899
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5901
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5903
# Check to see that the pipe works correctly.
5907
cat > conftest.$ac_ext <<_LT_EOF
5912
void nm_test_func(void);
5913
void nm_test_func(void){}
5917
int main(){nm_test_var='a';nm_test_func();return(0);}
5920
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5921
(eval $ac_compile) 2>&5
5923
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924
test $ac_status = 0; }; then
5925
# Now try to grab the symbols.
5927
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5928
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5930
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931
test $ac_status = 0; } && test -s "$nlist"; then
5932
# Try sorting and uniquifying the output.
5933
if sort "$nlist" | uniq > "$nlist"T; then
5934
mv -f "$nlist"T "$nlist"
5939
# Make sure that we snagged all the symbols we need.
5940
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5941
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5942
cat <<_LT_EOF > conftest.$ac_ext
5943
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5944
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5945
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5946
relocations are performed -- see ld's documentation on pseudo-relocs. */
5947
# define LT_DLSYM_CONST
5948
#elif defined(__osf__)
5949
/* This system does not cope well with relocations in const data. */
5950
# define LT_DLSYM_CONST
5952
# define LT_DLSYM_CONST const
5960
# Now generate the symbol file.
5961
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5963
cat <<_LT_EOF >> conftest.$ac_ext
5965
/* The mapping between symbol names and symbols. */
5966
LT_DLSYM_CONST struct {
5970
lt__PROGRAM__LTX_preloaded_symbols[] =
5972
{ "@PROGRAM@", (void *) 0 },
5974
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5975
cat <<\_LT_EOF >> conftest.$ac_ext
5979
/* This works around a problem in FreeBSD linker */
5980
#ifdef FREEBSD_WORKAROUND
5981
static const void *lt_preloaded_setup() {
5982
return lt__PROGRAM__LTX_preloaded_symbols;
5990
# Now try linking the two files.
5991
mv conftest.$ac_objext conftstm.$ac_objext
5992
lt_globsym_save_LIBS=$LIBS
5993
lt_globsym_save_CFLAGS=$CFLAGS
5994
LIBS="conftstm.$ac_objext"
5995
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5996
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5997
(eval $ac_link) 2>&5
5999
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6003
LIBS=$lt_globsym_save_LIBS
6004
CFLAGS=$lt_globsym_save_CFLAGS
6006
echo "cannot find nm_test_func in $nlist" >&5
6009
echo "cannot find nm_test_var in $nlist" >&5
6012
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6015
echo "$progname: failed program was:" >&5
6016
cat conftest.$ac_ext >&5
6018
rm -rf conftest* conftst*
6020
# Do not use the global_symbol_pipe unless it works.
6021
if test "$pipe_works" = yes; then
6024
lt_cv_sys_global_symbol_pipe=
6030
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6031
lt_cv_sys_global_symbol_to_cdecl=
6033
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6035
$as_echo "failed" >&6; }
6037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6038
$as_echo "ok" >&6; }
6041
# Response file support.
6042
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6043
nm_file_list_spec='@'
6044
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6045
nm_file_list_spec='@'
6074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6075
$as_echo_n "checking for sysroot... " >&6; }
6077
# Check whether --with-sysroot was given.
6078
if test "${with_sysroot+set}" = set; then :
6079
withval=$with_sysroot;
6086
case ${with_sysroot} in #(
6088
if test "$GCC" = yes; then
6089
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6093
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6099
$as_echo "${with_sysroot}" >&6; }
6100
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6105
$as_echo "${lt_sysroot:-no}" >&6; }
6111
# Check whether --enable-libtool-lock was given.
6112
if test "${enable_libtool_lock+set}" = set; then :
6113
enableval=$enable_libtool_lock;
6116
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6118
# Some flags need to be propagated to the compiler or linker for good
6122
# Find out which ABI we are using.
6123
echo 'int i;' > conftest.$ac_ext
6124
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125
(eval $ac_compile) 2>&5
6127
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128
test $ac_status = 0; }; then
6129
case `/usr/bin/file conftest.$ac_objext` in
6141
# Find out which ABI we are using.
6142
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6143
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6144
(eval $ac_compile) 2>&5
6146
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147
test $ac_status = 0; }; then
6148
if test "$lt_cv_prog_gnu_ld" = yes; then
6149
case `/usr/bin/file conftest.$ac_objext` in
6151
LD="${LD-ld} -melf32bsmip"
6154
LD="${LD-ld} -melf32bmipn32"
6157
LD="${LD-ld} -melf64bmip"
6161
case `/usr/bin/file conftest.$ac_objext` in
6177
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6178
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6179
# Find out which ABI we are using.
6180
echo 'int i;' > conftest.$ac_ext
6181
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6182
(eval $ac_compile) 2>&5
6184
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185
test $ac_status = 0; }; then
6186
case `/usr/bin/file conftest.o` in
6189
x86_64-*kfreebsd*-gnu)
6190
LD="${LD-ld} -m elf_i386_fbsd"
6193
LD="${LD-ld} -m elf_i386"
6195
ppc64-*linux*|powerpc64-*linux*)
6196
LD="${LD-ld} -m elf32ppclinux"
6199
LD="${LD-ld} -m elf_s390"
6202
LD="${LD-ld} -m elf32_sparc"
6208
x86_64-*kfreebsd*-gnu)
6209
LD="${LD-ld} -m elf_x86_64_fbsd"
6212
LD="${LD-ld} -m elf_x86_64"
6214
ppc*-*linux*|powerpc*-*linux*)
6215
LD="${LD-ld} -m elf64ppc"
6217
s390*-*linux*|s390*-*tpf*)
6218
LD="${LD-ld} -m elf64_s390"
6221
LD="${LD-ld} -m elf64_sparc"
6231
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6232
SAVE_CFLAGS="$CFLAGS"
6233
CFLAGS="$CFLAGS -belf"
6234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6235
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6236
if ${lt_cv_cc_needs_belf+:} false; then :
6237
$as_echo_n "(cached) " >&6
6240
ac_cpp='$CPP $CPPFLAGS'
6241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246
/* end confdefs.h. */
6256
if ac_fn_c_try_link "$LINENO"; then :
6257
lt_cv_cc_needs_belf=yes
6259
lt_cv_cc_needs_belf=no
6261
rm -f core conftest.err conftest.$ac_objext \
6262
conftest$ac_exeext conftest.$ac_ext
6264
ac_cpp='$CPP $CPPFLAGS'
6265
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6271
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6272
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6273
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6274
CFLAGS="$SAVE_CFLAGS"
6278
# Find out which ABI we are using.
6279
echo 'int i;' > conftest.$ac_ext
6280
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281
(eval $ac_compile) 2>&5
6283
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284
test $ac_status = 0; }; then
6285
case `/usr/bin/file conftest.o` in
6287
case $lt_cv_prog_gnu_ld in
6291
LD="${LD-ld} -m elf_x86_64"
6294
LD="${LD-ld} -m elf64_sparc"
6297
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6298
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6303
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6315
need_locks="$enable_libtool_lock"
6317
if test -n "$ac_tool_prefix"; then
6318
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6319
set dummy ${ac_tool_prefix}mt; ac_word=$2
6320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321
$as_echo_n "checking for $ac_word... " >&6; }
6322
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6323
$as_echo_n "(cached) " >&6
6325
if test -n "$MANIFEST_TOOL"; then
6326
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332
test -z "$as_dir" && as_dir=.
6333
for ac_exec_ext in '' $ac_executable_extensions; do
6334
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6336
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6346
if test -n "$MANIFEST_TOOL"; then
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6348
$as_echo "$MANIFEST_TOOL" >&6; }
6350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351
$as_echo "no" >&6; }
6356
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6357
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6358
# Extract the first word of "mt", so it can be a program name with args.
6359
set dummy mt; ac_word=$2
6360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361
$as_echo_n "checking for $ac_word... " >&6; }
6362
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6363
$as_echo_n "(cached) " >&6
6365
if test -n "$ac_ct_MANIFEST_TOOL"; then
6366
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372
test -z "$as_dir" && as_dir=.
6373
for ac_exec_ext in '' $ac_executable_extensions; do
6374
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6376
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6386
if test -n "$ac_ct_MANIFEST_TOOL"; then
6387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6388
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391
$as_echo "no" >&6; }
6394
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6397
case $cross_compiling:$ac_tool_warned in
6399
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401
ac_tool_warned=yes ;;
6403
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6406
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6409
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6411
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6412
if ${lt_cv_path_mainfest_tool+:} false; then :
6413
$as_echo_n "(cached) " >&6
6415
lt_cv_path_mainfest_tool=no
6416
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6417
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6418
cat conftest.err >&5
6419
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6420
lt_cv_path_mainfest_tool=yes
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6425
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6426
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6436
rhapsody* | darwin*)
6437
if test -n "$ac_tool_prefix"; then
6438
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441
$as_echo_n "checking for $ac_word... " >&6; }
6442
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6443
$as_echo_n "(cached) " >&6
6445
if test -n "$DSYMUTIL"; then
6446
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452
test -z "$as_dir" && as_dir=.
6453
for ac_exec_ext in '' $ac_executable_extensions; do
6454
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466
if test -n "$DSYMUTIL"; then
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468
$as_echo "$DSYMUTIL" >&6; }
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471
$as_echo "no" >&6; }
6476
if test -z "$ac_cv_prog_DSYMUTIL"; then
6477
ac_ct_DSYMUTIL=$DSYMUTIL
6478
# Extract the first word of "dsymutil", so it can be a program name with args.
6479
set dummy dsymutil; ac_word=$2
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481
$as_echo_n "checking for $ac_word... " >&6; }
6482
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6483
$as_echo_n "(cached) " >&6
6485
if test -n "$ac_ct_DSYMUTIL"; then
6486
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492
test -z "$as_dir" && as_dir=.
6493
for ac_exec_ext in '' $ac_executable_extensions; do
6494
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506
if test -n "$ac_ct_DSYMUTIL"; then
6507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511
$as_echo "no" >&6; }
6514
if test "x$ac_ct_DSYMUTIL" = x; then
6517
case $cross_compiling:$ac_tool_warned in
6519
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521
ac_tool_warned=yes ;;
6523
DSYMUTIL=$ac_ct_DSYMUTIL
6526
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6529
if test -n "$ac_tool_prefix"; then
6530
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533
$as_echo_n "checking for $ac_word... " >&6; }
6534
if ${ac_cv_prog_NMEDIT+:} false; then :
6535
$as_echo_n "(cached) " >&6
6537
if test -n "$NMEDIT"; then
6538
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544
test -z "$as_dir" && as_dir=.
6545
for ac_exec_ext in '' $ac_executable_extensions; do
6546
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557
NMEDIT=$ac_cv_prog_NMEDIT
6558
if test -n "$NMEDIT"; then
6559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560
$as_echo "$NMEDIT" >&6; }
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563
$as_echo "no" >&6; }
6568
if test -z "$ac_cv_prog_NMEDIT"; then
6569
ac_ct_NMEDIT=$NMEDIT
6570
# Extract the first word of "nmedit", so it can be a program name with args.
6571
set dummy nmedit; ac_word=$2
6572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573
$as_echo_n "checking for $ac_word... " >&6; }
6574
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6575
$as_echo_n "(cached) " >&6
6577
if test -n "$ac_ct_NMEDIT"; then
6578
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584
test -z "$as_dir" && as_dir=.
6585
for ac_exec_ext in '' $ac_executable_extensions; do
6586
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598
if test -n "$ac_ct_NMEDIT"; then
6599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600
$as_echo "$ac_ct_NMEDIT" >&6; }
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603
$as_echo "no" >&6; }
6606
if test "x$ac_ct_NMEDIT" = x; then
6609
case $cross_compiling:$ac_tool_warned in
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613
ac_tool_warned=yes ;;
6615
NMEDIT=$ac_ct_NMEDIT
6618
NMEDIT="$ac_cv_prog_NMEDIT"
6621
if test -n "$ac_tool_prefix"; then
6622
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625
$as_echo_n "checking for $ac_word... " >&6; }
6626
if ${ac_cv_prog_LIPO+:} false; then :
6627
$as_echo_n "(cached) " >&6
6629
if test -n "$LIPO"; then
6630
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636
test -z "$as_dir" && as_dir=.
6637
for ac_exec_ext in '' $ac_executable_extensions; do
6638
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649
LIPO=$ac_cv_prog_LIPO
6650
if test -n "$LIPO"; then
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652
$as_echo "$LIPO" >&6; }
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655
$as_echo "no" >&6; }
6660
if test -z "$ac_cv_prog_LIPO"; then
6662
# Extract the first word of "lipo", so it can be a program name with args.
6663
set dummy lipo; ac_word=$2
6664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665
$as_echo_n "checking for $ac_word... " >&6; }
6666
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6667
$as_echo_n "(cached) " >&6
6669
if test -n "$ac_ct_LIPO"; then
6670
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676
test -z "$as_dir" && as_dir=.
6677
for ac_exec_ext in '' $ac_executable_extensions; do
6678
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679
ac_cv_prog_ac_ct_LIPO="lipo"
6680
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690
if test -n "$ac_ct_LIPO"; then
6691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692
$as_echo "$ac_ct_LIPO" >&6; }
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695
$as_echo "no" >&6; }
6698
if test "x$ac_ct_LIPO" = x; then
6701
case $cross_compiling:$ac_tool_warned in
6703
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705
ac_tool_warned=yes ;;
6710
LIPO="$ac_cv_prog_LIPO"
6713
if test -n "$ac_tool_prefix"; then
6714
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715
set dummy ${ac_tool_prefix}otool; ac_word=$2
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717
$as_echo_n "checking for $ac_word... " >&6; }
6718
if ${ac_cv_prog_OTOOL+:} false; then :
6719
$as_echo_n "(cached) " >&6
6721
if test -n "$OTOOL"; then
6722
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728
test -z "$as_dir" && as_dir=.
6729
for ac_exec_ext in '' $ac_executable_extensions; do
6730
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741
OTOOL=$ac_cv_prog_OTOOL
6742
if test -n "$OTOOL"; then
6743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744
$as_echo "$OTOOL" >&6; }
6746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747
$as_echo "no" >&6; }
6752
if test -z "$ac_cv_prog_OTOOL"; then
6754
# Extract the first word of "otool", so it can be a program name with args.
6755
set dummy otool; ac_word=$2
6756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757
$as_echo_n "checking for $ac_word... " >&6; }
6758
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6759
$as_echo_n "(cached) " >&6
6761
if test -n "$ac_ct_OTOOL"; then
6762
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768
test -z "$as_dir" && as_dir=.
6769
for ac_exec_ext in '' $ac_executable_extensions; do
6770
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771
ac_cv_prog_ac_ct_OTOOL="otool"
6772
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782
if test -n "$ac_ct_OTOOL"; then
6783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784
$as_echo "$ac_ct_OTOOL" >&6; }
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787
$as_echo "no" >&6; }
6790
if test "x$ac_ct_OTOOL" = x; then
6793
case $cross_compiling:$ac_tool_warned in
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797
ac_tool_warned=yes ;;
6802
OTOOL="$ac_cv_prog_OTOOL"
6805
if test -n "$ac_tool_prefix"; then
6806
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809
$as_echo_n "checking for $ac_word... " >&6; }
6810
if ${ac_cv_prog_OTOOL64+:} false; then :
6811
$as_echo_n "(cached) " >&6
6813
if test -n "$OTOOL64"; then
6814
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820
test -z "$as_dir" && as_dir=.
6821
for ac_exec_ext in '' $ac_executable_extensions; do
6822
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833
OTOOL64=$ac_cv_prog_OTOOL64
6834
if test -n "$OTOOL64"; then
6835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836
$as_echo "$OTOOL64" >&6; }
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839
$as_echo "no" >&6; }
6844
if test -z "$ac_cv_prog_OTOOL64"; then
6845
ac_ct_OTOOL64=$OTOOL64
6846
# Extract the first word of "otool64", so it can be a program name with args.
6847
set dummy otool64; ac_word=$2
6848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849
$as_echo_n "checking for $ac_word... " >&6; }
6850
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6851
$as_echo_n "(cached) " >&6
6853
if test -n "$ac_ct_OTOOL64"; then
6854
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860
test -z "$as_dir" && as_dir=.
6861
for ac_exec_ext in '' $ac_executable_extensions; do
6862
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863
ac_cv_prog_ac_ct_OTOOL64="otool64"
6864
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874
if test -n "$ac_ct_OTOOL64"; then
6875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876
$as_echo "$ac_ct_OTOOL64" >&6; }
6878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879
$as_echo "no" >&6; }
6882
if test "x$ac_ct_OTOOL64" = x; then
6885
case $cross_compiling:$ac_tool_warned in
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889
ac_tool_warned=yes ;;
6891
OTOOL64=$ac_ct_OTOOL64
6894
OTOOL64="$ac_cv_prog_OTOOL64"
6923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924
$as_echo_n "checking for -single_module linker flag... " >&6; }
6925
if ${lt_cv_apple_cc_single_mod+:} false; then :
6926
$as_echo_n "(cached) " >&6
6928
lt_cv_apple_cc_single_mod=no
6929
if test -z "${LT_MULTI_MODULE}"; then
6930
# By default we will add the -single_module flag. You can override
6931
# by either setting the environment variable LT_MULTI_MODULE
6932
# non-empty at configure time, or by adding -multi_module to the
6934
rm -rf libconftest.dylib*
6935
echo "int foo(void){return 1;}" > conftest.c
6936
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937
-dynamiclib -Wl,-single_module conftest.c" >&5
6938
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6941
# If there is a non-empty error log, and "single_module"
6942
# appears in it, assume the flag caused a linker warning
6943
if test -s conftest.err && $GREP single_module conftest.err; then
6944
cat conftest.err >&5
6945
# Otherwise, if the output was created with a 0 exit code from
6946
# the compiler, it worked.
6947
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6948
lt_cv_apple_cc_single_mod=yes
6950
cat conftest.err >&5
6952
rm -rf libconftest.dylib*
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6957
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6960
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6961
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6962
$as_echo_n "(cached) " >&6
6964
lt_cv_ld_exported_symbols_list=no
6965
save_LDFLAGS=$LDFLAGS
6966
echo "_main" > conftest.sym
6967
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6968
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969
/* end confdefs.h. */
6979
if ac_fn_c_try_link "$LINENO"; then :
6980
lt_cv_ld_exported_symbols_list=yes
6982
lt_cv_ld_exported_symbols_list=no
6984
rm -f core conftest.err conftest.$ac_objext \
6985
conftest$ac_exeext conftest.$ac_ext
6986
LDFLAGS="$save_LDFLAGS"
6989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6990
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6993
$as_echo_n "checking for -force_load linker flag... " >&6; }
6994
if ${lt_cv_ld_force_load+:} false; then :
6995
$as_echo_n "(cached) " >&6
6997
lt_cv_ld_force_load=no
6998
cat > conftest.c << _LT_EOF
6999
int forced_loaded() { return 2;}
7001
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7002
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7003
echo "$AR cru libconftest.a conftest.o" >&5
7004
$AR cru libconftest.a conftest.o 2>&5
7005
echo "$RANLIB libconftest.a" >&5
7006
$RANLIB libconftest.a 2>&5
7007
cat > conftest.c << _LT_EOF
7008
int main() { return 0;}
7010
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7011
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7013
if test -s conftest.err && $GREP force_load conftest.err; then
7014
cat conftest.err >&5
7015
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7016
lt_cv_ld_force_load=yes
7018
cat conftest.err >&5
7020
rm -f conftest.err libconftest.a conftest conftest.c
7021
rm -rf conftest.dSYM
7024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7025
$as_echo "$lt_cv_ld_force_load" >&6; }
7027
rhapsody* | darwin1.[012])
7028
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7030
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031
darwin*) # darwin 5.x on
7032
# if running on 10.5 or later, the deployment target defaults
7033
# to the OS version, if on x86, and 10.4, the deployment
7034
# target defaults to 10.4. Don't you love it?
7035
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7036
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7037
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7039
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7041
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7045
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7046
_lt_dar_single_mod='$single_module'
7048
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7049
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7051
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7053
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7054
_lt_dsymutil='~$DSYMUTIL $lib || :'
7062
ac_cpp='$CPP $CPPFLAGS'
7063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7067
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7068
# On Suns, sometimes $CPP names a directory.
7069
if test -n "$CPP" && test -d "$CPP"; then
7072
if test -z "$CPP"; then
7073
if ${ac_cv_prog_CPP+:} false; then :
7074
$as_echo_n "(cached) " >&6
7076
# Double quotes because CPP needs to be expanded
7077
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7080
for ac_c_preproc_warn_flag in '' yes
7082
# Use a header file that comes with gcc, so configuring glibc
7083
# with a fresh cross-compiler works.
7084
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085
# <limits.h> exists even on freestanding compilers.
7086
# On the NeXT, cc -E runs the code through the compiler's parser,
7087
# not just through cpp. "Syntax error" is here to catch this case.
7088
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089
/* end confdefs.h. */
7091
# include <limits.h>
7093
# include <assert.h>
7097
if ac_fn_c_try_cpp "$LINENO"; then :
7100
# Broken: fails on valid input.
7103
rm -f conftest.err conftest.i conftest.$ac_ext
7105
# OK, works on sane cases. Now check whether nonexistent headers
7106
# can be detected and how.
7107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108
/* end confdefs.h. */
7109
#include <ac_nonexistent.h>
7111
if ac_fn_c_try_cpp "$LINENO"; then :
7112
# Broken: success on invalid input.
7115
# Passes both tests.
7119
rm -f conftest.err conftest.i conftest.$ac_ext
7122
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7123
rm -f conftest.i conftest.err conftest.$ac_ext
7124
if $ac_preproc_ok; then :
7136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7137
$as_echo "$CPP" >&6; }
7139
for ac_c_preproc_warn_flag in '' yes
7141
# Use a header file that comes with gcc, so configuring glibc
7142
# with a fresh cross-compiler works.
7143
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7144
# <limits.h> exists even on freestanding compilers.
7145
# On the NeXT, cc -E runs the code through the compiler's parser,
7146
# not just through cpp. "Syntax error" is here to catch this case.
7147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148
/* end confdefs.h. */
7150
# include <limits.h>
7152
# include <assert.h>
7156
if ac_fn_c_try_cpp "$LINENO"; then :
7159
# Broken: fails on valid input.
7162
rm -f conftest.err conftest.i conftest.$ac_ext
7164
# OK, works on sane cases. Now check whether nonexistent headers
7165
# can be detected and how.
7166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167
/* end confdefs.h. */
7168
#include <ac_nonexistent.h>
7170
if ac_fn_c_try_cpp "$LINENO"; then :
7171
# Broken: success on invalid input.
7174
# Passes both tests.
7178
rm -f conftest.err conftest.i conftest.$ac_ext
7181
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182
rm -f conftest.i conftest.err conftest.$ac_ext
7183
if $ac_preproc_ok; then :
7186
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7187
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7188
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7189
See \`config.log' for more details" "$LINENO" 5; }
7193
ac_cpp='$CPP $CPPFLAGS'
7194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7200
$as_echo_n "checking for ANSI C header files... " >&6; }
7201
if ${ac_cv_header_stdc+:} false; then :
7202
$as_echo_n "(cached) " >&6
7204
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205
/* end confdefs.h. */
7219
if ac_fn_c_try_compile "$LINENO"; then :
7220
ac_cv_header_stdc=yes
7222
ac_cv_header_stdc=no
7224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226
if test $ac_cv_header_stdc = yes; then
7227
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229
/* end confdefs.h. */
7233
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234
$EGREP "memchr" >/dev/null 2>&1; then :
7237
ac_cv_header_stdc=no
7243
if test $ac_cv_header_stdc = yes; then
7244
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246
/* end confdefs.h. */
7250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251
$EGREP "free" >/dev/null 2>&1; then :
7254
ac_cv_header_stdc=no
7260
if test $ac_cv_header_stdc = yes; then
7261
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7262
if test "$cross_compiling" = yes; then :
7265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266
/* end confdefs.h. */
7269
#if ((' ' & 0x0FF) == 0x020)
7270
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7271
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7273
# define ISLOWER(c) \
7274
(('a' <= (c) && (c) <= 'i') \
7275
|| ('j' <= (c) && (c) <= 'r') \
7276
|| ('s' <= (c) && (c) <= 'z'))
7277
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7280
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7285
for (i = 0; i < 256; i++)
7286
if (XOR (islower (i), ISLOWER (i))
7287
|| toupper (i) != TOUPPER (i))
7292
if ac_fn_c_try_run "$LINENO"; then :
7295
ac_cv_header_stdc=no
7297
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298
conftest.$ac_objext conftest.beam conftest.$ac_ext
7303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7304
$as_echo "$ac_cv_header_stdc" >&6; }
7305
if test $ac_cv_header_stdc = yes; then
7307
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7311
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7312
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7313
inttypes.h stdint.h unistd.h
7315
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7316
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7318
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7319
cat >>confdefs.h <<_ACEOF
7320
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328
for ac_header in dlfcn.h
7330
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7332
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7333
cat >>confdefs.h <<_ACEOF
7334
#define HAVE_DLFCN_H 1
7355
# Check whether --enable-shared was given.
7356
if test "${enable_shared+set}" = set; then :
7357
enableval=$enable_shared; p=${PACKAGE-default}
7359
yes) enable_shared=yes ;;
7360
no) enable_shared=no ;;
7363
# Look at the argument we got. We use all the common list separators.
7364
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365
for pkg in $enableval; do
7367
if test "X$pkg" = "X$p"; then
7388
# Check whether --with-pic was given.
7389
if test "${with_pic+set}" = set; then :
7390
withval=$with_pic; lt_p=${PACKAGE-default}
7392
yes|no) pic_mode=$withval ;;
7395
# Look at the argument we got. We use all the common list separators.
7396
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397
for lt_pkg in $withval; do
7399
if test "X$lt_pkg" = "X$lt_p"; then
7411
test -z "$pic_mode" && pic_mode=default
7419
# Check whether --enable-fast-install was given.
7420
if test "${enable_fast_install+set}" = set; then :
7421
enableval=$enable_fast_install; p=${PACKAGE-default}
7423
yes) enable_fast_install=yes ;;
7424
no) enable_fast_install=no ;;
7426
enable_fast_install=no
7427
# Look at the argument we got. We use all the common list separators.
7428
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7429
for pkg in $enableval; do
7431
if test "X$pkg" = "X$p"; then
7432
enable_fast_install=yes
7439
enable_fast_install=yes
7452
# This can be used to rebuild libtool when needed
7453
LIBTOOL_DEPS="$ltmain"
7455
# Always use our own libtool.
7456
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7487
test -z "$LN_S" && LN_S="ln -s"
7502
if test -n "${ZSH_VERSION+set}" ; then
7503
setopt NO_GLOB_SUBST
7506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7507
$as_echo_n "checking for objdir... " >&6; }
7508
if ${lt_cv_objdir+:} false; then :
7509
$as_echo_n "(cached) " >&6
7511
rm -f .libs 2>/dev/null
7512
mkdir .libs 2>/dev/null
7513
if test -d .libs; then
7516
# MS-DOS does not allow filenames that begin with a dot.
7519
rmdir .libs 2>/dev/null
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7522
$as_echo "$lt_cv_objdir" >&6; }
7523
objdir=$lt_cv_objdir
7529
cat >>confdefs.h <<_ACEOF
7530
#define LT_OBJDIR "$lt_cv_objdir/"
7538
# AIX sometimes has problems with the GCC collect2 program. For some
7539
# reason, if we set the COLLECT_NAMES environment variable, the problems
7540
# vanish in a puff of smoke.
7541
if test "X${COLLECT_NAMES+set}" != Xset; then
7543
export COLLECT_NAMES
7550
can_build_shared=yes
7552
# All known linkers require a `.a' archive for static linking (except MSVC,
7553
# which needs '.lib').
7556
with_gnu_ld="$lt_cv_prog_gnu_ld"
7559
old_CFLAGS="$CFLAGS"
7561
# Set sane defaults for various variables
7562
test -z "$CC" && CC=cc
7563
test -z "$LTCC" && LTCC=$CC
7564
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7565
test -z "$LD" && LD=ld
7566
test -z "$ac_objext" && ac_objext=o
7568
for cc_temp in $compiler""; do
7570
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7571
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7576
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7579
# Only perform the check for file, if the check method requires it
7580
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7581
case $deplibs_check_method in
7583
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7585
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7586
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7587
$as_echo_n "(cached) " >&6
7591
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7594
lt_save_MAGIC_CMD="$MAGIC_CMD"
7595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7596
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7597
for ac_dir in $ac_dummy; do
7599
test -z "$ac_dir" && ac_dir=.
7600
if test -f $ac_dir/${ac_tool_prefix}file; then
7601
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7602
if test -n "$file_magic_test_file"; then
7603
case $deplibs_check_method in
7605
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7606
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7607
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7608
$EGREP "$file_magic_regex" > /dev/null; then
7613
*** Warning: the command libtool uses to detect shared libraries,
7614
*** $file_magic_cmd, produces output that libtool cannot recognize.
7615
*** The result is that libtool may fail to recognize shared libraries
7616
*** as such. This will affect the creation of libtool libraries that
7617
*** depend on shared libraries, but programs linked with such libtool
7618
*** libraries will work regardless of this problem. Nevertheless, you
7619
*** may want to report the problem to your system manager and/or to
7620
*** bug-libtool@gnu.org
7630
MAGIC_CMD="$lt_save_MAGIC_CMD"
7635
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636
if test -n "$MAGIC_CMD"; then
7637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7638
$as_echo "$MAGIC_CMD" >&6; }
7640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641
$as_echo "no" >&6; }
7648
if test -z "$lt_cv_path_MAGIC_CMD"; then
7649
if test -n "$ac_tool_prefix"; then
7650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7651
$as_echo_n "checking for file... " >&6; }
7652
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7653
$as_echo_n "(cached) " >&6
7657
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7660
lt_save_MAGIC_CMD="$MAGIC_CMD"
7661
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663
for ac_dir in $ac_dummy; do
7665
test -z "$ac_dir" && ac_dir=.
7666
if test -f $ac_dir/file; then
7667
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7668
if test -n "$file_magic_test_file"; then
7669
case $deplibs_check_method in
7671
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674
$EGREP "$file_magic_regex" > /dev/null; then
7679
*** Warning: the command libtool uses to detect shared libraries,
7680
*** $file_magic_cmd, produces output that libtool cannot recognize.
7681
*** The result is that libtool may fail to recognize shared libraries
7682
*** as such. This will affect the creation of libtool libraries that
7683
*** depend on shared libraries, but programs linked with such libtool
7684
*** libraries will work regardless of this problem. Nevertheless, you
7685
*** may want to report the problem to your system manager and/or to
7686
*** bug-libtool@gnu.org
7696
MAGIC_CMD="$lt_save_MAGIC_CMD"
7701
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702
if test -n "$MAGIC_CMD"; then
7703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704
$as_echo "$MAGIC_CMD" >&6; }
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707
$as_echo "no" >&6; }
7720
# Use C for the default configuration in the libtool script
7724
ac_cpp='$CPP $CPPFLAGS'
7725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
# Source file extension for C test sources.
7733
# Object file extension for compiled C test sources.
7737
# Code to be used in simple compile tests
7738
lt_simple_compile_test_code="int some_variable = 0;"
7740
# Code to be used in simple link tests
7741
lt_simple_link_test_code='int main(){return(0);}'
7749
# If no C compiler was specified, use CC.
7752
# If no C compiler flags were specified, use CFLAGS.
7753
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7755
# Allow CC to be a program name with arguments.
7758
# Save the default compiler, since it gets overwritten when the other
7759
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7760
compiler_DEFAULT=$CC
7762
# save warnings/boilerplate of simple test code
7763
ac_outfile=conftest.$ac_objext
7764
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7765
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7766
_lt_compiler_boilerplate=`cat conftest.err`
7769
ac_outfile=conftest.$ac_objext
7770
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7771
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7772
_lt_linker_boilerplate=`cat conftest.err`
7776
if test -n "$compiler"; then
7778
lt_prog_compiler_no_builtin_flag=
7780
if test "$GCC" = yes; then
7781
case $cc_basename in
7783
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7785
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7789
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7790
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7791
$as_echo_n "(cached) " >&6
7793
lt_cv_prog_compiler_rtti_exceptions=no
7794
ac_outfile=conftest.$ac_objext
7795
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7796
lt_compiler_flag="-fno-rtti -fno-exceptions"
7797
# Insert the option either (1) after the last *FLAGS variable, or
7798
# (2) before a word containing "conftest.", or (3) at the end.
7799
# Note that $ac_compile itself does not contain backslashes and begins
7800
# with a dollar sign (not a hyphen), so the echo should work correctly.
7801
# The option is referenced via a variable to avoid confusing sed.
7802
lt_compile=`echo "$ac_compile" | $SED \
7803
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7804
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7805
-e 's:$: $lt_compiler_flag:'`
7806
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7807
(eval "$lt_compile" 2>conftest.err)
7809
cat conftest.err >&5
7810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811
if (exit $ac_status) && test -s "$ac_outfile"; then
7812
# The compiler can only warn and ignore the option if not recognized
7813
# So say no if there are warnings other than the usual output.
7814
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7815
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7816
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7817
lt_cv_prog_compiler_rtti_exceptions=yes
7823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7824
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7826
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7827
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7839
lt_prog_compiler_wl=
7840
lt_prog_compiler_pic=
7841
lt_prog_compiler_static=
7844
if test "$GCC" = yes; then
7845
lt_prog_compiler_wl='-Wl,'
7846
lt_prog_compiler_static='-static'
7850
# All AIX code is PIC.
7851
if test "$host_cpu" = ia64; then
7852
# AIX 5 now supports IA64 processor
7853
lt_prog_compiler_static='-Bstatic'
7860
# see comment about AmigaOS4 .so support
7861
lt_prog_compiler_pic='-fPIC'
7864
# FIXME: we need at least 68020 code to build shared libraries, but
7865
# adding the `-m68020' flag to GCC prevents building anything better,
7867
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7872
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7873
# PIC is the default for these OSes.
7876
mingw* | cygwin* | pw32* | os2* | cegcc*)
7877
# This hack is so that the source file can tell whether it is being
7878
# built for inclusion in a dll (and should export symbols for example).
7879
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7880
# (--disable-auto-import) libraries
7881
lt_prog_compiler_pic='-DDLL_EXPORT'
7884
darwin* | rhapsody*)
7885
# PIC is the default on this platform
7886
# Common symbols not allowed in MH_DYLIB files
7887
lt_prog_compiler_pic='-fno-common'
7891
# PIC is the default for Haiku.
7892
# The "-static" flag exists, but is broken.
7893
lt_prog_compiler_static=
7897
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7898
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7899
# sets the default TLS model and affects inlining.
7905
lt_prog_compiler_pic='-fPIC'
7911
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7912
# Instead, we relocate shared libraries at runtime.
7916
# Just because we use GCC doesn't mean we suddenly get shared libraries
7917
# on systems that don't support them.
7918
lt_prog_compiler_can_build_shared=no
7923
# QNX uses GNU C++, but need to define -shared option too, otherwise
7925
lt_prog_compiler_pic='-fPIC -shared'
7929
if test -d /usr/nec; then
7930
lt_prog_compiler_pic=-Kconform_pic
7935
lt_prog_compiler_pic='-fPIC'
7939
case $cc_basename in
7940
nvcc*) # Cuda Compiler Driver 2.2
7941
lt_prog_compiler_wl='-Xlinker '
7942
if test -n "$lt_prog_compiler_pic"; then
7943
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7948
# PORTME Check for flag to pass linker flags through the system compiler.
7951
lt_prog_compiler_wl='-Wl,'
7952
if test "$host_cpu" = ia64; then
7953
# AIX 5 now supports IA64 processor
7954
lt_prog_compiler_static='-Bstatic'
7956
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7960
mingw* | cygwin* | pw32* | os2* | cegcc*)
7961
# This hack is so that the source file can tell whether it is being
7962
# built for inclusion in a dll (and should export symbols for example).
7963
lt_prog_compiler_pic='-DDLL_EXPORT'
7966
hpux9* | hpux10* | hpux11*)
7967
lt_prog_compiler_wl='-Wl,'
7968
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975
lt_prog_compiler_pic='+Z'
7978
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7979
lt_prog_compiler_static='${wl}-a ${wl}archive'
7982
irix5* | irix6* | nonstopux*)
7983
lt_prog_compiler_wl='-Wl,'
7984
# PIC (with -KPIC) is the default.
7985
lt_prog_compiler_static='-non_shared'
7988
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7989
case $cc_basename in
7990
# old Intel for x86_64 which still supported -KPIC.
7992
lt_prog_compiler_wl='-Wl,'
7993
lt_prog_compiler_pic='-KPIC'
7994
lt_prog_compiler_static='-static'
7996
# icc used to be incompatible with GCC.
7997
# ICC 10 doesn't accept -KPIC any more.
7999
lt_prog_compiler_wl='-Wl,'
8000
lt_prog_compiler_pic='-fPIC'
8001
lt_prog_compiler_static='-static'
8003
# Lahey Fortran 8.1.
8005
lt_prog_compiler_wl='-Wl,'
8006
lt_prog_compiler_pic='--shared'
8007
lt_prog_compiler_static='--static'
8010
# NAG Fortran compiler
8011
lt_prog_compiler_wl='-Wl,-Wl,,'
8012
lt_prog_compiler_pic='-PIC'
8013
lt_prog_compiler_static='-Bstatic'
8015
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8016
# Portland Group compilers (*not* the Pentium gcc compiler,
8017
# which looks to be a dead project)
8018
lt_prog_compiler_wl='-Wl,'
8019
lt_prog_compiler_pic='-fpic'
8020
lt_prog_compiler_static='-Bstatic'
8023
lt_prog_compiler_wl='-Wl,'
8024
# All Alpha code is PIC.
8025
lt_prog_compiler_static='-non_shared'
8027
xl* | bgxl* | bgf* | mpixl*)
8028
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8029
lt_prog_compiler_wl='-Wl,'
8030
lt_prog_compiler_pic='-qpic'
8031
lt_prog_compiler_static='-qstaticlink'
8034
case `$CC -V 2>&1 | sed 5q` in
8035
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8036
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8037
lt_prog_compiler_pic='-KPIC'
8038
lt_prog_compiler_static='-Bstatic'
8039
lt_prog_compiler_wl=''
8041
*Sun\ F* | *Sun*Fortran*)
8042
lt_prog_compiler_pic='-KPIC'
8043
lt_prog_compiler_static='-Bstatic'
8044
lt_prog_compiler_wl='-Qoption ld '
8048
lt_prog_compiler_pic='-KPIC'
8049
lt_prog_compiler_static='-Bstatic'
8050
lt_prog_compiler_wl='-Wl,'
8052
*Intel*\ [CF]*Compiler*)
8053
lt_prog_compiler_wl='-Wl,'
8054
lt_prog_compiler_pic='-fPIC'
8055
lt_prog_compiler_static='-static'
8058
lt_prog_compiler_wl='-Wl,'
8059
lt_prog_compiler_pic='-fpic'
8060
lt_prog_compiler_static='-Bstatic'
8068
lt_prog_compiler_pic='-KPIC'
8069
lt_prog_compiler_static='-Bstatic'
8073
# QNX uses GNU C++, but need to define -shared option too, otherwise
8075
lt_prog_compiler_pic='-fPIC -shared'
8078
osf3* | osf4* | osf5*)
8079
lt_prog_compiler_wl='-Wl,'
8080
# All OSF/1 code is PIC.
8081
lt_prog_compiler_static='-non_shared'
8085
lt_prog_compiler_static='-non_shared'
8089
lt_prog_compiler_pic='-KPIC'
8090
lt_prog_compiler_static='-Bstatic'
8091
case $cc_basename in
8092
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8093
lt_prog_compiler_wl='-Qoption ld ';;
8095
lt_prog_compiler_wl='-Wl,';;
8100
lt_prog_compiler_wl='-Qoption ld '
8101
lt_prog_compiler_pic='-PIC'
8102
lt_prog_compiler_static='-Bstatic'
8105
sysv4 | sysv4.2uw2* | sysv4.3*)
8106
lt_prog_compiler_wl='-Wl,'
8107
lt_prog_compiler_pic='-KPIC'
8108
lt_prog_compiler_static='-Bstatic'
8112
if test -d /usr/nec ;then
8113
lt_prog_compiler_pic='-Kconform_pic'
8114
lt_prog_compiler_static='-Bstatic'
8118
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8119
lt_prog_compiler_wl='-Wl,'
8120
lt_prog_compiler_pic='-KPIC'
8121
lt_prog_compiler_static='-Bstatic'
8125
lt_prog_compiler_wl='-Wl,'
8126
lt_prog_compiler_can_build_shared=no
8130
lt_prog_compiler_pic='-pic'
8131
lt_prog_compiler_static='-Bstatic'
8135
lt_prog_compiler_can_build_shared=no
8141
# For platforms which do not support PIC, -DPIC is meaningless:
8143
lt_prog_compiler_pic=
8146
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8152
if ${lt_cv_prog_compiler_pic+:} false; then :
8153
$as_echo_n "(cached) " >&6
8155
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8158
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8159
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8162
# Check to make sure the PIC flag actually works.
8164
if test -n "$lt_prog_compiler_pic"; then
8165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8166
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8167
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8168
$as_echo_n "(cached) " >&6
8170
lt_cv_prog_compiler_pic_works=no
8171
ac_outfile=conftest.$ac_objext
8172
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8174
# Insert the option either (1) after the last *FLAGS variable, or
8175
# (2) before a word containing "conftest.", or (3) at the end.
8176
# Note that $ac_compile itself does not contain backslashes and begins
8177
# with a dollar sign (not a hyphen), so the echo should work correctly.
8178
# The option is referenced via a variable to avoid confusing sed.
8179
lt_compile=`echo "$ac_compile" | $SED \
8180
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182
-e 's:$: $lt_compiler_flag:'`
8183
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8184
(eval "$lt_compile" 2>conftest.err)
8186
cat conftest.err >&5
8187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188
if (exit $ac_status) && test -s "$ac_outfile"; then
8189
# The compiler can only warn and ignore the option if not recognized
8190
# So say no if there are warnings other than the usual output.
8191
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8192
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8193
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8194
lt_cv_prog_compiler_pic_works=yes
8200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8201
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8203
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8204
case $lt_prog_compiler_pic in
8206
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8209
lt_prog_compiler_pic=
8210
lt_prog_compiler_can_build_shared=no
8226
# Check to make sure the static flag actually works.
8228
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8230
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8231
if ${lt_cv_prog_compiler_static_works+:} false; then :
8232
$as_echo_n "(cached) " >&6
8234
lt_cv_prog_compiler_static_works=no
8235
save_LDFLAGS="$LDFLAGS"
8236
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8237
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8238
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8239
# The linker can only warn and ignore the option if not recognized
8240
# So say no if there are warnings
8241
if test -s conftest.err; then
8242
# Append any errors to the config.log.
8243
cat conftest.err 1>&5
8244
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8245
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246
if diff conftest.exp conftest.er2 >/dev/null; then
8247
lt_cv_prog_compiler_static_works=yes
8250
lt_cv_prog_compiler_static_works=yes
8254
LDFLAGS="$save_LDFLAGS"
8257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8258
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8260
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8263
lt_prog_compiler_static=
8272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8273
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8274
if ${lt_cv_prog_compiler_c_o+:} false; then :
8275
$as_echo_n "(cached) " >&6
8277
lt_cv_prog_compiler_c_o=no
8278
$RM -r conftest 2>/dev/null
8282
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284
lt_compiler_flag="-o out/conftest2.$ac_objext"
8285
# Insert the option either (1) after the last *FLAGS variable, or
8286
# (2) before a word containing "conftest.", or (3) at the end.
8287
# Note that $ac_compile itself does not contain backslashes and begins
8288
# with a dollar sign (not a hyphen), so the echo should work correctly.
8289
lt_compile=`echo "$ac_compile" | $SED \
8290
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292
-e 's:$: $lt_compiler_flag:'`
8293
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294
(eval "$lt_compile" 2>out/conftest.err)
8296
cat out/conftest.err >&5
8297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8300
# The compiler can only warn and ignore the option if not recognized
8301
# So say no if there are warnings
8302
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8303
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8304
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8305
lt_cv_prog_compiler_c_o=yes
8310
# SGI C++ compiler will create directory out/ii_files/ for
8311
# template instantiation
8312
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8313
$RM out/* && rmdir out
8319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8320
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8328
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8329
if ${lt_cv_prog_compiler_c_o+:} false; then :
8330
$as_echo_n "(cached) " >&6
8332
lt_cv_prog_compiler_c_o=no
8333
$RM -r conftest 2>/dev/null
8337
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8339
lt_compiler_flag="-o out/conftest2.$ac_objext"
8340
# Insert the option either (1) after the last *FLAGS variable, or
8341
# (2) before a word containing "conftest.", or (3) at the end.
8342
# Note that $ac_compile itself does not contain backslashes and begins
8343
# with a dollar sign (not a hyphen), so the echo should work correctly.
8344
lt_compile=`echo "$ac_compile" | $SED \
8345
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347
-e 's:$: $lt_compiler_flag:'`
8348
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8349
(eval "$lt_compile" 2>out/conftest.err)
8351
cat out/conftest.err >&5
8352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8355
# The compiler can only warn and ignore the option if not recognized
8356
# So say no if there are warnings
8357
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8358
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8359
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8360
lt_cv_prog_compiler_c_o=yes
8365
# SGI C++ compiler will create directory out/ii_files/ for
8366
# template instantiation
8367
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8368
$RM out/* && rmdir out
8374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8375
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8380
hard_links="nottested"
8381
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8382
# do not overwrite the value of need_locks provided by the user
8383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8384
$as_echo_n "checking if we can lock with hard links... " >&6; }
8387
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8389
ln conftest.a conftest.b 2>&5 || hard_links=no
8390
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8392
$as_echo "$hard_links" >&6; }
8393
if test "$hard_links" = no; then
8394
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8395
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8408
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8411
allow_undefined_flag=
8412
always_export_symbols=no
8414
archive_expsym_cmds=
8415
compiler_needs_object=no
8416
enable_shared_with_static_runtimes=no
8417
export_dynamic_flag_spec=
8418
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8419
hardcode_automatic=no
8421
hardcode_direct_absolute=no
8422
hardcode_libdir_flag_spec=
8423
hardcode_libdir_separator=
8425
hardcode_shlibpath_var=unsupported
8427
link_all_deplibs=unknown
8430
old_archive_from_new_cmds=
8431
old_archive_from_expsyms_cmds=
8432
thread_safe_flag_spec=
8433
whole_archive_flag_spec=
8434
# include_expsyms should be a list of space-separated symbols to be *always*
8435
# included in the symbol list
8437
# exclude_expsyms can be an extended regexp of symbols to exclude
8438
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8439
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8440
# as well as any symbol that contains `d'.
8441
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8442
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8443
# platforms (ab)use it in PIC code, but their linkers get confused if
8444
# the symbol is explicitly referenced. Since portable code cannot
8445
# rely on this symbol name, it's probably fine to never include it in
8446
# preloaded symbol tables.
8447
# Exclude shared library initialization/finalization symbols.
8448
extract_expsyms_cmds=
8451
cygwin* | mingw* | pw32* | cegcc*)
8452
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8453
# When not using gcc, we currently assume that we are using
8454
# Microsoft Visual C++.
8455
if test "$GCC" != yes; then
8460
# we just hope/assume this is gcc and not c89 (= MSVC++)
8470
# On some targets, GNU ld is compatible enough with the native linker
8471
# that we're better off using the native interface for both.
8472
lt_use_gnu_ld_interface=no
8473
if test "$with_gnu_ld" = yes; then
8476
# The AIX port of GNU ld has always aspired to compatibility
8477
# with the native linker. However, as the warning in the GNU ld
8478
# block says, versions before 2.19.5* couldn't really create working
8479
# shared libraries, regardless of the interface used.
8480
case `$LD -v 2>&1` in
8481
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8482
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8483
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8485
lt_use_gnu_ld_interface=yes
8490
lt_use_gnu_ld_interface=yes
8495
if test "$lt_use_gnu_ld_interface" = yes; then
8496
# If archive_cmds runs LD, not CC, wlarc should be empty
8499
# Set some defaults for GNU ld with shared library support. These
8500
# are reset later if shared libraries are not supported. Putting them
8501
# here allows them to be overridden if necessary.
8502
runpath_var=LD_RUN_PATH
8503
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504
export_dynamic_flag_spec='${wl}--export-dynamic'
8505
# ancient GNU ld didn't support --whole-archive et. al.
8506
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8507
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8509
whole_archive_flag_spec=
8511
supports_anon_versioning=no
8512
case `$LD -v 2>&1` in
8513
*GNU\ gold*) supports_anon_versioning=yes ;;
8514
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8515
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8516
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8517
*\ 2.11.*) ;; # other 2.11 versions
8518
*) supports_anon_versioning=yes ;;
8521
# See if GNU ld supports shared libraries.
8524
# On AIX/PPC, the GNU linker is very broken
8525
if test "$host_cpu" != ia64; then
8529
*** Warning: the GNU linker, at least up to release 2.19, is reported
8530
*** to be unable to reliably create shared libraries on AIX.
8531
*** Therefore, libtool is disabling shared libraries support. If you
8532
*** really care for shared libraries, you may want to install binutils
8533
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8534
*** You will then need to restart the configuration process.
8543
# see comment about AmigaOS4 .so support
8544
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545
archive_expsym_cmds=''
8548
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)'
8549
hardcode_libdir_flag_spec='-L$libdir'
8550
hardcode_minus_L=yes
8556
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8557
allow_undefined_flag=unsupported
8558
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8559
# support --undefined. This deserves some investigation. FIXME
8560
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566
cygwin* | mingw* | pw32* | cegcc*)
8567
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8568
# as there is no search path for DLLs.
8569
hardcode_libdir_flag_spec='-L$libdir'
8570
export_dynamic_flag_spec='${wl}--export-all-symbols'
8571
allow_undefined_flag=unsupported
8572
always_export_symbols=no
8573
enable_shared_with_static_runtimes=yes
8574
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'
8575
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8577
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8578
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8579
# If the export-symbols file already is a .def file (1st line
8580
# is EXPORTS), use it as is; otherwise, prepend...
8581
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8582
cp $export_symbols $output_objdir/$soname.def;
8584
echo EXPORTS > $output_objdir/$soname.def;
8585
cat $export_symbols >> $output_objdir/$soname.def;
8587
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8594
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595
link_all_deplibs=yes
8600
hardcode_shlibpath_var=no
8601
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8602
export_dynamic_flag_spec='${wl}-E'
8603
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8604
# Instead, shared libraries are loaded at an image base (0x10000000 by
8605
# default) and relocated if they conflict, which is a slow very memory
8606
# consuming and fragmenting process. To avoid this, we pick a random,
8607
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8608
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8609
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8610
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'
8613
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8615
if test "$host_os" = linux-dietlibc; then
8616
case $cc_basename in
8617
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8620
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8621
&& test "$tmp_diet" = no
8623
tmp_addflag=' $pic_flag'
8624
tmp_sharedflag='-shared'
8625
case $cc_basename,$host_cpu in
8626
pgcc*) # Portland Group C compiler
8627
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'
8628
tmp_addflag=' $pic_flag'
8630
pgf77* | pgf90* | pgf95* | pgfortran*)
8631
# Portland Group f77 and f90 compilers
8632
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'
8633
tmp_addflag=' $pic_flag -Mnomain' ;;
8634
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8635
tmp_addflag=' -i_dynamic' ;;
8636
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8637
tmp_addflag=' -i_dynamic -nofor_main' ;;
8638
ifc* | ifort*) # Intel Fortran compiler
8639
tmp_addflag=' -nofor_main' ;;
8640
lf95*) # Lahey Fortran 8.1
8641
whole_archive_flag_spec=
8642
tmp_sharedflag='--shared' ;;
8643
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8644
tmp_sharedflag='-qmkshrobj'
8646
nvcc*) # Cuda Compiler Driver 2.2
8647
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'
8648
compiler_needs_object=yes
8651
case `$CC -V 2>&1 | sed 5q` in
8652
*Sun\ C*) # Sun C 5.9
8653
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'
8654
compiler_needs_object=yes
8655
tmp_sharedflag='-G' ;;
8656
*Sun\ F*) # Sun Fortran 8.3
8657
tmp_sharedflag='-G' ;;
8659
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
if test "x$supports_anon_versioning" = xyes; then
8662
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664
echo "local: *; };" >> $output_objdir/$libname.ver~
8665
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8668
case $cc_basename in
8669
xlf* | bgf* | bgxlf* | mpixlf*)
8670
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8674
if test "x$supports_anon_versioning" = xyes; then
8675
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8676
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8677
echo "local: *; };" >> $output_objdir/$libname.ver~
8678
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8688
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8689
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8698
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8702
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8703
*** create shared libraries on Solaris systems. Therefore, libtool
8704
*** is disabling shared libraries support. We urge you to upgrade GNU
8705
*** binutils to release 2.9.1 or newer. Another option is to modify
8706
*** your PATH or compiler configuration so that the native linker is
8707
*** used, and then restart.
8710
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8719
case `$LD -v 2>&1` in
8720
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8724
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8725
*** reliably create shared libraries on SCO systems. Therefore, libtool
8726
*** is disabling shared libraries support. We urge you to upgrade GNU
8727
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8728
*** your PATH or compiler configuration so that the native linker is
8729
*** used, and then restart.
8734
# For security reasons, it is highly recommended that you always
8735
# use absolute paths for naming shared libraries, and exclude the
8736
# DT_RUNPATH tag from executables and libraries. But doing so
8737
# requires that you compile everything twice, which is a pain.
8738
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753
hardcode_shlibpath_var=no
8757
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8758
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766
if test "$ld_shlibs" = no; then
8768
hardcode_libdir_flag_spec=
8769
export_dynamic_flag_spec=
8770
whole_archive_flag_spec=
8773
# PORTME fill in a description of your system's linker (not GNU ld)
8776
allow_undefined_flag=unsupported
8777
always_export_symbols=yes
8778
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'
8779
# Note: this linker hardcodes the directories in LIBPATH if there
8780
# are no directories specified by -L.
8781
hardcode_minus_L=yes
8782
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8783
# Neither direct hardcoding nor static linking is supported with a
8785
hardcode_direct=unsupported
8790
if test "$host_cpu" = ia64; then
8791
# On IA64, the linker does run time linking by default, so we don't
8792
# have to do anything special.
8793
aix_use_runtimelinking=no
8794
exp_sym_flag='-Bexport'
8797
# If we're using GNU nm, then we don't want the "-C" option.
8798
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8799
# Also, AIX nm treats weak defined symbols like other global
8800
# defined symbols, whereas GNU nm marks them as "W".
8801
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802
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'
8804
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'
8806
aix_use_runtimelinking=no
8808
# Test if we are trying to use run time linking or normal
8809
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810
# need to do runtime linking.
8811
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812
for ld_flag in $LDFLAGS; do
8813
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814
aix_use_runtimelinking=yes
8821
exp_sym_flag='-bexport'
8822
no_entry_flag='-bnoentry'
8825
# When large executables or shared objects are built, AIX ld can
8826
# have problems creating the table of contents. If linking a library
8827
# or program results in "error TOC overflow" add -mminimal-toc to
8828
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8833
hardcode_direct_absolute=yes
8834
hardcode_libdir_separator=':'
8835
link_all_deplibs=yes
8836
file_list_spec='${wl}-f,'
8838
if test "$GCC" = yes; then
8839
case $host_os in aix4.[012]|aix4.[012].*)
8840
# We only want to do this on AIX 4.2 and lower, the check
8841
# below for broken collect2 doesn't work under 4.3+
8842
collect2name=`${CC} -print-prog-name=collect2`
8843
if test -f "$collect2name" &&
8844
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8846
# We have reworked collect2
8849
# We have old collect2
8850
hardcode_direct=unsupported
8851
# It fails to find uninstalled libraries when the uninstalled
8852
# path is not listed in the libpath. Setting hardcode_minus_L
8853
# to unsupported forces relinking
8854
hardcode_minus_L=yes
8855
hardcode_libdir_flag_spec='-L$libdir'
8856
hardcode_libdir_separator=
8860
shared_flag='-shared'
8861
if test "$aix_use_runtimelinking" = yes; then
8862
shared_flag="$shared_flag "'${wl}-G'
8866
if test "$host_cpu" = ia64; then
8867
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868
# chokes on -Wl,-G. The following line is correct:
8871
if test "$aix_use_runtimelinking" = yes; then
8872
shared_flag='${wl}-G'
8874
shared_flag='${wl}-bM:SRE'
8879
export_dynamic_flag_spec='${wl}-bexpall'
8880
# It seems that -bexpall does not export symbols beginning with
8881
# underscore (_), so it is better to generate a list of symbols to export.
8882
always_export_symbols=yes
8883
if test "$aix_use_runtimelinking" = yes; then
8884
# Warning - without using the other runtime loading flags (-brtl),
8885
# -berok will link without error, but may produce a broken library.
8886
allow_undefined_flag='-berok'
8887
# Determine the default libpath from the value encoded in an
8889
if test "${lt_cv_aix_libpath+set}" = set; then
8890
aix_libpath=$lt_cv_aix_libpath
8892
if ${lt_cv_aix_libpath_+:} false; then :
8893
$as_echo_n "(cached) " >&6
8895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896
/* end confdefs.h. */
8906
if ac_fn_c_try_link "$LINENO"; then :
8908
lt_aix_libpath_sed='
8909
/Import File Strings/,/^$/ {
8911
s/^0 *\([^ ]*\) *$/\1/
8915
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916
# Check for a 64-bit object if we didn't find anything.
8917
if test -z "$lt_cv_aix_libpath_"; then
8918
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8921
rm -f core conftest.err conftest.$ac_objext \
8922
conftest$ac_exeext conftest.$ac_ext
8923
if test -z "$lt_cv_aix_libpath_"; then
8924
lt_cv_aix_libpath_="/usr/lib:/lib"
8929
aix_libpath=$lt_cv_aix_libpath_
8932
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933
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"
8935
if test "$host_cpu" = ia64; then
8936
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937
allow_undefined_flag="-z nodefs"
8938
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"
8940
# Determine the default libpath from the value encoded in an
8942
if test "${lt_cv_aix_libpath+set}" = set; then
8943
aix_libpath=$lt_cv_aix_libpath
8945
if ${lt_cv_aix_libpath_+:} false; then :
8946
$as_echo_n "(cached) " >&6
8948
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949
/* end confdefs.h. */
8959
if ac_fn_c_try_link "$LINENO"; then :
8961
lt_aix_libpath_sed='
8962
/Import File Strings/,/^$/ {
8964
s/^0 *\([^ ]*\) *$/\1/
8968
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969
# Check for a 64-bit object if we didn't find anything.
8970
if test -z "$lt_cv_aix_libpath_"; then
8971
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974
rm -f core conftest.err conftest.$ac_objext \
8975
conftest$ac_exeext conftest.$ac_ext
8976
if test -z "$lt_cv_aix_libpath_"; then
8977
lt_cv_aix_libpath_="/usr/lib:/lib"
8982
aix_libpath=$lt_cv_aix_libpath_
8985
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986
# Warning - without using the other run time loading flags,
8987
# -berok will link without error, but may produce a broken library.
8988
no_undefined_flag=' ${wl}-bernotok'
8989
allow_undefined_flag=' ${wl}-berok'
8990
if test "$with_gnu_ld" = yes; then
8991
# We only use this code for GNU lds that support --whole-archive.
8992
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8994
# Exported symbols can be pulled into shared objects from archives
8995
whole_archive_flag_spec='$convenience'
8997
archive_cmds_need_lc=yes
8998
# This is similar to how AIX traditionally builds its shared libraries.
8999
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'
9007
# see comment about AmigaOS4 .so support
9008
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009
archive_expsym_cmds=''
9012
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)'
9013
hardcode_libdir_flag_spec='-L$libdir'
9014
hardcode_minus_L=yes
9020
export_dynamic_flag_spec=-rdynamic
9023
cygwin* | mingw* | pw32* | cegcc*)
9024
# When not using gcc, we currently assume that we are using
9025
# Microsoft Visual C++.
9026
# hardcode_libdir_flag_spec is actually meaningless, as there is
9027
# no search path for DLLs.
9028
case $cc_basename in
9031
hardcode_libdir_flag_spec=' '
9032
allow_undefined_flag=unsupported
9033
always_export_symbols=yes
9035
# Tell ltmain to make .lib files, not .a files.
9037
# Tell ltmain to make .dll files, not .so files.
9039
# FIXME: Setting linknames here is a bad hack.
9040
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9041
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9042
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9044
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9046
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9048
# The linker will not automatically build a static lib if we build a DLL.
9049
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9050
enable_shared_with_static_runtimes=yes
9051
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9052
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9054
old_postinstall_cmds='chmod 644 $oldlib'
9055
postlink_cmds='lt_outputfile="@OUTPUT@"~
9056
lt_tool_outputfile="@TOOL_OUTPUT@"~
9057
case $lt_outputfile in
9060
lt_outputfile="$lt_outputfile.exe"
9061
lt_tool_outputfile="$lt_tool_outputfile.exe"
9064
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9065
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9066
$RM "$lt_outputfile.manifest";
9070
# Assume MSVC wrapper
9071
hardcode_libdir_flag_spec=' '
9072
allow_undefined_flag=unsupported
9073
# Tell ltmain to make .lib files, not .a files.
9075
# Tell ltmain to make .dll files, not .so files.
9077
# FIXME: Setting linknames here is a bad hack.
9078
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079
# The linker will automatically build a .lib file if we build a DLL.
9080
old_archive_from_new_cmds='true'
9081
# FIXME: Should let the user specify the lib program.
9082
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083
enable_shared_with_static_runtimes=yes
9088
darwin* | rhapsody*)
9091
archive_cmds_need_lc=no
9093
hardcode_automatic=yes
9094
hardcode_shlibpath_var=unsupported
9095
if test "$lt_cv_ld_force_load" = "yes"; then
9096
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\"`'
9099
whole_archive_flag_spec=''
9101
link_all_deplibs=yes
9102
allow_undefined_flag="$_lt_dar_allow_undefined"
9103
case $cc_basename in
9104
ifort*) _lt_dar_can_shared=yes ;;
9105
*) _lt_dar_can_shared=$GCC ;;
9107
if test "$_lt_dar_can_shared" = "yes"; then
9108
output_verbose_link_cmd=func_echo_all
9109
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111
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}"
9112
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}"
9121
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122
hardcode_libdir_flag_spec='-L$libdir'
9123
hardcode_shlibpath_var=no
9126
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127
# support. Future versions do this automatically, but an explicit c++rt0.o
9128
# does not break anything, and helps significantly (at the cost of a little
9131
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132
hardcode_libdir_flag_spec='-R$libdir'
9134
hardcode_shlibpath_var=no
9137
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9139
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141
hardcode_minus_L=yes
9142
hardcode_shlibpath_var=no
9145
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146
freebsd* | dragonfly*)
9147
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148
hardcode_libdir_flag_spec='-R$libdir'
9150
hardcode_shlibpath_var=no
9154
if test "$GCC" = yes; then
9155
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'
9157
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'
9159
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160
hardcode_libdir_separator=:
9163
# hardcode_minus_L: Not really in the search PATH,
9164
# but as the default location of the library.
9165
hardcode_minus_L=yes
9166
export_dynamic_flag_spec='${wl}-E'
9170
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175
if test "$with_gnu_ld" = no; then
9176
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177
hardcode_libdir_separator=:
9179
hardcode_direct_absolute=yes
9180
export_dynamic_flag_spec='${wl}-E'
9181
# hardcode_minus_L: Not really in the search PATH,
9182
# but as the default location of the library.
9183
hardcode_minus_L=yes
9188
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9191
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9210
# Older versions of the 11.00 compiler do not understand -b yet
9211
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213
$as_echo_n "checking if $CC understands -b... " >&6; }
9214
if ${lt_cv_prog_compiler__b+:} false; then :
9215
$as_echo_n "(cached) " >&6
9217
lt_cv_prog_compiler__b=no
9218
save_LDFLAGS="$LDFLAGS"
9219
LDFLAGS="$LDFLAGS -b"
9220
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222
# The linker can only warn and ignore the option if not recognized
9223
# So say no if there are warnings
9224
if test -s conftest.err; then
9225
# Append any errors to the config.log.
9226
cat conftest.err 1>&5
9227
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229
if diff conftest.exp conftest.er2 >/dev/null; then
9230
lt_cv_prog_compiler__b=yes
9233
lt_cv_prog_compiler__b=yes
9237
LDFLAGS="$save_LDFLAGS"
9240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9243
if test x"$lt_cv_prog_compiler__b" = xyes; then
9244
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252
if test "$with_gnu_ld" = no; then
9253
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254
hardcode_libdir_separator=:
9259
hardcode_shlibpath_var=no
9263
hardcode_direct_absolute=yes
9264
export_dynamic_flag_spec='${wl}-E'
9266
# hardcode_minus_L: Not really in the search PATH,
9267
# but as the default location of the library.
9268
hardcode_minus_L=yes
9274
irix5* | irix6* | nonstopux*)
9275
if test "$GCC" = yes; then
9276
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'
9277
# Try to use the -exported_symbol ld option, if it does not
9278
# work, assume that -exports_file does not work either and
9279
# implicitly export all symbols.
9280
# This should be the same for all languages, so no per-tag cache variable.
9281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9282
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9283
if ${lt_cv_irix_exported_symbol+:} false; then :
9284
$as_echo_n "(cached) " >&6
9286
save_LDFLAGS="$LDFLAGS"
9287
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289
/* end confdefs.h. */
9290
int foo (void) { return 0; }
9292
if ac_fn_c_try_link "$LINENO"; then :
9293
lt_cv_irix_exported_symbol=yes
9295
lt_cv_irix_exported_symbol=no
9297
rm -f core conftest.err conftest.$ac_objext \
9298
conftest$ac_exeext conftest.$ac_ext
9299
LDFLAGS="$save_LDFLAGS"
9301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9302
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9303
if test "$lt_cv_irix_exported_symbol" = yes; then
9304
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'
9307
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'
9308
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'
9310
archive_cmds_need_lc='no'
9311
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312
hardcode_libdir_separator=:
9314
link_all_deplibs=yes
9318
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9319
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9321
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9323
hardcode_libdir_flag_spec='-R$libdir'
9325
hardcode_shlibpath_var=no
9329
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332
hardcode_libdir_separator=:
9333
hardcode_shlibpath_var=no
9340
if test -f /usr/libexec/ld.so; then
9342
hardcode_shlibpath_var=no
9343
hardcode_direct_absolute=yes
9344
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9347
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348
export_dynamic_flag_spec='${wl}-E'
9351
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9352
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353
hardcode_libdir_flag_spec='-R$libdir'
9356
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367
hardcode_libdir_flag_spec='-L$libdir'
9368
hardcode_minus_L=yes
9369
allow_undefined_flag=unsupported
9370
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'
9371
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9375
if test "$GCC" = yes; then
9376
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377
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'
9379
allow_undefined_flag=' -expect_unresolved \*'
9380
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'
9382
archive_cmds_need_lc='no'
9383
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384
hardcode_libdir_separator=:
9387
osf4* | osf5*) # as osf3* with the addition of -msym flag
9388
if test "$GCC" = yes; then
9389
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9390
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'
9391
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9393
allow_undefined_flag=' -expect_unresolved \*'
9394
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'
9395
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~
9396
$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'
9398
# Both c and cxx compiler support -rpath directly
9399
hardcode_libdir_flag_spec='-rpath $libdir'
9401
archive_cmds_need_lc='no'
9402
hardcode_libdir_separator=:
9406
no_undefined_flag=' -z defs'
9407
if test "$GCC" = yes; then
9409
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411
$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'
9413
case `$CC -V 2>&1` in
9416
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9422
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9424
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9428
hardcode_libdir_flag_spec='-R$libdir'
9429
hardcode_shlibpath_var=no
9431
solaris2.[0-5] | solaris2.[0-5].*) ;;
9433
# The compiler driver will combine and reorder linker options,
9434
# but understands `-z linker_flag'. GCC discards it without `$wl',
9435
# but is careful enough not to reorder.
9436
# Supported since Solaris 2.6 (maybe 2.5.1?)
9437
if test "$GCC" = yes; then
9438
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9440
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9444
link_all_deplibs=yes
9448
if test "x$host_vendor" = xsequent; then
9449
# Use $CC to link under sequent, because it throws in some extra .o
9450
# files that make .init and .fini sections work.
9451
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9453
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9455
hardcode_libdir_flag_spec='-L$libdir'
9457
hardcode_minus_L=yes
9458
hardcode_shlibpath_var=no
9462
case $host_vendor in
9464
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465
hardcode_direct=yes # is this really true???
9468
## LD is ld it makes a PLAMLIB
9469
## CC just makes a GrossModule.
9470
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9471
reload_cmds='$CC -r -o $output$reload_objs'
9475
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9479
runpath_var='LD_RUN_PATH'
9480
hardcode_shlibpath_var=no
9484
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485
hardcode_shlibpath_var=no
9486
export_dynamic_flag_spec='-Bexport'
9490
if test -d /usr/nec; then
9491
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492
hardcode_shlibpath_var=no
9493
runpath_var=LD_RUN_PATH
9494
hardcode_runpath_var=yes
9499
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9500
no_undefined_flag='${wl}-z,text'
9501
archive_cmds_need_lc=no
9502
hardcode_shlibpath_var=no
9503
runpath_var='LD_RUN_PATH'
9505
if test "$GCC" = yes; then
9506
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514
sysv5* | sco3.2v5* | sco5v6*)
9515
# Note: We can NOT use -z defs as we might desire, because we do not
9516
# link with -lc, and that would cause any symbols used from libc to
9517
# always be unresolved, which means just about no library would
9518
# ever link correctly. If we're not using GNU ld we use -z text
9519
# though, which does catch some bad symbols but isn't as heavy-handed
9521
no_undefined_flag='${wl}-z,text'
9522
allow_undefined_flag='${wl}-z,nodefs'
9523
archive_cmds_need_lc=no
9524
hardcode_shlibpath_var=no
9525
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9526
hardcode_libdir_separator=':'
9527
link_all_deplibs=yes
9528
export_dynamic_flag_spec='${wl}-Bexport'
9529
runpath_var='LD_RUN_PATH'
9531
if test "$GCC" = yes; then
9532
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542
hardcode_libdir_flag_spec='-L$libdir'
9543
hardcode_shlibpath_var=no
9551
if test x$host_vendor = xsni; then
9553
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9554
export_dynamic_flag_spec='${wl}-Blargedynsym'
9560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9561
$as_echo "$ld_shlibs" >&6; }
9562
test "$ld_shlibs" = no && can_build_shared=no
9564
with_gnu_ld=$with_gnu_ld
9581
# Do we need to explicitly link libc?
9583
case "x$archive_cmds_need_lc" in
9585
# Assume -lc should be added
9586
archive_cmds_need_lc=yes
9588
if test "$enable_shared" = yes && test "$GCC" = yes; then
9589
case $archive_cmds in
9591
# FIXME: we may have to deal with multi-command sequences.
9594
# Test whether the compiler implicitly links with -lc since on some
9595
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9596
# to ld, don't add -lc before -lgcc.
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9598
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9599
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9600
$as_echo_n "(cached) " >&6
9603
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606
(eval $ac_compile) 2>&5
9608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609
test $ac_status = 0; } 2>conftest.err; then
9612
libobjs=conftest.$ac_objext
9614
wl=$lt_prog_compiler_wl
9615
pic_flag=$lt_prog_compiler_pic
9621
lt_save_allow_undefined_flag=$allow_undefined_flag
9622
allow_undefined_flag=
9623
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9624
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9626
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627
test $ac_status = 0; }
9629
lt_cv_archive_cmds_need_lc=no
9631
lt_cv_archive_cmds_need_lc=yes
9633
allow_undefined_flag=$lt_save_allow_undefined_flag
9635
cat conftest.err 1>&5
9640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9641
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9642
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9803
if test "$GCC" = yes; then
9805
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806
*) lt_awk_arg="/^libraries:/" ;;
9809
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810
*) lt_sed_strip_eq="s,=/,/,g" ;;
9812
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813
case $lt_search_path_spec in
9815
# if the path contains ";" then we assume it to be the separator
9816
# otherwise default to the standard path separator (i.e. ":") - it is
9817
# assumed that no part of a normal pathname contains ";" but that should
9818
# okay in the real world where ";" in dirpaths is itself problematic.
9819
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9822
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9825
# Ok, now we have the path, separated by spaces, we can step through it
9826
# and add multilib dir if necessary.
9827
lt_tmp_lt_search_path_spec=
9828
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829
for lt_sys_path in $lt_search_path_spec; do
9830
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9833
test -d "$lt_sys_path" && \
9834
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9837
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838
BEGIN {RS=" "; FS="/|\n";} {
9841
for (lt_i = NF; lt_i > 0; lt_i--) {
9842
if ($lt_i != "" && $lt_i != ".") {
9843
if ($lt_i == "..") {
9846
if (lt_count == 0) {
9847
lt_foo="/" $lt_i lt_foo;
9854
if (lt_foo != "") { lt_freq[lt_foo]++; }
9855
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9857
# AWK program above erroneously prepends '/' to C:/dos/paths
9860
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
9863
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9865
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9868
libname_spec='lib$name'
9876
shlibpath_overrides_runpath=unknown
9878
dynamic_linker="$host_os ld.so"
9879
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880
need_lib_prefix=unknown
9881
hardcode_into_libs=no
9883
# when you set need_version to no, make sure it does not cause -set_version
9884
# flags to be left without arguments
9885
need_version=unknown
9889
version_type=linux # correct to gnu/linux during the next big refactor
9890
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891
shlibpath_var=LIBPATH
9893
# AIX 3 has no versioning support, so we append a major version to the name.
9894
soname_spec='${libname}${release}${shared_ext}$major'
9898
version_type=linux # correct to gnu/linux during the next big refactor
9901
hardcode_into_libs=yes
9902
if test "$host_cpu" = ia64; then
9903
# AIX 5 supports IA64
9904
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905
shlibpath_var=LD_LIBRARY_PATH
9907
# With GCC up to 2.95.x, collect2 would create an import file
9908
# for dependence libraries. The import file would start with
9909
# the line `#! .'. This would cause the generated library to
9910
# depend on `.', always an invalid library. This was fixed in
9911
# development snapshots of GCC prior to 3.0.
9913
aix4 | aix4.[01] | aix4.[01].*)
9914
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9916
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9923
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924
# soname into executable. Probably we can add versioning support to
9925
# collect2, so additional links can be useful in future.
9926
if test "$aix_use_runtimelinking" = yes; then
9927
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928
# instead of lib<name>.a to let people know that these are not
9929
# typical AIX shared libraries.
9930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932
# We preserve .a as extension for shared libraries through AIX4.2
9933
# and later when we are not doing run time linking.
9934
library_names_spec='${libname}${release}.a $libname.a'
9935
soname_spec='${libname}${release}${shared_ext}$major'
9937
shlibpath_var=LIBPATH
9944
# Since July 2007 AmigaOS4 officially supports .so libraries.
9945
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949
library_names_spec='$libname.ixlibrary $libname.a'
9950
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9951
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'
9957
library_names_spec='${libname}${shared_ext}'
9958
dynamic_linker="$host_os ld.so"
9959
shlibpath_var=LIBRARY_PATH
9963
version_type=linux # correct to gnu/linux during the next big refactor
9965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966
soname_spec='${libname}${release}${shared_ext}$major'
9967
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968
shlibpath_var=LD_LIBRARY_PATH
9969
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971
# the default ld.so.conf also contains /usr/contrib/lib and
9972
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973
# libtool to hard-code these into programs
9976
cygwin* | mingw* | pw32* | cegcc*)
9977
version_type=windows
9982
case $GCC,$cc_basename in
9985
library_names_spec='$libname.dll.a'
9986
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9987
postinstall_cmds='base_file=`basename \${file}`~
9988
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989
dldir=$destdir/`dirname \$dlpath`~
9990
test -d \$dldir || mkdir -p \$dldir~
9991
$install_prog $dir/$dlname \$dldir/$dlname~
9992
chmod a+x \$dldir/$dlname~
9993
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9994
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9996
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9997
dlpath=$dir/\$dldll~
9999
shlibpath_overrides_runpath=yes
10003
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10004
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10009
# MinGW DLLs use traditional 'lib' prefix
10010
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013
# pw32 DLLs use 'pw' prefix rather than 'lib'
10014
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10017
dynamic_linker='Win32 ld.exe'
10022
libname_spec='$name'
10023
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024
library_names_spec='${libname}.dll.lib'
10028
sys_lib_search_path_spec=
10031
for lt_path in $LIB
10034
# Let DOS variable expansion print the short 8.3 style file name.
10035
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10036
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10039
# Convert to MSYS style.
10040
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10043
# Convert to unix form, then to dos form, then back to unix form
10044
# but this time dos style (no spaces!) so that the unix form looks
10045
# like /cygdrive/c/PROGRA~1:/cygdr...
10046
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10047
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10048
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10051
sys_lib_search_path_spec="$LIB"
10052
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10053
# It is most probably a Windows format PATH.
10054
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10056
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10058
# FIXME: find the short name or the path components, as spaces are
10059
# common. (e.g. "Program Files" -> "PROGRA~1")
10063
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10064
postinstall_cmds='base_file=`basename \${file}`~
10065
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10066
dldir=$destdir/`dirname \$dlpath`~
10067
test -d \$dldir || mkdir -p \$dldir~
10068
$install_prog $dir/$dlname \$dldir/$dlname'
10069
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070
dlpath=$dir/\$dldll~
10072
shlibpath_overrides_runpath=yes
10073
dynamic_linker='Win32 link.exe'
10077
# Assume MSVC wrapper
10078
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079
dynamic_linker='Win32 ld.exe'
10082
# FIXME: first we should search . and the directory the executable is in
10086
darwin* | rhapsody*)
10087
dynamic_linker="$host_os dyld"
10088
version_type=darwin
10091
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092
soname_spec='${libname}${release}${major}$shared_ext'
10093
shlibpath_overrides_runpath=yes
10094
shlibpath_var=DYLD_LIBRARY_PATH
10095
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10097
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10102
version_type=linux # correct to gnu/linux during the next big refactor
10105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106
soname_spec='${libname}${release}${shared_ext}$major'
10107
shlibpath_var=LD_LIBRARY_PATH
10110
freebsd* | dragonfly*)
10111
# DragonFly does not have aout. When/if they implement a new
10112
# versioning mechanism, adjust this.
10113
if test -x /usr/bin/objformat; then
10114
objformat=`/usr/bin/objformat`
10117
freebsd[23].*) objformat=aout ;;
10118
*) objformat=elf ;;
10121
version_type=freebsd-$objformat
10122
case $version_type in
10124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10133
shlibpath_var=LD_LIBRARY_PATH
10136
shlibpath_overrides_runpath=yes
10138
freebsd3.[01]* | freebsdelf3.[01]*)
10139
shlibpath_overrides_runpath=yes
10140
hardcode_into_libs=yes
10142
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144
shlibpath_overrides_runpath=no
10145
hardcode_into_libs=yes
10147
*) # from 4.6 on, and DragonFly
10148
shlibpath_overrides_runpath=yes
10149
hardcode_into_libs=yes
10155
version_type=linux # correct to gnu/linux during the next big refactor
10158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10159
soname_spec='${libname}${release}${shared_ext}$major'
10160
shlibpath_var=LD_LIBRARY_PATH
10161
shlibpath_overrides_runpath=no
10162
hardcode_into_libs=yes
10166
version_type=linux # correct to gnu/linux during the next big refactor
10169
dynamic_linker="$host_os runtime_loader"
10170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171
soname_spec='${libname}${release}${shared_ext}$major'
10172
shlibpath_var=LIBRARY_PATH
10173
shlibpath_overrides_runpath=yes
10174
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10175
hardcode_into_libs=yes
10178
hpux9* | hpux10* | hpux11*)
10179
# Give a soname corresponding to the major version so that dld.sl refuses to
10180
# link against other versions.
10187
hardcode_into_libs=yes
10188
dynamic_linker="$host_os dld.so"
10189
shlibpath_var=LD_LIBRARY_PATH
10190
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192
soname_spec='${libname}${release}${shared_ext}$major'
10193
if test "X$HPUX_IA64_MODE" = X32; then
10194
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10196
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10198
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10202
hardcode_into_libs=yes
10203
dynamic_linker="$host_os dld.sl"
10204
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10205
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207
soname_spec='${libname}${release}${shared_ext}$major'
10208
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10209
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10213
dynamic_linker="$host_os dld.sl"
10214
shlibpath_var=SHLIB_PATH
10215
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217
soname_spec='${libname}${release}${shared_ext}$major'
10220
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10221
postinstall_cmds='chmod 555 $lib'
10222
# or fails outright, so override atomically:
10223
install_override_mode=555
10227
version_type=linux # correct to gnu/linux during the next big refactor
10230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231
soname_spec='${libname}${release}${shared_ext}$major'
10232
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10233
shlibpath_var=LD_LIBRARY_PATH
10234
shlibpath_overrides_runpath=no
10235
hardcode_into_libs=yes
10238
irix5* | irix6* | nonstopux*)
10240
nonstopux*) version_type=nonstopux ;;
10242
if test "$lt_cv_prog_gnu_ld" = yes; then
10243
version_type=linux # correct to gnu/linux during the next big refactor
10250
soname_spec='${libname}${release}${shared_ext}$major'
10251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10253
irix5* | nonstopux*)
10254
libsuff= shlibsuff=
10257
case $LD in # libtool.m4 will add one of these switches to LD
10258
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10259
libsuff= shlibsuff= libmagic=32-bit;;
10260
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10261
libsuff=32 shlibsuff=N32 libmagic=N32;;
10262
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10263
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10264
*) libsuff= shlibsuff= libmagic=never-match;;
10268
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10269
shlibpath_overrides_runpath=no
10270
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10271
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10272
hardcode_into_libs=yes
10275
# No shared lib support for Linux oldld, aout, or coff.
10276
linux*oldld* | linux*aout* | linux*coff*)
10280
# This must be glibc/ELF.
10281
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10282
version_type=linux # correct to gnu/linux during the next big refactor
10285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286
soname_spec='${libname}${release}${shared_ext}$major'
10287
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10288
shlibpath_var=LD_LIBRARY_PATH
10289
shlibpath_overrides_runpath=no
10291
# Some binutils ld are patched to set DT_RUNPATH
10292
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10293
$as_echo_n "(cached) " >&6
10295
lt_cv_shlibpath_overrides_runpath=no
10296
save_LDFLAGS=$LDFLAGS
10297
save_libdir=$libdir
10298
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10299
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301
/* end confdefs.h. */
10311
if ac_fn_c_try_link "$LINENO"; then :
10312
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10313
lt_cv_shlibpath_overrides_runpath=yes
10316
rm -f core conftest.err conftest.$ac_objext \
10317
conftest$ac_exeext conftest.$ac_ext
10318
LDFLAGS=$save_LDFLAGS
10319
libdir=$save_libdir
10323
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10325
# This implies no fast_install, which is unacceptable.
10326
# Some rework will be needed to allow for fast_install
10327
# before this can be enabled.
10328
hardcode_into_libs=yes
10330
# Add ABI-specific directories to the system library path.
10331
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10333
# Append ld.so.conf contents to the search path
10334
if test -f /etc/ld.so.conf; then
10335
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' ' '`
10336
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10340
# We used to test for /lib/ld.so.1 and disable shared libraries on
10341
# powerpc, because MkLinux only supported shared libraries with the
10342
# GNU dynamic linker. Since this was broken with cross compilers,
10343
# most powerpc-linux boxes support dynamic linking these days and
10344
# people can always --disable-shared, the test was removed, and we
10345
# assume the GNU/Linux dynamic linker is in use.
10346
dynamic_linker='GNU/Linux ld.so'
10353
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356
dynamic_linker='NetBSD (a.out) ld.so'
10358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359
soname_spec='${libname}${release}${shared_ext}$major'
10360
dynamic_linker='NetBSD ld.elf_so'
10362
shlibpath_var=LD_LIBRARY_PATH
10363
shlibpath_overrides_runpath=yes
10364
hardcode_into_libs=yes
10368
version_type=linux # correct to gnu/linux during the next big refactor
10369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370
shlibpath_var=LD_LIBRARY_PATH
10371
shlibpath_overrides_runpath=yes
10378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379
soname_spec='${libname}${release}${shared_ext}$major'
10380
shlibpath_var=LD_LIBRARY_PATH
10381
shlibpath_overrides_runpath=no
10382
hardcode_into_libs=yes
10383
dynamic_linker='ldqnx.so'
10388
sys_lib_dlsearch_path_spec="/usr/lib"
10390
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10392
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393
*) need_version=no ;;
10395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397
shlibpath_var=LD_LIBRARY_PATH
10398
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10400
openbsd2.[89] | openbsd2.[89].*)
10401
shlibpath_overrides_runpath=no
10404
shlibpath_overrides_runpath=yes
10408
shlibpath_overrides_runpath=yes
10413
libname_spec='$name'
10416
library_names_spec='$libname${shared_ext} $libname.a'
10417
dynamic_linker='OS/2 ld.exe'
10418
shlibpath_var=LIBPATH
10421
osf3* | osf4* | osf5*)
10425
soname_spec='${libname}${release}${shared_ext}$major'
10426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427
shlibpath_var=LD_LIBRARY_PATH
10428
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437
version_type=linux # correct to gnu/linux during the next big refactor
10440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441
soname_spec='${libname}${release}${shared_ext}$major'
10442
shlibpath_var=LD_LIBRARY_PATH
10443
shlibpath_overrides_runpath=yes
10444
hardcode_into_libs=yes
10445
# ldd complains unless libraries are executable
10446
postinstall_cmds='chmod +x $lib'
10451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453
shlibpath_var=LD_LIBRARY_PATH
10454
shlibpath_overrides_runpath=yes
10455
if test "$with_gnu_ld" = yes; then
10462
version_type=linux # correct to gnu/linux during the next big refactor
10463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464
soname_spec='${libname}${release}${shared_ext}$major'
10465
shlibpath_var=LD_LIBRARY_PATH
10466
case $host_vendor in
10468
shlibpath_overrides_runpath=no
10470
runpath_var=LD_RUN_PATH
10478
shlibpath_overrides_runpath=no
10479
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10485
if test -d /usr/nec ;then
10486
version_type=linux # correct to gnu/linux during the next big refactor
10487
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488
soname_spec='$libname${shared_ext}.$major'
10489
shlibpath_var=LD_LIBRARY_PATH
10493
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494
version_type=freebsd-elf
10497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498
soname_spec='${libname}${release}${shared_ext}$major'
10499
shlibpath_var=LD_LIBRARY_PATH
10500
shlibpath_overrides_runpath=yes
10501
hardcode_into_libs=yes
10502
if test "$with_gnu_ld" = yes; then
10503
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10505
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10508
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10512
sys_lib_dlsearch_path_spec='/usr/lib'
10516
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517
version_type=linux # correct to gnu/linux during the next big refactor
10520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521
shlibpath_var=LD_LIBRARY_PATH
10522
shlibpath_overrides_runpath=no
10523
hardcode_into_libs=yes
10527
version_type=linux # correct to gnu/linux during the next big refactor
10528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529
soname_spec='${libname}${release}${shared_ext}$major'
10530
shlibpath_var=LD_LIBRARY_PATH
10537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538
$as_echo "$dynamic_linker" >&6; }
10539
test "$dynamic_linker" = no && can_build_shared=no
10541
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542
if test "$GCC" = yes; then
10543
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10546
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10549
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10647
if test -n "$hardcode_libdir_flag_spec" ||
10648
test -n "$runpath_var" ||
10649
test "X$hardcode_automatic" = "Xyes" ; then
10651
# We can hardcode non-existent directories.
10652
if test "$hardcode_direct" != no &&
10653
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10654
# have to relink, otherwise we might link with an installed library
10655
# when we should be linking with a yet-to-be-installed one
10656
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657
test "$hardcode_minus_L" != no; then
10658
# Linking always hardcodes the temporary library directory.
10659
hardcode_action=relink
10661
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10662
hardcode_action=immediate
10665
# We cannot hardcode anything, or else we can only hardcode existing
10667
hardcode_action=unsupported
10669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670
$as_echo "$hardcode_action" >&6; }
10672
if test "$hardcode_action" = relink ||
10673
test "$inherit_rpath" = yes; then
10674
# Fast installation is not supported
10675
enable_fast_install=no
10676
elif test "$shlibpath_overrides_runpath" = yes ||
10677
test "$enable_shared" = no; then
10678
# Fast installation is not necessary
10679
enable_fast_install=needless
10687
if test "x$enable_dlopen" != xyes; then
10688
enable_dlopen=unknown
10689
enable_dlopen_self=unknown
10690
enable_dlopen_self_static=unknown
10697
lt_cv_dlopen="load_add_on"
10699
lt_cv_dlopen_self=yes
10702
mingw* | pw32* | cegcc*)
10703
lt_cv_dlopen="LoadLibrary"
10708
lt_cv_dlopen="dlopen"
10713
# if libdl is installed we need to link against it
10714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10716
if ${ac_cv_lib_dl_dlopen+:} false; then :
10717
$as_echo_n "(cached) " >&6
10719
ac_check_lib_save_LIBS=$LIBS
10721
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722
/* end confdefs.h. */
10724
/* Override any GCC internal prototype to avoid an error.
10725
Use char because int might match the return type of a GCC
10726
builtin and then its argument prototype would still apply. */
10739
if ac_fn_c_try_link "$LINENO"; then :
10740
ac_cv_lib_dl_dlopen=yes
10742
ac_cv_lib_dl_dlopen=no
10744
rm -f core conftest.err conftest.$ac_objext \
10745
conftest$ac_exeext conftest.$ac_ext
10746
LIBS=$ac_check_lib_save_LIBS
10748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10751
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754
lt_cv_dlopen="dyld"
10756
lt_cv_dlopen_self=yes
10763
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764
if test "x$ac_cv_func_shl_load" = xyes; then :
10765
lt_cv_dlopen="shl_load"
10767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10769
if ${ac_cv_lib_dld_shl_load+:} false; then :
10770
$as_echo_n "(cached) " >&6
10772
ac_check_lib_save_LIBS=$LIBS
10774
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775
/* end confdefs.h. */
10777
/* Override any GCC internal prototype to avoid an error.
10778
Use char because int might match the return type of a GCC
10779
builtin and then its argument prototype would still apply. */
10787
return shl_load ();
10792
if ac_fn_c_try_link "$LINENO"; then :
10793
ac_cv_lib_dld_shl_load=yes
10795
ac_cv_lib_dld_shl_load=no
10797
rm -f core conftest.err conftest.$ac_objext \
10798
conftest$ac_exeext conftest.$ac_ext
10799
LIBS=$ac_check_lib_save_LIBS
10801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10804
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10806
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807
if test "x$ac_cv_func_dlopen" = xyes; then :
10808
lt_cv_dlopen="dlopen"
10810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10812
if ${ac_cv_lib_dl_dlopen+:} false; then :
10813
$as_echo_n "(cached) " >&6
10815
ac_check_lib_save_LIBS=$LIBS
10817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818
/* end confdefs.h. */
10820
/* Override any GCC internal prototype to avoid an error.
10821
Use char because int might match the return type of a GCC
10822
builtin and then its argument prototype would still apply. */
10835
if ac_fn_c_try_link "$LINENO"; then :
10836
ac_cv_lib_dl_dlopen=yes
10838
ac_cv_lib_dl_dlopen=no
10840
rm -f core conftest.err conftest.$ac_objext \
10841
conftest$ac_exeext conftest.$ac_ext
10842
LIBS=$ac_check_lib_save_LIBS
10844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851
if ${ac_cv_lib_svld_dlopen+:} false; then :
10852
$as_echo_n "(cached) " >&6
10854
ac_check_lib_save_LIBS=$LIBS
10855
LIBS="-lsvld $LIBS"
10856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857
/* end confdefs.h. */
10859
/* Override any GCC internal prototype to avoid an error.
10860
Use char because int might match the return type of a GCC
10861
builtin and then its argument prototype would still apply. */
10874
if ac_fn_c_try_link "$LINENO"; then :
10875
ac_cv_lib_svld_dlopen=yes
10877
ac_cv_lib_svld_dlopen=no
10879
rm -f core conftest.err conftest.$ac_objext \
10880
conftest$ac_exeext conftest.$ac_ext
10881
LIBS=$ac_check_lib_save_LIBS
10883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10886
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10890
if ${ac_cv_lib_dld_dld_link+:} false; then :
10891
$as_echo_n "(cached) " >&6
10893
ac_check_lib_save_LIBS=$LIBS
10895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896
/* end confdefs.h. */
10898
/* Override any GCC internal prototype to avoid an error.
10899
Use char because int might match the return type of a GCC
10900
builtin and then its argument prototype would still apply. */
10908
return dld_link ();
10913
if ac_fn_c_try_link "$LINENO"; then :
10914
ac_cv_lib_dld_dld_link=yes
10916
ac_cv_lib_dld_dld_link=no
10918
rm -f core conftest.err conftest.$ac_objext \
10919
conftest$ac_exeext conftest.$ac_ext
10920
LIBS=$ac_check_lib_save_LIBS
10922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10925
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10946
if test "x$lt_cv_dlopen" != xno; then
10952
case $lt_cv_dlopen in
10954
save_CPPFLAGS="$CPPFLAGS"
10955
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10957
save_LDFLAGS="$LDFLAGS"
10958
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10961
LIBS="$lt_cv_dlopen_libs $LIBS"
10963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965
if ${lt_cv_dlopen_self+:} false; then :
10966
$as_echo_n "(cached) " >&6
10968
if test "$cross_compiling" = yes; then :
10969
lt_cv_dlopen_self=cross
10971
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972
lt_status=$lt_dlunknown
10973
cat > conftest.$ac_ext <<_LT_EOF
10974
#line $LINENO "configure"
10975
#include "confdefs.h"
10984
# define LT_DLGLOBAL RTLD_GLOBAL
10987
# define LT_DLGLOBAL DL_GLOBAL
10989
# define LT_DLGLOBAL 0
10993
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994
find out it does not work in some platform. */
10995
#ifndef LT_DLLAZY_OR_NOW
10997
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11000
# define LT_DLLAZY_OR_NOW DL_LAZY
11003
# define LT_DLLAZY_OR_NOW RTLD_NOW
11006
# define LT_DLLAZY_OR_NOW DL_NOW
11008
# define LT_DLLAZY_OR_NOW 0
11015
/* When -fvisbility=hidden is used, assume the code has been annotated
11016
correspondingly for the symbols needed. */
11017
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018
int fnord () __attribute__((visibility("default")));
11021
int fnord () { return 42; }
11024
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025
int status = $lt_dlunknown;
11029
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11032
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033
else puts (dlerror ());
11035
/* dlclose (self); */
11043
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044
(eval $ac_link) 2>&5
11046
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048
(./conftest; exit; ) >&5 2>/dev/null
11050
case x$lt_status in
11051
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11056
# compilation failed
11057
lt_cv_dlopen_self=no
11064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065
$as_echo "$lt_cv_dlopen_self" >&6; }
11067
if test "x$lt_cv_dlopen_self" = xyes; then
11068
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071
if ${lt_cv_dlopen_self_static+:} false; then :
11072
$as_echo_n "(cached) " >&6
11074
if test "$cross_compiling" = yes; then :
11075
lt_cv_dlopen_self_static=cross
11077
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078
lt_status=$lt_dlunknown
11079
cat > conftest.$ac_ext <<_LT_EOF
11080
#line $LINENO "configure"
11081
#include "confdefs.h"
11090
# define LT_DLGLOBAL RTLD_GLOBAL
11093
# define LT_DLGLOBAL DL_GLOBAL
11095
# define LT_DLGLOBAL 0
11099
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100
find out it does not work in some platform. */
11101
#ifndef LT_DLLAZY_OR_NOW
11103
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11106
# define LT_DLLAZY_OR_NOW DL_LAZY
11109
# define LT_DLLAZY_OR_NOW RTLD_NOW
11112
# define LT_DLLAZY_OR_NOW DL_NOW
11114
# define LT_DLLAZY_OR_NOW 0
11121
/* When -fvisbility=hidden is used, assume the code has been annotated
11122
correspondingly for the symbols needed. */
11123
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124
int fnord () __attribute__((visibility("default")));
11127
int fnord () { return 42; }
11130
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131
int status = $lt_dlunknown;
11135
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11138
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139
else puts (dlerror ());
11141
/* dlclose (self); */
11149
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150
(eval $ac_link) 2>&5
11152
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154
(./conftest; exit; ) >&5 2>/dev/null
11156
case x$lt_status in
11157
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11162
# compilation failed
11163
lt_cv_dlopen_self_static=no
11170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11174
CPPFLAGS="$save_CPPFLAGS"
11175
LDFLAGS="$save_LDFLAGS"
11180
case $lt_cv_dlopen_self in
11181
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182
*) enable_dlopen_self=unknown ;;
11185
case $lt_cv_dlopen_self_static in
11186
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187
*) enable_dlopen_self_static=unknown ;;
11209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215
$as_echo "yes" >&6; }
11217
# FIXME - insert some real tests, host_os isn't really good enough
11220
if test -n "$STRIP" ; then
11221
striplib="$STRIP -x"
11222
old_striplib="$STRIP -S"
11223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224
$as_echo "yes" >&6; }
11226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227
$as_echo "no" >&6; }
11231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232
$as_echo "no" >&6; }
11248
# Report which library types will actually be built
11249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252
$as_echo "$can_build_shared" >&6; }
11254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255
$as_echo_n "checking whether to build shared libraries... " >&6; }
11256
test "$can_build_shared" = "no" && enable_shared=no
11258
# On AIX, shared libraries and static libraries use the same namespace, and
11259
# are all built from PIC.
11262
test "$enable_shared" = yes && enable_static=no
11263
if test -n "$RANLIB"; then
11264
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265
postinstall_cmds='$RANLIB $lib'
11270
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271
test "$enable_shared" = yes && enable_static=no
11275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276
$as_echo "$enable_shared" >&6; }
11278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279
$as_echo_n "checking whether to build static libraries... " >&6; }
11280
# Make sure either enable_shared or enable_static is yes.
11281
test "$enable_shared" = yes || enable_static=yes
11282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283
$as_echo "$enable_static" >&6; }
11290
ac_cpp='$CPP $CPPFLAGS'
11291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11311
ac_config_commands="$ac_config_commands libtool"
11316
# Only expand once:
11320
# Initialize X.Org macros
11332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11333
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11334
if ${ac_cv_prog_cc_c99+:} false; then :
11335
$as_echo_n "(cached) " >&6
11337
ac_cv_prog_cc_c99=no
11339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340
/* end confdefs.h. */
11341
#include <stdarg.h>
11342
#include <stdbool.h>
11343
#include <stdlib.h>
11347
// Check varargs macros. These examples are taken from C99 6.10.3.5.
11348
#define debug(...) fprintf (stderr, __VA_ARGS__)
11349
#define showlist(...) puts (#__VA_ARGS__)
11350
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11352
test_varargs_macros (void)
11357
debug ("X = %d\n", x);
11358
showlist (The first, second, and third items.);
11359
report (x>y, "x is %d but y is %d", x, y);
11362
// Check long long types.
11363
#define BIG64 18446744073709551615ull
11364
#define BIG32 4294967295ul
11365
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11367
your preprocessor is broken;
11371
your preprocessor is broken;
11373
static long long int bignum = -9223372036854775807LL;
11374
static unsigned long long int ubignum = BIG64;
11376
struct incomplete_array
11382
struct named_init {
11384
const wchar_t *name;
11388
typedef const char *ccp;
11391
test_restrict (ccp restrict text)
11393
// See if C++-style comments work.
11394
// Iterate through items via the restricted pointer.
11395
// Also check for declarations in for loops.
11396
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11401
// Check varargs and va_copy.
11403
test_varargs (const char *format, ...)
11406
va_start (args, format);
11408
va_copy (args_copy, args);
11418
case 's': // string
11419
str = va_arg (args_copy, const char *);
11422
number = va_arg (args_copy, int);
11425
fnumber = va_arg (args_copy, double);
11431
va_end (args_copy);
11440
_Bool success = false;
11443
if (test_restrict ("String literal") == 0)
11445
char *restrict newvar = "Another string";
11448
test_varargs ("s, d' f .", "string", 65, 34.234);
11449
test_varargs_macros ();
11451
// Check flexible array members.
11452
struct incomplete_array *ia =
11453
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11455
for (int i = 0; i < ia->datasize; ++i)
11456
ia->data[i] = i * 1.234;
11458
// Check named initializers.
11459
struct named_init ni = {
11461
.name = L"Test wide string",
11462
.average = 543.34343,
11467
int dynamic_array[ni.number];
11468
dynamic_array[ni.number - 1] = 543;
11470
// work around unused variable warnings
11471
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11472
|| dynamic_array[ni.number - 1] != 543);
11478
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11480
CC="$ac_save_CC $ac_arg"
11481
if ac_fn_c_try_compile "$LINENO"; then :
11482
ac_cv_prog_cc_c99=$ac_arg
11484
rm -f core conftest.err conftest.$ac_objext
11485
test "x$ac_cv_prog_cc_c99" != "xno" && break
11487
rm -f conftest.$ac_ext
11492
case "x$ac_cv_prog_cc_c99" in
11494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11495
$as_echo "none needed" >&6; } ;;
11497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11498
$as_echo "unsupported" >&6; } ;;
11500
CC="$CC $ac_cv_prog_cc_c99"
11501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11502
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11504
if test "x$ac_cv_prog_cc_c99" != xno; then :
11513
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11514
if test "x$ac_cv_have_decl___clang__" = xyes; then :
11520
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11521
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11527
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11528
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11542
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11543
if test -n "$ac_tool_prefix"; then
11544
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11545
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547
$as_echo_n "checking for $ac_word... " >&6; }
11548
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11549
$as_echo_n "(cached) " >&6
11551
case $PKG_CONFIG in
11553
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557
for as_dir in $PATH
11560
test -z "$as_dir" && as_dir=.
11561
for ac_exec_ext in '' $ac_executable_extensions; do
11562
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11564
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11575
if test -n "$PKG_CONFIG"; then
11576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11577
$as_echo "$PKG_CONFIG" >&6; }
11579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580
$as_echo "no" >&6; }
11585
if test -z "$ac_cv_path_PKG_CONFIG"; then
11586
ac_pt_PKG_CONFIG=$PKG_CONFIG
11587
# Extract the first word of "pkg-config", so it can be a program name with args.
11588
set dummy pkg-config; ac_word=$2
11589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590
$as_echo_n "checking for $ac_word... " >&6; }
11591
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11592
$as_echo_n "(cached) " >&6
11594
case $ac_pt_PKG_CONFIG in
11596
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600
for as_dir in $PATH
11603
test -z "$as_dir" && as_dir=.
11604
for ac_exec_ext in '' $ac_executable_extensions; do
11605
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11607
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11618
if test -n "$ac_pt_PKG_CONFIG"; then
11619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11620
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623
$as_echo "no" >&6; }
11626
if test "x$ac_pt_PKG_CONFIG" = x; then
11629
case $cross_compiling:$ac_tool_warned in
11631
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633
ac_tool_warned=yes ;;
11635
PKG_CONFIG=$ac_pt_PKG_CONFIG
11638
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11642
if test -n "$PKG_CONFIG"; then
11643
_pkg_min_version=0.9.0
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11645
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11646
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648
$as_echo "yes" >&6; }
11650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651
$as_echo "no" >&6; }
11660
# Check whether --enable-selective-werror was given.
11661
if test "${enable_selective_werror+set}" = set; then :
11662
enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11664
SELECTIVE_WERROR=yes
11671
# -v is too short to test reliably with XORG_TESTSET_CFLAG
11672
if test "x$SUNCC" = "xyes"; then
11678
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11692
xorg_testset_save_CFLAGS="$CFLAGS"
11694
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11695
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11697
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11698
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11699
$as_echo_n "(cached) " >&6
11701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702
/* end confdefs.h. */
11705
if ac_fn_c_try_compile "$LINENO"; then :
11706
xorg_cv_cc_flag_unknown_warning_option=yes
11708
xorg_cv_cc_flag_unknown_warning_option=no
11710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11713
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11714
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11715
CFLAGS="$xorg_testset_save_CFLAGS"
11718
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11719
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11720
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11722
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11724
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11725
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11726
$as_echo_n "(cached) " >&6
11728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729
/* end confdefs.h. */
11732
if ac_fn_c_try_compile "$LINENO"; then :
11733
xorg_cv_cc_flag_unused_command_line_argument=yes
11735
xorg_cv_cc_flag_unused_command_line_argument=no
11737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11740
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11741
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11742
CFLAGS="$xorg_testset_save_CFLAGS"
11747
if test $found = "no" ; then
11748
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11749
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11752
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11753
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11756
CFLAGS="$CFLAGS -Wall"
11758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
11759
$as_echo_n "checking if $CC supports-Wall... " >&6; }
11760
cacheid=xorg_cv_cc_flag__Wall
11761
if eval \${$cacheid+:} false; then :
11762
$as_echo_n "(cached) " >&6
11764
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765
/* end confdefs.h. */
11775
if ac_fn_c_try_link "$LINENO"; then :
11780
rm -f core conftest.err conftest.$ac_objext \
11781
conftest$ac_exeext conftest.$ac_ext
11785
CFLAGS="$xorg_testset_save_CFLAGS"
11787
eval supported=\$$cacheid
11788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11789
$as_echo "$supported" >&6; }
11790
if test "$supported" = "yes" ; then
11791
BASE_CFLAGS="$BASE_CFLAGS -Wall"
11810
xorg_testset_save_CFLAGS="$CFLAGS"
11812
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11813
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11815
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11816
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11817
$as_echo_n "(cached) " >&6
11819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820
/* end confdefs.h. */
11823
if ac_fn_c_try_compile "$LINENO"; then :
11824
xorg_cv_cc_flag_unknown_warning_option=yes
11826
xorg_cv_cc_flag_unknown_warning_option=no
11828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11831
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11832
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11833
CFLAGS="$xorg_testset_save_CFLAGS"
11836
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11837
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11838
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11840
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11842
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11843
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11844
$as_echo_n "(cached) " >&6
11846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847
/* end confdefs.h. */
11850
if ac_fn_c_try_compile "$LINENO"; then :
11851
xorg_cv_cc_flag_unused_command_line_argument=yes
11853
xorg_cv_cc_flag_unused_command_line_argument=no
11855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11858
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11859
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11860
CFLAGS="$xorg_testset_save_CFLAGS"
11865
if test $found = "no" ; then
11866
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11867
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11870
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11871
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11874
CFLAGS="$CFLAGS -Wpointer-arith"
11876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
11877
$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
11878
cacheid=xorg_cv_cc_flag__Wpointer_arith
11879
if eval \${$cacheid+:} false; then :
11880
$as_echo_n "(cached) " >&6
11882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883
/* end confdefs.h. */
11893
if ac_fn_c_try_link "$LINENO"; then :
11898
rm -f core conftest.err conftest.$ac_objext \
11899
conftest$ac_exeext conftest.$ac_ext
11903
CFLAGS="$xorg_testset_save_CFLAGS"
11905
eval supported=\$$cacheid
11906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11907
$as_echo "$supported" >&6; }
11908
if test "$supported" = "yes" ; then
11909
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11928
xorg_testset_save_CFLAGS="$CFLAGS"
11930
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11931
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11933
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11934
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11935
$as_echo_n "(cached) " >&6
11937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938
/* end confdefs.h. */
11941
if ac_fn_c_try_compile "$LINENO"; then :
11942
xorg_cv_cc_flag_unknown_warning_option=yes
11944
xorg_cv_cc_flag_unknown_warning_option=no
11946
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11949
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11950
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11951
CFLAGS="$xorg_testset_save_CFLAGS"
11954
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11955
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11956
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11958
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11960
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11961
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11962
$as_echo_n "(cached) " >&6
11964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965
/* end confdefs.h. */
11968
if ac_fn_c_try_compile "$LINENO"; then :
11969
xorg_cv_cc_flag_unused_command_line_argument=yes
11971
xorg_cv_cc_flag_unused_command_line_argument=no
11973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11976
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11977
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11978
CFLAGS="$xorg_testset_save_CFLAGS"
11983
if test $found = "no" ; then
11984
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11985
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11988
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11989
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11992
CFLAGS="$CFLAGS -Wmissing-declarations"
11994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
11995
$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
11996
cacheid=xorg_cv_cc_flag__Wmissing_declarations
11997
if eval \${$cacheid+:} false; then :
11998
$as_echo_n "(cached) " >&6
12000
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001
/* end confdefs.h. */
12011
if ac_fn_c_try_link "$LINENO"; then :
12016
rm -f core conftest.err conftest.$ac_objext \
12017
conftest$ac_exeext conftest.$ac_ext
12021
CFLAGS="$xorg_testset_save_CFLAGS"
12023
eval supported=\$$cacheid
12024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12025
$as_echo "$supported" >&6; }
12026
if test "$supported" = "yes" ; then
12027
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12046
xorg_testset_save_CFLAGS="$CFLAGS"
12048
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12049
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12051
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12052
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12053
$as_echo_n "(cached) " >&6
12055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056
/* end confdefs.h. */
12059
if ac_fn_c_try_compile "$LINENO"; then :
12060
xorg_cv_cc_flag_unknown_warning_option=yes
12062
xorg_cv_cc_flag_unknown_warning_option=no
12064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12067
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12068
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12069
CFLAGS="$xorg_testset_save_CFLAGS"
12072
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12073
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12074
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12076
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12078
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12079
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12080
$as_echo_n "(cached) " >&6
12082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083
/* end confdefs.h. */
12086
if ac_fn_c_try_compile "$LINENO"; then :
12087
xorg_cv_cc_flag_unused_command_line_argument=yes
12089
xorg_cv_cc_flag_unused_command_line_argument=no
12091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12094
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12095
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12096
CFLAGS="$xorg_testset_save_CFLAGS"
12101
if test $found = "no" ; then
12102
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12103
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12106
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12107
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12110
CFLAGS="$CFLAGS -Wformat=2"
12112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
12113
$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
12114
cacheid=xorg_cv_cc_flag__Wformat_2
12115
if eval \${$cacheid+:} false; then :
12116
$as_echo_n "(cached) " >&6
12118
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119
/* end confdefs.h. */
12129
if ac_fn_c_try_link "$LINENO"; then :
12134
rm -f core conftest.err conftest.$ac_objext \
12135
conftest$ac_exeext conftest.$ac_ext
12139
CFLAGS="$xorg_testset_save_CFLAGS"
12141
eval supported=\$$cacheid
12142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12143
$as_echo "$supported" >&6; }
12144
if test "$supported" = "yes" ; then
12145
BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12150
if test $found = "no" ; then
12151
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12152
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12155
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12156
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12159
CFLAGS="$CFLAGS -Wformat"
12161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
12162
$as_echo_n "checking if $CC supports-Wformat... " >&6; }
12163
cacheid=xorg_cv_cc_flag__Wformat
12164
if eval \${$cacheid+:} false; then :
12165
$as_echo_n "(cached) " >&6
12167
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168
/* end confdefs.h. */
12178
if ac_fn_c_try_link "$LINENO"; then :
12183
rm -f core conftest.err conftest.$ac_objext \
12184
conftest$ac_exeext conftest.$ac_ext
12188
CFLAGS="$xorg_testset_save_CFLAGS"
12190
eval supported=\$$cacheid
12191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12192
$as_echo "$supported" >&6; }
12193
if test "$supported" = "yes" ; then
12194
BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12215
xorg_testset_save_CFLAGS="$CFLAGS"
12217
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12218
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12220
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12221
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12222
$as_echo_n "(cached) " >&6
12224
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225
/* end confdefs.h. */
12228
if ac_fn_c_try_compile "$LINENO"; then :
12229
xorg_cv_cc_flag_unknown_warning_option=yes
12231
xorg_cv_cc_flag_unknown_warning_option=no
12233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12236
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12237
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12238
CFLAGS="$xorg_testset_save_CFLAGS"
12241
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12242
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12243
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12245
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12247
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12248
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12249
$as_echo_n "(cached) " >&6
12251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252
/* end confdefs.h. */
12255
if ac_fn_c_try_compile "$LINENO"; then :
12256
xorg_cv_cc_flag_unused_command_line_argument=yes
12258
xorg_cv_cc_flag_unused_command_line_argument=no
12260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12263
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12264
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12265
CFLAGS="$xorg_testset_save_CFLAGS"
12270
if test $found = "no" ; then
12271
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12272
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12275
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12276
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12279
CFLAGS="$CFLAGS -Wstrict-prototypes"
12281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
12282
$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
12283
cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12284
if eval \${$cacheid+:} false; then :
12285
$as_echo_n "(cached) " >&6
12287
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288
/* end confdefs.h. */
12298
if ac_fn_c_try_link "$LINENO"; then :
12303
rm -f core conftest.err conftest.$ac_objext \
12304
conftest$ac_exeext conftest.$ac_ext
12308
CFLAGS="$xorg_testset_save_CFLAGS"
12310
eval supported=\$$cacheid
12311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12312
$as_echo "$supported" >&6; }
12313
if test "$supported" = "yes" ; then
12314
BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12333
xorg_testset_save_CFLAGS="$CFLAGS"
12335
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12336
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12338
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12339
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12340
$as_echo_n "(cached) " >&6
12342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343
/* end confdefs.h. */
12346
if ac_fn_c_try_compile "$LINENO"; then :
12347
xorg_cv_cc_flag_unknown_warning_option=yes
12349
xorg_cv_cc_flag_unknown_warning_option=no
12351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12354
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12355
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12356
CFLAGS="$xorg_testset_save_CFLAGS"
12359
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12360
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12361
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12363
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12365
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12366
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12367
$as_echo_n "(cached) " >&6
12369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370
/* end confdefs.h. */
12373
if ac_fn_c_try_compile "$LINENO"; then :
12374
xorg_cv_cc_flag_unused_command_line_argument=yes
12376
xorg_cv_cc_flag_unused_command_line_argument=no
12378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12381
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12382
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12383
CFLAGS="$xorg_testset_save_CFLAGS"
12388
if test $found = "no" ; then
12389
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12390
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12393
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12394
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12397
CFLAGS="$CFLAGS -Wmissing-prototypes"
12399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
12400
$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
12401
cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12402
if eval \${$cacheid+:} false; then :
12403
$as_echo_n "(cached) " >&6
12405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406
/* end confdefs.h. */
12416
if ac_fn_c_try_link "$LINENO"; then :
12421
rm -f core conftest.err conftest.$ac_objext \
12422
conftest$ac_exeext conftest.$ac_ext
12426
CFLAGS="$xorg_testset_save_CFLAGS"
12428
eval supported=\$$cacheid
12429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12430
$as_echo "$supported" >&6; }
12431
if test "$supported" = "yes" ; then
12432
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12451
xorg_testset_save_CFLAGS="$CFLAGS"
12453
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12454
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12456
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12457
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12458
$as_echo_n "(cached) " >&6
12460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461
/* end confdefs.h. */
12464
if ac_fn_c_try_compile "$LINENO"; then :
12465
xorg_cv_cc_flag_unknown_warning_option=yes
12467
xorg_cv_cc_flag_unknown_warning_option=no
12469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12472
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12473
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12474
CFLAGS="$xorg_testset_save_CFLAGS"
12477
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12478
if test "x$xorg_testset_cc_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
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12485
$as_echo_n "(cached) " >&6
12487
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488
/* end confdefs.h. */
12491
if ac_fn_c_try_compile "$LINENO"; then :
12492
xorg_cv_cc_flag_unused_command_line_argument=yes
12494
xorg_cv_cc_flag_unused_command_line_argument=no
12496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12499
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12500
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12501
CFLAGS="$xorg_testset_save_CFLAGS"
12506
if test $found = "no" ; then
12507
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12508
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12511
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12512
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12515
CFLAGS="$CFLAGS -Wnested-externs"
12517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
12518
$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
12519
cacheid=xorg_cv_cc_flag__Wnested_externs
12520
if eval \${$cacheid+:} false; then :
12521
$as_echo_n "(cached) " >&6
12523
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524
/* end confdefs.h. */
12534
if ac_fn_c_try_link "$LINENO"; then :
12539
rm -f core conftest.err conftest.$ac_objext \
12540
conftest$ac_exeext conftest.$ac_ext
12544
CFLAGS="$xorg_testset_save_CFLAGS"
12546
eval supported=\$$cacheid
12547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12548
$as_echo "$supported" >&6; }
12549
if test "$supported" = "yes" ; then
12550
BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12569
xorg_testset_save_CFLAGS="$CFLAGS"
12571
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12572
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12574
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12575
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12576
$as_echo_n "(cached) " >&6
12578
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579
/* end confdefs.h. */
12582
if ac_fn_c_try_compile "$LINENO"; then :
12583
xorg_cv_cc_flag_unknown_warning_option=yes
12585
xorg_cv_cc_flag_unknown_warning_option=no
12587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12590
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12591
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12592
CFLAGS="$xorg_testset_save_CFLAGS"
12595
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12596
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12597
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12599
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12601
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12602
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12603
$as_echo_n "(cached) " >&6
12605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606
/* end confdefs.h. */
12609
if ac_fn_c_try_compile "$LINENO"; then :
12610
xorg_cv_cc_flag_unused_command_line_argument=yes
12612
xorg_cv_cc_flag_unused_command_line_argument=no
12614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12617
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12618
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12619
CFLAGS="$xorg_testset_save_CFLAGS"
12624
if test $found = "no" ; then
12625
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12626
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12629
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12630
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12633
CFLAGS="$CFLAGS -Wbad-function-cast"
12635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
12636
$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
12637
cacheid=xorg_cv_cc_flag__Wbad_function_cast
12638
if eval \${$cacheid+:} false; then :
12639
$as_echo_n "(cached) " >&6
12641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642
/* end confdefs.h. */
12652
if ac_fn_c_try_link "$LINENO"; then :
12657
rm -f core conftest.err conftest.$ac_objext \
12658
conftest$ac_exeext conftest.$ac_ext
12662
CFLAGS="$xorg_testset_save_CFLAGS"
12664
eval supported=\$$cacheid
12665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12666
$as_echo "$supported" >&6; }
12667
if test "$supported" = "yes" ; then
12668
BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12687
xorg_testset_save_CFLAGS="$CFLAGS"
12689
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12690
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12692
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12693
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12694
$as_echo_n "(cached) " >&6
12696
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697
/* end confdefs.h. */
12700
if ac_fn_c_try_compile "$LINENO"; then :
12701
xorg_cv_cc_flag_unknown_warning_option=yes
12703
xorg_cv_cc_flag_unknown_warning_option=no
12705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12708
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12709
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12710
CFLAGS="$xorg_testset_save_CFLAGS"
12713
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12714
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12715
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12717
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12719
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12720
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12721
$as_echo_n "(cached) " >&6
12723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724
/* end confdefs.h. */
12727
if ac_fn_c_try_compile "$LINENO"; then :
12728
xorg_cv_cc_flag_unused_command_line_argument=yes
12730
xorg_cv_cc_flag_unused_command_line_argument=no
12732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12735
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12736
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12737
CFLAGS="$xorg_testset_save_CFLAGS"
12742
if test $found = "no" ; then
12743
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12744
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12747
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12748
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12751
CFLAGS="$CFLAGS -Wold-style-definition"
12753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
12754
$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
12755
cacheid=xorg_cv_cc_flag__Wold_style_definition
12756
if eval \${$cacheid+:} false; then :
12757
$as_echo_n "(cached) " >&6
12759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760
/* end confdefs.h. */
12770
if ac_fn_c_try_link "$LINENO"; then :
12775
rm -f core conftest.err conftest.$ac_objext \
12776
conftest$ac_exeext conftest.$ac_ext
12780
CFLAGS="$xorg_testset_save_CFLAGS"
12782
eval supported=\$$cacheid
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12784
$as_echo "$supported" >&6; }
12785
if test "$supported" = "yes" ; then
12786
BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12805
xorg_testset_save_CFLAGS="$CFLAGS"
12807
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12808
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12810
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12811
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12812
$as_echo_n "(cached) " >&6
12814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815
/* end confdefs.h. */
12818
if ac_fn_c_try_compile "$LINENO"; then :
12819
xorg_cv_cc_flag_unknown_warning_option=yes
12821
xorg_cv_cc_flag_unknown_warning_option=no
12823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12826
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12827
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12828
CFLAGS="$xorg_testset_save_CFLAGS"
12831
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12832
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12833
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12835
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12837
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12838
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12839
$as_echo_n "(cached) " >&6
12841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842
/* end confdefs.h. */
12845
if ac_fn_c_try_compile "$LINENO"; then :
12846
xorg_cv_cc_flag_unused_command_line_argument=yes
12848
xorg_cv_cc_flag_unused_command_line_argument=no
12850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12853
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12854
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12855
CFLAGS="$xorg_testset_save_CFLAGS"
12860
if test $found = "no" ; then
12861
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12862
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12865
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12866
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12869
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
12872
$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
12873
cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12874
if eval \${$cacheid+:} false; then :
12875
$as_echo_n "(cached) " >&6
12877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878
/* end confdefs.h. */
12888
if ac_fn_c_try_link "$LINENO"; then :
12893
rm -f core conftest.err conftest.$ac_objext \
12894
conftest$ac_exeext conftest.$ac_ext
12898
CFLAGS="$xorg_testset_save_CFLAGS"
12900
eval supported=\$$cacheid
12901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12902
$as_echo "$supported" >&6; }
12903
if test "$supported" = "yes" ; then
12904
BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12913
# This chunk adds additional warnings that could catch undesired effects.
12927
xorg_testset_save_CFLAGS="$CFLAGS"
12929
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12930
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12932
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12933
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12934
$as_echo_n "(cached) " >&6
12936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937
/* end confdefs.h. */
12940
if ac_fn_c_try_compile "$LINENO"; then :
12941
xorg_cv_cc_flag_unknown_warning_option=yes
12943
xorg_cv_cc_flag_unknown_warning_option=no
12945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12948
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12949
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12950
CFLAGS="$xorg_testset_save_CFLAGS"
12953
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12954
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12955
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12957
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12959
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12960
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12961
$as_echo_n "(cached) " >&6
12963
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964
/* end confdefs.h. */
12967
if ac_fn_c_try_compile "$LINENO"; then :
12968
xorg_cv_cc_flag_unused_command_line_argument=yes
12970
xorg_cv_cc_flag_unused_command_line_argument=no
12972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12975
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12976
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12977
CFLAGS="$xorg_testset_save_CFLAGS"
12982
if test $found = "no" ; then
12983
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12984
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12987
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12988
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12991
CFLAGS="$CFLAGS -Wunused"
12993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
12994
$as_echo_n "checking if $CC supports-Wunused... " >&6; }
12995
cacheid=xorg_cv_cc_flag__Wunused
12996
if eval \${$cacheid+:} false; then :
12997
$as_echo_n "(cached) " >&6
12999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000
/* end confdefs.h. */
13010
if ac_fn_c_try_link "$LINENO"; then :
13015
rm -f core conftest.err conftest.$ac_objext \
13016
conftest$ac_exeext conftest.$ac_ext
13020
CFLAGS="$xorg_testset_save_CFLAGS"
13022
eval supported=\$$cacheid
13023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13024
$as_echo "$supported" >&6; }
13025
if test "$supported" = "yes" ; then
13026
BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13045
xorg_testset_save_CFLAGS="$CFLAGS"
13047
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13048
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13050
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13051
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13052
$as_echo_n "(cached) " >&6
13054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055
/* end confdefs.h. */
13058
if ac_fn_c_try_compile "$LINENO"; then :
13059
xorg_cv_cc_flag_unknown_warning_option=yes
13061
xorg_cv_cc_flag_unknown_warning_option=no
13063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13066
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13067
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13068
CFLAGS="$xorg_testset_save_CFLAGS"
13071
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13072
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13073
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13075
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13077
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13078
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13079
$as_echo_n "(cached) " >&6
13081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082
/* end confdefs.h. */
13085
if ac_fn_c_try_compile "$LINENO"; then :
13086
xorg_cv_cc_flag_unused_command_line_argument=yes
13088
xorg_cv_cc_flag_unused_command_line_argument=no
13090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13093
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13094
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13095
CFLAGS="$xorg_testset_save_CFLAGS"
13100
if test $found = "no" ; then
13101
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13102
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13105
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13106
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13109
CFLAGS="$CFLAGS -Wuninitialized"
13111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
13112
$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
13113
cacheid=xorg_cv_cc_flag__Wuninitialized
13114
if eval \${$cacheid+:} false; then :
13115
$as_echo_n "(cached) " >&6
13117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118
/* end confdefs.h. */
13128
if ac_fn_c_try_link "$LINENO"; then :
13133
rm -f core conftest.err conftest.$ac_objext \
13134
conftest$ac_exeext conftest.$ac_ext
13138
CFLAGS="$xorg_testset_save_CFLAGS"
13140
eval supported=\$$cacheid
13141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13142
$as_echo "$supported" >&6; }
13143
if test "$supported" = "yes" ; then
13144
BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13163
xorg_testset_save_CFLAGS="$CFLAGS"
13165
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13166
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13168
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13169
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13170
$as_echo_n "(cached) " >&6
13172
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173
/* end confdefs.h. */
13176
if ac_fn_c_try_compile "$LINENO"; then :
13177
xorg_cv_cc_flag_unknown_warning_option=yes
13179
xorg_cv_cc_flag_unknown_warning_option=no
13181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13184
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13185
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13186
CFLAGS="$xorg_testset_save_CFLAGS"
13189
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13190
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13191
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13193
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13195
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13196
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13197
$as_echo_n "(cached) " >&6
13199
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200
/* end confdefs.h. */
13203
if ac_fn_c_try_compile "$LINENO"; then :
13204
xorg_cv_cc_flag_unused_command_line_argument=yes
13206
xorg_cv_cc_flag_unused_command_line_argument=no
13208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13211
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13212
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13213
CFLAGS="$xorg_testset_save_CFLAGS"
13218
if test $found = "no" ; then
13219
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13220
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13223
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13224
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13227
CFLAGS="$CFLAGS -Wshadow"
13229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
13230
$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
13231
cacheid=xorg_cv_cc_flag__Wshadow
13232
if eval \${$cacheid+:} false; then :
13233
$as_echo_n "(cached) " >&6
13235
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236
/* end confdefs.h. */
13246
if ac_fn_c_try_link "$LINENO"; then :
13251
rm -f core conftest.err conftest.$ac_objext \
13252
conftest$ac_exeext conftest.$ac_ext
13256
CFLAGS="$xorg_testset_save_CFLAGS"
13258
eval supported=\$$cacheid
13259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13260
$as_echo "$supported" >&6; }
13261
if test "$supported" = "yes" ; then
13262
BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13281
xorg_testset_save_CFLAGS="$CFLAGS"
13283
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13284
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13286
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13287
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13288
$as_echo_n "(cached) " >&6
13290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291
/* end confdefs.h. */
13294
if ac_fn_c_try_compile "$LINENO"; then :
13295
xorg_cv_cc_flag_unknown_warning_option=yes
13297
xorg_cv_cc_flag_unknown_warning_option=no
13299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13302
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13303
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13304
CFLAGS="$xorg_testset_save_CFLAGS"
13307
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13308
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13309
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13311
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13313
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13314
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13315
$as_echo_n "(cached) " >&6
13317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318
/* end confdefs.h. */
13321
if ac_fn_c_try_compile "$LINENO"; then :
13322
xorg_cv_cc_flag_unused_command_line_argument=yes
13324
xorg_cv_cc_flag_unused_command_line_argument=no
13326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13329
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13330
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13331
CFLAGS="$xorg_testset_save_CFLAGS"
13336
if test $found = "no" ; then
13337
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13338
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13341
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13342
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13345
CFLAGS="$CFLAGS -Wcast-qual"
13347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
13348
$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
13349
cacheid=xorg_cv_cc_flag__Wcast_qual
13350
if eval \${$cacheid+:} false; then :
13351
$as_echo_n "(cached) " >&6
13353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354
/* end confdefs.h. */
13364
if ac_fn_c_try_link "$LINENO"; then :
13369
rm -f core conftest.err conftest.$ac_objext \
13370
conftest$ac_exeext conftest.$ac_ext
13374
CFLAGS="$xorg_testset_save_CFLAGS"
13376
eval supported=\$$cacheid
13377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13378
$as_echo "$supported" >&6; }
13379
if test "$supported" = "yes" ; then
13380
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13399
xorg_testset_save_CFLAGS="$CFLAGS"
13401
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13402
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13404
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13405
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13406
$as_echo_n "(cached) " >&6
13408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409
/* end confdefs.h. */
13412
if ac_fn_c_try_compile "$LINENO"; then :
13413
xorg_cv_cc_flag_unknown_warning_option=yes
13415
xorg_cv_cc_flag_unknown_warning_option=no
13417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13420
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13421
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13422
CFLAGS="$xorg_testset_save_CFLAGS"
13425
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13426
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13427
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13429
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13431
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13432
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13433
$as_echo_n "(cached) " >&6
13435
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436
/* end confdefs.h. */
13439
if ac_fn_c_try_compile "$LINENO"; then :
13440
xorg_cv_cc_flag_unused_command_line_argument=yes
13442
xorg_cv_cc_flag_unused_command_line_argument=no
13444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13447
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13448
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13449
CFLAGS="$xorg_testset_save_CFLAGS"
13454
if test $found = "no" ; then
13455
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13456
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13459
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13460
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13463
CFLAGS="$CFLAGS -Wmissing-noreturn"
13465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
13466
$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
13467
cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13468
if eval \${$cacheid+:} false; then :
13469
$as_echo_n "(cached) " >&6
13471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472
/* end confdefs.h. */
13482
if ac_fn_c_try_link "$LINENO"; then :
13487
rm -f core conftest.err conftest.$ac_objext \
13488
conftest$ac_exeext conftest.$ac_ext
13492
CFLAGS="$xorg_testset_save_CFLAGS"
13494
eval supported=\$$cacheid
13495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496
$as_echo "$supported" >&6; }
13497
if test "$supported" = "yes" ; then
13498
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13517
xorg_testset_save_CFLAGS="$CFLAGS"
13519
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13520
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13522
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13523
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13524
$as_echo_n "(cached) " >&6
13526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527
/* end confdefs.h. */
13530
if ac_fn_c_try_compile "$LINENO"; then :
13531
xorg_cv_cc_flag_unknown_warning_option=yes
13533
xorg_cv_cc_flag_unknown_warning_option=no
13535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13538
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13539
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13540
CFLAGS="$xorg_testset_save_CFLAGS"
13543
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13544
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13545
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13549
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13550
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13551
$as_echo_n "(cached) " >&6
13553
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554
/* end confdefs.h. */
13557
if ac_fn_c_try_compile "$LINENO"; then :
13558
xorg_cv_cc_flag_unused_command_line_argument=yes
13560
xorg_cv_cc_flag_unused_command_line_argument=no
13562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13565
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13566
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13567
CFLAGS="$xorg_testset_save_CFLAGS"
13572
if test $found = "no" ; then
13573
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13574
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13577
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13578
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13581
CFLAGS="$CFLAGS -Wmissing-format-attribute"
13583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
13584
$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
13585
cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13586
if eval \${$cacheid+:} false; then :
13587
$as_echo_n "(cached) " >&6
13589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590
/* end confdefs.h. */
13600
if ac_fn_c_try_link "$LINENO"; then :
13605
rm -f core conftest.err conftest.$ac_objext \
13606
conftest$ac_exeext conftest.$ac_ext
13610
CFLAGS="$xorg_testset_save_CFLAGS"
13612
eval supported=\$$cacheid
13613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614
$as_echo "$supported" >&6; }
13615
if test "$supported" = "yes" ; then
13616
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13635
xorg_testset_save_CFLAGS="$CFLAGS"
13637
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13638
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13640
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13641
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13642
$as_echo_n "(cached) " >&6
13644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645
/* end confdefs.h. */
13648
if ac_fn_c_try_compile "$LINENO"; then :
13649
xorg_cv_cc_flag_unknown_warning_option=yes
13651
xorg_cv_cc_flag_unknown_warning_option=no
13653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13656
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13657
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13658
CFLAGS="$xorg_testset_save_CFLAGS"
13661
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13662
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13663
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13667
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13668
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13669
$as_echo_n "(cached) " >&6
13671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672
/* end confdefs.h. */
13675
if ac_fn_c_try_compile "$LINENO"; then :
13676
xorg_cv_cc_flag_unused_command_line_argument=yes
13678
xorg_cv_cc_flag_unused_command_line_argument=no
13680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13683
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13684
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13685
CFLAGS="$xorg_testset_save_CFLAGS"
13690
if test $found = "no" ; then
13691
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13692
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13695
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13696
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13699
CFLAGS="$CFLAGS -Wredundant-decls"
13701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
13702
$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
13703
cacheid=xorg_cv_cc_flag__Wredundant_decls
13704
if eval \${$cacheid+:} false; then :
13705
$as_echo_n "(cached) " >&6
13707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708
/* end confdefs.h. */
13718
if ac_fn_c_try_link "$LINENO"; then :
13723
rm -f core conftest.err conftest.$ac_objext \
13724
conftest$ac_exeext conftest.$ac_ext
13728
CFLAGS="$xorg_testset_save_CFLAGS"
13730
eval supported=\$$cacheid
13731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13732
$as_echo "$supported" >&6; }
13733
if test "$supported" = "yes" ; then
13734
BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13741
# These are currently disabled because they are noisy. They will be enabled
13742
# in the future once the codebase is sufficiently modernized to silence
13743
# them. For now, I don't want them to drown out the other warnings.
13744
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13745
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13746
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13748
# Turn some warnings into errors, so we don't accidently get successful builds
13749
# when there are problems that should be fixed.
13751
if test "x$SELECTIVE_WERROR" = "xyes" ; then
13765
xorg_testset_save_CFLAGS="$CFLAGS"
13767
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13768
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13770
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13771
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13772
$as_echo_n "(cached) " >&6
13774
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775
/* end confdefs.h. */
13778
if ac_fn_c_try_compile "$LINENO"; then :
13779
xorg_cv_cc_flag_unknown_warning_option=yes
13781
xorg_cv_cc_flag_unknown_warning_option=no
13783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13786
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13787
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13788
CFLAGS="$xorg_testset_save_CFLAGS"
13791
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13792
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13793
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13797
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13798
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13799
$as_echo_n "(cached) " >&6
13801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802
/* end confdefs.h. */
13805
if ac_fn_c_try_compile "$LINENO"; then :
13806
xorg_cv_cc_flag_unused_command_line_argument=yes
13808
xorg_cv_cc_flag_unused_command_line_argument=no
13810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13813
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13814
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13815
CFLAGS="$xorg_testset_save_CFLAGS"
13820
if test $found = "no" ; then
13821
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13822
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13826
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13829
CFLAGS="$CFLAGS -Werror=implicit"
13831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
13832
$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
13833
cacheid=xorg_cv_cc_flag__Werror_implicit
13834
if eval \${$cacheid+:} false; then :
13835
$as_echo_n "(cached) " >&6
13837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838
/* end confdefs.h. */
13848
if ac_fn_c_try_link "$LINENO"; then :
13853
rm -f core conftest.err conftest.$ac_objext \
13854
conftest$ac_exeext conftest.$ac_ext
13858
CFLAGS="$xorg_testset_save_CFLAGS"
13860
eval supported=\$$cacheid
13861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13862
$as_echo "$supported" >&6; }
13863
if test "$supported" = "yes" ; then
13864
BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13869
if test $found = "no" ; then
13870
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13871
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13874
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13875
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13878
CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13881
$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13882
cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
13883
if eval \${$cacheid+:} false; then :
13884
$as_echo_n "(cached) " >&6
13886
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887
/* end confdefs.h. */
13897
if ac_fn_c_try_link "$LINENO"; then :
13902
rm -f core conftest.err conftest.$ac_objext \
13903
conftest$ac_exeext conftest.$ac_ext
13907
CFLAGS="$xorg_testset_save_CFLAGS"
13909
eval supported=\$$cacheid
13910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13911
$as_echo "$supported" >&6; }
13912
if test "$supported" = "yes" ; then
13913
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13932
xorg_testset_save_CFLAGS="$CFLAGS"
13934
if test "x$xorg_testset_cc_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
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13939
$as_echo_n "(cached) " >&6
13941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942
/* end confdefs.h. */
13945
if ac_fn_c_try_compile "$LINENO"; then :
13946
xorg_cv_cc_flag_unknown_warning_option=yes
13948
xorg_cv_cc_flag_unknown_warning_option=no
13950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13953
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13954
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13955
CFLAGS="$xorg_testset_save_CFLAGS"
13958
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13959
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13962
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13964
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13965
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13966
$as_echo_n "(cached) " >&6
13968
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969
/* end confdefs.h. */
13972
if ac_fn_c_try_compile "$LINENO"; then :
13973
xorg_cv_cc_flag_unused_command_line_argument=yes
13975
xorg_cv_cc_flag_unused_command_line_argument=no
13977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13980
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13981
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13982
CFLAGS="$xorg_testset_save_CFLAGS"
13987
if test $found = "no" ; then
13988
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13989
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13993
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13996
CFLAGS="$CFLAGS -Werror=nonnull"
13998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
13999
$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
14000
cacheid=xorg_cv_cc_flag__Werror_nonnull
14001
if eval \${$cacheid+:} false; then :
14002
$as_echo_n "(cached) " >&6
14004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005
/* end confdefs.h. */
14015
if ac_fn_c_try_link "$LINENO"; then :
14020
rm -f core conftest.err conftest.$ac_objext \
14021
conftest$ac_exeext conftest.$ac_ext
14025
CFLAGS="$xorg_testset_save_CFLAGS"
14027
eval supported=\$$cacheid
14028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14029
$as_echo "$supported" >&6; }
14030
if test "$supported" = "yes" ; then
14031
BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14050
xorg_testset_save_CFLAGS="$CFLAGS"
14052
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14053
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14055
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14056
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14057
$as_echo_n "(cached) " >&6
14059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060
/* end confdefs.h. */
14063
if ac_fn_c_try_compile "$LINENO"; then :
14064
xorg_cv_cc_flag_unknown_warning_option=yes
14066
xorg_cv_cc_flag_unknown_warning_option=no
14068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14071
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14072
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14073
CFLAGS="$xorg_testset_save_CFLAGS"
14076
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14077
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14078
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14080
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14082
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14083
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14084
$as_echo_n "(cached) " >&6
14086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087
/* end confdefs.h. */
14090
if ac_fn_c_try_compile "$LINENO"; then :
14091
xorg_cv_cc_flag_unused_command_line_argument=yes
14093
xorg_cv_cc_flag_unused_command_line_argument=no
14095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14098
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14099
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14100
CFLAGS="$xorg_testset_save_CFLAGS"
14105
if test $found = "no" ; then
14106
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14107
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14111
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14114
CFLAGS="$CFLAGS -Werror=init-self"
14116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
14117
$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
14118
cacheid=xorg_cv_cc_flag__Werror_init_self
14119
if eval \${$cacheid+:} false; then :
14120
$as_echo_n "(cached) " >&6
14122
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123
/* end confdefs.h. */
14133
if ac_fn_c_try_link "$LINENO"; then :
14138
rm -f core conftest.err conftest.$ac_objext \
14139
conftest$ac_exeext conftest.$ac_ext
14143
CFLAGS="$xorg_testset_save_CFLAGS"
14145
eval supported=\$$cacheid
14146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14147
$as_echo "$supported" >&6; }
14148
if test "$supported" = "yes" ; then
14149
BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14168
xorg_testset_save_CFLAGS="$CFLAGS"
14170
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14171
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14173
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14174
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14175
$as_echo_n "(cached) " >&6
14177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178
/* end confdefs.h. */
14181
if ac_fn_c_try_compile "$LINENO"; then :
14182
xorg_cv_cc_flag_unknown_warning_option=yes
14184
xorg_cv_cc_flag_unknown_warning_option=no
14186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14189
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14190
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14191
CFLAGS="$xorg_testset_save_CFLAGS"
14194
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14195
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14196
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14200
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14201
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14202
$as_echo_n "(cached) " >&6
14204
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205
/* end confdefs.h. */
14208
if ac_fn_c_try_compile "$LINENO"; then :
14209
xorg_cv_cc_flag_unused_command_line_argument=yes
14211
xorg_cv_cc_flag_unused_command_line_argument=no
14213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14216
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14217
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14218
CFLAGS="$xorg_testset_save_CFLAGS"
14223
if test $found = "no" ; then
14224
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14225
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14228
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14229
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14232
CFLAGS="$CFLAGS -Werror=main"
14234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
14235
$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
14236
cacheid=xorg_cv_cc_flag__Werror_main
14237
if eval \${$cacheid+:} false; then :
14238
$as_echo_n "(cached) " >&6
14240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241
/* end confdefs.h. */
14251
if ac_fn_c_try_link "$LINENO"; then :
14256
rm -f core conftest.err conftest.$ac_objext \
14257
conftest$ac_exeext conftest.$ac_ext
14261
CFLAGS="$xorg_testset_save_CFLAGS"
14263
eval supported=\$$cacheid
14264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14265
$as_echo "$supported" >&6; }
14266
if test "$supported" = "yes" ; then
14267
BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14286
xorg_testset_save_CFLAGS="$CFLAGS"
14288
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14289
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14291
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14292
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14293
$as_echo_n "(cached) " >&6
14295
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296
/* end confdefs.h. */
14299
if ac_fn_c_try_compile "$LINENO"; then :
14300
xorg_cv_cc_flag_unknown_warning_option=yes
14302
xorg_cv_cc_flag_unknown_warning_option=no
14304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14307
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14308
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14309
CFLAGS="$xorg_testset_save_CFLAGS"
14312
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14313
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14314
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14316
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14318
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14319
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14320
$as_echo_n "(cached) " >&6
14322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323
/* end confdefs.h. */
14326
if ac_fn_c_try_compile "$LINENO"; then :
14327
xorg_cv_cc_flag_unused_command_line_argument=yes
14329
xorg_cv_cc_flag_unused_command_line_argument=no
14331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14334
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14335
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14336
CFLAGS="$xorg_testset_save_CFLAGS"
14341
if test $found = "no" ; then
14342
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14343
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14347
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350
CFLAGS="$CFLAGS -Werror=missing-braces"
14352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
14353
$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
14354
cacheid=xorg_cv_cc_flag__Werror_missing_braces
14355
if eval \${$cacheid+:} false; then :
14356
$as_echo_n "(cached) " >&6
14358
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359
/* end confdefs.h. */
14369
if ac_fn_c_try_link "$LINENO"; then :
14374
rm -f core conftest.err conftest.$ac_objext \
14375
conftest$ac_exeext conftest.$ac_ext
14379
CFLAGS="$xorg_testset_save_CFLAGS"
14381
eval supported=\$$cacheid
14382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14383
$as_echo "$supported" >&6; }
14384
if test "$supported" = "yes" ; then
14385
BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14404
xorg_testset_save_CFLAGS="$CFLAGS"
14406
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14407
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14409
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14410
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14411
$as_echo_n "(cached) " >&6
14413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414
/* end confdefs.h. */
14417
if ac_fn_c_try_compile "$LINENO"; then :
14418
xorg_cv_cc_flag_unknown_warning_option=yes
14420
xorg_cv_cc_flag_unknown_warning_option=no
14422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427
CFLAGS="$xorg_testset_save_CFLAGS"
14430
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14434
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14438
$as_echo_n "(cached) " >&6
14440
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441
/* end confdefs.h. */
14444
if ac_fn_c_try_compile "$LINENO"; then :
14445
xorg_cv_cc_flag_unused_command_line_argument=yes
14447
xorg_cv_cc_flag_unused_command_line_argument=no
14449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14452
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14453
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14454
CFLAGS="$xorg_testset_save_CFLAGS"
14459
if test $found = "no" ; then
14460
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14461
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14465
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14468
CFLAGS="$CFLAGS -Werror=sequence-point"
14470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
14471
$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
14472
cacheid=xorg_cv_cc_flag__Werror_sequence_point
14473
if eval \${$cacheid+:} false; then :
14474
$as_echo_n "(cached) " >&6
14476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477
/* end confdefs.h. */
14487
if ac_fn_c_try_link "$LINENO"; then :
14492
rm -f core conftest.err conftest.$ac_objext \
14493
conftest$ac_exeext conftest.$ac_ext
14497
CFLAGS="$xorg_testset_save_CFLAGS"
14499
eval supported=\$$cacheid
14500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14501
$as_echo "$supported" >&6; }
14502
if test "$supported" = "yes" ; then
14503
BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14522
xorg_testset_save_CFLAGS="$CFLAGS"
14524
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14525
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14527
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14528
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14529
$as_echo_n "(cached) " >&6
14531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532
/* end confdefs.h. */
14535
if ac_fn_c_try_compile "$LINENO"; then :
14536
xorg_cv_cc_flag_unknown_warning_option=yes
14538
xorg_cv_cc_flag_unknown_warning_option=no
14540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14543
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14544
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14545
CFLAGS="$xorg_testset_save_CFLAGS"
14548
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14549
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14550
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14554
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14555
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14556
$as_echo_n "(cached) " >&6
14558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559
/* end confdefs.h. */
14562
if ac_fn_c_try_compile "$LINENO"; then :
14563
xorg_cv_cc_flag_unused_command_line_argument=yes
14565
xorg_cv_cc_flag_unused_command_line_argument=no
14567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14570
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14571
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14572
CFLAGS="$xorg_testset_save_CFLAGS"
14577
if test $found = "no" ; then
14578
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14579
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14583
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14586
CFLAGS="$CFLAGS -Werror=return-type"
14588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
14589
$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
14590
cacheid=xorg_cv_cc_flag__Werror_return_type
14591
if eval \${$cacheid+:} false; then :
14592
$as_echo_n "(cached) " >&6
14594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595
/* end confdefs.h. */
14605
if ac_fn_c_try_link "$LINENO"; then :
14610
rm -f core conftest.err conftest.$ac_objext \
14611
conftest$ac_exeext conftest.$ac_ext
14615
CFLAGS="$xorg_testset_save_CFLAGS"
14617
eval supported=\$$cacheid
14618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14619
$as_echo "$supported" >&6; }
14620
if test "$supported" = "yes" ; then
14621
BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14626
if test $found = "no" ; then
14627
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14628
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14632
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635
CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14638
$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14639
cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14640
if eval \${$cacheid+:} false; then :
14641
$as_echo_n "(cached) " >&6
14643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644
/* end confdefs.h. */
14654
if ac_fn_c_try_link "$LINENO"; then :
14659
rm -f core conftest.err conftest.$ac_objext \
14660
conftest$ac_exeext conftest.$ac_ext
14664
CFLAGS="$xorg_testset_save_CFLAGS"
14666
eval supported=\$$cacheid
14667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14668
$as_echo "$supported" >&6; }
14669
if test "$supported" = "yes" ; then
14670
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14689
xorg_testset_save_CFLAGS="$CFLAGS"
14691
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14692
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14694
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14695
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14696
$as_echo_n "(cached) " >&6
14698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699
/* end confdefs.h. */
14702
if ac_fn_c_try_compile "$LINENO"; then :
14703
xorg_cv_cc_flag_unknown_warning_option=yes
14705
xorg_cv_cc_flag_unknown_warning_option=no
14707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14710
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14711
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14712
CFLAGS="$xorg_testset_save_CFLAGS"
14715
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14716
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14721
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14722
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14723
$as_echo_n "(cached) " >&6
14725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726
/* end confdefs.h. */
14729
if ac_fn_c_try_compile "$LINENO"; then :
14730
xorg_cv_cc_flag_unused_command_line_argument=yes
14732
xorg_cv_cc_flag_unused_command_line_argument=no
14734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14737
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14738
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14739
CFLAGS="$xorg_testset_save_CFLAGS"
14744
if test $found = "no" ; then
14745
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14746
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14750
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753
CFLAGS="$CFLAGS -Werror=trigraphs"
14755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
14756
$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
14757
cacheid=xorg_cv_cc_flag__Werror_trigraphs
14758
if eval \${$cacheid+:} false; then :
14759
$as_echo_n "(cached) " >&6
14761
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762
/* end confdefs.h. */
14772
if ac_fn_c_try_link "$LINENO"; then :
14777
rm -f core conftest.err conftest.$ac_objext \
14778
conftest$ac_exeext conftest.$ac_ext
14782
CFLAGS="$xorg_testset_save_CFLAGS"
14784
eval supported=\$$cacheid
14785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14786
$as_echo "$supported" >&6; }
14787
if test "$supported" = "yes" ; then
14788
BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14807
xorg_testset_save_CFLAGS="$CFLAGS"
14809
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14810
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14812
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14813
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14814
$as_echo_n "(cached) " >&6
14816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817
/* end confdefs.h. */
14820
if ac_fn_c_try_compile "$LINENO"; then :
14821
xorg_cv_cc_flag_unknown_warning_option=yes
14823
xorg_cv_cc_flag_unknown_warning_option=no
14825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14828
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14829
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14830
CFLAGS="$xorg_testset_save_CFLAGS"
14833
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14834
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14835
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14839
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14840
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14841
$as_echo_n "(cached) " >&6
14843
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844
/* end confdefs.h. */
14847
if ac_fn_c_try_compile "$LINENO"; then :
14848
xorg_cv_cc_flag_unused_command_line_argument=yes
14850
xorg_cv_cc_flag_unused_command_line_argument=no
14852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14855
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14856
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14857
CFLAGS="$xorg_testset_save_CFLAGS"
14862
if test $found = "no" ; then
14863
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14864
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14868
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871
CFLAGS="$CFLAGS -Werror=array-bounds"
14873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
14874
$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
14875
cacheid=xorg_cv_cc_flag__Werror_array_bounds
14876
if eval \${$cacheid+:} false; then :
14877
$as_echo_n "(cached) " >&6
14879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880
/* end confdefs.h. */
14890
if ac_fn_c_try_link "$LINENO"; then :
14895
rm -f core conftest.err conftest.$ac_objext \
14896
conftest$ac_exeext conftest.$ac_ext
14900
CFLAGS="$xorg_testset_save_CFLAGS"
14902
eval supported=\$$cacheid
14903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14904
$as_echo "$supported" >&6; }
14905
if test "$supported" = "yes" ; then
14906
BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14925
xorg_testset_save_CFLAGS="$CFLAGS"
14927
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14928
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14930
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14931
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14932
$as_echo_n "(cached) " >&6
14934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935
/* end confdefs.h. */
14938
if ac_fn_c_try_compile "$LINENO"; then :
14939
xorg_cv_cc_flag_unknown_warning_option=yes
14941
xorg_cv_cc_flag_unknown_warning_option=no
14943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14946
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14947
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14948
CFLAGS="$xorg_testset_save_CFLAGS"
14951
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14952
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14953
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14955
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14957
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14958
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14959
$as_echo_n "(cached) " >&6
14961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962
/* end confdefs.h. */
14965
if ac_fn_c_try_compile "$LINENO"; then :
14966
xorg_cv_cc_flag_unused_command_line_argument=yes
14968
xorg_cv_cc_flag_unused_command_line_argument=no
14970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14973
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14974
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14975
CFLAGS="$xorg_testset_save_CFLAGS"
14980
if test $found = "no" ; then
14981
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14982
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14986
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989
CFLAGS="$CFLAGS -Werror=write-strings"
14991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
14992
$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
14993
cacheid=xorg_cv_cc_flag__Werror_write_strings
14994
if eval \${$cacheid+:} false; then :
14995
$as_echo_n "(cached) " >&6
14997
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998
/* end confdefs.h. */
15008
if ac_fn_c_try_link "$LINENO"; then :
15013
rm -f core conftest.err conftest.$ac_objext \
15014
conftest$ac_exeext conftest.$ac_ext
15018
CFLAGS="$xorg_testset_save_CFLAGS"
15020
eval supported=\$$cacheid
15021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15022
$as_echo "$supported" >&6; }
15023
if test "$supported" = "yes" ; then
15024
BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15043
xorg_testset_save_CFLAGS="$CFLAGS"
15045
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15046
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15048
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15049
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15050
$as_echo_n "(cached) " >&6
15052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053
/* end confdefs.h. */
15056
if ac_fn_c_try_compile "$LINENO"; then :
15057
xorg_cv_cc_flag_unknown_warning_option=yes
15059
xorg_cv_cc_flag_unknown_warning_option=no
15061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15064
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15065
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15066
CFLAGS="$xorg_testset_save_CFLAGS"
15069
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15070
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15073
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15075
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15076
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15077
$as_echo_n "(cached) " >&6
15079
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080
/* end confdefs.h. */
15083
if ac_fn_c_try_compile "$LINENO"; then :
15084
xorg_cv_cc_flag_unused_command_line_argument=yes
15086
xorg_cv_cc_flag_unused_command_line_argument=no
15088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15091
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15092
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15093
CFLAGS="$xorg_testset_save_CFLAGS"
15098
if test $found = "no" ; then
15099
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15100
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15104
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107
CFLAGS="$CFLAGS -Werror=address"
15109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
15110
$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
15111
cacheid=xorg_cv_cc_flag__Werror_address
15112
if eval \${$cacheid+:} false; then :
15113
$as_echo_n "(cached) " >&6
15115
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116
/* end confdefs.h. */
15126
if ac_fn_c_try_link "$LINENO"; then :
15131
rm -f core conftest.err conftest.$ac_objext \
15132
conftest$ac_exeext conftest.$ac_ext
15136
CFLAGS="$xorg_testset_save_CFLAGS"
15138
eval supported=\$$cacheid
15139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15140
$as_echo "$supported" >&6; }
15141
if test "$supported" = "yes" ; then
15142
BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15161
xorg_testset_save_CFLAGS="$CFLAGS"
15163
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15164
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15166
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15167
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15168
$as_echo_n "(cached) " >&6
15170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171
/* end confdefs.h. */
15174
if ac_fn_c_try_compile "$LINENO"; then :
15175
xorg_cv_cc_flag_unknown_warning_option=yes
15177
xorg_cv_cc_flag_unknown_warning_option=no
15179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15182
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15183
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15184
CFLAGS="$xorg_testset_save_CFLAGS"
15187
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15188
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15189
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15191
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15193
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15194
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15195
$as_echo_n "(cached) " >&6
15197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198
/* end confdefs.h. */
15201
if ac_fn_c_try_compile "$LINENO"; then :
15202
xorg_cv_cc_flag_unused_command_line_argument=yes
15204
xorg_cv_cc_flag_unused_command_line_argument=no
15206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15209
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15210
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15211
CFLAGS="$xorg_testset_save_CFLAGS"
15216
if test $found = "no" ; then
15217
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15218
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15222
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225
CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
15228
$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
15229
cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15230
if eval \${$cacheid+:} false; then :
15231
$as_echo_n "(cached) " >&6
15233
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234
/* end confdefs.h. */
15244
if ac_fn_c_try_link "$LINENO"; then :
15249
rm -f core conftest.err conftest.$ac_objext \
15250
conftest$ac_exeext conftest.$ac_ext
15254
CFLAGS="$xorg_testset_save_CFLAGS"
15256
eval supported=\$$cacheid
15257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15258
$as_echo "$supported" >&6; }
15259
if test "$supported" = "yes" ; then
15260
BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15265
if test $found = "no" ; then
15266
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15267
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15271
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15274
CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15277
$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15278
cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15279
if eval \${$cacheid+:} false; then :
15280
$as_echo_n "(cached) " >&6
15282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283
/* end confdefs.h. */
15293
if ac_fn_c_try_link "$LINENO"; then :
15298
rm -f core conftest.err conftest.$ac_objext \
15299
conftest$ac_exeext conftest.$ac_ext
15303
CFLAGS="$xorg_testset_save_CFLAGS"
15305
eval supported=\$$cacheid
15306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15307
$as_echo "$supported" >&6; }
15308
if test "$supported" = "yes" ; then
15309
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15328
xorg_testset_save_CFLAGS="$CFLAGS"
15330
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15331
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15333
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15334
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15335
$as_echo_n "(cached) " >&6
15337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338
/* end confdefs.h. */
15341
if ac_fn_c_try_compile "$LINENO"; then :
15342
xorg_cv_cc_flag_unknown_warning_option=yes
15344
xorg_cv_cc_flag_unknown_warning_option=no
15346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15349
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15350
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15351
CFLAGS="$xorg_testset_save_CFLAGS"
15354
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15355
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15356
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15358
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15360
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15361
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15362
$as_echo_n "(cached) " >&6
15364
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365
/* end confdefs.h. */
15368
if ac_fn_c_try_compile "$LINENO"; then :
15369
xorg_cv_cc_flag_unused_command_line_argument=yes
15371
xorg_cv_cc_flag_unused_command_line_argument=no
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15376
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15377
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15378
CFLAGS="$xorg_testset_save_CFLAGS"
15383
if test $found = "no" ; then
15384
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15385
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15388
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15389
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15392
CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
15395
$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
15396
cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15397
if eval \${$cacheid+:} false; then :
15398
$as_echo_n "(cached) " >&6
15400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401
/* end confdefs.h. */
15411
if ac_fn_c_try_link "$LINENO"; then :
15416
rm -f core conftest.err conftest.$ac_objext \
15417
conftest$ac_exeext conftest.$ac_ext
15421
CFLAGS="$xorg_testset_save_CFLAGS"
15423
eval supported=\$$cacheid
15424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15425
$as_echo "$supported" >&6; }
15426
if test "$supported" = "yes" ; then
15427
BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15432
# Also -errwarn=E_BAD_PTR_INT_COMBINATION
15434
{ $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
15435
$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;}
15449
xorg_testset_save_CFLAGS="$CFLAGS"
15451
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15452
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15454
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15455
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15456
$as_echo_n "(cached) " >&6
15458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459
/* end confdefs.h. */
15462
if ac_fn_c_try_compile "$LINENO"; then :
15463
xorg_cv_cc_flag_unknown_warning_option=yes
15465
xorg_cv_cc_flag_unknown_warning_option=no
15467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15470
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15471
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15472
CFLAGS="$xorg_testset_save_CFLAGS"
15475
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15476
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15477
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15479
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15481
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15482
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15483
$as_echo_n "(cached) " >&6
15485
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486
/* end confdefs.h. */
15489
if ac_fn_c_try_compile "$LINENO"; then :
15490
xorg_cv_cc_flag_unused_command_line_argument=yes
15492
xorg_cv_cc_flag_unused_command_line_argument=no
15494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15497
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15498
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15499
CFLAGS="$xorg_testset_save_CFLAGS"
15504
if test $found = "no" ; then
15505
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15506
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15509
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15510
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15513
CFLAGS="$CFLAGS -Wimplicit"
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
15516
$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
15517
cacheid=xorg_cv_cc_flag__Wimplicit
15518
if eval \${$cacheid+:} false; then :
15519
$as_echo_n "(cached) " >&6
15521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522
/* end confdefs.h. */
15532
if ac_fn_c_try_link "$LINENO"; then :
15537
rm -f core conftest.err conftest.$ac_objext \
15538
conftest$ac_exeext conftest.$ac_ext
15542
CFLAGS="$xorg_testset_save_CFLAGS"
15544
eval supported=\$$cacheid
15545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15546
$as_echo "$supported" >&6; }
15547
if test "$supported" = "yes" ; then
15548
BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15567
xorg_testset_save_CFLAGS="$CFLAGS"
15569
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15570
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15572
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15573
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15574
$as_echo_n "(cached) " >&6
15576
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577
/* end confdefs.h. */
15580
if ac_fn_c_try_compile "$LINENO"; then :
15581
xorg_cv_cc_flag_unknown_warning_option=yes
15583
xorg_cv_cc_flag_unknown_warning_option=no
15585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15588
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15589
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15590
CFLAGS="$xorg_testset_save_CFLAGS"
15593
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15594
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15595
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15597
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15599
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15600
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15601
$as_echo_n "(cached) " >&6
15603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604
/* end confdefs.h. */
15607
if ac_fn_c_try_compile "$LINENO"; then :
15608
xorg_cv_cc_flag_unused_command_line_argument=yes
15610
xorg_cv_cc_flag_unused_command_line_argument=no
15612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15615
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15616
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15617
CFLAGS="$xorg_testset_save_CFLAGS"
15622
if test $found = "no" ; then
15623
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15624
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15627
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15628
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15631
CFLAGS="$CFLAGS -Wnonnull"
15633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
15634
$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
15635
cacheid=xorg_cv_cc_flag__Wnonnull
15636
if eval \${$cacheid+:} false; then :
15637
$as_echo_n "(cached) " >&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
15660
CFLAGS="$xorg_testset_save_CFLAGS"
15662
eval supported=\$$cacheid
15663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15664
$as_echo "$supported" >&6; }
15665
if test "$supported" = "yes" ; then
15666
BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15685
xorg_testset_save_CFLAGS="$CFLAGS"
15687
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15688
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15690
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15691
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15692
$as_echo_n "(cached) " >&6
15694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695
/* end confdefs.h. */
15698
if ac_fn_c_try_compile "$LINENO"; then :
15699
xorg_cv_cc_flag_unknown_warning_option=yes
15701
xorg_cv_cc_flag_unknown_warning_option=no
15703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15706
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15707
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15708
CFLAGS="$xorg_testset_save_CFLAGS"
15711
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15712
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15713
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15715
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15717
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15718
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15719
$as_echo_n "(cached) " >&6
15721
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722
/* end confdefs.h. */
15725
if ac_fn_c_try_compile "$LINENO"; then :
15726
xorg_cv_cc_flag_unused_command_line_argument=yes
15728
xorg_cv_cc_flag_unused_command_line_argument=no
15730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15733
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15734
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15735
CFLAGS="$xorg_testset_save_CFLAGS"
15740
if test $found = "no" ; then
15741
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15742
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15745
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15746
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15749
CFLAGS="$CFLAGS -Winit-self"
15751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
15752
$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
15753
cacheid=xorg_cv_cc_flag__Winit_self
15754
if eval \${$cacheid+:} false; then :
15755
$as_echo_n "(cached) " >&6
15757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758
/* end confdefs.h. */
15768
if ac_fn_c_try_link "$LINENO"; then :
15773
rm -f core conftest.err conftest.$ac_objext \
15774
conftest$ac_exeext conftest.$ac_ext
15778
CFLAGS="$xorg_testset_save_CFLAGS"
15780
eval supported=\$$cacheid
15781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15782
$as_echo "$supported" >&6; }
15783
if test "$supported" = "yes" ; then
15784
BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15803
xorg_testset_save_CFLAGS="$CFLAGS"
15805
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15806
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15808
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15809
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15810
$as_echo_n "(cached) " >&6
15812
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813
/* end confdefs.h. */
15816
if ac_fn_c_try_compile "$LINENO"; then :
15817
xorg_cv_cc_flag_unknown_warning_option=yes
15819
xorg_cv_cc_flag_unknown_warning_option=no
15821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15824
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15825
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15826
CFLAGS="$xorg_testset_save_CFLAGS"
15829
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15830
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15831
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15835
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15836
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15837
$as_echo_n "(cached) " >&6
15839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840
/* end confdefs.h. */
15843
if ac_fn_c_try_compile "$LINENO"; then :
15844
xorg_cv_cc_flag_unused_command_line_argument=yes
15846
xorg_cv_cc_flag_unused_command_line_argument=no
15848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15851
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15852
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15853
CFLAGS="$xorg_testset_save_CFLAGS"
15858
if test $found = "no" ; then
15859
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15860
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15863
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15864
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15867
CFLAGS="$CFLAGS -Wmain"
15869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
15870
$as_echo_n "checking if $CC supports-Wmain... " >&6; }
15871
cacheid=xorg_cv_cc_flag__Wmain
15872
if eval \${$cacheid+:} false; then :
15873
$as_echo_n "(cached) " >&6
15875
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15876
/* end confdefs.h. */
15886
if ac_fn_c_try_link "$LINENO"; then :
15891
rm -f core conftest.err conftest.$ac_objext \
15892
conftest$ac_exeext conftest.$ac_ext
15896
CFLAGS="$xorg_testset_save_CFLAGS"
15898
eval supported=\$$cacheid
15899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15900
$as_echo "$supported" >&6; }
15901
if test "$supported" = "yes" ; then
15902
BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15921
xorg_testset_save_CFLAGS="$CFLAGS"
15923
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15924
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15926
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15927
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15928
$as_echo_n "(cached) " >&6
15930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931
/* end confdefs.h. */
15934
if ac_fn_c_try_compile "$LINENO"; then :
15935
xorg_cv_cc_flag_unknown_warning_option=yes
15937
xorg_cv_cc_flag_unknown_warning_option=no
15939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15942
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15943
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15944
CFLAGS="$xorg_testset_save_CFLAGS"
15947
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15948
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15951
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15953
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15954
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15955
$as_echo_n "(cached) " >&6
15957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958
/* end confdefs.h. */
15961
if ac_fn_c_try_compile "$LINENO"; then :
15962
xorg_cv_cc_flag_unused_command_line_argument=yes
15964
xorg_cv_cc_flag_unused_command_line_argument=no
15966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15969
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15970
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15971
CFLAGS="$xorg_testset_save_CFLAGS"
15976
if test $found = "no" ; then
15977
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15978
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15982
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15985
CFLAGS="$CFLAGS -Wmissing-braces"
15987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
15988
$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
15989
cacheid=xorg_cv_cc_flag__Wmissing_braces
15990
if eval \${$cacheid+:} false; then :
15991
$as_echo_n "(cached) " >&6
15993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994
/* end confdefs.h. */
16004
if ac_fn_c_try_link "$LINENO"; then :
16009
rm -f core conftest.err conftest.$ac_objext \
16010
conftest$ac_exeext conftest.$ac_ext
16014
CFLAGS="$xorg_testset_save_CFLAGS"
16016
eval supported=\$$cacheid
16017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16018
$as_echo "$supported" >&6; }
16019
if test "$supported" = "yes" ; then
16020
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16039
xorg_testset_save_CFLAGS="$CFLAGS"
16041
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16042
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16044
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16045
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16046
$as_echo_n "(cached) " >&6
16048
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049
/* end confdefs.h. */
16052
if ac_fn_c_try_compile "$LINENO"; then :
16053
xorg_cv_cc_flag_unknown_warning_option=yes
16055
xorg_cv_cc_flag_unknown_warning_option=no
16057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16060
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16061
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16062
CFLAGS="$xorg_testset_save_CFLAGS"
16065
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16066
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16067
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16069
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16071
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16072
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16073
$as_echo_n "(cached) " >&6
16075
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076
/* end confdefs.h. */
16079
if ac_fn_c_try_compile "$LINENO"; then :
16080
xorg_cv_cc_flag_unused_command_line_argument=yes
16082
xorg_cv_cc_flag_unused_command_line_argument=no
16084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16087
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16088
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16089
CFLAGS="$xorg_testset_save_CFLAGS"
16094
if test $found = "no" ; then
16095
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16096
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16100
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16103
CFLAGS="$CFLAGS -Wsequence-point"
16105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
16106
$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
16107
cacheid=xorg_cv_cc_flag__Wsequence_point
16108
if eval \${$cacheid+:} false; then :
16109
$as_echo_n "(cached) " >&6
16111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112
/* end confdefs.h. */
16122
if ac_fn_c_try_link "$LINENO"; then :
16127
rm -f core conftest.err conftest.$ac_objext \
16128
conftest$ac_exeext conftest.$ac_ext
16132
CFLAGS="$xorg_testset_save_CFLAGS"
16134
eval supported=\$$cacheid
16135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16136
$as_echo "$supported" >&6; }
16137
if test "$supported" = "yes" ; then
16138
BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16157
xorg_testset_save_CFLAGS="$CFLAGS"
16159
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16160
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16162
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16163
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16164
$as_echo_n "(cached) " >&6
16166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167
/* end confdefs.h. */
16170
if ac_fn_c_try_compile "$LINENO"; then :
16171
xorg_cv_cc_flag_unknown_warning_option=yes
16173
xorg_cv_cc_flag_unknown_warning_option=no
16175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16178
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16179
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16180
CFLAGS="$xorg_testset_save_CFLAGS"
16183
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16184
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16185
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16187
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16189
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16190
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16191
$as_echo_n "(cached) " >&6
16193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194
/* end confdefs.h. */
16197
if ac_fn_c_try_compile "$LINENO"; then :
16198
xorg_cv_cc_flag_unused_command_line_argument=yes
16200
xorg_cv_cc_flag_unused_command_line_argument=no
16202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16205
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16206
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16207
CFLAGS="$xorg_testset_save_CFLAGS"
16212
if test $found = "no" ; then
16213
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16214
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16217
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16218
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16221
CFLAGS="$CFLAGS -Wreturn-type"
16223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
16224
$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
16225
cacheid=xorg_cv_cc_flag__Wreturn_type
16226
if eval \${$cacheid+:} false; then :
16227
$as_echo_n "(cached) " >&6
16229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230
/* end confdefs.h. */
16240
if ac_fn_c_try_link "$LINENO"; then :
16245
rm -f core conftest.err conftest.$ac_objext \
16246
conftest$ac_exeext conftest.$ac_ext
16250
CFLAGS="$xorg_testset_save_CFLAGS"
16252
eval supported=\$$cacheid
16253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16254
$as_echo "$supported" >&6; }
16255
if test "$supported" = "yes" ; then
16256
BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16275
xorg_testset_save_CFLAGS="$CFLAGS"
16277
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16278
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16280
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16281
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16282
$as_echo_n "(cached) " >&6
16284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285
/* end confdefs.h. */
16288
if ac_fn_c_try_compile "$LINENO"; then :
16289
xorg_cv_cc_flag_unknown_warning_option=yes
16291
xorg_cv_cc_flag_unknown_warning_option=no
16293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16296
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16297
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16298
CFLAGS="$xorg_testset_save_CFLAGS"
16301
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16302
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16303
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16307
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16308
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16309
$as_echo_n "(cached) " >&6
16311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312
/* end confdefs.h. */
16315
if ac_fn_c_try_compile "$LINENO"; then :
16316
xorg_cv_cc_flag_unused_command_line_argument=yes
16318
xorg_cv_cc_flag_unused_command_line_argument=no
16320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16323
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16324
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16325
CFLAGS="$xorg_testset_save_CFLAGS"
16330
if test $found = "no" ; then
16331
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16332
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16336
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16339
CFLAGS="$CFLAGS -Wtrigraphs"
16341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
16342
$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
16343
cacheid=xorg_cv_cc_flag__Wtrigraphs
16344
if eval \${$cacheid+:} false; then :
16345
$as_echo_n "(cached) " >&6
16347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348
/* end confdefs.h. */
16358
if ac_fn_c_try_link "$LINENO"; then :
16363
rm -f core conftest.err conftest.$ac_objext \
16364
conftest$ac_exeext conftest.$ac_ext
16368
CFLAGS="$xorg_testset_save_CFLAGS"
16370
eval supported=\$$cacheid
16371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372
$as_echo "$supported" >&6; }
16373
if test "$supported" = "yes" ; then
16374
BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16393
xorg_testset_save_CFLAGS="$CFLAGS"
16395
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16396
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16398
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16399
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16400
$as_echo_n "(cached) " >&6
16402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403
/* end confdefs.h. */
16406
if ac_fn_c_try_compile "$LINENO"; then :
16407
xorg_cv_cc_flag_unknown_warning_option=yes
16409
xorg_cv_cc_flag_unknown_warning_option=no
16411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16414
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16415
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16416
CFLAGS="$xorg_testset_save_CFLAGS"
16419
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16420
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16421
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16425
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16426
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16427
$as_echo_n "(cached) " >&6
16429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430
/* end confdefs.h. */
16433
if ac_fn_c_try_compile "$LINENO"; then :
16434
xorg_cv_cc_flag_unused_command_line_argument=yes
16436
xorg_cv_cc_flag_unused_command_line_argument=no
16438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443
CFLAGS="$xorg_testset_save_CFLAGS"
16448
if test $found = "no" ; then
16449
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16450
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16454
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457
CFLAGS="$CFLAGS -Warray-bounds"
16459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
16460
$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
16461
cacheid=xorg_cv_cc_flag__Warray_bounds
16462
if eval \${$cacheid+:} false; then :
16463
$as_echo_n "(cached) " >&6
16465
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466
/* end confdefs.h. */
16476
if ac_fn_c_try_link "$LINENO"; then :
16481
rm -f core conftest.err conftest.$ac_objext \
16482
conftest$ac_exeext conftest.$ac_ext
16486
CFLAGS="$xorg_testset_save_CFLAGS"
16488
eval supported=\$$cacheid
16489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16490
$as_echo "$supported" >&6; }
16491
if test "$supported" = "yes" ; then
16492
BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16511
xorg_testset_save_CFLAGS="$CFLAGS"
16513
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16514
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16516
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16517
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16518
$as_echo_n "(cached) " >&6
16520
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521
/* end confdefs.h. */
16524
if ac_fn_c_try_compile "$LINENO"; then :
16525
xorg_cv_cc_flag_unknown_warning_option=yes
16527
xorg_cv_cc_flag_unknown_warning_option=no
16529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16532
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16533
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16534
CFLAGS="$xorg_testset_save_CFLAGS"
16537
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16538
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16539
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16543
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16544
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16545
$as_echo_n "(cached) " >&6
16547
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548
/* end confdefs.h. */
16551
if ac_fn_c_try_compile "$LINENO"; then :
16552
xorg_cv_cc_flag_unused_command_line_argument=yes
16554
xorg_cv_cc_flag_unused_command_line_argument=no
16556
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16559
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16560
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16561
CFLAGS="$xorg_testset_save_CFLAGS"
16566
if test $found = "no" ; then
16567
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16568
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16572
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16575
CFLAGS="$CFLAGS -Wwrite-strings"
16577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
16578
$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
16579
cacheid=xorg_cv_cc_flag__Wwrite_strings
16580
if eval \${$cacheid+:} false; then :
16581
$as_echo_n "(cached) " >&6
16583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584
/* end confdefs.h. */
16594
if ac_fn_c_try_link "$LINENO"; then :
16599
rm -f core conftest.err conftest.$ac_objext \
16600
conftest$ac_exeext conftest.$ac_ext
16604
CFLAGS="$xorg_testset_save_CFLAGS"
16606
eval supported=\$$cacheid
16607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16608
$as_echo "$supported" >&6; }
16609
if test "$supported" = "yes" ; then
16610
BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16629
xorg_testset_save_CFLAGS="$CFLAGS"
16631
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16632
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16634
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16635
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16636
$as_echo_n "(cached) " >&6
16638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639
/* end confdefs.h. */
16642
if ac_fn_c_try_compile "$LINENO"; then :
16643
xorg_cv_cc_flag_unknown_warning_option=yes
16645
xorg_cv_cc_flag_unknown_warning_option=no
16647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16650
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16651
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16652
CFLAGS="$xorg_testset_save_CFLAGS"
16655
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16656
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16657
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16661
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16662
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16663
$as_echo_n "(cached) " >&6
16665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666
/* end confdefs.h. */
16669
if ac_fn_c_try_compile "$LINENO"; then :
16670
xorg_cv_cc_flag_unused_command_line_argument=yes
16672
xorg_cv_cc_flag_unused_command_line_argument=no
16674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16677
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16678
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16679
CFLAGS="$xorg_testset_save_CFLAGS"
16684
if test $found = "no" ; then
16685
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16686
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16689
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16690
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16693
CFLAGS="$CFLAGS -Waddress"
16695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
16696
$as_echo_n "checking if $CC supports-Waddress... " >&6; }
16697
cacheid=xorg_cv_cc_flag__Waddress
16698
if eval \${$cacheid+:} false; then :
16699
$as_echo_n "(cached) " >&6
16701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702
/* end confdefs.h. */
16712
if ac_fn_c_try_link "$LINENO"; then :
16717
rm -f core conftest.err conftest.$ac_objext \
16718
conftest$ac_exeext conftest.$ac_ext
16722
CFLAGS="$xorg_testset_save_CFLAGS"
16724
eval supported=\$$cacheid
16725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16726
$as_echo "$supported" >&6; }
16727
if test "$supported" = "yes" ; then
16728
BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16747
xorg_testset_save_CFLAGS="$CFLAGS"
16749
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16750
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16752
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16753
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16754
$as_echo_n "(cached) " >&6
16756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757
/* end confdefs.h. */
16760
if ac_fn_c_try_compile "$LINENO"; then :
16761
xorg_cv_cc_flag_unknown_warning_option=yes
16763
xorg_cv_cc_flag_unknown_warning_option=no
16765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16768
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16769
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16770
CFLAGS="$xorg_testset_save_CFLAGS"
16773
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16774
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16775
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16779
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16780
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16781
$as_echo_n "(cached) " >&6
16783
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784
/* end confdefs.h. */
16787
if ac_fn_c_try_compile "$LINENO"; then :
16788
xorg_cv_cc_flag_unused_command_line_argument=yes
16790
xorg_cv_cc_flag_unused_command_line_argument=no
16792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16795
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16796
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16797
CFLAGS="$xorg_testset_save_CFLAGS"
16802
if test $found = "no" ; then
16803
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16804
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16807
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16808
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16811
CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
16814
$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
16815
cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16816
if eval \${$cacheid+:} false; then :
16817
$as_echo_n "(cached) " >&6
16819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820
/* end confdefs.h. */
16830
if ac_fn_c_try_link "$LINENO"; then :
16835
rm -f core conftest.err conftest.$ac_objext \
16836
conftest$ac_exeext conftest.$ac_ext
16840
CFLAGS="$xorg_testset_save_CFLAGS"
16842
eval supported=\$$cacheid
16843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16844
$as_echo "$supported" >&6; }
16845
if test "$supported" = "yes" ; then
16846
BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16865
xorg_testset_save_CFLAGS="$CFLAGS"
16867
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16868
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16870
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16871
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16872
$as_echo_n "(cached) " >&6
16874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875
/* end confdefs.h. */
16878
if ac_fn_c_try_compile "$LINENO"; then :
16879
xorg_cv_cc_flag_unknown_warning_option=yes
16881
xorg_cv_cc_flag_unknown_warning_option=no
16883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16886
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16887
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16888
CFLAGS="$xorg_testset_save_CFLAGS"
16891
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16892
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16893
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16897
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16898
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16899
$as_echo_n "(cached) " >&6
16901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902
/* end confdefs.h. */
16905
if ac_fn_c_try_compile "$LINENO"; then :
16906
xorg_cv_cc_flag_unused_command_line_argument=yes
16908
xorg_cv_cc_flag_unused_command_line_argument=no
16910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16913
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16914
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16915
CFLAGS="$xorg_testset_save_CFLAGS"
16920
if test $found = "no" ; then
16921
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16922
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16925
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16926
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16929
CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
16932
$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
16933
cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16934
if eval \${$cacheid+:} false; then :
16935
$as_echo_n "(cached) " >&6
16937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938
/* end confdefs.h. */
16948
if ac_fn_c_try_link "$LINENO"; then :
16953
rm -f core conftest.err conftest.$ac_objext \
16954
conftest$ac_exeext conftest.$ac_ext
16958
CFLAGS="$xorg_testset_save_CFLAGS"
16960
eval supported=\$$cacheid
16961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16962
$as_echo "$supported" >&6; }
16963
if test "$supported" = "yes" ; then
16964
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16978
CWARNFLAGS="$BASE_CFLAGS"
16979
if test "x$GCC" = xyes ; then
16980
CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16990
# Check whether --enable-strict-compilation was given.
16991
if test "${enable_strict_compilation+set}" = set; then :
16992
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17016
xorg_testset_save_CFLAGS="$CFLAGS"
17018
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17019
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17021
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17022
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17023
$as_echo_n "(cached) " >&6
17025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026
/* end confdefs.h. */
17029
if ac_fn_c_try_compile "$LINENO"; then :
17030
xorg_cv_cc_flag_unknown_warning_option=yes
17032
xorg_cv_cc_flag_unknown_warning_option=no
17034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17037
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17038
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17039
CFLAGS="$xorg_testset_save_CFLAGS"
17042
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17043
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17044
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17048
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17049
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17050
$as_echo_n "(cached) " >&6
17052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053
/* end confdefs.h. */
17056
if ac_fn_c_try_compile "$LINENO"; then :
17057
xorg_cv_cc_flag_unused_command_line_argument=yes
17059
xorg_cv_cc_flag_unused_command_line_argument=no
17061
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17064
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17065
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17066
CFLAGS="$xorg_testset_save_CFLAGS"
17071
if test $found = "no" ; then
17072
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17073
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17076
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17077
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17080
CFLAGS="$CFLAGS -pedantic"
17082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
17083
$as_echo_n "checking if $CC supports-pedantic... " >&6; }
17084
cacheid=xorg_cv_cc_flag__pedantic
17085
if eval \${$cacheid+:} false; then :
17086
$as_echo_n "(cached) " >&6
17088
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089
/* end confdefs.h. */
17099
if ac_fn_c_try_link "$LINENO"; then :
17104
rm -f core conftest.err conftest.$ac_objext \
17105
conftest$ac_exeext conftest.$ac_ext
17109
CFLAGS="$xorg_testset_save_CFLAGS"
17111
eval supported=\$$cacheid
17112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17113
$as_echo "$supported" >&6; }
17114
if test "$supported" = "yes" ; then
17115
STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17134
xorg_testset_save_CFLAGS="$CFLAGS"
17136
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17137
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17139
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17140
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17141
$as_echo_n "(cached) " >&6
17143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144
/* end confdefs.h. */
17147
if ac_fn_c_try_compile "$LINENO"; then :
17148
xorg_cv_cc_flag_unknown_warning_option=yes
17150
xorg_cv_cc_flag_unknown_warning_option=no
17152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17155
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17156
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17157
CFLAGS="$xorg_testset_save_CFLAGS"
17160
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17161
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17162
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17164
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17166
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17167
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17168
$as_echo_n "(cached) " >&6
17170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171
/* end confdefs.h. */
17174
if ac_fn_c_try_compile "$LINENO"; then :
17175
xorg_cv_cc_flag_unused_command_line_argument=yes
17177
xorg_cv_cc_flag_unused_command_line_argument=no
17179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17182
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17183
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17184
CFLAGS="$xorg_testset_save_CFLAGS"
17189
if test $found = "no" ; then
17190
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17191
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17194
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17195
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17198
CFLAGS="$CFLAGS -Werror"
17200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
17201
$as_echo_n "checking if $CC supports-Werror... " >&6; }
17202
cacheid=xorg_cv_cc_flag__Werror
17203
if eval \${$cacheid+:} false; then :
17204
$as_echo_n "(cached) " >&6
17206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207
/* end confdefs.h. */
17217
if ac_fn_c_try_link "$LINENO"; then :
17222
rm -f core conftest.err conftest.$ac_objext \
17223
conftest$ac_exeext conftest.$ac_ext
17227
CFLAGS="$xorg_testset_save_CFLAGS"
17229
eval supported=\$$cacheid
17230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17231
$as_echo "$supported" >&6; }
17232
if test "$supported" = "yes" ; then
17233
STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17238
if test $found = "no" ; then
17239
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17240
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17244
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247
CFLAGS="$CFLAGS -errwarn"
17249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
17250
$as_echo_n "checking if $CC supports-errwarn... " >&6; }
17251
cacheid=xorg_cv_cc_flag__errwarn
17252
if eval \${$cacheid+:} false; then :
17253
$as_echo_n "(cached) " >&6
17255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256
/* end confdefs.h. */
17266
if ac_fn_c_try_link "$LINENO"; then :
17271
rm -f core conftest.err conftest.$ac_objext \
17272
conftest$ac_exeext conftest.$ac_ext
17276
CFLAGS="$xorg_testset_save_CFLAGS"
17278
eval supported=\$$cacheid
17279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280
$as_echo "$supported" >&6; }
17281
if test "$supported" = "yes" ; then
17282
STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17289
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17290
# activate it with -Werror, so we add it here explicitly.
17304
xorg_testset_save_CFLAGS="$CFLAGS"
17306
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17307
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17309
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17310
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17311
$as_echo_n "(cached) " >&6
17313
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314
/* end confdefs.h. */
17317
if ac_fn_c_try_compile "$LINENO"; then :
17318
xorg_cv_cc_flag_unknown_warning_option=yes
17320
xorg_cv_cc_flag_unknown_warning_option=no
17322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17325
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17326
xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17327
CFLAGS="$xorg_testset_save_CFLAGS"
17330
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17331
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17336
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17337
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17338
$as_echo_n "(cached) " >&6
17340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341
/* end confdefs.h. */
17344
if ac_fn_c_try_compile "$LINENO"; then :
17345
xorg_cv_cc_flag_unused_command_line_argument=yes
17347
xorg_cv_cc_flag_unused_command_line_argument=no
17349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17352
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17353
xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17354
CFLAGS="$xorg_testset_save_CFLAGS"
17359
if test $found = "no" ; then
17360
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17361
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17364
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17365
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17368
CFLAGS="$CFLAGS -Werror=attributes"
17370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
17371
$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
17372
cacheid=xorg_cv_cc_flag__Werror_attributes
17373
if eval \${$cacheid+:} false; then :
17374
$as_echo_n "(cached) " >&6
17376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377
/* end confdefs.h. */
17387
if ac_fn_c_try_link "$LINENO"; then :
17392
rm -f core conftest.err conftest.$ac_objext \
17393
conftest$ac_exeext conftest.$ac_ext
17397
CFLAGS="$xorg_testset_save_CFLAGS"
17399
eval supported=\$$cacheid
17400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17401
$as_echo "$supported" >&6; }
17402
if test "$supported" = "yes" ; then
17403
STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17410
if test "x$STRICT_COMPILE" = "xyes"; then
17411
BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17412
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17420
cat >>confdefs.h <<_ACEOF
17421
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17424
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17425
if test "x$PVM" = "x"; then
17429
cat >>confdefs.h <<_ACEOF
17430
#define PACKAGE_VERSION_MINOR $PVM
17433
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17434
if test "x$PVP" = "x"; then
17438
cat >>confdefs.h <<_ACEOF
17439
#define PACKAGE_VERSION_PATCHLEVEL $PVP
17444
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17445
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17446
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17447
echo 'git directory not found: installing possibly empty changelog.' >&2)"
17452
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17453
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17454
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17455
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17456
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17463
if test x$APP_MAN_SUFFIX = x ; then
17466
if test x$APP_MAN_DIR = x ; then
17467
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17470
if test x$LIB_MAN_SUFFIX = x ; then
17473
if test x$LIB_MAN_DIR = x ; then
17474
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17477
if test x$FILE_MAN_SUFFIX = x ; then
17479
solaris*) FILE_MAN_SUFFIX=4 ;;
17480
*) FILE_MAN_SUFFIX=5 ;;
17483
if test x$FILE_MAN_DIR = x ; then
17484
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17487
if test x$MISC_MAN_SUFFIX = x ; then
17489
solaris*) MISC_MAN_SUFFIX=5 ;;
17490
*) MISC_MAN_SUFFIX=7 ;;
17493
if test x$MISC_MAN_DIR = x ; then
17494
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17497
if test x$DRIVER_MAN_SUFFIX = x ; then
17499
solaris*) DRIVER_MAN_SUFFIX=7 ;;
17500
*) DRIVER_MAN_SUFFIX=4 ;;
17503
if test x$DRIVER_MAN_DIR = x ; then
17504
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17507
if test x$ADMIN_MAN_SUFFIX = x ; then
17509
solaris*) ADMIN_MAN_SUFFIX=1m ;;
17510
*) ADMIN_MAN_SUFFIX=8 ;;
17513
if test x$ADMIN_MAN_DIR = x ; then
17514
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17531
XORG_MAN_PAGE="X Version 11"
17534
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17535
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17536
-e 's|__xservername__|Xorg|g' \
17537
-e 's|__xconfigfile__|xorg.conf|g' \
17538
-e 's|__projectroot__|\$(prefix)|g' \
17539
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17540
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17541
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17542
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17543
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17544
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17545
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17549
# Check whether --enable-silent-rules was given.
17550
if test "${enable_silent_rules+set}" = set; then :
17551
enableval=$enable_silent_rules;
17554
case $enable_silent_rules in # (((
17555
yes) AM_DEFAULT_VERBOSITY=0;;
17556
no) AM_DEFAULT_VERBOSITY=1;;
17557
*) AM_DEFAULT_VERBOSITY=0;;
17559
am_make=${MAKE-make}
17560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17561
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17562
if ${am_cv_make_support_nested_variables+:} false; then :
17563
$as_echo_n "(cached) " >&6
17565
if $as_echo 'TRUE=$(BAR$(V))
17571
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17572
am_cv_make_support_nested_variables=yes
17574
am_cv_make_support_nested_variables=no
17577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17578
$as_echo "$am_cv_make_support_nested_variables" >&6; }
17579
if test $am_cv_make_support_nested_variables = yes; then
17581
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17583
AM_V=$AM_DEFAULT_VERBOSITY
17584
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17594
# Check whether --with-lint was given.
17595
if test "${with_lint+set}" = set; then :
17596
withval=$with_lint; use_lint=$withval
17602
# Obtain platform specific info like program name and options
17603
# The lint program on FreeBSD and NetBSD is different from the one on Solaris
17605
*linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17607
lint_options="-badflag"
17609
*freebsd* | *netbsd*)
17611
lint_options="-u -b"
17615
lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17619
# Test for the presence of the program (either guessed by the code or spelled out by the user)
17620
if test "x$use_lint" = x"yes" ; then
17621
# Extract the first word of "$lint_name", so it can be a program name with args.
17622
set dummy $lint_name; ac_word=$2
17623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17624
$as_echo_n "checking for $ac_word... " >&6; }
17625
if ${ac_cv_path_LINT+:} false; then :
17626
$as_echo_n "(cached) " >&6
17630
ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17634
for as_dir in $PATH
17637
test -z "$as_dir" && as_dir=.
17638
for ac_exec_ext in '' $ac_executable_extensions; do
17639
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17640
ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17641
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17651
LINT=$ac_cv_path_LINT
17652
if test -n "$LINT"; then
17653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17654
$as_echo "$LINT" >&6; }
17656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17657
$as_echo "no" >&6; }
17661
if test "x$LINT" = "x"; then
17662
as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17664
elif test "x$use_lint" = x"no" ; then
17665
if test "x$LINT" != "x"; then
17666
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17667
$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17670
as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17673
# User supplied flags override default flags
17674
if test "x$LINT_FLAGS" != "x"; then
17675
lint_options=$LINT_FLAGS
17678
LINT_FLAGS=$lint_options
17680
if test "x$LINT" != x; then
17691
# Obtain compiler/linker options from server and required extensions
17694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17695
$as_echo_n "checking for XORG... " >&6; }
17697
if test -n "$XORG_CFLAGS"; then
17698
pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17699
elif test -n "$PKG_CONFIG"; then
17700
if test -n "$PKG_CONFIG" && \
17701
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17702
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17704
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705
test $ac_status = 0; }; then
17706
pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17707
test "x$?" != "x0" && pkg_failed=yes
17714
if test -n "$XORG_LIBS"; then
17715
pkg_cv_XORG_LIBS="$XORG_LIBS"
17716
elif test -n "$PKG_CONFIG"; then
17717
if test -n "$PKG_CONFIG" && \
17718
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto\""; } >&5
17719
($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto") 2>&5
17721
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722
test $ac_status = 0; }; then
17723
pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto" 2>/dev/null`
17724
test "x$?" != "x0" && pkg_failed=yes
17734
if test $pkg_failed = yes; then
17735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17736
$as_echo "no" >&6; }
17738
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17739
_pkg_short_errors_supported=yes
17741
_pkg_short_errors_supported=no
17743
if test $_pkg_short_errors_supported = yes; then
17744
XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17746
XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto" 2>&1`
17748
# Put the nasty error message in config.log where it belongs
17749
echo "$XORG_PKG_ERRORS" >&5
17751
as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto) were not met:
17755
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17756
installed software in a non-standard prefix.
17758
Alternatively, you may set the environment variables XORG_CFLAGS
17759
and XORG_LIBS to avoid the need to call pkg-config.
17760
See the pkg-config man page for more details." "$LINENO" 5
17761
elif test $pkg_failed = untried; then
17762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763
$as_echo "no" >&6; }
17764
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17765
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17766
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17767
is in your PATH or set the PKG_CONFIG environment variable to the full
17768
path to pkg-config.
17770
Alternatively, you may set the environment variables XORG_CFLAGS
17771
and XORG_LIBS to avoid the need to call pkg-config.
17772
See the pkg-config man page for more details.
17774
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17775
See \`config.log' for more details" "$LINENO" 5; }
17777
XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17778
XORG_LIBS=$pkg_cv_XORG_LIBS
17779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17780
$as_echo "yes" >&6; }
17784
# Define a configure option for an alternate input module directory
17786
# Check whether --with-xorg-module-dir was given.
17787
if test "${with_xorg_module_dir+set}" = set; then :
17788
withval=$with_xorg_module_dir; moduledir="$withval"
17790
moduledir="$libdir/xorg/modules"
17793
inputdir=${moduledir}/input
17796
# X Server SDK location is required to install xf86-mouse-properties.h
17797
# This location is also relayed in the xorg-mouse.pc file
17798
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
17800
# Workaround overriding sdkdir to be able to create a tarball when user has no
17801
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
17803
# Check whether --with-sdkdir was given.
17804
if test "${with_sdkdir+set}" = set; then :
17805
withval=$with_sdkdir; sdkdir="$withval"
17811
# Work out which OS mouse driver we need to build
17816
freebsd*|kfreebsd*-gnu|dragonfly*|netbsd*|openbsd*)
17831
ac_config_files="$ac_config_files Makefile xorg-mouse.pc include/Makefile src/Makefile man/Makefile"
17833
cat >confcache <<\_ACEOF
17834
# This file is a shell script that caches the results of configure
17835
# tests run on this system so they can be shared between configure
17836
# scripts and configure runs, see configure's option --config-cache.
17837
# It is not useful on other systems. If it contains results you don't
17838
# want to keep, you may remove or edit it.
17840
# config.status only pays attention to the cache file if you give it
17841
# the --recheck option to rerun configure.
17843
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17844
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17845
# following values.
17849
# The following way of writing the cache mishandles newlines in values,
17850
# but we know of no workaround that is simple, portable, and efficient.
17851
# So, we kill variables containing newlines.
17852
# Ultrix sh set writes to stderr and can't be redirected directly,
17853
# and sets the high bit in the cache file unless we assign to the vars.
17855
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17856
eval ac_val=\$$ac_var
17860
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17861
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17864
_ | IFS | as_nl) ;; #(
17865
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17866
*) { eval $ac_var=; unset $ac_var;} ;;
17872
case $as_nl`(ac_space=' '; set) 2>&1` in #(
17873
*${as_nl}ac_space=\ *)
17874
# `set' does not quote correctly, so add quotes: double-quote
17875
# substitution turns \\\\ into \\, and sed turns \\ into \.
17878
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17881
# `set' quotes correctly as required by POSIX, so do not add quotes.
17882
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17891
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17893
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17895
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17896
if test -w "$cache_file"; then
17897
if test "x$cache_file" != "x/dev/null"; then
17898
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17899
$as_echo "$as_me: updating cache $cache_file" >&6;}
17900
if test ! -f "$cache_file" || test -h "$cache_file"; then
17901
cat confcache >"$cache_file"
17903
case $cache_file in #(
17905
mv -f confcache "$cache_file"$$ &&
17906
mv -f "$cache_file"$$ "$cache_file" ;; #(
17908
mv -f confcache "$cache_file" ;;
17913
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17914
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17919
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17920
# Let make expand exec_prefix.
17921
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17923
DEFS=-DHAVE_CONFIG_H
17928
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17929
# 1. Remove the extension, and $U if already installed.
17930
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17931
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17932
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17933
# will be set to the directory where LIBOBJS objects are built.
17934
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17935
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17937
LIBOBJS=$ac_libobjs
17939
LTLIBOBJS=$ac_ltlibobjs
17942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17943
$as_echo_n "checking that generated files are newer than configure... " >&6; }
17944
if test -n "$am_sleep_pid"; then
17945
# Hide warnings about reused PIDs.
17946
wait $am_sleep_pid 2>/dev/null
17948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17949
$as_echo "done" >&6; }
17950
if test -n "$EXEEXT"; then
17952
am__EXEEXT_FALSE='#'
17954
am__EXEEXT_TRUE='#'
17958
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17959
as_fn_error $? "conditional \"AMDEP\" was never defined.
17960
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17962
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17963
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17964
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17966
if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
17967
as_fn_error $? "conditional \"LINT\" was never defined.
17968
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17971
: "${CONFIG_STATUS=./config.status}"
17973
ac_clean_files_save=$ac_clean_files
17974
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17975
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17976
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17978
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17980
# Generated by $as_me.
17981
# Run this file to recreate the current configuration.
17982
# Compiler output produced by configure, useful for debugging
17983
# configure, is in config.log if it exists.
17986
ac_cs_recheck=false
17989
SHELL=\${CONFIG_SHELL-$SHELL}
17992
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17993
## -------------------- ##
17994
## M4sh Initialization. ##
17995
## -------------------- ##
17997
# Be more Bourne compatible
17998
DUALCASE=1; export DUALCASE # for MKS sh
17999
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18002
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18003
# is contrary to our usage. Disable this feature.
18004
alias -g '${1+"$@"}'='"$@"'
18005
setopt NO_GLOB_SUBST
18007
case `(set -o) 2>/dev/null` in #(
18019
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18020
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18021
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18022
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18023
# Prefer a ksh shell builtin over an external printf program on Solaris,
18024
# but without wasting forks for bash or zsh.
18025
if test -z "$BASH_VERSION$ZSH_VERSION" \
18026
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18027
as_echo='print -r --'
18028
as_echo_n='print -rn --'
18029
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18030
as_echo='printf %s\n'
18031
as_echo_n='printf %s'
18033
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18034
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18035
as_echo_n='/usr/ucb/echo -n'
18037
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18038
as_echo_n_body='eval
18042
expr "X$arg" : "X\\(.*\\)$as_nl";
18043
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18045
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18047
export as_echo_n_body
18048
as_echo_n='sh -c $as_echo_n_body as_echo'
18050
export as_echo_body
18051
as_echo='sh -c $as_echo_body as_echo'
18054
# The user is always right.
18055
if test "${PATH_SEPARATOR+set}" != set; then
18057
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18058
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18065
# We need space, tab and new line, in precisely that order. Quoting is
18066
# there to prevent editors from complaining about space-tab.
18067
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18068
# splitting by setting IFS to empty value.)
18071
# Find who we are. Look in the path if we contain no directory separator.
18074
*[\\/]* ) as_myself=$0 ;;
18075
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18076
for as_dir in $PATH
18079
test -z "$as_dir" && as_dir=.
18080
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18086
# We did not find ourselves, most probably we were run as `sh COMMAND'
18087
# in which case we are not to be found in the path.
18088
if test "x$as_myself" = x; then
18091
if test ! -f "$as_myself"; then
18092
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18096
# Unset variables that we do not need and which cause bugs (e.g. in
18097
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18098
# suppresses any "Segmentation fault" message there. '((' could
18099
# trigger a bug in pdksh 5.2.14.
18100
for as_var in BASH_ENV ENV MAIL MAILPATH
18101
do eval test x\${$as_var+set} = xset \
18102
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18115
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18118
# as_fn_error STATUS ERROR [LINENO LOG_FD]
18119
# ----------------------------------------
18120
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18121
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18122
# script with STATUS, using 1 if that was 0.
18125
as_status=$1; test $as_status -eq 0 && as_status=1
18127
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18128
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18130
$as_echo "$as_me: error: $2" >&2
18131
as_fn_exit $as_status
18135
# as_fn_set_status STATUS
18136
# -----------------------
18137
# Set $? to STATUS, without forking.
18138
as_fn_set_status ()
18141
} # as_fn_set_status
18143
# as_fn_exit STATUS
18144
# -----------------
18145
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18149
as_fn_set_status $1
18155
# Portably unset VAR.
18158
{ eval $1=; unset $1;}
18160
as_unset=as_fn_unset
18161
# as_fn_append VAR VALUE
18162
# ----------------------
18163
# Append the text in VALUE to the end of the definition contained in VAR. Take
18164
# advantage of any shell optimizations that allow amortized linear growth over
18165
# repeated appends, instead of the typical quadratic growth present in naive
18167
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18168
eval 'as_fn_append ()
18179
# as_fn_arith ARG...
18180
# ------------------
18181
# Perform arithmetic evaluation on the ARGs, and store the result in the
18182
# global $as_val. Take advantage of shells that can avoid forks. The arguments
18183
# must be portable across $(()) and expr.
18184
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18185
eval 'as_fn_arith ()
18192
as_val=`expr "$@" || test $? -eq 1`
18197
if expr a : '\(a\)' >/dev/null 2>&1 &&
18198
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18204
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18205
as_basename=basename
18210
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18216
as_me=`$as_basename -- "$0" ||
18217
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18218
X"$0" : 'X\(//\)$' \| \
18219
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18221
sed '/^.*\/\([^/][^/]*\)\/*$/{
18235
# Avoid depending upon Character Ranges.
18236
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18237
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18238
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18239
as_cr_digits='0123456789'
18240
as_cr_alnum=$as_cr_Letters$as_cr_digits
18242
ECHO_C= ECHO_N= ECHO_T=
18243
case `echo -n x` in #(((((
18245
case `echo 'xy\c'` in
18246
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
18248
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18255
rm -f conf$$ conf$$.exe conf$$.file
18256
if test -d conf$$.dir; then
18257
rm -f conf$$.dir/conf$$.file
18260
mkdir conf$$.dir 2>/dev/null
18262
if (echo >conf$$.file) 2>/dev/null; then
18263
if ln -s conf$$.file conf$$ 2>/dev/null; then
18265
# ... but there are two gotchas:
18266
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18267
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18268
# In both cases, we have to default to `cp -pR'.
18269
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18271
elif ln conf$$.file conf$$ 2>/dev/null; then
18279
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18280
rmdir conf$$.dir 2>/dev/null
18285
# Create "$as_dir" as a directory, including parents if necessary.
18290
-*) as_dir=./$as_dir;;
18292
test -d "$as_dir" || eval $as_mkdir_p || {
18296
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18297
*) as_qdir=$as_dir;;
18299
as_dirs="'$as_qdir' $as_dirs"
18300
as_dir=`$as_dirname -- "$as_dir" ||
18301
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302
X"$as_dir" : 'X\(//\)[^/]' \| \
18303
X"$as_dir" : 'X\(//\)$' \| \
18304
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18305
$as_echo X"$as_dir" |
18306
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18310
/^X\(\/\/\)[^/].*/{
18323
test -d "$as_dir" && break
18325
test -z "$as_dirs" || eval "mkdir $as_dirs"
18326
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18330
if mkdir -p . 2>/dev/null; then
18331
as_mkdir_p='mkdir -p "$as_dir"'
18333
test -d ./-p && rmdir ./-p
18338
# as_fn_executable_p FILE
18339
# -----------------------
18340
# Test if FILE is an executable regular file.
18341
as_fn_executable_p ()
18343
test -f "$1" && test -x "$1"
18344
} # as_fn_executable_p
18345
as_test_x='test -x'
18346
as_executable_p=as_fn_executable_p
18348
# Sed expression to map a string onto a valid CPP name.
18349
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18351
# Sed expression to map a string onto a valid variable name.
18352
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18356
## ----------------------------------- ##
18357
## Main body of $CONFIG_STATUS script. ##
18358
## ----------------------------------- ##
18360
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18362
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363
# Save the log message, to keep $0 and so on meaningful, and to
18364
# report actual input values of CONFIG_FILES etc. instead of their
18365
# values after options handling.
18367
This file was extended by xf86-input-mouse $as_me 1.9.0, which was
18368
generated by GNU Autoconf 2.69. Invocation command line was
18370
CONFIG_FILES = $CONFIG_FILES
18371
CONFIG_HEADERS = $CONFIG_HEADERS
18372
CONFIG_LINKS = $CONFIG_LINKS
18373
CONFIG_COMMANDS = $CONFIG_COMMANDS
18376
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18381
case $ac_config_files in *"
18382
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18385
case $ac_config_headers in *"
18386
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18390
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18391
# Files that config.status was made for.
18392
config_files="$ac_config_files"
18393
config_headers="$ac_config_headers"
18394
config_commands="$ac_config_commands"
18398
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18400
\`$as_me' instantiates files and other configuration actions
18401
from templates according to the current configuration. Unless the files
18402
and actions are specified as TAGs, all are instantiated by default.
18404
Usage: $0 [OPTION]... [TAG]...
18406
-h, --help print this help, then exit
18407
-V, --version print version number and configuration settings, then exit
18408
--config print configuration, then exit
18409
-q, --quiet, --silent
18410
do not print progress messages
18411
-d, --debug don't remove temporary files
18412
--recheck update $as_me by reconfiguring in the same conditions
18413
--file=FILE[:TEMPLATE]
18414
instantiate the configuration file FILE
18415
--header=FILE[:TEMPLATE]
18416
instantiate the configuration header FILE
18418
Configuration files:
18421
Configuration headers:
18424
Configuration commands:
18427
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18430
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18433
xf86-input-mouse config.status 1.9.0
18434
configured by $0, generated by GNU Autoconf 2.69,
18435
with options \\"\$ac_cs_config\\"
18437
Copyright (C) 2012 Free Software Foundation, Inc.
18438
This config.status script is free software; the Free Software Foundation
18439
gives unlimited permission to copy, distribute and modify it."
18446
test -n "\$AWK" || AWK=awk
18449
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450
# The default lists apply if the user does not specify any file.
18456
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18457
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18461
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18473
# Handling of the options.
18474
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18476
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18477
$as_echo "$ac_cs_version"; exit ;;
18478
--config | --confi | --conf | --con | --co | --c )
18479
$as_echo "$ac_cs_config"; exit ;;
18480
--debug | --debu | --deb | --de | --d | -d )
18482
--file | --fil | --fi | --f )
18485
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18486
'') as_fn_error $? "missing file argument" ;;
18488
as_fn_append CONFIG_FILES " '$ac_optarg'"
18489
ac_need_defaults=false;;
18490
--header | --heade | --head | --hea )
18493
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18495
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18496
ac_need_defaults=false;;
18498
# Conflict between --help and --header
18499
as_fn_error $? "ambiguous option: \`$1'
18500
Try \`$0 --help' for more information.";;
18501
--help | --hel | -h )
18502
$as_echo "$ac_cs_usage"; exit ;;
18503
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
18504
| -silent | --silent | --silen | --sile | --sil | --si | --s)
18507
# This is an error.
18508
-*) as_fn_error $? "unrecognized option: \`$1'
18509
Try \`$0 --help' for more information." ;;
18511
*) as_fn_append ac_config_targets " $1"
18512
ac_need_defaults=false ;;
18518
ac_configure_extra_args=
18520
if $ac_cs_silent; then
18522
ac_configure_extra_args="$ac_configure_extra_args --silent"
18526
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527
if \$ac_cs_recheck; then
18528
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18530
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18531
CONFIG_SHELL='$SHELL'
18532
export CONFIG_SHELL
18537
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18541
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18542
## Running $as_me. ##
18548
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18552
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18555
# The HP-UX ksh and POSIX shell print the target directory to stdout
18556
# if CDPATH is set.
18557
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18559
sed_quote_subst='$sed_quote_subst'
18560
double_quote_subst='$double_quote_subst'
18561
delay_variable_subst='$delay_variable_subst'
18562
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18563
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18564
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18565
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18566
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18567
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18568
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18569
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18570
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18571
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18572
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18573
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18574
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18575
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18576
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18577
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18578
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18579
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18580
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18581
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18582
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18583
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18584
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18585
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18586
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18587
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18588
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18589
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18590
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18591
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18592
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18593
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18594
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18595
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18596
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18597
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18598
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18599
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18600
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18601
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18602
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18603
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18604
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18605
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18606
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18607
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18608
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18609
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18610
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18611
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18612
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18613
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18614
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18615
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18616
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18617
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18618
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"`'
18619
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18620
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18621
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18622
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18623
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18624
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18625
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18626
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18627
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18628
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18629
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18630
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18631
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18632
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18633
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18634
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18635
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18636
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18637
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18638
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18639
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18640
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18641
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18642
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18643
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18644
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18645
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18646
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18647
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18648
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18649
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18650
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18651
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18652
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18653
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18654
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18655
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18656
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18657
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18658
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18659
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18660
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18661
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18662
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18663
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18664
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18665
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18666
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18667
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18668
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18669
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18670
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18671
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18672
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18673
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18674
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18675
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18676
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18677
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18678
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18679
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18680
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18681
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18682
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18683
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18684
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18685
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18686
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18687
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18688
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18689
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18690
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18691
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18694
LTCFLAGS='$LTCFLAGS'
18695
compiler='$compiler_DEFAULT'
18697
# A function that is used when there is no print builtin or printf.
18698
func_fallback_echo ()
18700
eval 'cat <<_LTECHO_EOF
18705
# Quote evaled strings.
18720
deplibs_check_method \
18725
sharedlib_from_linklib_cmd \
18728
archiver_list_spec \
18734
lt_cv_sys_global_symbol_pipe \
18735
lt_cv_sys_global_symbol_to_cdecl \
18736
lt_cv_sys_global_symbol_to_c_name_address \
18737
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18738
nm_file_list_spec \
18739
lt_prog_compiler_no_builtin_flag \
18740
lt_prog_compiler_pic \
18741
lt_prog_compiler_wl \
18742
lt_prog_compiler_static \
18743
lt_cv_prog_compiler_c_o \
18752
export_dynamic_flag_spec \
18753
whole_archive_flag_spec \
18754
compiler_needs_object \
18756
allow_undefined_flag \
18757
no_undefined_flag \
18758
hardcode_libdir_flag_spec \
18759
hardcode_libdir_separator \
18763
variables_saved_for_relink \
18765
library_names_spec \
18767
install_override_mode \
18771
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18772
*[\\\\\\\`\\"\\\$]*)
18773
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18776
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18781
# Double-quote double-evaled strings.
18782
for var in reload_cmds \
18783
old_postinstall_cmds \
18784
old_postuninstall_cmds \
18786
extract_expsyms_cmds \
18787
old_archive_from_new_cmds \
18788
old_archive_from_expsyms_cmds \
18790
archive_expsym_cmds \
18792
module_expsym_cmds \
18793
export_symbols_cmds \
18797
postuninstall_cmds \
18799
sys_lib_search_path_spec \
18800
sys_lib_dlsearch_path_spec; do
18801
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18802
*[\\\\\\\`\\"\\\$]*)
18803
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18806
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18811
ac_aux_dir='$ac_aux_dir'
18812
xsi_shell='$xsi_shell'
18813
lt_shell_append='$lt_shell_append'
18815
# See if we are running on zsh, and set the options which allow our
18816
# commands through without removal of \ escapes INIT.
18817
if test -n "\${ZSH_VERSION+set}" ; then
18818
setopt NO_GLOB_SUBST
18824
TIMESTAMP='$TIMESTAMP'
18833
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18835
# Handling of arguments.
18836
for ac_config_target in $ac_config_targets
18838
case $ac_config_target in
18839
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18840
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18841
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18842
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18843
"xorg-mouse.pc") CONFIG_FILES="$CONFIG_FILES xorg-mouse.pc" ;;
18844
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18845
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18846
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18848
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18853
# If the user did not use the arguments to specify the items to instantiate,
18854
# then the envvar interface is used. Set only those that are not.
18855
# We use the long form for the default assignment because of an extremely
18856
# bizarre bug on SunOS 4.1.3.
18857
if $ac_need_defaults; then
18858
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18859
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18860
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18863
# Have a temporary directory for convenience. Make it in the build tree
18864
# simply because there is no reason against having it here, and in addition,
18865
# creating and moving files from /tmp can sometimes cause problems.
18866
# Hook for its removal unless debugging.
18867
# Note that there is a small window in which the directory will not be cleaned:
18868
# after its creation but before its name has been assigned to `$tmp'.
18872
trap 'exit_status=$?
18873
: "${ac_tmp:=$tmp}"
18874
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18876
trap 'as_fn_exit 1' 1 2 13 15
18878
# Create a (secure) tmp directory for tmp files.
18881
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18885
tmp=./conf$$-$RANDOM
18886
(umask 077 && mkdir "$tmp")
18887
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18890
# Set up the scripts for CONFIG_FILES section.
18891
# No need to generate them if there are no CONFIG_FILES.
18892
# This happens for instance with `./config.status config.h'.
18893
if test -n "$CONFIG_FILES"; then
18896
ac_cr=`echo X | tr X '\015'`
18897
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18898
# But we know of no other shell where ac_cr would be empty at this
18899
# point, so we can use a bashism as a fallback.
18900
if test "x$ac_cr" = x; then
18901
eval ac_cr=\$\'\\r\'
18903
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18904
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18907
ac_cs_awk_cr=$ac_cr
18910
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18915
echo "cat >conf$$subs.awk <<_ACEOF" &&
18916
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18918
} >conf$$subs.sh ||
18919
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18920
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18922
for ac_last_try in false false false false false :; do
18923
. ./conf$$subs.sh ||
18924
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18926
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18927
if test $ac_delim_n = $ac_delim_num; then
18929
elif $ac_last_try; then
18930
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18932
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18935
rm -f conf$$subs.sh
18937
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18942
s/^/S["/; s/!.*/"]=/
18952
s/\(.\{148\}\)..*/\1/
18954
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18959
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18966
s/\(.\{148\}\)..*/\1/
18968
s/["\\]/\\&/g; s/^/"/; s/$/"/
18972
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18977
' <conf$$subs.awk | sed '
18982
' >>$CONFIG_STATUS || ac_write_fail=1
18983
rm -f conf$$subs.awk
18984
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18987
for (key in S) S_is_set[key] = 1
18993
nfields = split(line, field, "@")
18995
len = length(field[1])
18996
for (i = 2; i < nfields; i++) {
18998
keylen = length(key)
18999
if (S_is_set[key]) {
19001
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19002
len += length(value) + length(field[++i])
19013
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19015
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19018
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19019
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19022
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19023
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19024
# trailing colons and then remove the whole line if VPATH becomes empty
19025
# (actually we leave an empty line to preserve line numbers).
19026
if test "x$srcdir" = x.; then
19027
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19045
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046
fi # test -n "$CONFIG_FILES"
19048
# Set up the scripts for CONFIG_HEADERS section.
19049
# No need to generate them if there are no CONFIG_HEADERS.
19050
# This happens for instance with `./config.status Makefile'.
19051
if test -n "$CONFIG_HEADERS"; then
19052
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19056
# Transform confdefs.h into an awk script `defines.awk', embedded as
19057
# here-document in config.status, that substitutes the proper values into
19058
# config.h.in to produce config.h.
19060
# Create a delimiter string that does not exist in confdefs.h, to ease
19061
# handling of long lines.
19063
for ac_last_try in false false :; do
19064
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19065
if test -z "$ac_tt"; then
19067
elif $ac_last_try; then
19068
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19070
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19074
# For the awk script, D is an array of macro values keyed by name,
19075
# likewise P contains macro parameters if any. Preserve backslash
19076
# newline sequences.
19078
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19080
s/.\{148\}/&'"$ac_delim"'/g
19083
s/^[ ]*#[ ]*define[ ][ ]*/ /
19090
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19092
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19096
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19097
D["\1"]=" \3\\\\\\n"\\/p
19099
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19104
s/.\{148\}/&'"$ac_delim"'/g
19109
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19112
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19114
' <confdefs.h | sed '
19115
s/'"$ac_delim"'/"\\\
19116
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19118
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19119
for (key in D) D_is_set[key] = 1
19122
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19124
split(line, arg, " ")
19125
if (arg[1] == "#") {
19129
defundef = substr(arg[1], 2)
19132
split(mac1, mac2, "(") #)
19134
prefix = substr(line, 1, index(line, defundef) - 1)
19135
if (D_is_set[macro]) {
19136
# Preserve the white space surrounding the "#".
19137
print prefix "define", macro P[macro] D[macro]
19140
# Replace #undef with comments. This is necessary, for example,
19141
# in the case of _POSIX_SOURCE, which is predefined and required
19142
# on some systems where configure will not decide to define it.
19143
if (defundef == "undef") {
19144
print "/*", prefix defundef, macro, "*/"
19152
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19154
fi # test -n "$CONFIG_HEADERS"
19157
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19162
:[FHLC]) ac_mode=$ac_tag; continue;;
19164
case $ac_mode$ac_tag in
19166
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19167
:[FH]-) ac_tag=-:-;;
19168
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19185
-) ac_f="$ac_tmp/stdin";;
19186
*) # Look for the file first in the build tree, then in the source tree
19187
# (if the path is not absolute). The absolute path cannot be DOS-style,
19188
# because $ac_f cannot contain `:'.
19192
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19194
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19196
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19197
as_fn_append ac_file_inputs " '$ac_f'"
19200
# Let's still pretend it is `configure' which instantiates (i.e., don't
19201
# use $as_me), people would be surprised to read:
19202
# /* config.h. Generated by config.status. */
19203
configure_input='Generated from '`
19204
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19206
if test x"$ac_file" != x-; then
19207
configure_input="$ac_file. $configure_input"
19208
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19209
$as_echo "$as_me: creating $ac_file" >&6;}
19211
# Neutralize special characters interpreted by sed in replacement strings.
19212
case $configure_input in #(
19213
*\&* | *\|* | *\\* )
19214
ac_sed_conf_input=`$as_echo "$configure_input" |
19215
sed 's/[\\\\&|]/\\\\&/g'`;; #(
19216
*) ac_sed_conf_input=$configure_input;;
19220
*:-:* | *:-) cat >"$ac_tmp/stdin" \
19221
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19226
ac_dir=`$as_dirname -- "$ac_file" ||
19227
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228
X"$ac_file" : 'X\(//\)[^/]' \| \
19229
X"$ac_file" : 'X\(//\)$' \| \
19230
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19231
$as_echo X"$ac_file" |
19232
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19236
/^X\(\/\/\)[^/].*/{
19249
as_dir="$ac_dir"; as_fn_mkdir_p
19253
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19255
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19256
# A ".." for each directory in $ac_dir_suffix.
19257
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19258
case $ac_top_builddir_sub in
19259
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19263
ac_abs_top_builddir=$ac_pwd
19264
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19265
# for backward compatibility:
19266
ac_top_builddir=$ac_top_build_prefix
19269
.) # We are building in place.
19271
ac_top_srcdir=$ac_top_builddir_sub
19272
ac_abs_top_srcdir=$ac_pwd ;;
19273
[\\/]* | ?:[\\/]* ) # Absolute name.
19274
ac_srcdir=$srcdir$ac_dir_suffix;
19275
ac_top_srcdir=$srcdir
19276
ac_abs_top_srcdir=$srcdir ;;
19277
*) # Relative name.
19278
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19279
ac_top_srcdir=$ac_top_build_prefix$srcdir
19280
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19282
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19292
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19293
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19295
ac_MKDIR_P=$MKDIR_P
19297
[\\/$]* | ?:[\\/]* ) ;;
19298
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19302
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303
# If the template does not know about datarootdir, expand it.
19304
# FIXME: This hack should be removed a few years after 2.60.
19305
ac_datarootdir_hack=; ac_datarootdir_seen=
19316
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19317
*datarootdir*) ac_datarootdir_seen=yes;;
19318
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19320
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19323
ac_datarootdir_hack='
19324
s&@datadir@&$datadir&g
19325
s&@docdir@&$docdir&g
19326
s&@infodir@&$infodir&g
19327
s&@localedir@&$localedir&g
19328
s&@mandir@&$mandir&g
19329
s&\\\${datarootdir}&$datarootdir&g' ;;
19333
# Neutralize VPATH when `$srcdir' = `.'.
19334
# Shell code in configure.ac might set extrasub.
19335
# FIXME: do we really want to maintain this feature?
19336
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337
ac_sed_extra="$ac_vpsub
19340
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19342
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19343
s|@configure_input@|$ac_sed_conf_input|;t t
19344
s&@top_builddir@&$ac_top_builddir_sub&;t t
19345
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19346
s&@srcdir@&$ac_srcdir&;t t
19347
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19348
s&@top_srcdir@&$ac_top_srcdir&;t t
19349
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19350
s&@builddir@&$ac_builddir&;t t
19351
s&@abs_builddir@&$ac_abs_builddir&;t t
19352
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19353
s&@INSTALL@&$ac_INSTALL&;t t
19354
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19355
$ac_datarootdir_hack
19357
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19358
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19360
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19361
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19362
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19363
"$ac_tmp/out"`; test -z "$ac_out"; } &&
19364
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19365
which seems to be undefined. Please make sure it is defined" >&5
19366
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19367
which seems to be undefined. Please make sure it is defined" >&2;}
19369
rm -f "$ac_tmp/stdin"
19371
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19372
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19374
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19380
if test x"$ac_file" != x-; then
19382
$as_echo "/* $configure_input */" \
19383
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19384
} >"$ac_tmp/config.h" \
19385
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19386
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19387
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19388
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19391
mv "$ac_tmp/config.h" "$ac_file" \
19392
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19395
$as_echo "/* $configure_input */" \
19396
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19397
|| as_fn_error $? "could not create -" "$LINENO" 5
19399
# Compute "$ac_file"'s index in $config_headers.
19402
for _am_header in $config_headers :; do
19403
case $_am_header in
19404
$_am_arg | $_am_arg:* )
19407
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
19410
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19411
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412
X"$_am_arg" : 'X\(//\)[^/]' \| \
19413
X"$_am_arg" : 'X\(//\)$' \| \
19414
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19415
$as_echo X"$_am_arg" |
19416
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19420
/^X\(\/\/\)[^/].*/{
19432
s/.*/./; q'`/stamp-h$_am_stamp_count
19435
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19436
$as_echo "$as_me: executing $ac_file commands" >&6;}
19441
case $ac_file$ac_mode in
19442
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19443
# Autoconf 2.62 quotes --file arguments for eval, but not when files
19444
# are listed without --file. Let's play safe and only enable the eval
19445
# if we detect the quoting.
19446
case $CONFIG_FILES in
19447
*\'*) eval set x "$CONFIG_FILES" ;;
19448
*) set x $CONFIG_FILES ;;
19453
# Strip MF so we end up with the name of the file.
19454
mf=`echo "$mf" | sed -e 's/:.*$//'`
19455
# Check whether this is an Automake generated Makefile or not.
19456
# We used to match only the files named 'Makefile.in', but
19457
# some people rename them; so instead we look at the file content.
19458
# Grep'ing the first line is not enough: some people post-process
19459
# each Makefile.in and add a new line on top of each file to say so.
19460
# Grep'ing the whole file is not good either: AIX grep has a line
19461
# limit of 2048, but all sed's we know have understand at least 4000.
19462
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19463
dirpart=`$as_dirname -- "$mf" ||
19464
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19465
X"$mf" : 'X\(//\)[^/]' \| \
19466
X"$mf" : 'X\(//\)$' \| \
19467
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19469
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19473
/^X\(\/\/\)[^/].*/{
19489
# Extract the definition of DEPDIR, am__include, and am__quote
19490
# from the Makefile without running 'make'.
19491
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19492
test -z "$DEPDIR" && continue
19493
am__include=`sed -n 's/^am__include = //p' < "$mf"`
19494
test -z "am__include" && continue
19495
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19496
# Find all dependency output files, they are included files with
19497
# $(DEPDIR) in their names. We invoke sed twice because it is the
19498
# simplest approach to changing $(DEPDIR) to its actual value in the
19500
for file in `sed -n "
19501
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19502
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19503
# Make sure the directory exists.
19504
test -f "$dirpart/$file" && continue
19505
fdir=`$as_dirname -- "$file" ||
19506
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19507
X"$file" : 'X\(//\)[^/]' \| \
19508
X"$file" : 'X\(//\)$' \| \
19509
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19510
$as_echo X"$file" |
19511
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19515
/^X\(\/\/\)[^/].*/{
19528
as_dir=$dirpart/$fdir; as_fn_mkdir_p
19529
# echo "creating $dirpart/$file"
19530
echo '# dummy' > "$dirpart/$file"
19537
# See if we are running on zsh, and set the options which allow our
19538
# commands through without removal of \ escapes.
19539
if test -n "${ZSH_VERSION+set}" ; then
19540
setopt NO_GLOB_SUBST
19543
cfgfile="${ofile}T"
19544
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19547
cat <<_LT_EOF >> "$cfgfile"
19550
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19551
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19552
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19553
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19555
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19556
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19558
# Written by Gordon Matzigkeit, 1996
19560
# This file is part of GNU Libtool.
19562
# GNU Libtool is free software; you can redistribute it and/or
19563
# modify it under the terms of the GNU General Public License as
19564
# published by the Free Software Foundation; either version 2 of
19565
# the License, or (at your option) any later version.
19567
# As a special exception to the GNU General Public License,
19568
# if you distribute this file as part of a program or library that
19569
# is built using GNU Libtool, you may include this file under the
19570
# same distribution terms that you use for the rest of that program.
19572
# GNU Libtool is distributed in the hope that it will be useful,
19573
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19574
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19575
# GNU General Public License for more details.
19577
# You should have received a copy of the GNU General Public License
19578
# along with GNU Libtool; see the file COPYING. If not, a copy
19579
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19580
# obtained by writing to the Free Software Foundation, Inc.,
19581
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19584
# The names of the tagged configurations supported by this script.
19587
# ### BEGIN LIBTOOL CONFIG
19589
# Whether or not to build static libraries.
19590
build_old_libs=$enable_static
19592
# Which release of libtool.m4 was used?
19593
macro_version=$macro_version
19594
macro_revision=$macro_revision
19596
# Whether or not to build shared libraries.
19597
build_libtool_libs=$enable_shared
19599
# What type of objects to build.
19602
# Whether or not to optimize for fast installation.
19603
fast_install=$enable_fast_install
19605
# Shell to use when invoking shell scripts.
19608
# An echo program that protects backslashes.
19611
# The PATH separator for the build system.
19612
PATH_SEPARATOR=$lt_PATH_SEPARATOR
19615
host_alias=$host_alias
19619
# The build system.
19620
build_alias=$build_alias
19624
# A sed program that does not truncate output.
19627
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19628
Xsed="\$SED -e 1s/^X//"
19630
# A grep program that handles long lines.
19636
# A literal string matcher.
19639
# A BSD- or MS-compatible name lister.
19642
# Whether we need soft or hard links.
19645
# What is the maximum length of a command?
19646
max_cmd_len=$max_cmd_len
19648
# Object file suffix (normally "o").
19651
# Executable file suffix (normally "").
19654
# whether the shell understands "unset".
19657
# turn spaces into newlines.
19660
# turn newlines into spaces.
19663
# convert \$build file names to \$host format.
19664
to_host_file_cmd=$lt_cv_to_host_file_cmd
19666
# convert \$build files to toolchain format.
19667
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19669
# An object symbol dumper.
19670
OBJDUMP=$lt_OBJDUMP
19672
# Method to check whether dependent libraries are shared objects.
19673
deplibs_check_method=$lt_deplibs_check_method
19675
# Command to use when deplibs_check_method = "file_magic".
19676
file_magic_cmd=$lt_file_magic_cmd
19678
# How to find potential files when deplibs_check_method = "file_magic".
19679
file_magic_glob=$lt_file_magic_glob
19681
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19682
want_nocaseglob=$lt_want_nocaseglob
19684
# DLL creation program.
19685
DLLTOOL=$lt_DLLTOOL
19687
# Command to associate shared and link libraries.
19688
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19693
# Flags to create an archive.
19694
AR_FLAGS=$lt_AR_FLAGS
19696
# How to feed a file listing to the archiver.
19697
archiver_list_spec=$lt_archiver_list_spec
19699
# A symbol stripping program.
19702
# Commands used to install an old-style archive.
19704
old_postinstall_cmds=$lt_old_postinstall_cmds
19705
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19707
# Whether to use a lock for old archive extraction.
19708
lock_old_archive_extraction=$lock_old_archive_extraction
19713
# LTCC compiler flags.
19714
LTCFLAGS=$lt_CFLAGS
19716
# Take the output of nm and produce a listing of raw symbols and C names.
19717
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19719
# Transform the output of nm in a proper C declaration.
19720
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19722
# Transform the output of nm in a C name address pair.
19723
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19725
# Transform the output of nm in a C name address pair when lib prefix is needed.
19726
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19728
# Specify filename containing input files for \$NM.
19729
nm_file_list_spec=$lt_nm_file_list_spec
19731
# The root where to search for dependent libraries,and in which our libraries should be installed.
19732
lt_sysroot=$lt_sysroot
19734
# The name of the directory that contains temporary libtool files.
19737
# Used to examine libraries when file_magic_cmd begins with "file".
19738
MAGIC_CMD=$MAGIC_CMD
19740
# Must we lock files when doing compilation?
19741
need_locks=$lt_need_locks
19744
MANIFEST_TOOL=$lt_MANIFEST_TOOL
19746
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19747
DSYMUTIL=$lt_DSYMUTIL
19749
# Tool to change global to local symbols on Mac OS X.
19752
# Tool to manipulate fat objects and archives on Mac OS X.
19755
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19758
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19759
OTOOL64=$lt_OTOOL64
19761
# Old archive suffix (normally "a").
19764
# Shared library suffix (normally ".so").
19765
shrext_cmds=$lt_shrext_cmds
19767
# The commands to extract the exported symbol list from a shared archive.
19768
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19770
# Variables whose values should be saved in libtool wrapper scripts and
19771
# restored at link time.
19772
variables_saved_for_relink=$lt_variables_saved_for_relink
19774
# Do we need the "lib" prefix for modules?
19775
need_lib_prefix=$need_lib_prefix
19777
# Do we need a version for libraries?
19778
need_version=$need_version
19780
# Library versioning type.
19781
version_type=$version_type
19783
# Shared library runtime path variable.
19784
runpath_var=$runpath_var
19786
# Shared library path variable.
19787
shlibpath_var=$shlibpath_var
19789
# Is shlibpath searched before the hard-coded library search path?
19790
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19792
# Format of library name prefix.
19793
libname_spec=$lt_libname_spec
19795
# List of archive names. First name is the real one, the rest are links.
19796
# The last name is the one that the linker finds with -lNAME
19797
library_names_spec=$lt_library_names_spec
19799
# The coded name of the library, if different from the real name.
19800
soname_spec=$lt_soname_spec
19802
# Permission mode override for installation of shared libraries.
19803
install_override_mode=$lt_install_override_mode
19805
# Command to use after installation of a shared archive.
19806
postinstall_cmds=$lt_postinstall_cmds
19808
# Command to use after uninstallation of a shared archive.
19809
postuninstall_cmds=$lt_postuninstall_cmds
19811
# Commands used to finish a libtool library installation in a directory.
19812
finish_cmds=$lt_finish_cmds
19814
# As "finish_cmds", except a single script fragment to be evaled but
19816
finish_eval=$lt_finish_eval
19818
# Whether we should hardcode library paths into libraries.
19819
hardcode_into_libs=$hardcode_into_libs
19821
# Compile-time system search path for libraries.
19822
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19824
# Run-time system search path for libraries.
19825
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19827
# Whether dlopen is supported.
19828
dlopen_support=$enable_dlopen
19830
# Whether dlopen of programs is supported.
19831
dlopen_self=$enable_dlopen_self
19833
# Whether dlopen of statically linked programs is supported.
19834
dlopen_self_static=$enable_dlopen_self_static
19836
# Commands to strip libraries.
19837
old_striplib=$lt_old_striplib
19838
striplib=$lt_striplib
19841
# The linker used to build libraries.
19844
# How to create reloadable object files.
19845
reload_flag=$lt_reload_flag
19846
reload_cmds=$lt_reload_cmds
19848
# Commands used to build an old-style archive.
19849
old_archive_cmds=$lt_old_archive_cmds
19851
# A language specific compiler.
19854
# Is the compiler the GNU compiler?
19857
# Compiler flag to turn off builtin functions.
19858
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19860
# Additional compiler flags for building library objects.
19861
pic_flag=$lt_lt_prog_compiler_pic
19863
# How to pass a linker flag through the compiler.
19864
wl=$lt_lt_prog_compiler_wl
19866
# Compiler flag to prevent dynamic linking.
19867
link_static_flag=$lt_lt_prog_compiler_static
19869
# Does compiler simultaneously support -c and -o options?
19870
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19872
# Whether or not to add -lc for building shared libraries.
19873
build_libtool_need_lc=$archive_cmds_need_lc
19875
# Whether or not to disallow shared libs when runtime libs are static.
19876
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19878
# Compiler flag to allow reflexive dlopens.
19879
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19881
# Compiler flag to generate shared objects directly from archives.
19882
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19884
# Whether the compiler copes with passing no objects directly.
19885
compiler_needs_object=$lt_compiler_needs_object
19887
# Create an old-style archive from a shared archive.
19888
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19890
# Create a temporary old-style archive to link instead of a shared archive.
19891
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19893
# Commands used to build a shared archive.
19894
archive_cmds=$lt_archive_cmds
19895
archive_expsym_cmds=$lt_archive_expsym_cmds
19897
# Commands used to build a loadable module if different from building
19898
# a shared archive.
19899
module_cmds=$lt_module_cmds
19900
module_expsym_cmds=$lt_module_expsym_cmds
19902
# Whether we are building with GNU ld or not.
19903
with_gnu_ld=$lt_with_gnu_ld
19905
# Flag that allows shared libraries with undefined symbols to be built.
19906
allow_undefined_flag=$lt_allow_undefined_flag
19908
# Flag that enforces no undefined symbols.
19909
no_undefined_flag=$lt_no_undefined_flag
19911
# Flag to hardcode \$libdir into a binary during linking.
19912
# This must work even if \$libdir does not exist
19913
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19915
# Whether we need a single "-rpath" flag with a separated argument.
19916
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19918
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19919
# DIR into the resulting binary.
19920
hardcode_direct=$hardcode_direct
19922
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19923
# DIR into the resulting binary and the resulting library dependency is
19924
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19925
# library is relocated.
19926
hardcode_direct_absolute=$hardcode_direct_absolute
19928
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19929
# into the resulting binary.
19930
hardcode_minus_L=$hardcode_minus_L
19932
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19933
# into the resulting binary.
19934
hardcode_shlibpath_var=$hardcode_shlibpath_var
19936
# Set to "yes" if building a shared library automatically hardcodes DIR
19937
# into the library and all subsequent libraries and executables linked
19939
hardcode_automatic=$hardcode_automatic
19941
# Set to yes if linker adds runtime paths of dependent libraries
19942
# to runtime path list.
19943
inherit_rpath=$inherit_rpath
19945
# Whether libtool must link a program against all its dependency libraries.
19946
link_all_deplibs=$link_all_deplibs
19948
# Set to "yes" if exported symbols are required.
19949
always_export_symbols=$always_export_symbols
19951
# The commands to list exported symbols.
19952
export_symbols_cmds=$lt_export_symbols_cmds
19954
# Symbols that should not be listed in the preloaded symbols.
19955
exclude_expsyms=$lt_exclude_expsyms
19957
# Symbols that must always be exported.
19958
include_expsyms=$lt_include_expsyms
19960
# Commands necessary for linking programs (against libraries) with templates.
19961
prelink_cmds=$lt_prelink_cmds
19963
# Commands necessary for finishing linking programs.
19964
postlink_cmds=$lt_postlink_cmds
19966
# Specify filename containing input files.
19967
file_list_spec=$lt_file_list_spec
19969
# How to hardcode a shared library path into an executable.
19970
hardcode_action=$hardcode_action
19972
# ### END LIBTOOL CONFIG
19978
cat <<\_LT_EOF >> "$cfgfile"
19979
# AIX sometimes has problems with the GCC collect2 program. For some
19980
# reason, if we set the COLLECT_NAMES environment variable, the problems
19981
# vanish in a puff of smoke.
19982
if test "X${COLLECT_NAMES+set}" != Xset; then
19984
export COLLECT_NAMES
19991
ltmain="$ac_aux_dir/ltmain.sh"
19994
# We use sed instead of cat because bash on DJGPP gets confused if
19995
# if finds mixed CR/LF and LF-only lines. Since sed operates in
19996
# text mode, it properly converts lines to CR/LF. This bash problem
19997
# is reportedly fixed, but why not run on old versions too?
19998
sed '$q' "$ltmain" >> "$cfgfile" \
19999
|| (rm -f "$cfgfile"; exit 1)
20001
if test x"$xsi_shell" = xyes; then
20002
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20006
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20007
\ * ) func_dirname_result="${3}" ;;\
20009
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20010
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20011
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20012
test 0 -eq $? || _lt_function_replace_fail=:
20015
sed -e '/^func_basename ()$/,/^} # func_basename /c\
20018
\ func_basename_result="${1##*/}"\
20019
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20020
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20021
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20022
test 0 -eq $? || _lt_function_replace_fail=:
20025
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20026
func_dirname_and_basename ()\
20029
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20030
\ * ) func_dirname_result="${3}" ;;\
20032
\ func_basename_result="${1##*/}"\
20033
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20034
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20035
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20036
test 0 -eq $? || _lt_function_replace_fail=:
20039
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20042
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20043
\ # positional parameters, so assign one to ordinary parameter first.\
20044
\ func_stripname_result=${3}\
20045
\ func_stripname_result=${func_stripname_result#"${1}"}\
20046
\ func_stripname_result=${func_stripname_result%"${2}"}\
20047
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20048
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20049
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050
test 0 -eq $? || _lt_function_replace_fail=:
20053
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20054
func_split_long_opt ()\
20056
\ func_split_long_opt_name=${1%%=*}\
20057
\ func_split_long_opt_arg=${1#*=}\
20058
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20059
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20060
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20061
test 0 -eq $? || _lt_function_replace_fail=:
20064
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20065
func_split_short_opt ()\
20067
\ func_split_short_opt_arg=${1#??}\
20068
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20069
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20070
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20071
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072
test 0 -eq $? || _lt_function_replace_fail=:
20075
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20079
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20080
\ *) func_lo2o_result=${1} ;;\
20082
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20083
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20084
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20085
test 0 -eq $? || _lt_function_replace_fail=:
20088
sed -e '/^func_xform ()$/,/^} # func_xform /c\
20091
func_xform_result=${1%.*}.lo\
20092
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20093
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20094
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20095
test 0 -eq $? || _lt_function_replace_fail=:
20098
sed -e '/^func_arith ()$/,/^} # func_arith /c\
20101
func_arith_result=$(( $* ))\
20102
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20103
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20104
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20105
test 0 -eq $? || _lt_function_replace_fail=:
20108
sed -e '/^func_len ()$/,/^} # func_len /c\
20111
func_len_result=${#1}\
20112
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20113
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20114
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115
test 0 -eq $? || _lt_function_replace_fail=:
20119
if test x"$lt_shell_append" = xyes; then
20120
sed -e '/^func_append ()$/,/^} # func_append /c\
20123
eval "${1}+=\\${2}"\
20124
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20125
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20126
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127
test 0 -eq $? || _lt_function_replace_fail=:
20130
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20131
func_append_quoted ()\
20133
\ func_quote_for_eval "${2}"\
20134
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20135
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20136
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20137
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20138
test 0 -eq $? || _lt_function_replace_fail=:
20141
# Save a `func_append' function call where possible by direct use of '+='
20142
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20143
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20144
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20145
test 0 -eq $? || _lt_function_replace_fail=:
20147
# Save a `func_append' function call even when '+=' is not available
20148
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20149
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20150
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20151
test 0 -eq $? || _lt_function_replace_fail=:
20154
if test x"$_lt_function_replace_fail" = x":"; then
20155
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20156
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20160
mv -f "$cfgfile" "$ofile" ||
20161
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20172
ac_clean_files=$ac_clean_files_save
20174
test $ac_write_fail = 0 ||
20175
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20178
# configure is writing to config.log, and then calls config.status.
20179
# config.status does its own redirection, appending to config.log.
20180
# Unfortunately, on DOS this fails, as config.log is still kept open
20181
# by configure, so config.status won't be able to write to it; its
20182
# output is simply discarded. So we exec the FD to /dev/null,
20183
# effectively closing config.log, so it can be properly (re)opened and
20184
# appended to by config.status. When coming back to configure, we
20185
# need to make the FD available again.
20186
if test "$no_create" != yes; then
20188
ac_config_status_args=
20189
test "$silent" = yes &&
20190
ac_config_status_args="$ac_config_status_args --quiet"
20192
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20194
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20195
# would make configure fail if this is the last instruction.
20196
$ac_cs_success || as_fn_exit 1
20198
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20200
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}