configure | configure | |||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Guess values for system-dependent variables and create Makefiles. | # Guess values for system-dependent variables and create Makefiles. | |||
# Generated by GNU Autoconf 2.68 for libICE 1.0.8. | # Generated by GNU Autoconf 2.68 for libICE 1.0.9. | |||
# | # | |||
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. | |||
# | # | |||
# | # | |||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |||
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |||
# Foundation, Inc. | # Foundation, Inc. | |||
# | # | |||
# | # | |||
# This configure script is free software; the Free Software Foundation | # This configure script is free software; the Free Software Foundation | |||
skipping to change at line 628 | skipping to change at line 628 | |||
ac_config_libobj_dir=. | ac_config_libobj_dir=. | |||
LIBOBJS= | LIBOBJS= | |||
cross_compiling=no | cross_compiling=no | |||
subdirs= | subdirs= | |||
MFLAGS= | MFLAGS= | |||
MAKEFLAGS= | MAKEFLAGS= | |||
# Identity of this package. | # Identity of this package. | |||
PACKAGE_NAME='libICE' | PACKAGE_NAME='libICE' | |||
PACKAGE_TARNAME='libICE' | PACKAGE_TARNAME='libICE' | |||
PACKAGE_VERSION='1.0.8' | PACKAGE_VERSION='1.0.9' | |||
PACKAGE_STRING='libICE 1.0.8' | PACKAGE_STRING='libICE 1.0.9' | |||
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' | PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' | |||
PACKAGE_URL='' | PACKAGE_URL='' | |||
ac_unique_file="Makefile.am" | ac_unique_file="Makefile.am" | |||
# Factoring default headers for most tests. | # Factoring default headers for most tests. | |||
ac_includes_default="\ | ac_includes_default="\ | |||
#include <stdio.h> | #include <stdio.h> | |||
#ifdef HAVE_SYS_TYPES_H | #ifdef HAVE_SYS_TYPES_H | |||
# include <sys/types.h> | # include <sys/types.h> | |||
#endif | #endif | |||
skipping to change at line 703 | skipping to change at line 703 | |||
FOP | FOP | |||
HAVE_XMLTO_FALSE | HAVE_XMLTO_FALSE | |||
HAVE_XMLTO_TRUE | HAVE_XMLTO_TRUE | |||
HAVE_XMLTO_TEXT_FALSE | HAVE_XMLTO_TEXT_FALSE | |||
HAVE_XMLTO_TEXT_TRUE | HAVE_XMLTO_TEXT_TRUE | |||
XMLTO | XMLTO | |||
ENABLE_SPECS_FALSE | ENABLE_SPECS_FALSE | |||
ENABLE_SPECS_TRUE | ENABLE_SPECS_TRUE | |||
ENABLE_DOCS_FALSE | ENABLE_DOCS_FALSE | |||
ENABLE_DOCS_TRUE | ENABLE_DOCS_TRUE | |||
AM_BACKSLASH | ||||
AM_DEFAULT_VERBOSITY | ||||
MAN_SUBSTS | MAN_SUBSTS | |||
XORG_MAN_PAGE | XORG_MAN_PAGE | |||
ADMIN_MAN_DIR | ADMIN_MAN_DIR | |||
DRIVER_MAN_DIR | DRIVER_MAN_DIR | |||
MISC_MAN_DIR | MISC_MAN_DIR | |||
FILE_MAN_DIR | FILE_MAN_DIR | |||
LIB_MAN_DIR | LIB_MAN_DIR | |||
APP_MAN_DIR | APP_MAN_DIR | |||
ADMIN_MAN_SUFFIX | ADMIN_MAN_SUFFIX | |||
DRIVER_MAN_SUFFIX | DRIVER_MAN_SUFFIX | |||
skipping to change at line 752 | skipping to change at line 750 | |||
SED | SED | |||
host_os | host_os | |||
host_vendor | host_vendor | |||
host_cpu | host_cpu | |||
host | host | |||
build_os | build_os | |||
build_vendor | build_vendor | |||
build_cpu | build_cpu | |||
build | build | |||
LIBTOOL | LIBTOOL | |||
MAINT | AM_BACKSLASH | |||
MAINTAINER_MODE_FALSE | AM_DEFAULT_VERBOSITY | |||
MAINTAINER_MODE_TRUE | AM_DEFAULT_V | |||
AM_V | ||||
am__fastdepCC_FALSE | am__fastdepCC_FALSE | |||
am__fastdepCC_TRUE | am__fastdepCC_TRUE | |||
CCDEPMODE | CCDEPMODE | |||
am__nodep | ||||
AMDEPBACKSLASH | AMDEPBACKSLASH | |||
AMDEP_FALSE | AMDEP_FALSE | |||
AMDEP_TRUE | AMDEP_TRUE | |||
am__quote | am__quote | |||
am__include | am__include | |||
DEPDIR | DEPDIR | |||
am__untar | am__untar | |||
am__tar | am__tar | |||
AMTAR | AMTAR | |||
am__leading_dot | am__leading_dot | |||
skipping to change at line 839 | skipping to change at line 839 | |||
PACKAGE_STRING | PACKAGE_STRING | |||
PACKAGE_VERSION | PACKAGE_VERSION | |||
PACKAGE_TARNAME | PACKAGE_TARNAME | |||
PACKAGE_NAME | PACKAGE_NAME | |||
PATH_SEPARATOR | PATH_SEPARATOR | |||
SHELL' | SHELL' | |||
ac_subst_files='' | ac_subst_files='' | |||
ac_user_opts=' | ac_user_opts=' | |||
enable_option_checking | enable_option_checking | |||
enable_dependency_tracking | enable_dependency_tracking | |||
enable_maintainer_mode | enable_silent_rules | |||
enable_shared | enable_shared | |||
enable_static | enable_static | |||
with_pic | with_pic | |||
enable_fast_install | enable_fast_install | |||
with_gnu_ld | with_gnu_ld | |||
with_sysroot | with_sysroot | |||
enable_libtool_lock | enable_libtool_lock | |||
enable_selective_werror | enable_selective_werror | |||
enable_strict_compilation | enable_strict_compilation | |||
enable_silent_rules | ||||
enable_docs | enable_docs | |||
enable_specs | enable_specs | |||
with_xmlto | with_xmlto | |||
with_fop | with_fop | |||
with_xsltproc | with_xsltproc | |||
enable_unix_transport | enable_unix_transport | |||
enable_tcp_transport | enable_tcp_transport | |||
enable_ipv6 | enable_ipv6 | |||
enable_local_transport | enable_local_transport | |||
with_lint | with_lint | |||
skipping to change at line 1418 | skipping to change at line 1417 | |||
eval ac_cv_env_${ac_var}_value=\$${ac_var} | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |||
done | done | |||
# | # | |||
# Report the --help message. | # Report the --help message. | |||
# | # | |||
if test "$ac_init_help" = "long"; then | if test "$ac_init_help" = "long"; then | |||
# Omit some internal or obsolete options to make the list less imposing. | # Omit some internal or obsolete options to make the list less imposing. | |||
# This message is too long to be a string in the A/UX 3.1 sh. | # This message is too long to be a string in the A/UX 3.1 sh. | |||
cat <<_ACEOF | cat <<_ACEOF | |||
\`configure' configures libICE 1.0.8 to adapt to many kinds of systems. | \`configure' configures libICE 1.0.9 to adapt to many kinds of systems. | |||
Usage: $0 [OPTION]... [VAR=VALUE]... | Usage: $0 [OPTION]... [VAR=VALUE]... | |||
To assign environment variables (e.g., CC, CFLAGS...), specify them as | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |||
VAR=VALUE. See below for descriptions of some of the useful variables. | VAR=VALUE. See below for descriptions of some of the useful variables. | |||
Defaults for the options are specified in brackets. | Defaults for the options are specified in brackets. | |||
Configuration: | Configuration: | |||
-h, --help display this help and exit | -h, --help display this help and exit | |||
skipping to change at line 1488 | skipping to change at line 1487 | |||
--program-transform-name=PROGRAM run sed PROGRAM on installed program n ames | --program-transform-name=PROGRAM run sed PROGRAM on installed program n ames | |||
System types: | System types: | |||
--build=BUILD configure for building on BUILD [guessed] | --build=BUILD configure for building on BUILD [guessed] | |||
--host=HOST cross-compile to build programs to run on HOST [BUILD] | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
if test -n "$ac_init_help"; then | if test -n "$ac_init_help"; then | |||
case $ac_init_help in | case $ac_init_help in | |||
short | recursive ) echo "Configuration of libICE 1.0.8:";; | short | recursive ) echo "Configuration of libICE 1.0.9:";; | |||
esac | esac | |||
cat <<\_ACEOF | cat <<\_ACEOF | |||
Optional Features: | Optional Features: | |||
--disable-option-checking ignore unrecognized --enable/--with options | --disable-option-checking ignore unrecognized --enable/--with options | |||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE= no) | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE= no) | |||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |||
--disable-dependency-tracking speeds up one-time build | --enable-dependency-tracking | |||
--enable-dependency-tracking do not reject slow dependency extractors | do not reject slow dependency extractors | |||
--enable-maintainer-mode enable make rules and dependencies not useful | --disable-dependency-tracking | |||
(and sometimes confusing) to the casual installer | speeds up one-time build | |||
--enable-silent-rules less verbose build output (undo: "make V=1") | ||||
--disable-silent-rules verbose build output (undo: "make V=0") | ||||
--enable-shared[=PKGS] build shared libraries [default=yes] | --enable-shared[=PKGS] build shared libraries [default=yes] | |||
--enable-static[=PKGS] build static libraries [default=yes] | --enable-static[=PKGS] build static libraries [default=yes] | |||
--enable-fast-install[=PKGS] | --enable-fast-install[=PKGS] | |||
optimize for fast installation [default=yes] | optimize for fast installation [default=yes] | |||
--disable-libtool-lock avoid locking (might break parallel builds) | --disable-libtool-lock avoid locking (might break parallel builds) | |||
--disable-selective-werror | --disable-selective-werror | |||
Turn off selective compiler errors. (default: | Turn off selective compiler errors. (default: | |||
enabled) | enabled) | |||
--enable-strict-compilation | --enable-strict-compilation | |||
Enable all warnings from compiler and make them | Enable all warnings from compiler and make them | |||
errors (default: disabled) | errors (default: disabled) | |||
--enable-silent-rules less verbose build output (undo: `make V=1 | ||||
') | ||||
--disable-silent-rules verbose build output (undo: `make V=0') | ||||
--enable-docs Enable building the documentation (default: yes) | --enable-docs Enable building the documentation (default: yes) | |||
--enable-specs Enable building the specs (default: yes) | --enable-specs Enable building the specs (default: yes) | |||
--enable-unix-transport Enable UNIX domain socket transport | --enable-unix-transport Enable UNIX domain socket transport | |||
--enable-tcp-transport Enable TCP socket transport | --enable-tcp-transport Enable TCP socket transport | |||
--enable-ipv6 Enable IPv6 support | --enable-ipv6 Enable IPv6 support | |||
--enable-local-transport | --enable-local-transport | |||
Enable os-specific local transport | Enable os-specific local transport | |||
--enable-lint-library Create lint library (default: disabled) | --enable-lint-library Create lint library (default: disabled) | |||
Optional Packages: | Optional Packages: | |||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |||
--with-pic try to use only PIC/non-PIC objects [default=use | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |||
both] | both] | |||
--with-gnu-ld assume the C compiler uses GNU ld [default=no] | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |||
--with-sysroot=DIR Search for dependent libraries within DIR | --with-sysroot=DIR Search for dependent libraries within DIR | |||
(or the compiler's sysroot if not specified). | (or the compiler's sysroot if not specified). | |||
--with-xmlto Use xmlto to regenerate documentation (default: | --with-xmlto Use xmlto to regenerate documentation (default: | |||
auto) | auto) | |||
--with-fop Use fop to regenerate documentation (default: aut o) | --with-fop Use fop to regenerate documentation (default: aut o) | |||
--with-xsltproc Use xsltproc for the transformation of XML docume nts | --with-xsltproc Use xsltproc for the transformation of XML docume nts | |||
(default: auto) | (default: auto) | |||
--with-lint Use a lint-style source code checker (default: | --with-lint Use a lint-style source code checker (default: | |||
skipping to change at line 1622 | skipping to change at line 1621 | |||
else | else | |||
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir " >&2 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir " >&2 | |||
fi || ac_status=$? | fi || ac_status=$? | |||
cd "$ac_pwd" || { ac_status=$?; break; } | cd "$ac_pwd" || { ac_status=$?; break; } | |||
done | done | |||
fi | fi | |||
test -n "$ac_init_help" && exit $ac_status | test -n "$ac_init_help" && exit $ac_status | |||
if $ac_init_version; then | if $ac_init_version; then | |||
cat <<\_ACEOF | cat <<\_ACEOF | |||
libICE configure 1.0.8 | libICE configure 1.0.9 | |||
generated by GNU Autoconf 2.68 | generated by GNU Autoconf 2.68 | |||
Copyright (C) 2010 Free Software Foundation, Inc. | Copyright (C) 2010 Free Software Foundation, Inc. | |||
This configure script is free software; the Free Software Foundation | This configure script is free software; the Free Software Foundation | |||
gives unlimited permission to copy, distribute and modify it. | gives unlimited permission to copy, distribute and modify it. | |||
_ACEOF | _ACEOF | |||
exit | exit | |||
fi | fi | |||
## ------------------------ ## | ## ------------------------ ## | |||
skipping to change at line 2148 | skipping to change at line 2147 | |||
eval ac_res=\$$3 | eval ac_res=\$$3 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |||
$as_echo "$ac_res" >&6; } | $as_echo "$ac_res" >&6; } | |||
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |||
} # ac_fn_c_check_type | } # ac_fn_c_check_type | |||
cat >config.log <<_ACEOF | cat >config.log <<_ACEOF | |||
This file contains any messages produced by compilers while | This file contains any messages produced by compilers while | |||
running configure, to aid debugging if configure makes a mistake. | running configure, to aid debugging if configure makes a mistake. | |||
It was created by libICE $as_me 1.0.8, which was | It was created by libICE $as_me 1.0.9, which was | |||
generated by GNU Autoconf 2.68. Invocation command line was | generated by GNU Autoconf 2.68. Invocation command line was | |||
$ $0 $@ | $ $0 $@ | |||
_ACEOF | _ACEOF | |||
exec 5>>config.log | exec 5>>config.log | |||
{ | { | |||
cat <<_ASUNAME | cat <<_ASUNAME | |||
## --------- ## | ## --------- ## | |||
## Platform. ## | ## Platform. ## | |||
skipping to change at line 2497 | skipping to change at line 2496 | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
ac_config_headers="$ac_config_headers config.h" | ac_config_headers="$ac_config_headers config.h" | |||
# Set common system defines for POSIX extensions, such as _GNU_SOURCE | # Set common system defines for POSIX extensions, such as _GNU_SOURCE | |||
# Must be called before any macros that run the compiler (like | # Must be called before any macros that run the compiler (like | |||
# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. | # AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. | |||
# expand $ac_aux_dir to an absolute path | ||||
am_aux_dir=`cd $ac_aux_dir && pwd` | ||||
ac_ext=c | ac_ext=c | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |||
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a progra m name with args. | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a progra m name with args. | |||
set dummy ${ac_tool_prefix}gcc; ac_word=$2 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |||
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |||
skipping to change at line 3286 | skipping to change at line 3288 | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
ac_ext=c | ac_ext=c | |||
ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' | |||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ ext $LIBS >&5' | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands - | ||||
c and -o together" >&5 | ||||
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | ||||
if ${am_cv_prog_cc_c_o+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
int | ||||
main () | ||||
{ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
# Make sure it works both with $CC and with simple cc. | ||||
# Following AC_PROG_CC_C_O, we do the test twice because some | ||||
# compilers refuse to overwrite an existing .o file with -o, | ||||
# though they will create one. | ||||
am_cv_prog_cc_c_o=yes | ||||
for am_i in 1 2; do | ||||
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_obj | ||||
ext" >&5 | ||||
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | ||||
ac_status=$? | ||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||||
(exit $ac_status); } \ | ||||
&& test -f conftest2.$ac_objext; then | ||||
: OK | ||||
else | ||||
am_cv_prog_cc_c_o=no | ||||
break | ||||
fi | ||||
done | ||||
rm -f core conftest* | ||||
unset am_i | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | ||||
$as_echo "$am_cv_prog_cc_c_o" >&6; } | ||||
if test "$am_cv_prog_cc_c_o" != yes; then | ||||
# Losing compiler, so override with the script. | ||||
# FIXME: It is wrong to rewrite CC. | ||||
# But if we don't then we get into trouble of one sort or another. | ||||
# A longer-term fix would be to have automake use am__CC in this case, | ||||
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||||
CC="$am_aux_dir/compile $CC" | ||||
fi | ||||
ac_ext=c | ||||
ac_cpp='$CPP $CPPFLAGS' | ||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ | ||||
ext $LIBS >&5' | ||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
ac_ext=c | ||||
ac_cpp='$CPP $CPPFLAGS' | ||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ | ||||
ext $LIBS >&5' | ||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preproce ssor" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preproce ssor" >&5 | |||
$as_echo_n "checking how to run the C preprocessor... " >&6; } | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |||
# On Suns, sometimes $CPP names a directory. | # On Suns, sometimes $CPP names a directory. | |||
if test -n "$CPP" && test -d "$CPP"; then | if test -n "$CPP" && test -d "$CPP"; then | |||
CPP= | CPP= | |||
fi | fi | |||
if test -z "$CPP"; then | if test -z "$CPP"; then | |||
if ${ac_cv_prog_CPP+:} false; then : | if ${ac_cv_prog_CPP+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
skipping to change at line 3730 | skipping to change at line 3790 | |||
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |||
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |||
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |||
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |||
# Initialize Automake | # Initialize Automake | |||
am__api_version='1.11' | am__api_version='1.14' | |||
ac_aux_dir= | ac_aux_dir= | |||
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |||
if test -f "$ac_dir/install-sh"; then | if test -f "$ac_dir/install-sh"; then | |||
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |||
ac_install_sh="$ac_aux_dir/install-sh -c" | ac_install_sh="$ac_aux_dir/install-sh -c" | |||
break | break | |||
elif test -f "$ac_dir/install.sh"; then | elif test -f "$ac_dir/install.sh"; then | |||
ac_aux_dir=$ac_dir | ac_aux_dir=$ac_dir | |||
ac_install_sh="$ac_aux_dir/install.sh -c" | ac_install_sh="$ac_aux_dir/install.sh -c" | |||
skipping to change at line 3855 | skipping to change at line 3915 | |||
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |||
# It thinks the first close brace ends the variable substitution. | # It thinks the first close brace ends the variable substitution. | |||
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |||
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |||
$as_echo_n "checking whether build environment is sane... " >&6; } | $as_echo_n "checking whether build environment is sane... " >&6; } | |||
# Just in case | ||||
sleep 1 | ||||
echo timestamp > conftest.file | ||||
# Reject unsafe characters in $srcdir or the absolute working directory | # Reject unsafe characters in $srcdir or the absolute working directory | |||
# name. Accept space and tab only in the latter. | # name. Accept space and tab only in the latter. | |||
am_lf=' | am_lf=' | |||
' | ' | |||
case `pwd` in | case `pwd` in | |||
*[\\\"\#\$\&\'\`$am_lf]*) | *[\\\"\#\$\&\'\`$am_lf]*) | |||
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |||
esac | esac | |||
case $srcdir in | case $srcdir in | |||
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |||
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |||
esac | esac | |||
# Do `set' in a subshell so we don't clobber the current shell's | # Do 'set' in a subshell so we don't clobber the current shell's | |||
# arguments. Must try -L first in case configure is actually a | # arguments. Must try -L first in case configure is actually a | |||
# symlink; some systems play weird games with the mod time of symlinks | # symlink; some systems play weird games with the mod time of symlinks | |||
# (eg FreeBSD returns the mod time of the symlink's containing | # (eg FreeBSD returns the mod time of the symlink's containing | |||
# directory). | # directory). | |||
if ( | if ( | |||
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | am_has_slept=no | |||
if test "$*" = "X"; then | for am_try in 1 2; do | |||
# -L didn't work. | echo "timestamp, slept: $am_has_slept" > conftest.file | |||
set X `ls -t "$srcdir/configure" conftest.file` | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |||
fi | if test "$*" = "X"; then | |||
rm -f conftest.file | # -L didn't work. | |||
if test "$*" != "X $srcdir/configure conftest.file" \ | set X `ls -t "$srcdir/configure" conftest.file` | |||
&& test "$*" != "X conftest.file $srcdir/configure"; then | fi | |||
if test "$*" != "X $srcdir/configure conftest.file" \ | ||||
# If neither matched, then we have a broken ls. This can happen | && test "$*" != "X conftest.file $srcdir/configure"; then | |||
# if, for instance, CONFIG_SHELL is bash and it inherits a | ||||
# broken ls alias from the environment. This has actually | ||||
# happened. Such a system could not be considered "sane". | ||||
as_fn_error $? "ls -t appears to fail. Make sure there is not a brok | ||||
en | ||||
alias in your environment" "$LINENO" 5 | ||||
fi | ||||
# If neither matched, then we have a broken ls. This can happen | ||||
# if, for instance, CONFIG_SHELL is bash and it inherits a | ||||
# broken ls alias from the environment. This has actually | ||||
# happened. Such a system could not be considered "sane". | ||||
as_fn_error $? "ls -t appears to fail. Make sure there is not a bro | ||||
ken | ||||
alias in your environment" "$LINENO" 5 | ||||
fi | ||||
if test "$2" = conftest.file || test $am_try -eq 2; then | ||||
break | ||||
fi | ||||
# Just in case. | ||||
sleep 1 | ||||
am_has_slept=yes | ||||
done | ||||
test "$2" = conftest.file | test "$2" = conftest.file | |||
) | ) | |||
then | then | |||
# Ok. | # Ok. | |||
: | : | |||
else | else | |||
as_fn_error $? "newly created file is older than distributed files! | as_fn_error $? "newly created file is older than distributed files! | |||
Check your system clock" "$LINENO" 5 | Check your system clock" "$LINENO" 5 | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |||
$as_echo "yes" >&6; } | $as_echo "yes" >&6; } | |||
# If we didn't sleep, we still need to ensure time stamps of config.status | ||||
and | ||||
# generated files are strictly newer. | ||||
am_sleep_pid= | ||||
if grep 'slept: no' conftest.file >/dev/null 2>&1; then | ||||
( sleep 1 ) & | ||||
am_sleep_pid=$! | ||||
fi | ||||
rm -f conftest.file | ||||
test "$program_prefix" != NONE && | test "$program_prefix" != NONE && | |||
program_transform_name="s&^&$program_prefix&;$program_transform_name" | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |||
# Use a double $ so make ignores it. | # Use a double $ so make ignores it. | |||
test "$program_suffix" != NONE && | test "$program_suffix" != NONE && | |||
program_transform_name="s&\$&$program_suffix&;$program_transform_name" | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |||
# Double any \ or $. | # Double any \ or $. | |||
# By default was `s,x,x', remove it if useless. | # By default was `s,x,x', remove it if useless. | |||
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |||
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_scrip t"` | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_scrip t"` | |||
# expand $ac_aux_dir to an absolute path | ||||
am_aux_dir=`cd $ac_aux_dir && pwd` | ||||
if test x"${MISSING+set}" != xset; then | if test x"${MISSING+set}" != xset; then | |||
case $am_aux_dir in | case $am_aux_dir in | |||
*\ * | *\ *) | *\ * | *\ *) | |||
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |||
*) | *) | |||
MISSING="\${SHELL} $am_aux_dir/missing" ;; | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |||
esac | esac | |||
fi | fi | |||
# Use eval to expand $SHELL | # Use eval to expand $SHELL | |||
if eval "$MISSING --run true"; then | if eval "$MISSING --is-lightweight"; then | |||
am_missing_run="$MISSING --run " | am_missing_run="$MISSING " | |||
else | else | |||
am_missing_run= | am_missing_run= | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is to | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too | |||
o old or missing" >&5 | old or missing" >&5 | |||
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |||
fi | fi | |||
if test x"${install_sh}" != xset; then | if test x"${install_sh}" != xset; then | |||
case $am_aux_dir in | case $am_aux_dir in | |||
*\ * | *\ *) | *\ * | *\ *) | |||
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |||
*) | *) | |||
install_sh="\${SHELL} $am_aux_dir/install-sh" | install_sh="\${SHELL} $am_aux_dir/install-sh" | |||
esac | esac | |||
fi | fi | |||
# Installed binaries are usually stripped using `strip' when the user | # Installed binaries are usually stripped using 'strip' when the user | |||
# run `make install-strip'. However `strip' might not be the right | # run "make install-strip". However 'strip' might not be the right | |||
# tool to use in cross-compilation environments, therefore Automake | # tool to use in cross-compilation environments, therefore Automake | |||
# will honor the `STRIP' environment variable to overrule this program. | # will honor the 'STRIP' environment variable to overrule this program. | |||
if test "$cross_compiling" != no; then | if test "$cross_compiling" != no; then | |||
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | |||
# Extract the first word of "${ac_tool_prefix}strip", so it can be a prog ram name with args. | # Extract the first word of "${ac_tool_prefix}strip", so it can be a prog ram name with args. | |||
set dummy ${ac_tool_prefix}strip; ac_word=$2 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |||
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |||
if ${ac_cv_prog_STRIP+:} false; then : | if ${ac_cv_prog_STRIP+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
if test -n "$STRIP"; then | if test -n "$STRIP"; then | |||
skipping to change at line 4085 | skipping to change at line 4157 | |||
# As a last resort, use the slow shell script. Don't cache a | # As a last resort, use the slow shell script. Don't cache a | |||
# value for MKDIR_P within a source directory, because that will | # value for MKDIR_P within a source directory, because that will | |||
# break other packages using the cache if that directory is | # break other packages using the cache if that directory is | |||
# removed, or if the value is a relative name. | # removed, or if the value is a relative name. | |||
MKDIR_P="$ac_install_sh -d" | MKDIR_P="$ac_install_sh -d" | |||
fi | fi | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |||
$as_echo "$MKDIR_P" >&6; } | $as_echo "$MKDIR_P" >&6; } | |||
mkdir_p="$MKDIR_P" | ||||
case $mkdir_p in | ||||
[\\/$]* | ?:[\\/]*) ;; | ||||
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||||
esac | ||||
for ac_prog in gawk mawk nawk awk | for ac_prog in gawk mawk nawk awk | |||
do | do | |||
# Extract the first word of "$ac_prog", so it can be a program name with args. | # Extract the first word of "$ac_prog", so it can be a program name with args. | |||
set dummy $ac_prog; ac_word=$2 | set dummy $ac_prog; ac_word=$2 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |||
$as_echo_n "checking for $ac_word... " >&6; } | $as_echo_n "checking for $ac_word... " >&6; } | |||
if ${ac_cv_prog_AWK+:} false; then : | if ${ac_cv_prog_AWK+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
if test -n "$AWK"; then | if test -n "$AWK"; then | |||
skipping to change at line 4190 | skipping to change at line 4256 | |||
.PHONY: am__doit | .PHONY: am__doit | |||
END | END | |||
# If we don't find an include directive, just comment out the code. | # If we don't find an include directive, just comment out the code. | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |||
$as_echo_n "checking for style of include used by $am_make... " >&6; } | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |||
am__include="#" | am__include="#" | |||
am__quote= | am__quote= | |||
_am_result=none | _am_result=none | |||
# First try GNU make style include. | # First try GNU make style include. | |||
echo "include confinc" > confmf | echo "include confinc" > confmf | |||
# Ignore all kinds of additional output from `make'. | # Ignore all kinds of additional output from 'make'. | |||
case `$am_make -s -f confmf 2> /dev/null` in #( | case `$am_make -s -f confmf 2> /dev/null` in #( | |||
*the\ am__doit\ target*) | *the\ am__doit\ target*) | |||
am__include=include | am__include=include | |||
am__quote= | am__quote= | |||
_am_result=GNU | _am_result=GNU | |||
;; | ;; | |||
esac | esac | |||
# Now try BSD make style include. | # Now try BSD make style include. | |||
if test "$am__include" = "#"; then | if test "$am__include" = "#"; then | |||
echo '.include "confinc"' > confmf | echo '.include "confinc"' > confmf | |||
skipping to change at line 4222 | skipping to change at line 4288 | |||
rm -f confinc confmf | rm -f confinc confmf | |||
# Check whether --enable-dependency-tracking was given. | # Check whether --enable-dependency-tracking was given. | |||
if test "${enable_dependency_tracking+set}" = set; then : | if test "${enable_dependency_tracking+set}" = set; then : | |||
enableval=$enable_dependency_tracking; | enableval=$enable_dependency_tracking; | |||
fi | fi | |||
if test "x$enable_dependency_tracking" != xno; then | if test "x$enable_dependency_tracking" != xno; then | |||
am_depcomp="$ac_aux_dir/depcomp" | am_depcomp="$ac_aux_dir/depcomp" | |||
AMDEPBACKSLASH='\' | AMDEPBACKSLASH='\' | |||
am__nodep='_no' | ||||
fi | fi | |||
if test "x$enable_dependency_tracking" != xno; then | if test "x$enable_dependency_tracking" != xno; then | |||
AMDEP_TRUE= | AMDEP_TRUE= | |||
AMDEP_FALSE='#' | AMDEP_FALSE='#' | |||
else | else | |||
AMDEP_TRUE='#' | AMDEP_TRUE='#' | |||
AMDEP_FALSE= | AMDEP_FALSE= | |||
fi | fi | |||
# Check whether --enable-silent-rules was given. | ||||
if test "${enable_silent_rules+set}" = set; then : | ||||
enableval=$enable_silent_rules; | ||||
fi | ||||
case $enable_silent_rules in # ((( | ||||
yes) AM_DEFAULT_VERBOSITY=0;; | ||||
no) AM_DEFAULT_VERBOSITY=1;; | ||||
*) AM_DEFAULT_VERBOSITY=1;; | ||||
esac | ||||
am_make=${MAKE-make} | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports | ||||
nested variables" >&5 | ||||
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } | ||||
if ${am_cv_make_support_nested_variables+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
if $as_echo 'TRUE=$(BAR$(V)) | ||||
BAR0=false | ||||
BAR1=true | ||||
V=1 | ||||
am__doit: | ||||
@$(TRUE) | ||||
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | ||||
am_cv_make_support_nested_variables=yes | ||||
else | ||||
am_cv_make_support_nested_variables=no | ||||
fi | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested | ||||
_variables" >&5 | ||||
$as_echo "$am_cv_make_support_nested_variables" >&6; } | ||||
if test $am_cv_make_support_nested_variables = yes; then | ||||
AM_V='$(V)' | ||||
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | ||||
else | ||||
AM_V=$AM_DEFAULT_VERBOSITY | ||||
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | ||||
fi | ||||
AM_BACKSLASH='\' | ||||
if test "`cd $srcdir && pwd`" != "`pwd`"; then | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |||
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |||
# is not polluted with repeated "-I." | # is not polluted with repeated "-I." | |||
am__isrc=' -I$(srcdir)' | am__isrc=' -I$(srcdir)' | |||
# test to see if srcdir already configured | # test to see if srcdir already configured | |||
if test -f $srcdir/config.status; then | if test -f $srcdir/config.status; then | |||
as_fn_error $? "source directory already configured; run \"make distcle an\" there first" "$LINENO" 5 | as_fn_error $? "source directory already configured; run \"make distcle an\" there first" "$LINENO" 5 | |||
fi | fi | |||
fi | fi | |||
skipping to change at line 4252 | skipping to change at line 4358 | |||
if test -z "$CYGPATH_W"; then | if test -z "$CYGPATH_W"; then | |||
if (cygpath --version) >/dev/null 2>/dev/null; then | if (cygpath --version) >/dev/null 2>/dev/null; then | |||
CYGPATH_W='cygpath -w' | CYGPATH_W='cygpath -w' | |||
else | else | |||
CYGPATH_W=echo | CYGPATH_W=echo | |||
fi | fi | |||
fi | fi | |||
# Define the identity of the package. | # Define the identity of the package. | |||
PACKAGE='libICE' | PACKAGE='libICE' | |||
VERSION='1.0.8' | VERSION='1.0.9' | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define PACKAGE "$PACKAGE" | #define PACKAGE "$PACKAGE" | |||
_ACEOF | _ACEOF | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define VERSION "$VERSION" | #define VERSION "$VERSION" | |||
_ACEOF | _ACEOF | |||
# Some tools Automake needs. | # Some tools Automake needs. | |||
skipping to change at line 4274 | skipping to change at line 4380 | |||
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |||
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |||
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |||
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |||
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |||
# For better backward compatibility. To be removed once Automake 1.9.x | ||||
# dies out for good. For more background, see: | ||||
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | ||||
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | ||||
mkdir_p='$(MKDIR_P)' | ||||
# We need awk for the "check" target. The system "awk" is bad on | # We need awk for the "check" target. The system "awk" is bad on | |||
# some platforms. | # some platforms. | |||
# Always define AMTAR for backward compatibility. | # Always define AMTAR for backward compatibility. Yes, it's still used | |||
# in the wild :-( We should find a proper way to deprecate it ... | ||||
AMTAR='$${TAR-tar}' | ||||
AMTAR=${AMTAR-"${am_missing_run}tar"} | # We'll loop over all known methods to create a tar archive until one works | |||
. | ||||
_am_tools='gnutar pax cpio none' | ||||
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |||
depcc="$CC" am_compiler_list= | depcc="$CC" am_compiler_list= | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depc c" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depc c" >&5 | |||
$as_echo_n "checking dependency style of $depcc... " >&6; } | $as_echo_n "checking dependency style of $depcc... " >&6; } | |||
if ${am_cv_CC_dependencies_compiler_type+:} false; then : | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |||
# We make a subdir and do the tests there. Otherwise we can end up | # We make a subdir and do the tests there. Otherwise we can end up | |||
# making bogus files that we don't know about and never remove. For | # making bogus files that we don't know about and never remove. For | |||
# instance it was reported that on HP-UX the gcc test will end up | # instance it was reported that on HP-UX the gcc test will end up | |||
# making a dummy file named `D' -- because `-MD' means `put the output | # making a dummy file named 'D' -- because '-MD' means "put the output | |||
# in D'. | # in D". | |||
rm -rf conftest.dir | ||||
mkdir conftest.dir | mkdir conftest.dir | |||
# Copy depcomp to subdir because otherwise we won't find it if we're | # Copy depcomp to subdir because otherwise we won't find it if we're | |||
# using a relative directory. | # using a relative directory. | |||
cp "$am_depcomp" conftest.dir | cp "$am_depcomp" conftest.dir | |||
cd conftest.dir | cd conftest.dir | |||
# We will build objects and dependencies in a subdirectory because | # We will build objects and dependencies in a subdirectory because | |||
# it helps to detect inapplicable dependency modes. For instance | # it helps to detect inapplicable dependency modes. For instance | |||
# both Tru64's cc and ICC support -MD to output dependencies as a | # both Tru64's cc and ICC support -MD to output dependencies as a | |||
# side effect of compilation, but ICC will put the dependencies in | # side effect of compilation, but ICC will put the dependencies in | |||
# the current directory while Tru64 will put them in the object | # the current directory while Tru64 will put them in the object | |||
skipping to change at line 4328 | skipping to change at line 4444 | |||
# Setup a source with many dependencies, because some compilers | # Setup a source with many dependencies, because some compilers | |||
# like to wrap large dependency lists on column 80 (with \), and | # like to wrap large dependency lists on column 80 (with \), and | |||
# we should not choose a depcomp mode which is confused by this. | # we should not choose a depcomp mode which is confused by this. | |||
# | # | |||
# We need to recreate these files for each test, as the compiler may | # We need to recreate these files for each test, as the compiler may | |||
# overwrite some of them when testing with obscure command lines. | # overwrite some of them when testing with obscure command lines. | |||
# This happens at least with the AIX C compiler. | # This happens at least with the AIX C compiler. | |||
: > sub/conftest.c | : > sub/conftest.c | |||
for i in 1 2 3 4 5 6; do | for i in 1 2 3 4 5 6; do | |||
echo '#include "conftst'$i'.h"' >> sub/conftest.c | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |||
# Solaris 8's {/usr,}/bin/sh. | # Solaris 10 /bin/sh. | |||
touch sub/conftst$i.h | echo '/* dummy */' > sub/conftst$i.h | |||
done | done | |||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |||
# We check with `-c' and `-o' for the sake of the "dashmstdout" | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |||
# mode. It turns out that the SunPro C++ compiler does not properly | # mode. It turns out that the SunPro C++ compiler does not properly | |||
# handle `-M -o', and we need to detect this. Also, some Intel | # handle '-M -o', and we need to detect this. Also, some Intel | |||
# versions had trouble with output in subdirs | # versions had trouble with output in subdirs. | |||
am__obj=sub/conftest.${OBJEXT-o} | am__obj=sub/conftest.${OBJEXT-o} | |||
am__minus_obj="-o $am__obj" | am__minus_obj="-o $am__obj" | |||
case $depmode in | case $depmode in | |||
gcc) | gcc) | |||
# This depmode causes a compiler race in universal mode. | # This depmode causes a compiler race in universal mode. | |||
test "$am__universal" = false || continue | test "$am__universal" = false || continue | |||
;; | ;; | |||
nosideeffect) | nosideeffect) | |||
# after this tag, mechanisms are not by side-effect, so they'll | # After this tag, mechanisms are not by side-effect, so they'll | |||
# only be used when explicitly requested | # only be used when explicitly requested. | |||
if test "x$enable_dependency_tracking" = xyes; then | if test "x$enable_dependency_tracking" = xyes; then | |||
continue | continue | |||
else | else | |||
break | break | |||
fi | fi | |||
;; | ;; | |||
msvisualcpp | msvcmsys) | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |||
# This compiler won't grok `-c -o', but also, the minuso test has | # This compiler won't grok '-c -o', but also, the minuso test has | |||
# not run yet. These depmodes are late enough in the game, and | # not run yet. These depmodes are late enough in the game, and | |||
# so weak that their functioning should not be impacted. | # so weak that their functioning should not be impacted. | |||
am__obj=conftest.${OBJEXT-o} | am__obj=conftest.${OBJEXT-o} | |||
am__minus_obj= | am__minus_obj= | |||
;; | ;; | |||
none) break ;; | none) break ;; | |||
esac | esac | |||
if depmode=$depmode \ | if depmode=$depmode \ | |||
source=sub/conftest.c object=$am__obj \ | source=sub/conftest.c object=$am__obj \ | |||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |||
skipping to change at line 4408 | skipping to change at line 4524 | |||
if | if | |||
test "x$enable_dependency_tracking" != xno \ | test "x$enable_dependency_tracking" != xno \ | |||
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |||
am__fastdepCC_TRUE= | am__fastdepCC_TRUE= | |||
am__fastdepCC_FALSE='#' | am__fastdepCC_FALSE='#' | |||
else | else | |||
am__fastdepCC_TRUE='#' | am__fastdepCC_TRUE='#' | |||
am__fastdepCC_FALSE= | am__fastdepCC_FALSE= | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintai | # POSIX will say in a future version that running "rm -f" with no argument | |||
ner-specific portions of Makefiles" >&5 | # is OK; and we want to be able to make that assumption in our Makefile | |||
$as_echo_n "checking whether to enable maintainer-specific portions of Make | # recipes. So use an aggressive probe to check that the usage we want is | |||
files... " >&6; } | # actually supported "in the wild" to an acceptable degree. | |||
# Check whether --enable-maintainer-mode was given. | # See automake bug#10828. | |||
if test "${enable_maintainer_mode+set}" = set; then : | # To make any issue more visible, cause the running configure to be aborted | |||
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | # by default if the 'rm' program in use doesn't match our expectations; the | |||
else | # user can still override this though. | |||
USE_MAINTAINER_MODE=no | if rm -f && rm -fr && rm -rf; then : OK; else | |||
fi | cat >&2 <<'END' | |||
Oops! | ||||
Your 'rm' program seems unable to run without file operands specified | ||||
on the command line, even when the '-f' option is present. This is contrar | ||||
y | ||||
to the behaviour of most rm programs out there, and not conforming with | ||||
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | ||||
Please tell bug-automake@gnu.org about your system, including the value | ||||
of your $PATH and any error possibly output before this message. This | ||||
can help us improve future automake versions. | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >& | END | |||
5 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |||
$as_echo "$USE_MAINTAINER_MODE" >&6; } | echo 'Configuration will proceed anyway, since you have set the' >&2 | |||
if test $USE_MAINTAINER_MODE = yes; then | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |||
MAINTAINER_MODE_TRUE= | echo >&2 | |||
MAINTAINER_MODE_FALSE='#' | else | |||
else | cat >&2 <<'END' | |||
MAINTAINER_MODE_TRUE='#' | Aborting the configuration process, to ensure you take notice of the issue. | |||
MAINTAINER_MODE_FALSE= | ||||
fi | You can download and install GNU coreutils to get an 'rm' implementation | |||
that behaves properly: <http://www.gnu.org/software/coreutils/>. | ||||
If you want to complete the configuration process using your problematic | ||||
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | ||||
to "yes", and re-run configure. | ||||
MAINT=$MAINTAINER_MODE_TRUE | END | |||
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | ||||
fi | ||||
fi | ||||
# Initialize libtool | # Initialize libtool | |||
case `pwd` in | case `pwd` in | |||
*\ * | *\ *) | *\ * | *\ *) | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |||
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \` pwd\`" >&2;} ;; | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \` pwd\`" >&2;} ;; | |||
esac | esac | |||
macro_version='2.4' | macro_version='2.4.2' | |||
macro_revision='1.3293' | macro_revision='1.3337' | |||
ltmain="$ac_aux_dir/ltmain.sh" | ltmain="$ac_aux_dir/ltmain.sh" | |||
# Make sure we can run config.sub. | # Make sure we can run config.sub. | |||
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |||
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |||
$as_echo_n "checking build system type... " >&6; } | $as_echo_n "checking build system type... " >&6; } | |||
if ${ac_cv_build+:} false; then : | if ${ac_cv_build+:} false; then : | |||
skipping to change at line 5081 | skipping to change at line 5218 | |||
# And add a safety zone | # And add a safety zone | |||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |||
;; | ;; | |||
interix*) | interix*) | |||
# We know the value 262144 and hardcode it with a safety zone (like BSD ) | # We know the value 262144 and hardcode it with a safety zone (like BSD ) | |||
lt_cv_sys_max_cmd_len=196608 | lt_cv_sys_max_cmd_len=196608 | |||
;; | ;; | |||
os2*) | ||||
# The test takes a long time on OS/2. | ||||
lt_cv_sys_max_cmd_len=8192 | ||||
;; | ||||
osf*) | osf*) | |||
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running confi gure | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running confi gure | |||
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |||
# nice to cause kernel panics so lets avoid the loop below. | # nice to cause kernel panics so lets avoid the loop below. | |||
# First set a reasonable default. | # First set a reasonable default. | |||
lt_cv_sys_max_cmd_len=16384 | lt_cv_sys_max_cmd_len=16384 | |||
# | # | |||
if test -x /sbin/sysconfig; then | if test -x /sbin/sysconfig; then | |||
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |||
*1*) lt_cv_sys_max_cmd_len=-1 ;; | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |||
skipping to change at line 5120 | skipping to change at line 5262 | |||
else | else | |||
# Make teststring a little bigger before we do anything with it. | # Make teststring a little bigger before we do anything with it. | |||
# a 1K string should be a reasonable start. | # a 1K string should be a reasonable start. | |||
for i in 1 2 3 4 5 6 7 8 ; do | for i in 1 2 3 4 5 6 7 8 ; do | |||
teststring=$teststring$teststring | teststring=$teststring$teststring | |||
done | done | |||
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |||
# If test is not a shell built-in, we'll probably end up computing a | # If test is not a shell built-in, we'll probably end up computing a | |||
# maximum length that is only half of the actual maximum length, but | # maximum length that is only half of the actual maximum length, but | |||
# we can't tell. | # we can't tell. | |||
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/n ull` \ | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |||
= "X$teststring$teststring"; } >/dev/null 2>&1 && | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |||
test $i != 17 # 1/2 MB should be enough | test $i != 17 # 1/2 MB should be enough | |||
do | do | |||
i=`expr $i + 1` | i=`expr $i + 1` | |||
teststring=$teststring$teststring | teststring=$teststring$teststring | |||
done | done | |||
# Only check the string length outside the loop. | # Only check the string length outside the loop. | |||
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |||
teststring= | teststring= | |||
# Add a significant safety factor because C++ compilers can tack on | # Add a significant safety factor because C++ compilers can tack on | |||
skipping to change at line 5505 | skipping to change at line 5647 | |||
irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) | |||
case $LD in | case $LD in | |||
*-32|*"-32 ") libmagic=32-bit;; | *-32|*"-32 ") libmagic=32-bit;; | |||
*-n32|*"-n32 ") libmagic=N32;; | *-n32|*"-n32 ") libmagic=N32;; | |||
*-64|*"-64 ") libmagic=64-bit;; | *-64|*"-64 ") libmagic=64-bit;; | |||
*) libmagic=never-match;; | *) libmagic=never-match;; | |||
esac | esac | |||
lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all | |||
;; | ;; | |||
# This must be Linux ELF. | # This must be glibc/ELF. | |||
linux* | k*bsd*-gnu | kopensolaris*-gnu) | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |||
lt_cv_deplibs_check_method=pass_all | lt_cv_deplibs_check_method=pass_all | |||
;; | ;; | |||
netbsd*) | netbsd*) | |||
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9] +|_pic\.a)$' | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9] +|_pic\.a)$' | |||
else | else | |||
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |||
fi | fi | |||
skipping to change at line 6078 | skipping to change at line 6220 | |||
test -z "$RANLIB" && RANLIB=: | test -z "$RANLIB" && RANLIB=: | |||
# Determine commands to create old-style static archives. | # Determine commands to create old-style static archives. | |||
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |||
old_postinstall_cmds='chmod 644 $oldlib' | old_postinstall_cmds='chmod 644 $oldlib' | |||
old_postuninstall_cmds= | old_postuninstall_cmds= | |||
if test -n "$RANLIB"; then | if test -n "$RANLIB"; then | |||
case $host_os in | case $host_os in | |||
openbsd*) | openbsd*) | |||
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |||
;; | ;; | |||
*) | *) | |||
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |||
;; | ;; | |||
esac | esac | |||
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |||
fi | fi | |||
case $host_os in | case $host_os in | |||
darwin*) | darwin*) | |||
lock_old_archive_extraction=yes ;; | lock_old_archive_extraction=yes ;; | |||
*) | *) | |||
lock_old_archive_extraction=no ;; | lock_old_archive_extraction=no ;; | |||
esac | esac | |||
# If no C compiler was specified, use CC. | # If no C compiler was specified, use CC. | |||
skipping to change at line 6192 | skipping to change at line 6334 | |||
symxfrm="\\1 $ac_symprfx\\2 \\2" | symxfrm="\\1 $ac_symprfx\\2 \\2" | |||
# Write the raw and C identifiers. | # Write the raw and C identifiers. | |||
if test "$lt_cv_nm_interface" = "MS dumpbin"; then | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |||
# Fake it for dumpbin and say T for any non-static function | # Fake it for dumpbin and say T for any non-static function | |||
# and D for any global variable. | # and D for any global variable. | |||
# Also find C++ and __fastcall symbols from MSVC++, | # Also find C++ and __fastcall symbols from MSVC++, | |||
# which start with @ or ?. | # which start with @ or ?. | |||
lt_cv_sys_global_symbol_pipe="$AWK '"\ | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |||
" {last_section=section; section=\$ 3};"\ | " {last_section=section; section=\$ 3};"\ | |||
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | ||||
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |||
" \$ 0!~/External *\|/{next};"\ | " \$ 0!~/External *\|/{next};"\ | |||
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |||
" {if(hide[section]) next};"\ | " {if(hide[section]) next};"\ | |||
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |||
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |||
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |||
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\ | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\ | |||
" ' prfx=^$ac_symprfx" | " ' prfx=^$ac_symprfx" | |||
else | else | |||
skipping to change at line 6549 | skipping to change at line 6692 | |||
ac_compiler_gnu=$ac_cv_c_compiler_gnu | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |||
$as_echo "$lt_cv_cc_needs_belf" >&6; } | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |||
if test x"$lt_cv_cc_needs_belf" != x"yes"; then | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |||
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |||
CFLAGS="$SAVE_CFLAGS" | CFLAGS="$SAVE_CFLAGS" | |||
fi | fi | |||
;; | ;; | |||
sparc*-*solaris*) | *-*solaris*) | |||
# Find out which ABI we are using. | # Find out which ABI we are using. | |||
echo 'int i;' > conftest.$ac_ext | echo 'int i;' > conftest.$ac_ext | |||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } > &5 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } > &5 | |||
(eval $ac_compile) 2>&5 | (eval $ac_compile) 2>&5 | |||
ac_status=$? | ac_status=$? | |||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |||
test $ac_status = 0; }; then | test $ac_status = 0; }; then | |||
case `/usr/bin/file conftest.o` in | case `/usr/bin/file conftest.o` in | |||
*64-bit*) | *64-bit*) | |||
case $lt_cv_prog_gnu_ld in | case $lt_cv_prog_gnu_ld in | |||
yes*) LD="${LD-ld} -m elf64_sparc" ;; | yes*) | |||
case $host in | ||||
i?86-*-solaris*) | ||||
LD="${LD-ld} -m elf_x86_64" | ||||
;; | ||||
sparc*-*-solaris*) | ||||
LD="${LD-ld} -m elf64_sparc" | ||||
;; | ||||
esac | ||||
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. | ||||
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | ||||
LD="${LD-ld}_sol2" | ||||
fi | ||||
;; | ||||
*) | *) | |||
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |||
LD="${LD-ld} -64" | LD="${LD-ld} -64" | |||
fi | fi | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
esac | esac | |||
fi | fi | |||
rm -rf conftest* | rm -rf conftest* | |||
skipping to change at line 7163 | skipping to change at line 7319 | |||
# by either setting the environment variable LT_MULTI_MODULE | # by either setting the environment variable LT_MULTI_MODULE | |||
# non-empty at configure time, or by adding -multi_module to the | # non-empty at configure time, or by adding -multi_module to the | |||
# link flags. | # link flags. | |||
rm -rf libconftest.dylib* | rm -rf libconftest.dylib* | |||
echo "int foo(void){return 1;}" > conftest.c | echo "int foo(void){return 1;}" > conftest.c | |||
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |||
-dynamiclib -Wl,-single_module conftest.c" >&5 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |||
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |||
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |||
_lt_result=$? | _lt_result=$? | |||
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_ | # If there is a non-empty error log, and "single_module" | |||
result = 0; then | # appears in it, assume the flag caused a linker warning | |||
if test -s conftest.err && $GREP single_module conftest.err; then | ||||
cat conftest.err >&5 | ||||
# Otherwise, if the output was created with a 0 exit code from | ||||
# the compiler, it worked. | ||||
elif test -f libconftest.dylib && test $_lt_result -eq 0; then | ||||
lt_cv_apple_cc_single_mod=yes | lt_cv_apple_cc_single_mod=yes | |||
else | else | |||
cat conftest.err >&5 | cat conftest.err >&5 | |||
fi | fi | |||
rm -rf libconftest.dylib* | rm -rf libconftest.dylib* | |||
rm -f conftest.* | rm -f conftest.* | |||
fi | fi | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod " >&5 | |||
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols _list linker flag" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols _list linker flag" >&5 | |||
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |||
if ${lt_cv_ld_exported_symbols_list+:} false; then : | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
lt_cv_ld_exported_symbols_list=no | lt_cv_ld_exported_symbols_list=no | |||
save_LDFLAGS=$LDFLAGS | save_LDFLAGS=$LDFLAGS | |||
echo "_main" > conftest.sym | echo "_main" > conftest.sym | |||
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
skipping to change at line 7206 | skipping to change at line 7369 | |||
else | else | |||
lt_cv_ld_exported_symbols_list=no | lt_cv_ld_exported_symbols_list=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
LDFLAGS="$save_LDFLAGS" | LDFLAGS="$save_LDFLAGS" | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols _list" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols _list" >&5 | |||
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linke r flag" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linke r flag" >&5 | |||
$as_echo_n "checking for -force_load linker flag... " >&6; } | $as_echo_n "checking for -force_load linker flag... " >&6; } | |||
if ${lt_cv_ld_force_load+:} false; then : | if ${lt_cv_ld_force_load+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
lt_cv_ld_force_load=no | lt_cv_ld_force_load=no | |||
cat > conftest.c << _LT_EOF | cat > conftest.c << _LT_EOF | |||
int forced_loaded() { return 2;} | int forced_loaded() { return 2;} | |||
_LT_EOF | _LT_EOF | |||
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |||
skipping to change at line 7227 | skipping to change at line 7391 | |||
echo "$AR cru libconftest.a conftest.o" >&5 | echo "$AR cru libconftest.a conftest.o" >&5 | |||
$AR cru libconftest.a conftest.o 2>&5 | $AR cru libconftest.a conftest.o 2>&5 | |||
echo "$RANLIB libconftest.a" >&5 | echo "$RANLIB libconftest.a" >&5 | |||
$RANLIB libconftest.a 2>&5 | $RANLIB libconftest.a 2>&5 | |||
cat > conftest.c << _LT_EOF | cat > conftest.c << _LT_EOF | |||
int main() { return 0;} | int main() { return 0;} | |||
_LT_EOF | _LT_EOF | |||
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load ,./libconftest.a" >&5 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load ,./libconftest.a" >&5 | |||
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./lib conftest.a 2>conftest.err | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./lib conftest.a 2>conftest.err | |||
_lt_result=$? | _lt_result=$? | |||
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 | if test -s conftest.err && $GREP force_load conftest.err; then | |||
&& $GREP forced_load conftest 2>&1 >/dev/null; then | cat conftest.err >&5 | |||
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load | ||||
conftest >/dev/null 2>&1 ; then | ||||
lt_cv_ld_force_load=yes | lt_cv_ld_force_load=yes | |||
else | else | |||
cat conftest.err >&5 | cat conftest.err >&5 | |||
fi | fi | |||
rm -f conftest.err libconftest.a conftest conftest.c | rm -f conftest.err libconftest.a conftest conftest.c | |||
rm -rf conftest.dSYM | rm -rf conftest.dSYM | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |||
$as_echo "$lt_cv_ld_force_load" >&6; } | $as_echo "$lt_cv_ld_force_load" >&6; } | |||
skipping to change at line 7340 | skipping to change at line 7506 | |||
done | done | |||
IFS="$lt_save_ifs" | IFS="$lt_save_ifs" | |||
;; | ;; | |||
esac | esac | |||
else | else | |||
enable_static=yes | enable_static=yes | |||
fi | fi | |||
# Check whether --with-pic was given. | # Check whether --with-pic was given. | |||
if test "${with_pic+set}" = set; then : | if test "${with_pic+set}" = set; then : | |||
withval=$with_pic; pic_mode="$withval" | withval=$with_pic; lt_p=${PACKAGE-default} | |||
case $withval in | ||||
yes|no) pic_mode=$withval ;; | ||||
*) | ||||
pic_mode=default | ||||
# Look at the argument we got. We use all the common list separators | ||||
. | ||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||||
for lt_pkg in $withval; do | ||||
IFS="$lt_save_ifs" | ||||
if test "X$lt_pkg" = "X$lt_p"; then | ||||
pic_mode=yes | ||||
fi | ||||
done | ||||
IFS="$lt_save_ifs" | ||||
;; | ||||
esac | ||||
else | else | |||
pic_mode=default | pic_mode=default | |||
fi | fi | |||
test -z "$pic_mode" && pic_mode=default | test -z "$pic_mode" && pic_mode=default | |||
# Check whether --enable-fast-install was given. | # Check whether --enable-fast-install was given. | |||
if test "${enable_fast_install+set}" = set; then : | if test "${enable_fast_install+set}" = set; then : | |||
enableval=$enable_fast_install; p=${PACKAGE-default} | enableval=$enable_fast_install; p=${PACKAGE-default} | |||
case $enableval in | case $enableval in | |||
skipping to change at line 7791 | skipping to change at line 7972 | |||
;; | ;; | |||
*) | *) | |||
lt_prog_compiler_pic='-fPIC' | lt_prog_compiler_pic='-fPIC' | |||
;; | ;; | |||
esac | esac | |||
case $cc_basename in | case $cc_basename in | |||
nvcc*) # Cuda Compiler Driver 2.2 | nvcc*) # Cuda Compiler Driver 2.2 | |||
lt_prog_compiler_wl='-Xlinker ' | lt_prog_compiler_wl='-Xlinker ' | |||
lt_prog_compiler_pic='-Xcompiler -fPIC' | if test -n "$lt_prog_compiler_pic"; then | |||
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | ||||
fi | ||||
;; | ;; | |||
esac | esac | |||
else | else | |||
# PORTME Check for flag to pass linker flags through the system compile r. | # PORTME Check for flag to pass linker flags through the system compile r. | |||
case $host_os in | case $host_os in | |||
aix*) | aix*) | |||
lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' | |||
if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then | |||
# AIX 5 now supports IA64 processor | # AIX 5 now supports IA64 processor | |||
lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' | |||
skipping to change at line 7882 | skipping to change at line 8065 | |||
lt_prog_compiler_static='-non_shared' | lt_prog_compiler_static='-non_shared' | |||
;; | ;; | |||
xl* | bgxl* | bgf* | mpixl*) | xl* | bgxl* | bgf* | mpixl*) | |||
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |||
lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' | |||
lt_prog_compiler_pic='-qpic' | lt_prog_compiler_pic='-qpic' | |||
lt_prog_compiler_static='-qstaticlink' | lt_prog_compiler_static='-qstaticlink' | |||
;; | ;; | |||
*) | *) | |||
case `$CC -V 2>&1 | sed 5q` in | case `$CC -V 2>&1 | sed 5q` in | |||
*Sun\ F* | *Sun*Fortran*) | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0 -3]*) | |||
# Sun Fortran 8.3 passes all unrecognized flags to the linker | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |||
lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' | |||
lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' | |||
lt_prog_compiler_wl='' | lt_prog_compiler_wl='' | |||
;; | ;; | |||
*Sun\ F* | *Sun*Fortran*) | ||||
lt_prog_compiler_pic='-KPIC' | ||||
lt_prog_compiler_static='-Bstatic' | ||||
lt_prog_compiler_wl='-Qoption ld ' | ||||
;; | ||||
*Sun\ C*) | *Sun\ C*) | |||
# Sun C 5.9 | # Sun C 5.9 | |||
lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' | |||
lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' | |||
lt_prog_compiler_wl='-Wl,' | lt_prog_compiler_wl='-Wl,' | |||
;; | ;; | |||
*Intel*\ [CF]*Compiler*) | ||||
lt_prog_compiler_wl='-Wl,' | ||||
lt_prog_compiler_pic='-fPIC' | ||||
lt_prog_compiler_static='-static' | ||||
;; | ||||
*Portland\ Group*) | ||||
lt_prog_compiler_wl='-Wl,' | ||||
lt_prog_compiler_pic='-fpic' | ||||
lt_prog_compiler_static='-Bstatic' | ||||
;; | ||||
esac | esac | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
newsos6) | newsos6) | |||
lt_prog_compiler_pic='-KPIC' | lt_prog_compiler_pic='-KPIC' | |||
lt_prog_compiler_static='-Bstatic' | lt_prog_compiler_static='-Bstatic' | |||
;; | ;; | |||
skipping to change at line 8226 | skipping to change at line 8424 | |||
archive_cmds= | archive_cmds= | |||
archive_expsym_cmds= | archive_expsym_cmds= | |||
compiler_needs_object=no | compiler_needs_object=no | |||
enable_shared_with_static_runtimes=no | enable_shared_with_static_runtimes=no | |||
export_dynamic_flag_spec= | export_dynamic_flag_spec= | |||
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $S ED '\''s/.* //'\'' | sort | uniq > $export_symbols' | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $S ED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |||
hardcode_automatic=no | hardcode_automatic=no | |||
hardcode_direct=no | hardcode_direct=no | |||
hardcode_direct_absolute=no | hardcode_direct_absolute=no | |||
hardcode_libdir_flag_spec= | hardcode_libdir_flag_spec= | |||
hardcode_libdir_flag_spec_ld= | ||||
hardcode_libdir_separator= | hardcode_libdir_separator= | |||
hardcode_minus_L=no | hardcode_minus_L=no | |||
hardcode_shlibpath_var=unsupported | hardcode_shlibpath_var=unsupported | |||
inherit_rpath=no | inherit_rpath=no | |||
link_all_deplibs=unknown | link_all_deplibs=unknown | |||
module_cmds= | module_cmds= | |||
module_expsym_cmds= | module_expsym_cmds= | |||
old_archive_from_new_cmds= | old_archive_from_new_cmds= | |||
old_archive_from_expsyms_cmds= | old_archive_from_expsyms_cmds= | |||
thread_safe_flag_spec= | thread_safe_flag_spec= | |||
skipping to change at line 8476 | skipping to change at line 8673 | |||
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.v er~ | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.v er~ | |||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$ libname.ver~ | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$ libname.ver~ | |||
echo "local: *; };" >> $output_objdir/$libname.ver~ | echo "local: *; };" >> $output_objdir/$libname.ver~ | |||
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$l ibname.ver -o $lib' | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$l ibname.ver -o $lib' | |||
fi | fi | |||
case $cc_basename in | case $cc_basename in | |||
xlf* | bgf* | bgxlf* | mpixlf*) | xlf* | bgf* | bgxlf* | mpixlf*) | |||
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |||
whole_archive_flag_spec='--whole-archive$convenience --no-whole-ar chive' | whole_archive_flag_spec='--whole-archive$convenience --no-whole-ar chive' | |||
hardcode_libdir_flag_spec= | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |||
hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||||
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |||
if test "x$supports_anon_versioning" = xyes; then | if test "x$supports_anon_versioning" = xyes; then | |||
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname. ver~ | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname. ver~ | |||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir /$libname.ver~ | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir /$libname.ver~ | |||
echo "local: *; };" >> $output_objdir/$libname.ver~ | echo "local: *; };" >> $output_objdir/$libname.ver~ | |||
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -v ersion-script $output_objdir/$libname.ver -o $lib' | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -v ersion-script $output_objdir/$libname.ver -o $lib' | |||
fi | fi | |||
;; | ;; | |||
esac | esac | |||
else | else | |||
skipping to change at line 8856 | skipping to change at line 9052 | |||
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS ; then | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS ; then | |||
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e ' 1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e ' 1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |||
else | else | |||
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expo rt_symbols > $output_objdir/$soname.exp; | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expo rt_symbols > $output_objdir/$soname.exp; | |||
fi~ | fi~ | |||
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplib s "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$l ibname.dll.lib"~ | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplib s "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$l ibname.dll.lib"~ | |||
linknames=' | linknames=' | |||
# The linker will not automatically build a static lib if we build a DLL. | # The linker will not automatically build a static lib if we build a DLL. | |||
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |||
enable_shared_with_static_runtimes=yes | enable_shared_with_static_runtimes=yes | |||
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||||
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^ [AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^ [AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |||
# Don't use ranlib | # Don't use ranlib | |||
old_postinstall_cmds='chmod 644 $oldlib' | old_postinstall_cmds='chmod 644 $oldlib' | |||
postlink_cmds='lt_outputfile="@OUTPUT@"~ | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |||
lt_tool_outputfile="@TOOL_OUTPUT@"~ | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |||
case $lt_outputfile in | case $lt_outputfile in | |||
*.exe|*.EXE) ;; | *.exe|*.EXE) ;; | |||
*) | *) | |||
lt_outputfile="$lt_outputfile.exe" | lt_outputfile="$lt_outputfile.exe" | |||
lt_tool_outputfile="$lt_tool_outputfile.exe" | lt_tool_outputfile="$lt_tool_outputfile.exe" | |||
skipping to change at line 8900 | skipping to change at line 9097 | |||
;; | ;; | |||
darwin* | rhapsody*) | darwin* | rhapsody*) | |||
archive_cmds_need_lc=no | archive_cmds_need_lc=no | |||
hardcode_direct=no | hardcode_direct=no | |||
hardcode_automatic=yes | hardcode_automatic=yes | |||
hardcode_shlibpath_var=unsupported | hardcode_shlibpath_var=unsupported | |||
if test "$lt_cv_ld_force_load" = "yes"; then | if test "$lt_cv_ld_force_load" = "yes"; then | |||
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\"`' | 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\"`' | |||
else | else | |||
whole_archive_flag_spec='' | whole_archive_flag_spec='' | |||
fi | fi | |||
link_all_deplibs=yes | link_all_deplibs=yes | |||
allow_undefined_flag="$_lt_dar_allow_undefined" | allow_undefined_flag="$_lt_dar_allow_undefined" | |||
case $cc_basename in | case $cc_basename in | |||
ifort*) _lt_dar_can_shared=yes ;; | ifort*) _lt_dar_can_shared=yes ;; | |||
*) _lt_dar_can_shared=$GCC ;; | *) _lt_dar_can_shared=$GCC ;; | |||
esac | esac | |||
if test "$_lt_dar_can_shared" = "yes"; then | if test "$_lt_dar_can_shared" = "yes"; then | |||
skipping to change at line 8928 | skipping to change at line 9126 | |||
fi | fi | |||
;; | ;; | |||
dgux*) | dgux*) | |||
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fla gs' | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fla gs' | |||
hardcode_libdir_flag_spec='-L$libdir' | hardcode_libdir_flag_spec='-L$libdir' | |||
hardcode_shlibpath_var=no | hardcode_shlibpath_var=no | |||
;; | ;; | |||
freebsd1*) | ||||
ld_shlibs=no | ||||
;; | ||||
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructo r | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructo r | |||
# support. Future versions do this automatically, but an explicit c++r t0.o | # support. Future versions do this automatically, but an explicit c++r t0.o | |||
# does not break anything, and helps significantly (at the cost of a li ttle | # does not break anything, and helps significantly (at the cost of a li ttle | |||
# extra space). | # extra space). | |||
freebsd2.2*) | freebsd2.2*) | |||
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
hardcode_direct=yes | hardcode_direct=yes | |||
hardcode_shlibpath_var=no | hardcode_shlibpath_var=no | |||
;; | ;; | |||
# Unfortunately, older versions of FreeBSD 2 do not have this feature. | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |||
freebsd2*) | freebsd2.*) | |||
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags ' | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags ' | |||
hardcode_direct=yes | hardcode_direct=yes | |||
hardcode_minus_L=yes | hardcode_minus_L=yes | |||
hardcode_shlibpath_var=no | hardcode_shlibpath_var=no | |||
;; | ;; | |||
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |||
freebsd* | dragonfly*) | freebsd* | dragonfly*) | |||
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compil er_flags' | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compil er_flags' | |||
hardcode_libdir_flag_spec='-R$libdir' | hardcode_libdir_flag_spec='-R$libdir' | |||
skipping to change at line 8983 | skipping to change at line 9177 | |||
;; | ;; | |||
hpux10*) | hpux10*) | |||
if test "$GCC" = yes && test "$with_gnu_ld" = no; then | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |||
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${w l}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${w l}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |||
else | else | |||
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |||
fi | fi | |||
if test "$with_gnu_ld" = no; then | if test "$with_gnu_ld" = no; then | |||
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |||
hardcode_libdir_flag_spec_ld='+b $libdir' | ||||
hardcode_libdir_separator=: | hardcode_libdir_separator=: | |||
hardcode_direct=yes | hardcode_direct=yes | |||
hardcode_direct_absolute=yes | hardcode_direct_absolute=yes | |||
export_dynamic_flag_spec='${wl}-E' | export_dynamic_flag_spec='${wl}-E' | |||
# hardcode_minus_L: Not really in the search PATH, | # hardcode_minus_L: Not really in the search PATH, | |||
# but as the default location of the library. | # but as the default location of the library. | |||
hardcode_minus_L=yes | hardcode_minus_L=yes | |||
fi | fi | |||
;; | ;; | |||
skipping to change at line 9531 | skipping to change at line 9724 | |||
sys_lib_dlsearch_path_spec="/lib /usr/lib" | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |||
need_lib_prefix=unknown | need_lib_prefix=unknown | |||
hardcode_into_libs=no | hardcode_into_libs=no | |||
# when you set need_version to no, make sure it does not cause -set_version | # when you set need_version to no, make sure it does not cause -set_version | |||
# flags to be left without arguments | # flags to be left without arguments | |||
need_version=unknown | need_version=unknown | |||
case $host_os in | case $host_os in | |||
aix3*) | aix3*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname. a' | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname. a' | |||
shlibpath_var=LIBPATH | shlibpath_var=LIBPATH | |||
# AIX 3 has no versioning support, so we append a major version to the na me. | # AIX 3 has no versioning support, so we append a major version to the na me. | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
;; | ;; | |||
aix[4-9]*) | aix[4-9]*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
if test "$host_cpu" = ia64; then | if test "$host_cpu" = ia64; then | |||
# AIX 5 supports IA64 | # AIX 5 supports IA64 | |||
library_names_spec='${libname}${release}${shared_ext}$major ${libname}$ {release}${shared_ext}$versuffix $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$major ${libname}$ {release}${shared_ext}$versuffix $libname${shared_ext}' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
else | else | |||
# With GCC up to 2.95.x, collect2 would create an import file | # With GCC up to 2.95.x, collect2 would create an import file | |||
# for dependence libraries. The import file would start with | # for dependence libraries. The import file would start with | |||
skipping to change at line 9605 | skipping to change at line 9798 | |||
esac | esac | |||
;; | ;; | |||
beos*) | beos*) | |||
library_names_spec='${libname}${shared_ext}' | library_names_spec='${libname}${shared_ext}' | |||
dynamic_linker="$host_os ld.so" | dynamic_linker="$host_os ld.so" | |||
shlibpath_var=LIBRARY_PATH | shlibpath_var=LIBRARY_PATH | |||
;; | ;; | |||
bsdi[45]*) | bsdi[45]*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib / lib /usr/local/lib" | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib / lib /usr/local/lib" | |||
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |||
# the default ld.so.conf also contains /usr/contrib/lib and | # the default ld.so.conf also contains /usr/contrib/lib and | |||
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |||
# libtool to hard-code these into programs | # libtool to hard-code these into programs | |||
skipping to change at line 9744 | skipping to change at line 9937 | |||
soname_spec='${libname}${release}${major}$shared_ext' | soname_spec='${libname}${release}${major}$shared_ext' | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
shlibpath_var=DYLD_LIBRARY_PATH | shlibpath_var=DYLD_LIBRARY_PATH | |||
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |||
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |||
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |||
;; | ;; | |||
dgux*) | dgux*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname$shared_ext' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname$shared_ext' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
;; | ;; | |||
freebsd1*) | ||||
dynamic_linker=no | ||||
;; | ||||
freebsd* | dragonfly*) | freebsd* | dragonfly*) | |||
# DragonFly does not have aout. When/if they implement a new | # DragonFly does not have aout. When/if they implement a new | |||
# versioning mechanism, adjust this. | # versioning mechanism, adjust this. | |||
if test -x /usr/bin/objformat; then | if test -x /usr/bin/objformat; then | |||
objformat=`/usr/bin/objformat` | objformat=`/usr/bin/objformat` | |||
else | else | |||
case $host_os in | case $host_os in | |||
freebsd[123]*) objformat=aout ;; | freebsd[23].*) objformat=aout ;; | |||
*) objformat=elf ;; | *) objformat=elf ;; | |||
esac | esac | |||
fi | fi | |||
version_type=freebsd-$objformat | version_type=freebsd-$objformat | |||
case $version_type in | case $version_type in | |||
freebsd-elf*) | freebsd-elf*) | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${lib name}${release}${shared_ext} $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${lib name}${release}${shared_ext} $libname${shared_ext}' | |||
need_version=no | need_version=no | |||
need_lib_prefix=no | need_lib_prefix=no | |||
;; | ;; | |||
freebsd-*) | freebsd-*) | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix $libn ame${shared_ext}$versuffix' | library_names_spec='${libname}${release}${shared_ext}$versuffix $libn ame${shared_ext}$versuffix' | |||
need_version=yes | need_version=yes | |||
;; | ;; | |||
esac | esac | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
case $host_os in | case $host_os in | |||
freebsd2*) | freebsd2.*) | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
;; | ;; | |||
freebsd3.[01]* | freebsdelf3.[01]*) | freebsd3.[01]* | freebsdelf3.[01]*) | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |||
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
*) # from 4.6 on, and DragonFly | *) # from 4.6 on, and DragonFly | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
gnu*) | gnu*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}${major} ${libname}${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}${major} ${libname}${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=no | ||||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
haiku*) | haiku*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
dynamic_linker="$host_os runtime_loader" | dynamic_linker="$host_os runtime_loader" | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}${major} ${libname}${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}${major} ${libname}${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LIBRARY_PATH | shlibpath_var=LIBRARY_PATH | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/ system/lib' | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/ system/lib' | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
skipping to change at line 9872 | skipping to change at line 10062 | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
;; | ;; | |||
esac | esac | |||
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |||
postinstall_cmds='chmod 555 $lib' | postinstall_cmds='chmod 555 $lib' | |||
# or fails outright, so override atomically: | # or fails outright, so override atomically: | |||
install_override_mode=555 | install_override_mode=555 | |||
;; | ;; | |||
interix[3-9]*) | interix[3-9]*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
irix5* | irix6* | nonstopux*) | irix5* | irix6* | nonstopux*) | |||
case $host_os in | case $host_os in | |||
nonstopux*) version_type=nonstopux ;; | nonstopux*) version_type=nonstopux ;; | |||
*) | *) | |||
if test "$lt_cv_prog_gnu_ld" = yes; then | if test "$lt_cv_prog_gnu_ld" = yes; then | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next bi g refactor | |||
else | else | |||
version_type=irix | version_type=irix | |||
fi ;; | fi ;; | |||
esac | esac | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${ shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${ shared_ext}' | |||
case $host_os in | case $host_os in | |||
irix5* | nonstopux*) | irix5* | nonstopux*) | |||
skipping to change at line 9925 | skipping to change at line 10115 | |||
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/li b${libsuff}" | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/li b${libsuff}" | |||
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
# No shared lib support for Linux oldld, aout, or coff. | # No shared lib support for Linux oldld, aout, or coff. | |||
linux*oldld* | linux*aout* | linux*coff*) | linux*oldld* | linux*aout* | linux*coff*) | |||
dynamic_linker=no | dynamic_linker=no | |||
;; | ;; | |||
# This must be Linux ELF. | # This must be glibc/ELF. | |||
linux* | k*bsd*-gnu | kopensolaris*-gnu) | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
# Some binutils ld are patched to set DT_RUNPATH | # Some binutils ld are patched to set DT_RUNPATH | |||
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |||
skipping to change at line 10009 | skipping to change at line 10199 | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major ${libname}${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major ${libname}${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
dynamic_linker='NetBSD ld.elf_so' | dynamic_linker='NetBSD ld.elf_so' | |||
fi | fi | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
newsos6) | newsos6) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
;; | ;; | |||
*nto* | *qnx*) | *nto* | *qnx*) | |||
version_type=qnx | version_type=qnx | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
skipping to change at line 10078 | skipping to change at line 10268 | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr /lib /usr/local/lib /var/shlib" | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr /lib /usr/local/lib /var/shlib" | |||
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |||
;; | ;; | |||
rdos*) | rdos*) | |||
dynamic_linker=no | dynamic_linker=no | |||
;; | ;; | |||
solaris*) | solaris*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
# ldd complains unless libraries are executable | # ldd complains unless libraries are executable | |||
postinstall_cmds='chmod +x $lib' | postinstall_cmds='chmod +x $lib' | |||
;; | ;; | |||
skipping to change at line 10103 | skipping to change at line 10293 | |||
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=yes | shlibpath_overrides_runpath=yes | |||
if test "$with_gnu_ld" = yes; then | if test "$with_gnu_ld" = yes; then | |||
need_lib_prefix=no | need_lib_prefix=no | |||
fi | fi | |||
need_version=yes | need_version=yes | |||
;; | ;; | |||
sysv4 | sysv4.3*) | sysv4 | sysv4.3*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
case $host_vendor in | case $host_vendor in | |||
sni) | sni) | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
need_lib_prefix=no | need_lib_prefix=no | |||
runpath_var=LD_RUN_PATH | runpath_var=LD_RUN_PATH | |||
;; | ;; | |||
siemens) | siemens) | |||
skipping to change at line 10127 | skipping to change at line 10317 | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
sysv4*MP*) | sysv4*MP*) | |||
if test -d /usr/nec ;then | if test -d /usr/nec ;then | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_e xt}.$major $libname${shared_ext}' | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_e xt}.$major $libname${shared_ext}' | |||
soname_spec='$libname${shared_ext}.$major' | soname_spec='$libname${shared_ext}.$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
fi | fi | |||
;; | ;; | |||
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |||
version_type=freebsd-elf | version_type=freebsd-elf | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
skipping to change at line 10158 | skipping to change at line 10348 | |||
sco3.2v5*) | sco3.2v5*) | |||
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |||
;; | ;; | |||
esac | esac | |||
fi | fi | |||
sys_lib_dlsearch_path_spec='/usr/lib' | sys_lib_dlsearch_path_spec='/usr/lib' | |||
;; | ;; | |||
tpf*) | tpf*) | |||
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
need_lib_prefix=no | need_lib_prefix=no | |||
need_version=no | need_version=no | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
shlibpath_overrides_runpath=no | shlibpath_overrides_runpath=no | |||
hardcode_into_libs=yes | hardcode_into_libs=yes | |||
;; | ;; | |||
uts4*) | uts4*) | |||
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor | |||
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major $libname${shared_ext}' | |||
soname_spec='${libname}${release}${shared_ext}$major' | soname_spec='${libname}${release}${shared_ext}$major' | |||
shlibpath_var=LD_LIBRARY_PATH | shlibpath_var=LD_LIBRARY_PATH | |||
;; | ;; | |||
*) | *) | |||
dynamic_linker=no | dynamic_linker=no | |||
;; | ;; | |||
esac | esac | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |||
skipping to change at line 11140 | skipping to change at line 11330 | |||
if test "x$SUNCC" = "xyes"; then | if test "x$SUNCC" = "xyes"; then | |||
BASE_CFLAGS="-v" | BASE_CFLAGS="-v" | |||
else | else | |||
BASE_CFLAGS="" | BASE_CFLAGS="" | |||
fi | fi | |||
# This chunk of warnings were those that existed in the legacy CWARNFLAGS | # This chunk of warnings were those that existed in the legacy CWARNFLAGS | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11187 | skipping to change at line 11377 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wall" | CFLAGS="$CFLAGS -Wall" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wall" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wall" >&5 | |||
$as_echo_n "checking if $CC supports -Wall... " >&6; } | $as_echo_n "checking if $CC supports -Wall... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wall` | cacheid=xorg_cv_cc_flag__Wall | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wall" | BASE_CFLAGS="$BASE_CFLAGS -Wall" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11290 | skipping to change at line 11480 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wpointer-arith" | CFLAGS="$CFLAGS -Wpointer-arith" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wpointer-arith" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wpointer-arith" >&5 | |||
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` | cacheid=xorg_cv_cc_flag__Wpointer_arith | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" | BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11393 | skipping to change at line 11583 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wstrict-prototypes" | CFLAGS="$CFLAGS -Wmissing-declarations" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wstrict-prototypes" >&5 | ports -Wmissing-declarations" >&5 | |||
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } | $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` | cacheid=xorg_cv_cc_flag__Wmissing_declarations | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11496 | skipping to change at line 11686 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmissing-prototypes" | CFLAGS="$CFLAGS -Wformat=2" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wmissing-prototypes" >&5 | ports -Wformat=2" >&5 | |||
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } | $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` | cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" | BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" | |||
found="yes" | ||||
fi | ||||
fi | ||||
if test $found = "no" ; then | ||||
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" | ||||
; then | ||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | ||||
fi | ||||
if test "x$xorg_testset_cc_unused_command_line_argument" = " | ||||
xyes" ; then | ||||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument | ||||
" | ||||
fi | ||||
CFLAGS="$CFLAGS -Wformat" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | ||||
ports -Wformat" >&5 | ||||
$as_echo_n "checking if $CC supports -Wformat... " >&6; } | ||||
cacheid=xorg_cv_cc_flag__Wformat | ||||
if eval \${$cacheid+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
int i; | ||||
int | ||||
main () | ||||
{ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
eval $cacheid=yes | ||||
else | ||||
eval $cacheid=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
fi | ||||
CFLAGS="$xorg_testset_save_CFLAGS" | ||||
eval supported=\$$cacheid | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" | ||||
>&5 | ||||
$as_echo "$supported" >&6; } | ||||
if test "$supported" = "yes" ; then | ||||
BASE_CFLAGS="$BASE_CFLAGS -Wformat" | ||||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11599 | skipping to change at line 11837 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmissing-declarations" | CFLAGS="$CFLAGS -Wstrict-prototypes" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wmissing-declarations" >&5 | ports -Wstrict-prototypes" >&5 | |||
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } | $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` | cacheid=xorg_cv_cc_flag__Wstrict_prototypes | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" | BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11702 | skipping to change at line 11940 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wnested-externs" | CFLAGS="$CFLAGS -Wmissing-prototypes" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wnested-externs" >&5 | ports -Wmissing-prototypes" >&5 | |||
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } | $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` | cacheid=xorg_cv_cc_flag__Wmissing_prototypes | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11805 | skipping to change at line 12043 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wbad-function-cast" | CFLAGS="$CFLAGS -Wnested-externs" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wbad-function-cast" >&5 | ports -Wnested-externs" >&5 | |||
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } | $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` | cacheid=xorg_cv_cc_flag__Wnested_externs | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" | BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 11908 | skipping to change at line 12146 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" | |||
hen | ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | ||||
fi | ||||
if test "x$xorg_testset_unused_command_line_argument" = "xye | ||||
s" ; then | ||||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument | ||||
" | ||||
fi | ||||
CFLAGS="$CFLAGS -Wformat=2" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | ||||
ports -Wformat=2" >&5 | ||||
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } | ||||
cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` | ||||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | ||||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
int i; | ||||
int | ||||
main () | ||||
{ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | ||||
else | ||||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
fi | ||||
CFLAGS="$xorg_testset_save_CFLAGS" | ||||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" | ||||
>&5 | ||||
$as_echo "$supported" >&6; } | ||||
if test "$supported" = "yes" ; then | ||||
BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" | ||||
found="yes" | ||||
fi | ||||
fi | ||||
if test $found = "no" ; then | ||||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t | ||||
hen | ||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wformat" | CFLAGS="$CFLAGS -Wbad-function-cast" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wformat" >&5 | ports -Wbad-function-cast" >&5 | |||
$as_echo_n "checking if $CC supports -Wformat... " >&6; } | $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` | cacheid=xorg_cv_cc_flag__Wbad_function_cast | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wformat" | BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12059 | skipping to change at line 12249 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wold-style-definition" | CFLAGS="$CFLAGS -Wold-style-definition" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wold-style-definition" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wold-style-definition" >&5 | |||
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } | $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` | cacheid=xorg_cv_cc_flag__Wold_style_definition | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" | BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test $found = "no" ; then | ||||
if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" | ||||
; then | ||||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | ||||
fi | ||||
if test "x$xorg_testset_cc_unused_command_line_argument" = " | ||||
xyes" ; then | ||||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument | ||||
" | ||||
fi | ||||
CFLAGS="$CFLAGS -fd" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | ||||
ports -fd" >&5 | ||||
$as_echo_n "checking if $CC supports -fd... " >&6; } | ||||
cacheid=xorg_cv_cc_flag__fd | ||||
if eval \${$cacheid+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
int i; | ||||
int | ||||
main () | ||||
{ | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
eval $cacheid=yes | ||||
else | ||||
eval $cacheid=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
fi | ||||
CFLAGS="$xorg_testset_save_CFLAGS" | ||||
eval supported=\$$cacheid | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" | ||||
>&5 | ||||
$as_echo "$supported" >&6; } | ||||
if test "$supported" = "yes" ; then | ||||
BASE_CFLAGS="$BASE_CFLAGS -fd" | ||||
found="yes" | ||||
fi | ||||
fi | ||||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12162 | skipping to change at line 12400 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wdeclaration-after-statement" | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wdeclaration-after-statement" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wdeclaration-after-statement" >&5 | |||
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6 ; } | $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6 ; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statem | cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement | |||
ent` | if eval \${$cacheid+:} false; then : | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | ||||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statem ent" | BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statem ent" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
# This chunk adds additional warnings that could catch undesired effects. | # This chunk adds additional warnings that could catch undesired effects. | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12267 | skipping to change at line 12505 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wunused" | CFLAGS="$CFLAGS -Wunused" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wunused" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wunused" >&5 | |||
$as_echo_n "checking if $CC supports -Wunused... " >&6; } | $as_echo_n "checking if $CC supports -Wunused... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` | cacheid=xorg_cv_cc_flag__Wunused | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wunused" | BASE_CFLAGS="$BASE_CFLAGS -Wunused" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12370 | skipping to change at line 12608 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wuninitialized" | CFLAGS="$CFLAGS -Wuninitialized" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wuninitialized" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wuninitialized" >&5 | |||
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` | cacheid=xorg_cv_cc_flag__Wuninitialized | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" | BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12473 | skipping to change at line 12711 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wshadow" | CFLAGS="$CFLAGS -Wshadow" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wshadow" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wshadow" >&5 | |||
$as_echo_n "checking if $CC supports -Wshadow... " >&6; } | $as_echo_n "checking if $CC supports -Wshadow... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` | cacheid=xorg_cv_cc_flag__Wshadow | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wshadow" | BASE_CFLAGS="$BASE_CFLAGS -Wshadow" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12576 | skipping to change at line 12814 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wcast-qual" | CFLAGS="$CFLAGS -Wmissing-noreturn" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wcast-qual" >&5 | ports -Wmissing-noreturn" >&5 | |||
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } | $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` | cacheid=xorg_cv_cc_flag__Wmissing_noreturn | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12679 | skipping to change at line 12917 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmissing-noreturn" | CFLAGS="$CFLAGS -Wmissing-format-attribute" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wmissing-noreturn" >&5 | ports -Wmissing-format-attribute" >&5 | |||
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } | $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` | cacheid=xorg_cv_cc_flag__Wmissing_format_attribute | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute " | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12782 | skipping to change at line 13020 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmissing-format-attribute" | CFLAGS="$CFLAGS -Wredundant-decls" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wmissing-format-attribute" >&5 | ports -Wredundant-decls" >&5 | |||
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } | $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute | cacheid=xorg_cv_cc_flag__Wredundant_decls | |||
` | if eval \${$cacheid+:} false; then : | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | ||||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute " | BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 12885 | skipping to change at line 13123 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wredundant-decls" | CFLAGS="$CFLAGS -Wlogical-op" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup | |||
ports -Wredundant-decls" >&5 | ports -Wlogical-op" >&5 | |||
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } | $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` | cacheid=xorg_cv_cc_flag__Wlogical_op | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" | BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
# These are currently disabled because they are noisy. They will be enable d | # These are currently disabled because they are noisy. They will be enable d | |||
# in the future once the codebase is sufficiently modernized to silence | # in the future once the codebase is sufficiently modernized to silence | |||
# them. For now, I don't want them to drown out the other warnings. | # them. For now, I don't want them to drown out the other warnings. | |||
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) | |||
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) | |||
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) | # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) | |||
# Turn some warnings into errors, so we don't accidently get successful bui lds | # Turn some warnings into errors, so we don't accidently get successful bui lds | |||
# when there are problems that should be fixed. | # when there are problems that should be fixed. | |||
if test "x$SELECTIVE_WERROR" = "xyes" ; then | if test "x$SELECTIVE_WERROR" = "xyes" ; then | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13000 | skipping to change at line 13238 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=implicit" | CFLAGS="$CFLAGS -Werror=implicit" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=implicit" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=implicit" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } | $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_t | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | r_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" | BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E _NO_IMPLICIT_DECL_ALLOWED" | CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E _NO_IMPLICIT_DECL_ALLOWED" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED " >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED " >&5 | |||
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -err warn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } | $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -err warn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYP | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TY | |||
E_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` | PE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYP E_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYP E_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13151 | skipping to change at line 13389 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=nonnull" | CFLAGS="$CFLAGS -Werror=nonnull" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=nonnull" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=nonnull" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } | $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | _sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" | BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13254 | skipping to change at line 13492 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=init-self" | CFLAGS="$CFLAGS -Werror=init-self" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=init-self" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=init-self" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } | $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_ | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" | BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13357 | skipping to change at line 13595 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=main" | CFLAGS="$CFLAGS -Werror=main" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=main" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=main" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=main... " >&6; } | $as_echo_n "checking if $CC supports -Werror=main... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | ` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=main" | BASE_CFLAGS="$BASE_CFLAGS -Werror=main" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13460 | skipping to change at line 13698 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=missing-braces" | CFLAGS="$CFLAGS -Werror=missing-braces" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=missing-braces" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=missing-braces" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } | $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | $as_tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" | BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13563 | skipping to change at line 13801 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=sequence-point" | CFLAGS="$CFLAGS -Werror=sequence-point" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=sequence-point" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=sequence-point" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } | $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | $as_tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" | BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13666 | skipping to change at line 13904 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=return-type" | CFLAGS="$CFLAGS -Werror=return-type" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=return-type" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=return-type" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } | $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $a | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | s_tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" | BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" | CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 | |||
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } | $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RET | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RE | |||
URN_STMT` | TURN_STMT" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RET URN_STMT" | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RET URN_STMT" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13817 | skipping to change at line 14055 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=trigraphs" | CFLAGS="$CFLAGS -Werror=trigraphs" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=trigraphs" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=trigraphs" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } | $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_ | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" | BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 13920 | skipping to change at line 14158 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=array-bounds" | CFLAGS="$CFLAGS -Werror=array-bounds" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=array-bounds" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=array-bounds" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } | $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $ | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | as_tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" | BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14023 | skipping to change at line 14261 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=write-strings" | CFLAGS="$CFLAGS -Werror=write-strings" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=write-strings" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=write-strings" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } | $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | $as_tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" | BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14126 | skipping to change at line 14364 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=address" | CFLAGS="$CFLAGS -Werror=address" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=address" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=address" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=address... " >&6; } | $as_echo_n "checking if $CC supports -Werror=address... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | _sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=address" | BASE_CFLAGS="$BASE_CFLAGS -Werror=address" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14229 | skipping to change at line 14467 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" | CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=int-to-pointer-cast" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=int-to-pointer-cast" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } | $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cas | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-ca | |||
t` | st" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cas t" | BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cas t" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" | CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 | |||
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } | $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COM | cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_CO | |||
BINATION` | MBINATION" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COM BINATION" | BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COM BINATION" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14380 | skipping to change at line 14618 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" | CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=pointer-to-int-cast" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=pointer-to-int-cast" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } | $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cas | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-ca | |||
t` | st" | $as_tr_sh` | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cas t" | BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cas t" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
# Also -errwarn=E_BAD_PTR_INT_COMBINATION | # Also -errwarn=E_BAD_PTR_INT_COMBINATION | |||
else | else | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to tu rn 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_BUGREP ORT" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to tu rn 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_BUGREP ORT" >&5 | |||
$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 yo u needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} | $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 yo u needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14488 | skipping to change at line 14726 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wimplicit" | CFLAGS="$CFLAGS -Wimplicit" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wimplicit" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wimplicit" >&5 | |||
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } | $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` | cacheid=xorg_cv_cc_flag__Wimplicit | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" | BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14591 | skipping to change at line 14829 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wnonnull" | CFLAGS="$CFLAGS -Wnonnull" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wnonnull" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wnonnull" >&5 | |||
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } | $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` | cacheid=xorg_cv_cc_flag__Wnonnull | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" | BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14694 | skipping to change at line 14932 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Winit-self" | CFLAGS="$CFLAGS -Winit-self" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Winit-self" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Winit-self" >&5 | |||
$as_echo_n "checking if $CC supports -Winit-self... " >&6; } | $as_echo_n "checking if $CC supports -Winit-self... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` | cacheid=xorg_cv_cc_flag__Winit_self | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Winit-self" | BASE_CFLAGS="$BASE_CFLAGS -Winit-self" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14797 | skipping to change at line 15035 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmain" | CFLAGS="$CFLAGS -Wmain" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wmain" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wmain" >&5 | |||
$as_echo_n "checking if $CC supports -Wmain... " >&6; } | $as_echo_n "checking if $CC supports -Wmain... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` | cacheid=xorg_cv_cc_flag__Wmain | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmain" | BASE_CFLAGS="$BASE_CFLAGS -Wmain" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 14900 | skipping to change at line 15138 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wmissing-braces" | CFLAGS="$CFLAGS -Wmissing-braces" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wmissing-braces" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wmissing-braces" >&5 | |||
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } | $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` | cacheid=xorg_cv_cc_flag__Wmissing_braces | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" | BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15003 | skipping to change at line 15241 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wsequence-point" | CFLAGS="$CFLAGS -Wsequence-point" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wsequence-point" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wsequence-point" >&5 | |||
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } | $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` | cacheid=xorg_cv_cc_flag__Wsequence_point | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" | BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15106 | skipping to change at line 15344 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wreturn-type" | CFLAGS="$CFLAGS -Wreturn-type" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wreturn-type" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wreturn-type" >&5 | |||
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } | $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` | cacheid=xorg_cv_cc_flag__Wreturn_type | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" | BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15209 | skipping to change at line 15447 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wtrigraphs" | CFLAGS="$CFLAGS -Wtrigraphs" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wtrigraphs" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wtrigraphs" >&5 | |||
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } | $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` | cacheid=xorg_cv_cc_flag__Wtrigraphs | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" | BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15312 | skipping to change at line 15550 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Warray-bounds" | CFLAGS="$CFLAGS -Warray-bounds" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Warray-bounds" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Warray-bounds" >&5 | |||
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } | $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` | cacheid=xorg_cv_cc_flag__Warray_bounds | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" | BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15415 | skipping to change at line 15653 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wwrite-strings" | CFLAGS="$CFLAGS -Wwrite-strings" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wwrite-strings" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wwrite-strings" >&5 | |||
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } | $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` | cacheid=xorg_cv_cc_flag__Wwrite_strings | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" | BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15518 | skipping to change at line 15756 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Waddress" | CFLAGS="$CFLAGS -Waddress" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Waddress" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Waddress" >&5 | |||
$as_echo_n "checking if $CC supports -Waddress... " >&6; } | $as_echo_n "checking if $CC supports -Waddress... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` | cacheid=xorg_cv_cc_flag__Waddress | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Waddress" | BASE_CFLAGS="$BASE_CFLAGS -Waddress" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15621 | skipping to change at line 15859 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wint-to-pointer-cast" | CFLAGS="$CFLAGS -Wint-to-pointer-cast" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wint-to-pointer-cast" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wint-to-pointer-cast" >&5 | |||
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } | $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` | cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" | BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15724 | skipping to change at line 15962 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Wpointer-to-int-cast" | CFLAGS="$CFLAGS -Wpointer-to-int-cast" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wpointer-to-int-cast" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Wpointer-to-int-cast" >&5 | |||
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } | $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` | cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" | BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
fi | fi | |||
CWARNFLAGS="$BASE_CFLAGS" | CWARNFLAGS="$BASE_CFLAGS" | |||
if test "x$GCC" = xyes ; then | if test "x$GCC" = xyes ; then | |||
CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" | CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" | |||
fi | fi | |||
# Check whether --enable-strict-compilation was given. | # Check whether --enable-strict-compilation was given. | |||
if test "${enable_strict_compilation+set}" = set; then : | if test "${enable_strict_compilation+set}" = set; then : | |||
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval | enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval | |||
else | else | |||
STRICT_COMPILE=no | STRICT_COMPILE=no | |||
fi | fi | |||
STRICT_CFLAGS="" | STRICT_CFLAGS="" | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15843 | skipping to change at line 16081 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -pedantic" | CFLAGS="$CFLAGS -pedantic" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -pedantic" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -pedantic" >&5 | |||
$as_echo_n "checking if $CC supports -pedantic... " >&6; } | $as_echo_n "checking if $CC supports -pedantic... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` | cacheid=xorg_cv_cc_flag__pedantic | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" | STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 15946 | skipping to change at line 16184 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror" | CFLAGS="$CFLAGS -Werror" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror" >&5 | |||
$as_echo_n "checking if $CC supports -Werror... " >&6; } | $as_echo_n "checking if $CC supports -Werror... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror` | cacheid=xorg_cv_cc_flag__Werror | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
STRICT_CFLAGS="$STRICT_CFLAGS -Werror" | STRICT_CFLAGS="$STRICT_CFLAGS -Werror" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -errwarn" | CFLAGS="$CFLAGS -errwarn" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -errwarn" >&5 | |||
$as_echo_n "checking if $CC supports -errwarn... " >&6; } | $as_echo_n "checking if $CC supports -errwarn... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` | cacheid=xorg_cv_cc_flag__errwarn | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | if eval \${$cacheid+:} false; then : | |||
ar+:} false; }; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" | STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not | # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not | |||
# activate it with -Werror, so we add it here explicitly. | # activate it with -Werror, so we add it here explicitly. | |||
xorg_testset_save_CFLAGS="$CFLAGS" | xorg_testset_save_CFLAGS="$CFLAGS" | |||
if test "x$xorg_testset_unknown_warning_option" = "x" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unknown-warning-option" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >& 6; } | |||
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unknown_warning_option=yes | xorg_cv_cc_flag_unknown_warning_option=yes | |||
else | else | |||
xorg_cv_cc_flag_unknown_warning_option=no | xorg_cv_cc_flag_unknown_warning_option=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_w arning_option" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } | |||
xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning _option | xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warn ing_option | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | CFLAGS="$CFLAGS -Werror=unused-command-line-argument" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -W error=unused-command-line-argument" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument.. . " >&6; } | |||
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
skipping to change at line 16100 | skipping to change at line 16338 | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | |||
xorg_cv_cc_flag_unused_command_line_argument=yes | xorg_cv_cc_flag_unused_command_line_argument=yes | |||
else | else | |||
xorg_cv_cc_flag_unused_command_line_argument=no | xorg_cv_cc_flag_unused_command_line_argument=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||
fi | fi | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_co mmand_line_argument" >&5 | |||
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } | |||
xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_co mmand_line_argument | xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused _command_line_argument | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
fi | fi | |||
found="no" | found="no" | |||
if test $found = "no" ; then | if test $found = "no" ; then | |||
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; t hen | if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unknown-warning-option" | CFLAGS="$CFLAGS -Werror=unknown-warning-option" | |||
fi | fi | |||
if test "x$xorg_testset_unused_command_line_argument" = "xye s" ; then | if test "x$xorg_testset_cc_unused_command_line_argument" = " xyes" ; then | |||
CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | CFLAGS="$CFLAGS -Werror=unused-command-line-argument " | |||
fi | fi | |||
CFLAGS="$CFLAGS -Werror=attributes" | CFLAGS="$CFLAGS -Werror=attributes" | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=attributes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC sup ports -Werror=attributes" >&5 | |||
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } | $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } | |||
cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` | cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as | |||
if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_v | _tr_sh` | |||
ar+:} false; }; then : | if eval \${$cacheid+:} false; then : | |||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | |||
else | else | |||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
/* end confdefs.h. */ | /* end confdefs.h. */ | |||
int i; | int i; | |||
int | int | |||
main () | main () | |||
{ | { | |||
; | ; | |||
return 0; | return 0; | |||
} | } | |||
_ACEOF | _ACEOF | |||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=yes | eval $cacheid=yes | |||
else | else | |||
eval `$as_echo "$cacheid" | $as_tr_sh`=no | eval $cacheid=no | |||
fi | fi | |||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | |||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | |||
fi | fi | |||
CFLAGS="$xorg_testset_save_CFLAGS" | CFLAGS="$xorg_testset_save_CFLAGS" | |||
eval supported=$`$as_echo "$cacheid" | $as_tr_sh` | eval supported=\$$cacheid | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 | |||
$as_echo "$supported" >&6; } | $as_echo "$supported" >&6; } | |||
if test "$supported" = "yes" ; then | if test "$supported" = "yes" ; then | |||
STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" | STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" | |||
found="yes" | found="yes" | |||
fi | fi | |||
fi | fi | |||
if test "x$STRICT_COMPILE" = "xyes"; then | if test "x$STRICT_COMPILE" = "xyes"; then | |||
BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" | BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" | |||
skipping to change at line 16267 | skipping to change at line 16505 | |||
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ | -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ | |||
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ | -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ | |||
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ | -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ | |||
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" | -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" | |||
# Check whether --enable-silent-rules was given. | # Check whether --enable-silent-rules was given. | |||
if test "${enable_silent_rules+set}" = set; then : | if test "${enable_silent_rules+set}" = set; then : | |||
enableval=$enable_silent_rules; | enableval=$enable_silent_rules; | |||
fi | fi | |||
case $enable_silent_rules in | case $enable_silent_rules in # ((( | |||
yes) AM_DEFAULT_VERBOSITY=0;; | yes) AM_DEFAULT_VERBOSITY=0;; | |||
no) AM_DEFAULT_VERBOSITY=1;; | no) AM_DEFAULT_VERBOSITY=1;; | |||
*) AM_DEFAULT_VERBOSITY=0;; | *) AM_DEFAULT_VERBOSITY=0;; | |||
esac | esac | |||
am_make=${MAKE-make} | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports | ||||
nested variables" >&5 | ||||
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } | ||||
if ${am_cv_make_support_nested_variables+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
if $as_echo 'TRUE=$(BAR$(V)) | ||||
BAR0=false | ||||
BAR1=true | ||||
V=1 | ||||
am__doit: | ||||
@$(TRUE) | ||||
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | ||||
am_cv_make_support_nested_variables=yes | ||||
else | ||||
am_cv_make_support_nested_variables=no | ||||
fi | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested | ||||
_variables" >&5 | ||||
$as_echo "$am_cv_make_support_nested_variables" >&6; } | ||||
if test $am_cv_make_support_nested_variables = yes; then | ||||
AM_V='$(V)' | ||||
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | ||||
else | ||||
AM_V=$AM_DEFAULT_VERBOSITY | ||||
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | ||||
fi | ||||
AM_BACKSLASH='\' | AM_BACKSLASH='\' | |||
# Check whether --enable-docs was given. | # Check whether --enable-docs was given. | |||
if test "${enable_docs+set}" = set; then : | if test "${enable_docs+set}" = set; then : | |||
enableval=$enable_docs; build_docs=$enableval | enableval=$enable_docs; build_docs=$enableval | |||
else | else | |||
build_docs=yes | build_docs=yes | |||
fi | fi | |||
if test x$build_docs = xyes; then | if test x$build_docs = xyes; then | |||
skipping to change at line 16838 | skipping to change at line 17103 | |||
See \`config.log' for more details" "$LINENO" 5; } | See \`config.log' for more details" "$LINENO" 5; } | |||
else | else | |||
ICE_CFLAGS=$pkg_cv_ICE_CFLAGS | ICE_CFLAGS=$pkg_cv_ICE_CFLAGS | |||
ICE_LIBS=$pkg_cv_ICE_LIBS | ICE_LIBS=$pkg_cv_ICE_LIBS | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |||
$as_echo "yes" >&6; } | $as_echo "yes" >&6; } | |||
: | : | |||
fi | fi | |||
# Transport selection macro from xtrans.m4 | # Transport selection macro from xtrans.m4 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal han | ||||
dlers" >&5 | ||||
$as_echo_n "checking return type of signal handlers... " >&6; } | ||||
if ${ac_cv_type_signal+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
#include <sys/types.h> | ||||
#include <signal.h> | ||||
int | ||||
main () | ||||
{ | ||||
return *(signal (0, 0)) (0) == 1; | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | ||||
ac_cv_type_signal=int | ||||
else | ||||
ac_cv_type_signal=void | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | ||||
$as_echo "$ac_cv_type_signal" >&6; } | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define RETSIGTYPE $ac_cv_type_signal | ||||
_ACEOF | ||||
case $host_os in | case $host_os in | |||
mingw*) unixdef="no" ;; | mingw*) unixdef="no" ;; | |||
*) unixdef="yes" ;; | *) unixdef="yes" ;; | |||
esac | esac | |||
# Check whether --enable-unix-transport was given. | # Check whether --enable-unix-transport was given. | |||
if test "${enable_unix_transport+set}" = set; then : | if test "${enable_unix_transport+set}" = set; then : | |||
enableval=$enable_unix_transport; UNIXCONN=$enableval | enableval=$enable_unix_transport; UNIXCONN=$enableval | |||
else | else | |||
UNIXCONN=$unixdef | UNIXCONN=$unixdef | |||
skipping to change at line 17056 | skipping to change at line 17290 | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >& 5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >& 5 | |||
$as_echo "$ac_cv_lib_ws2_32_main" >&6; } | $as_echo "$ac_cv_lib_ws2_32_main" >&6; } | |||
if test "x$ac_cv_lib_ws2_32_main" = xyes; then : | if test "x$ac_cv_lib_ws2_32_main" = xyes; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define HAVE_LIBWS2_32 1 | #define HAVE_LIBWS2_32 1 | |||
_ACEOF | _ACEOF | |||
LIBS="-lws2_32 $LIBS" | LIBS="-lws2_32 $LIBS" | |||
fi | fi | |||
ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main | ||||
fi | fi | |||
# Needs to come after above checks for libsocket & libnsl for SVR4 systems | # Needs to come after above checks for libsocket & libnsl for SVR4 systems | |||
# Check whether --enable-ipv6 was given. | # Check whether --enable-ipv6 was given. | |||
if test "${enable_ipv6+set}" = set; then : | if test "${enable_ipv6+set}" = set; then : | |||
enableval=$enable_ipv6; IPV6CONN=$enableval | enableval=$enable_ipv6; IPV6CONN=$enableval | |||
else | else | |||
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" | ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" | |||
if test "x$ac_cv_func_getaddrinfo" = xyes; then : | if test "x$ac_cv_func_getaddrinfo" = xyes; then : | |||
skipping to change at line 17110 | skipping to change at line 17343 | |||
#include <sys/socket.h> | #include <sys/socket.h> | |||
" | " | |||
if test "x$ac_cv_type_socklen_t" = xyes; then : | if test "x$ac_cv_type_socklen_t" = xyes; then : | |||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define HAVE_SOCKLEN_T 1 | #define HAVE_SOCKLEN_T 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
# XPG4v2/UNIX95 added msg_control - check to see if we need to define | ||||
# _XOPEN_SOURCE to get it (such as on Solaris) | ||||
ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member | ||||
_struct_msghdr_msg_control" " | ||||
$ac_includes_default | ||||
#include <sys/socket.h> | ||||
" | ||||
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | ||||
fi | ||||
# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 | ||||
if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then | ||||
unset ac_cv_member_struct_msghdr_msg_control | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOUR | ||||
CE=600" >&5 | ||||
$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} | ||||
ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_me | ||||
mber_struct_msghdr_msg_control" " | ||||
#define _XOPEN_SOURCE 600 | ||||
$ac_includes_default | ||||
#include <sys/socket.h> | ||||
" | ||||
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | ||||
$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h | ||||
fi | ||||
fi | ||||
# If that didn't work, fall back to XPG5/UNIX98 with C89 | ||||
if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then | ||||
unset ac_cv_member_struct_msghdr_msg_control | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOUR | ||||
CE=500" >&5 | ||||
$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} | ||||
ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_me | ||||
mber_struct_msghdr_msg_control" " | ||||
#define _XOPEN_SOURCE 500 | ||||
$ac_includes_default | ||||
#include <sys/socket.h> | ||||
" | ||||
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | ||||
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h | ||||
fi | ||||
fi | ||||
fi | fi | |||
case $host_os in | case $host_os in | |||
solaris*|sco*|sysv4*) localdef="yes" ;; | solaris*|sco*|sysv4*) localdef="yes" ;; | |||
*) localdef="no" ;; | *) localdef="no" ;; | |||
esac | esac | |||
# Check whether --enable-local-transport was given. | # Check whether --enable-local-transport was given. | |||
if test "${enable_local_transport+set}" = set; then : | if test "${enable_local_transport+set}" = set; then : | |||
enableval=$enable_local_transport; LOCALCONN=$enableval | enableval=$enable_local_transport; LOCALCONN=$enableval | |||
else | else | |||
LOCALCONN=$localdef | LOCALCONN=$localdef | |||
skipping to change at line 17135 | skipping to change at line 17416 | |||
$as_echo "$LOCALCONN" >&6; } | $as_echo "$LOCALCONN" >&6; } | |||
if test "$LOCALCONN" = "yes"; then | if test "$LOCALCONN" = "yes"; then | |||
$as_echo "#define LOCALCONN 1" >>confdefs.h | $as_echo "#define LOCALCONN 1" >>confdefs.h | |||
fi | fi | |||
$as_echo "#define ICE_t 1" >>confdefs.h | $as_echo "#define ICE_t 1" >>confdefs.h | |||
# Checks for library functions. | # Checks for library functions. | |||
for ac_func in asprintf | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lb | |||
sd" >&5 | ||||
$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } | ||||
if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | ||||
else | ||||
ac_check_lib_save_LIBS=$LIBS | ||||
LIBS="-lbsd $LIBS" | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | ||||
/* Override any GCC internal prototype to avoid an error. | ||||
Use char because int might match the return type of a GCC | ||||
builtin and then its argument prototype would still apply. */ | ||||
#ifdef __cplusplus | ||||
extern "C" | ||||
#endif | ||||
char arc4random_buf (); | ||||
int | ||||
main () | ||||
{ | ||||
return arc4random_buf (); | ||||
; | ||||
return 0; | ||||
} | ||||
_ACEOF | ||||
if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_cv_lib_bsd_arc4random_buf=yes | ||||
else | ||||
ac_cv_lib_bsd_arc4random_buf=no | ||||
fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | ||||
LIBS=$ac_check_lib_save_LIBS | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_ | ||||
buf" >&5 | ||||
$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } | ||||
if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_LIBBSD 1 | ||||
_ACEOF | ||||
LIBS="-lbsd $LIBS" | ||||
fi | ||||
for ac_func in asprintf arc4random_buf | ||||
do : | do : | |||
ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |||
if test "x$ac_cv_func_asprintf" = xyes; then : | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | |||
#define HAVE_ASPRINTF 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |||
_ACEOF | _ACEOF | |||
fi | fi | |||
done | done | |||
# Allow checking code with lint, sparse, etc. | # Allow checking code with lint, sparse, etc. | |||
# Check whether --with-lint was given. | # Check whether --with-lint was given. | |||
if test "${with_lint+set}" = set; then : | if test "${with_lint+set}" = set; then : | |||
withval=$with_lint; use_lint=$withval | withval=$with_lint; use_lint=$withval | |||
skipping to change at line 17376 | skipping to change at line 17703 | |||
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |||
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |||
# will be set to the directory where LIBOBJS objects are built. | # will be set to the directory where LIBOBJS objects are built. | |||
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |||
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |||
done | done | |||
LIBOBJS=$ac_libobjs | LIBOBJS=$ac_libobjs | |||
LTLIBOBJS=$ac_ltlibobjs | LTLIBOBJS=$ac_ltlibobjs | |||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are | ||||
newer than configure" >&5 | ||||
$as_echo_n "checking that generated files are newer than configure... " >&6 | ||||
; } | ||||
if test -n "$am_sleep_pid"; then | ||||
# Hide warnings about reused PIDs. | ||||
wait $am_sleep_pid 2>/dev/null | ||||
fi | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | ||||
$as_echo "done" >&6; } | ||||
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |||
as_fn_error $? "conditional \"AMDEP\" was never defined. | as_fn_error $? "conditional \"AMDEP\" was never defined. | |||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |||
fi | fi | |||
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; the n | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; the n | |||
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |||
fi | fi | |||
if test -n "$EXEEXT"; then | if test -n "$EXEEXT"; then | |||
am__EXEEXT_TRUE= | am__EXEEXT_TRUE= | |||
am__EXEEXT_FALSE='#' | am__EXEEXT_FALSE='#' | |||
else | else | |||
am__EXEEXT_TRUE='#' | am__EXEEXT_TRUE='#' | |||
am__EXEEXT_FALSE= | am__EXEEXT_FALSE= | |||
fi | fi | |||
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; | ||||
then | ||||
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | ||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||||
fi | ||||
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then | if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then | |||
as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. | as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. | |||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |||
fi | fi | |||
if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then | if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then | |||
as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. | as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. | |||
Usually this means the macro was only invoked conditionally." "$LINENO" 5 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |||
fi | fi | |||
if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then | if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then | |||
as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. | as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. | |||
skipping to change at line 17833 | skipping to change at line 18164 | |||
## Main body of $CONFIG_STATUS script. ## | ## Main body of $CONFIG_STATUS script. ## | |||
## ----------------------------------- ## | ## ----------------------------------- ## | |||
_ASEOF | _ASEOF | |||
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |||
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
# Save the log message, to keep $0 and so on meaningful, and to | # Save the log message, to keep $0 and so on meaningful, and to | |||
# report actual input values of CONFIG_FILES etc. instead of their | # report actual input values of CONFIG_FILES etc. instead of their | |||
# values after options handling. | # values after options handling. | |||
ac_log=" | ac_log=" | |||
This file was extended by libICE $as_me 1.0.8, which was | This file was extended by libICE $as_me 1.0.9, which was | |||
generated by GNU Autoconf 2.68. Invocation command line was | generated by GNU Autoconf 2.68. Invocation command line was | |||
CONFIG_FILES = $CONFIG_FILES | CONFIG_FILES = $CONFIG_FILES | |||
CONFIG_HEADERS = $CONFIG_HEADERS | CONFIG_HEADERS = $CONFIG_HEADERS | |||
CONFIG_LINKS = $CONFIG_LINKS | CONFIG_LINKS = $CONFIG_LINKS | |||
CONFIG_COMMANDS = $CONFIG_COMMANDS | CONFIG_COMMANDS = $CONFIG_COMMANDS | |||
$ $0 $@ | $ $0 $@ | |||
on `(hostname || uname -n) 2>/dev/null | sed 1q` | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |||
" | " | |||
skipping to change at line 17898 | skipping to change at line 18229 | |||
Configuration commands: | Configuration commands: | |||
$config_commands | $config_commands | |||
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." | Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." | |||
_ACEOF | _ACEOF | |||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\ \\&/g'`" | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\ \\&/g'`" | |||
ac_cs_version="\\ | ac_cs_version="\\ | |||
libICE config.status 1.0.8 | libICE config.status 1.0.9 | |||
configured by $0, generated by GNU Autoconf 2.68, | configured by $0, generated by GNU Autoconf 2.68, | |||
with options \\"\$ac_cs_config\\" | with options \\"\$ac_cs_config\\" | |||
Copyright (C) 2010 Free Software Foundation, Inc. | Copyright (C) 2010 Free Software Foundation, Inc. | |||
This config.status script is free software; the Free Software Foundation | This config.status script is free software; the Free Software Foundation | |||
gives unlimited permission to copy, distribute and modify it." | gives unlimited permission to copy, distribute and modify it." | |||
ac_pwd='$ac_pwd' | ac_pwd='$ac_pwd' | |||
srcdir='$srcdir' | srcdir='$srcdir' | |||
INSTALL='$INSTALL' | INSTALL='$INSTALL' | |||
skipping to change at line 18034 | skipping to change at line 18365 | |||
double_quote_subst='$double_quote_subst' | double_quote_subst='$double_quote_subst' | |||
delay_variable_subst='$delay_variable_subst' | delay_variable_subst='$delay_variable_subst' | |||
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |||
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst" `' | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst" `' | |||
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |||
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |||
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |||
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_qu ote_subst"`' | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_qu ote_subst"`' | |||
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |||
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |||
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst" `' | ||||
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |||
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |||
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |||
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |||
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |||
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |||
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |||
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |||
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |||
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |||
skipping to change at line 18116 | skipping to change at line 18448 | |||
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$del ay_single_quote_subst"`' | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$del ay_single_quote_subst"`' | |||
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $S ED "$delay_single_quote_subst"`' | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $S ED "$delay_single_quote_subst"`' | |||
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |||
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_qu ote_subst"`' | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_qu ote_subst"`' | |||
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |||
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quot e_subst"`' | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quot e_subst"`' | |||
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |||
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_ quote_subst"`' | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_ quote_subst"`' | |||
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_ subst"`' | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_ subst"`' | |||
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$del ay_single_quote_subst"`' | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$del ay_single_quote_subst"`' | |||
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | ||||
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$del ay_single_quote_subst"`' | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$del ay_single_quote_subst"`' | |||
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subs t"`' | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subs t"`' | |||
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay _single_quote_subst"`' | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay _single_quote_subst"`' | |||
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_su bst"`' | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_su bst"`' | |||
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_sin gle_quote_subst"`' | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_sin gle_quote_subst"`' | |||
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quot e_subst"`' | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quot e_subst"`' | |||
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |||
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_su bst"`' | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_su bst"`' | |||
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_singl e_quote_subst"`' | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_singl e_quote_subst"`' | |||
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_qu ote_subst"`' | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_qu ote_subst"`' | |||
skipping to change at line 18172 | skipping to change at line 18503 | |||
func_fallback_echo () | func_fallback_echo () | |||
{ | { | |||
eval 'cat <<_LTECHO_EOF | eval 'cat <<_LTECHO_EOF | |||
\$1 | \$1 | |||
_LTECHO_EOF' | _LTECHO_EOF' | |||
} | } | |||
# Quote evaled strings. | # Quote evaled strings. | |||
for var in SHELL \ | for var in SHELL \ | |||
ECHO \ | ECHO \ | |||
PATH_SEPARATOR \ | ||||
SED \ | SED \ | |||
GREP \ | GREP \ | |||
EGREP \ | EGREP \ | |||
FGREP \ | FGREP \ | |||
LD \ | LD \ | |||
NM \ | NM \ | |||
LN_S \ | LN_S \ | |||
lt_SP2NL \ | lt_SP2NL \ | |||
lt_NL2SP \ | lt_NL2SP \ | |||
reload_flag \ | reload_flag \ | |||
skipping to change at line 18222 | skipping to change at line 18554 | |||
OTOOL \ | OTOOL \ | |||
OTOOL64 \ | OTOOL64 \ | |||
shrext_cmds \ | shrext_cmds \ | |||
export_dynamic_flag_spec \ | export_dynamic_flag_spec \ | |||
whole_archive_flag_spec \ | whole_archive_flag_spec \ | |||
compiler_needs_object \ | compiler_needs_object \ | |||
with_gnu_ld \ | with_gnu_ld \ | |||
allow_undefined_flag \ | allow_undefined_flag \ | |||
no_undefined_flag \ | no_undefined_flag \ | |||
hardcode_libdir_flag_spec \ | hardcode_libdir_flag_spec \ | |||
hardcode_libdir_flag_spec_ld \ | ||||
hardcode_libdir_separator \ | hardcode_libdir_separator \ | |||
exclude_expsyms \ | exclude_expsyms \ | |||
include_expsyms \ | include_expsyms \ | |||
file_list_spec \ | file_list_spec \ | |||
variables_saved_for_relink \ | variables_saved_for_relink \ | |||
libname_spec \ | libname_spec \ | |||
library_names_spec \ | library_names_spec \ | |||
soname_spec \ | soname_spec \ | |||
install_override_mode \ | install_override_mode \ | |||
finish_eval \ | finish_eval \ | |||
skipping to change at line 18897 | skipping to change at line 19228 | |||
s/.*/./; q'`/stamp-h$_am_stamp_count | s/.*/./; q'`/stamp-h$_am_stamp_count | |||
;; | ;; | |||
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands " >&5 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands " >&5 | |||
$as_echo "$as_me: executing $ac_file commands" >&6;} | $as_echo "$as_me: executing $ac_file commands" >&6;} | |||
;; | ;; | |||
esac | esac | |||
case $ac_file$ac_mode in | case $ac_file$ac_mode in | |||
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |||
# Autoconf 2.62 quotes --file arguments for eval, but not when files | # Older Autoconf quotes --file arguments for eval, but not when files | |||
# are listed without --file. Let's play safe and only enable the eval | # are listed without --file. Let's play safe and only enable the eval | |||
# if we detect the quoting. | # if we detect the quoting. | |||
case $CONFIG_FILES in | case $CONFIG_FILES in | |||
*\'*) eval set x "$CONFIG_FILES" ;; | *\'*) eval set x "$CONFIG_FILES" ;; | |||
*) set x $CONFIG_FILES ;; | *) set x $CONFIG_FILES ;; | |||
esac | esac | |||
shift | shift | |||
for mf | for mf | |||
do | do | |||
# Strip MF so we end up with the name of the file. | # Strip MF so we end up with the name of the file. | |||
mf=`echo "$mf" | sed -e 's/:.*$//'` | mf=`echo "$mf" | sed -e 's/:.*$//'` | |||
# Check whether this is an Automake generated Makefile or not. | # Check whether this is an Automake generated Makefile or not. | |||
# We used to match only the files named `Makefile.in', but | # We used to match only the files named 'Makefile.in', but | |||
# some people rename them; so instead we look at the file content. | # some people rename them; so instead we look at the file content. | |||
# Grep'ing the first line is not enough: some people post-process | # Grep'ing the first line is not enough: some people post-process | |||
# each Makefile.in and add a new line on top of each file to say so. | # each Makefile.in and add a new line on top of each file to say so. | |||
# Grep'ing the whole file is not good either: AIX grep has a line | # Grep'ing the whole file is not good either: AIX grep has a line | |||
# limit of 2048, but all sed's we know have understand at least 4000. | # limit of 2048, but all sed's we know have understand at least 4000. | |||
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |||
dirpart=`$as_dirname -- "$mf" || | dirpart=`$as_dirname -- "$mf" || | |||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |||
X"$mf" : 'X\(//\)[^/]' \| \ | X"$mf" : 'X\(//\)[^/]' \| \ | |||
X"$mf" : 'X\(//\)$' \| \ | X"$mf" : 'X\(//\)$' \| \ | |||
skipping to change at line 18944 | skipping to change at line 19275 | |||
} | } | |||
/^X\(\/\).*/{ | /^X\(\/\).*/{ | |||
s//\1/ | s//\1/ | |||
q | q | |||
} | } | |||
s/.*/./; q'` | s/.*/./; q'` | |||
else | else | |||
continue | continue | |||
fi | fi | |||
# Extract the definition of DEPDIR, am__include, and am__quote | # Extract the definition of DEPDIR, am__include, and am__quote | |||
# from the Makefile without running `make'. | # from the Makefile without running 'make'. | |||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |||
test -z "$DEPDIR" && continue | test -z "$DEPDIR" && continue | |||
am__include=`sed -n 's/^am__include = //p' < "$mf"` | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |||
test -z "am__include" && continue | test -z "$am__include" && continue | |||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |||
# When using ansi2knr, U may be empty or an underscore; expand it | ||||
U=`sed -n 's/^U = //p' < "$mf"` | ||||
# Find all dependency output files, they are included files with | # Find all dependency output files, they are included files with | |||
# $(DEPDIR) in their names. We invoke sed twice because it is the | # $(DEPDIR) in their names. We invoke sed twice because it is the | |||
# simplest approach to changing $(DEPDIR) to its actual value in the | # simplest approach to changing $(DEPDIR) to its actual value in the | |||
# expansion. | # expansion. | |||
for file in `sed -n " | for file in `sed -n " | |||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |||
# Make sure the directory exists. | # Make sure the directory exists. | |||
test -f "$dirpart/$file" && continue | test -f "$dirpart/$file" && continue | |||
fdir=`$as_dirname -- "$file" || | fdir=`$as_dirname -- "$file" || | |||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |||
X"$file" : 'X\(//\)[^/]' \| \ | X"$file" : 'X\(//\)[^/]' \| \ | |||
X"$file" : 'X\(//\)$' \| \ | X"$file" : 'X\(//\)$' \| \ | |||
X"$file" : 'X\(/\)' \| . 2>/dev/null || | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |||
$as_echo X"$file" | | $as_echo X"$file" | | |||
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |||
s//\1/ | s//\1/ | |||
skipping to change at line 19012 | skipping to change at line 19341 | |||
cat <<_LT_EOF >> "$cfgfile" | cat <<_LT_EOF >> "$cfgfile" | |||
#! $SHELL | #! $SHELL | |||
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |||
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |||
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |||
# NOTE: Changes made to this file will be lost: look at ltmain.sh. | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |||
# | # | |||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |||
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |||
# Inc. | # Foundation, Inc. | |||
# Written by Gordon Matzigkeit, 1996 | # Written by Gordon Matzigkeit, 1996 | |||
# | # | |||
# This file is part of GNU Libtool. | # This file is part of GNU Libtool. | |||
# | # | |||
# GNU Libtool is free software; you can redistribute it and/or | # GNU Libtool is free software; you can redistribute it and/or | |||
# modify it under the terms of the GNU General Public License as | # modify it under the terms of the GNU General Public License as | |||
# published by the Free Software Foundation; either version 2 of | # published by the Free Software Foundation; either version 2 of | |||
# the License, or (at your option) any later version. | # the License, or (at your option) any later version. | |||
# | # | |||
# As a special exception to the GNU General Public License, | # As a special exception to the GNU General Public License, | |||
skipping to change at line 19066 | skipping to change at line 19395 | |||
# Whether or not to optimize for fast installation. | # Whether or not to optimize for fast installation. | |||
fast_install=$enable_fast_install | fast_install=$enable_fast_install | |||
# Shell to use when invoking shell scripts. | # Shell to use when invoking shell scripts. | |||
SHELL=$lt_SHELL | SHELL=$lt_SHELL | |||
# An echo program that protects backslashes. | # An echo program that protects backslashes. | |||
ECHO=$lt_ECHO | ECHO=$lt_ECHO | |||
# The PATH separator for the build system. | ||||
PATH_SEPARATOR=$lt_PATH_SEPARATOR | ||||
# The host system. | # The host system. | |||
host_alias=$host_alias | host_alias=$host_alias | |||
host=$host | host=$host | |||
host_os=$host_os | host_os=$host_os | |||
# The build system. | # The build system. | |||
build_alias=$build_alias | build_alias=$build_alias | |||
build=$build | build=$build | |||
build_os=$build_os | build_os=$build_os | |||
skipping to change at line 19366 | skipping to change at line 19698 | |||
# Flag that allows shared libraries with undefined symbols to be built. | # Flag that allows shared libraries with undefined symbols to be built. | |||
allow_undefined_flag=$lt_allow_undefined_flag | allow_undefined_flag=$lt_allow_undefined_flag | |||
# Flag that enforces no undefined symbols. | # Flag that enforces no undefined symbols. | |||
no_undefined_flag=$lt_no_undefined_flag | no_undefined_flag=$lt_no_undefined_flag | |||
# Flag to hardcode \$libdir into a binary during linking. | # Flag to hardcode \$libdir into a binary during linking. | |||
# This must work even if \$libdir does not exist | # This must work even if \$libdir does not exist | |||
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |||
# If ld is used when linking, flag to hardcode \$libdir into a binary | ||||
# during linking. This must work even if \$libdir does not exist. | ||||
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||||
# Whether we need a single "-rpath" flag with a separated argument. | # Whether we need a single "-rpath" flag with a separated argument. | |||
hardcode_libdir_separator=$lt_hardcode_libdir_separator | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |||
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |||
# DIR into the resulting binary. | # DIR into the resulting binary. | |||
hardcode_direct=$hardcode_direct | hardcode_direct=$hardcode_direct | |||
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |||
# DIR into the resulting binary and the resulting library dependency is | # DIR into the resulting binary and the resulting library dependency is | |||
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |||
End of changes. 624 change blocks. | ||||
959 lines changed or deleted | 1265 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |