diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-03-14 11:24:45 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-03-14 11:24:45 +0000 |
commit | d19a7d2ef02e91d862238a9b5e73da71d836ad0f (patch) | |
tree | 74c32391cd83b03d227ad8f0f98b828a660cca17 /lib/libXmu | |
parent | 9494fbb65d7a7d3908831159367708bc17a26251 (diff) |
Regen with util-macros 1.17. Fixes configure on landisk (and probably the
other gcc3 architectures).
Diffstat (limited to 'lib/libXmu')
-rw-r--r-- | lib/libXmu/aclocal.m4 | 79 | ||||
-rw-r--r-- | lib/libXmu/configure | 2554 |
2 files changed, 1383 insertions, 1250 deletions
diff --git a/lib/libXmu/aclocal.m4 b/lib/libXmu/aclocal.m4 index 19081a71a..b118ffc6b 100644 --- a/lib/libXmu/aclocal.m4 +++ b/lib/libXmu/aclocal.m4 @@ -10628,6 +10628,39 @@ AC_MSG_CHECKING([whether to build unit test cases]) AC_MSG_RESULT([$enable_unit_tests]) ]) # XORG_ENABLE_UNIT_TESTS +# XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto) +# ------------------------------------------------------ +# Minimum version: 1.17.0 +# +# This macro enables a builder to enable/disable integration testing +# It makes no assumption about the test cases' implementation +# Test cases may or may not use Automake "Support for test suites" +# +# Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support +# usually requires less dependencies and may be built and run under less +# stringent environments than integration tests. +# +# Interface to module: +# ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests +# enable_integration_tests: used in configure.ac for additional configuration +# --enable-integration-tests: 'yes' user instructs the module to build tests +# 'no' user instructs the module not to build tests +# parm1: specify the default value, yes or no. +# +AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[ +AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) +m4_define([_defopt], m4_default([$1], [auto])) +AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests], + [Enable building integration test cases (default: ]_defopt[)]), + [enable_integration_tests=$enableval], + [enable_integration_tests=]_defopt) +m4_undefine([_defopt]) +AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS], + [test "x$enable_integration_tests" != xno]) +AC_MSG_CHECKING([whether to build unit test cases]) +AC_MSG_RESULT([$enable_integration_tests]) +]) # XORG_ENABLE_INTEGRATION_TESTS + # XORG_WITH_GLIB([MIN-VERSION], [DEFAULT]) # ---------------------------------------- # Minimum version: 1.13.0 @@ -10638,6 +10671,10 @@ AC_MSG_RESULT([$enable_unit_tests]) # When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing. # Otherwise the value of $enable_unit_tests is blank. # +# Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit +# test support usually requires less dependencies and may be built and run under +# less stringent environments than integration tests. +# # Interface to module: # HAVE_GLIB: used in makefiles to conditionally build targets # with_glib: used in configure.ac to know if GLib has been found @@ -11038,36 +11075,40 @@ AC_LANG_CASE( [C], [ AC_REQUIRE([AC_PROG_CC_C99]) define([PREFIX], [C]) + define([CACHE_PREFIX], [cc]) + define([COMPILER], [$CC]) ], [C++], [ define([PREFIX], [CXX]) + define([CACHE_PREFIX], [cxx]) + define([COMPILER], [$CXX]) ] ) [xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]" -if test "x$xorg_testset_unknown_warning_option" = "x" ; then +if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" - AC_CACHE_CHECK([if compiler supports -Werror=unknown-warning-option], - xorg_cv_compiler_flag_unknown_warning_option, + AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option], + [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option], AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], - [xorg_cv_compiler_flag_unknown_warning_option=yes], - [xorg_cv_compiler_flag_unknown_warning_option=no])) - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option + [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes], + [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no])) + [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option] PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then + if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" fi PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" - AC_CACHE_CHECK([if compiler supports -Werror=unused-command-line-argument], - xorg_cv_compiler_flag_unused_command_line_argument, + AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument], + [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument], AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], - [xorg_cv_compiler_flag_unused_command_line_argument=yes], - [xorg_cv_compiler_flag_unused_command_line_argument=no])) - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument + [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes], + [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no])) + [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument] PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" fi @@ -11085,16 +11126,16 @@ m4_foreach([flag], m4_cdr($@), [ PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname - AC_MSG_CHECKING([if $CC supports ]flag[]) - cacheid=`AS_ECHO([xorg_cv_cc_flag_]flag[])` - AC_CACHE_VAL(AS_TR_SH($cacheid), + AC_MSG_CHECKING([if ]COMPILER[ supports]flag[]) + cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[]) + AC_CACHE_VAL($cacheid, [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])], - [eval AS_TR_SH($cacheid)=yes], - [eval AS_TR_SH($cacheid)=no])]) + [eval $cacheid=yes], + [eval $cacheid=no])]) PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" - eval supported=$AS_TR_SH($cacheid) + eval supported=\$$cacheid AC_MSG_RESULT([$supported]) if test "$supported" = "yes" ; then $1="$$1 ]flag[" diff --git a/lib/libXmu/configure b/lib/libXmu/configure index cc8921753..229770e6a 100644 --- a/lib/libXmu/configure +++ b/lib/libXmu/configure @@ -12610,13 +12610,15 @@ fi + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12645,30 +12647,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12697,19 +12699,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12726,10 +12728,10 @@ found="no" CFLAGS="$CFLAGS -Wall" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5 -$as_echo_n "checking if $CC supports -Wall... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wall` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wall" >&5 +$as_echo_n "checking if $CC supports-Wall... " >&6; } + cacheid=xorg_cv_cc_flag__Wall + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12768,12 +12770,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12784,7 +12786,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -12805,13 +12807,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12840,30 +12844,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12892,19 +12896,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -12921,10 +12925,10 @@ found="no" CFLAGS="$CFLAGS -Wpointer-arith" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5 -$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wpointer-arith" >&5 +$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } + cacheid=xorg_cv_cc_flag__Wpointer_arith + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -12963,12 +12967,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -12979,7 +12983,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13000,13 +13004,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13035,30 +13041,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13087,19 +13093,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13116,10 +13122,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-declarations" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5 -$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-declarations" >&5 +$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_declarations + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13158,12 +13164,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13174,7 +13180,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13195,13 +13201,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13230,30 +13238,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13282,19 +13290,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13311,10 +13319,10 @@ found="no" CFLAGS="$CFLAGS -Wformat=2" - { $as_echo "$as_me:$LINENO: checking if $CC supports -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 "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wformat=2" >&5 +$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } + cacheid=xorg_cv_cc_flag__Wformat_2 + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13353,12 +13361,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13369,7 +13377,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13389,10 +13397,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -Wformat" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5 -$as_echo_n "checking if $CC supports -Wformat... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wformat" >&5 +$as_echo_n "checking if $CC supports-Wformat... " >&6; } + cacheid=xorg_cv_cc_flag__Wformat + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13431,12 +13439,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13447,7 +13455,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13470,13 +13478,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13505,30 +13515,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13557,19 +13567,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13586,10 +13596,10 @@ found="no" CFLAGS="$CFLAGS -Wstrict-prototypes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5 -$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wstrict-prototypes" >&5 +$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } + cacheid=xorg_cv_cc_flag__Wstrict_prototypes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13628,12 +13638,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13644,7 +13654,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13665,13 +13675,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13700,30 +13712,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13752,19 +13764,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13781,10 +13793,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-prototypes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5 -$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-prototypes" >&5 +$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_prototypes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13823,12 +13835,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -13839,7 +13851,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -13860,13 +13872,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13895,30 +13909,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -13947,19 +13961,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -13976,10 +13990,10 @@ found="no" CFLAGS="$CFLAGS -Wnested-externs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5 -$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wnested-externs" >&5 +$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } + cacheid=xorg_cv_cc_flag__Wnested_externs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14018,12 +14032,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14034,7 +14048,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -14055,13 +14069,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14090,30 +14106,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14142,19 +14158,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14171,10 +14187,10 @@ found="no" CFLAGS="$CFLAGS -Wbad-function-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5 -$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wbad-function-cast" >&5 +$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wbad_function_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14213,12 +14229,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14229,7 +14245,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -14250,13 +14266,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14285,30 +14303,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14337,19 +14355,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14366,10 +14384,10 @@ found="no" CFLAGS="$CFLAGS -Wold-style-definition" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5 -$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wold-style-definition" >&5 +$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } + cacheid=xorg_cv_cc_flag__Wold_style_definition + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14408,12 +14426,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14424,7 +14442,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -14445,13 +14463,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14480,30 +14500,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14532,19 +14552,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14561,10 +14581,10 @@ found="no" CFLAGS="$CFLAGS -Wdeclaration-after-statement" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5 -$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wdeclaration-after-statement" >&5 +$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } + cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14603,12 +14623,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14619,7 +14639,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -14644,13 +14664,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14679,30 +14701,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14731,19 +14753,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14760,10 +14782,10 @@ found="no" CFLAGS="$CFLAGS -Wunused" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5 -$as_echo_n "checking if $CC supports -Wunused... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wunused" >&5 +$as_echo_n "checking if $CC supports-Wunused... " >&6; } + cacheid=xorg_cv_cc_flag__Wunused + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14802,12 +14824,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -14818,7 +14840,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -14839,13 +14861,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14874,30 +14898,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14926,19 +14950,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -14955,10 +14979,10 @@ found="no" CFLAGS="$CFLAGS -Wuninitialized" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5 -$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wuninitialized" >&5 +$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } + cacheid=xorg_cv_cc_flag__Wuninitialized + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -14997,12 +15021,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15013,7 +15037,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -15034,13 +15058,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15069,30 +15095,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15121,19 +15147,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -15150,10 +15176,10 @@ found="no" CFLAGS="$CFLAGS -Wshadow" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5 -$as_echo_n "checking if $CC supports -Wshadow... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wshadow" >&5 +$as_echo_n "checking if $CC supports-Wshadow... " >&6; } + cacheid=xorg_cv_cc_flag__Wshadow + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15192,12 +15218,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15208,7 +15234,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -15229,13 +15255,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15264,30 +15292,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15316,19 +15344,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -15345,10 +15373,10 @@ found="no" CFLAGS="$CFLAGS -Wcast-qual" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5 -$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wcast-qual" >&5 +$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } + cacheid=xorg_cv_cc_flag__Wcast_qual + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15387,12 +15415,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15403,7 +15431,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -15424,13 +15452,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15459,30 +15489,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15511,19 +15541,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -15540,10 +15570,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-noreturn" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5 -$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-noreturn" >&5 +$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_noreturn + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15582,12 +15612,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15598,7 +15628,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -15619,13 +15649,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15654,30 +15686,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15706,19 +15738,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -15735,10 +15767,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-format-attribute" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5 -$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-format-attribute" >&5 +$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_format_attribute + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15777,12 +15809,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15793,7 +15825,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -15814,13 +15846,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15849,30 +15883,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15901,19 +15935,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -15930,10 +15964,10 @@ found="no" CFLAGS="$CFLAGS -Wredundant-decls" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5 -$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wredundant-decls" >&5 +$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } + cacheid=xorg_cv_cc_flag__Wredundant_decls + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -15972,12 +16006,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -15988,7 +16022,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16021,13 +16055,15 @@ if test "x$SELECTIVE_WERROR" = "xyes" ; then + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16056,30 +16092,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16108,19 +16144,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -16137,10 +16173,10 @@ found="no" CFLAGS="$CFLAGS -Werror=implicit" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5 -$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=implicit" >&5 +$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_implicit + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16179,12 +16215,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -16195,7 +16231,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16215,10 +16251,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" - { $as_echo "$as_me:$LINENO: checking if $CC supports -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 -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-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 -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16257,12 +16293,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -16273,7 +16309,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16294,13 +16330,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16329,30 +16367,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16381,19 +16419,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -16410,10 +16448,10 @@ found="no" CFLAGS="$CFLAGS -Werror=nonnull" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5 -$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=nonnull" >&5 +$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_nonnull + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16452,12 +16490,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -16468,7 +16506,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16489,13 +16527,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16524,30 +16564,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16576,19 +16616,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -16605,10 +16645,10 @@ found="no" CFLAGS="$CFLAGS -Werror=init-self" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5 -$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=init-self" >&5 +$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_init_self + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16647,12 +16687,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -16663,7 +16703,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16684,13 +16724,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16719,30 +16761,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16771,19 +16813,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -16800,10 +16842,10 @@ found="no" CFLAGS="$CFLAGS -Werror=main" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5 -$as_echo_n "checking if $CC supports -Werror=main... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=main" >&5 +$as_echo_n "checking if $CC supports-Werror=main... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_main + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16842,12 +16884,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -16858,7 +16900,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -16879,13 +16921,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16914,30 +16958,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -16966,19 +17010,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -16995,10 +17039,10 @@ found="no" CFLAGS="$CFLAGS -Werror=missing-braces" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5 -$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=missing-braces" >&5 +$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_missing_braces + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17037,12 +17081,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17053,7 +17097,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17074,13 +17118,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17109,30 +17155,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17161,19 +17207,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -17190,10 +17236,10 @@ found="no" CFLAGS="$CFLAGS -Werror=sequence-point" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5 -$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=sequence-point" >&5 +$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_sequence_point + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17232,12 +17278,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17248,7 +17294,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17269,13 +17315,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17304,30 +17352,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17356,19 +17404,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -17385,10 +17433,10 @@ found="no" CFLAGS="$CFLAGS -Werror=return-type" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5 -$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=return-type" >&5 +$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_return_type + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17427,12 +17475,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17443,7 +17491,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17463,10 +17511,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 -$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_RETURN_STMT` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 +$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17505,12 +17553,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17521,7 +17569,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17542,13 +17590,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17577,30 +17627,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17629,19 +17679,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -17658,10 +17708,10 @@ found="no" CFLAGS="$CFLAGS -Werror=trigraphs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5 -$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=trigraphs" >&5 +$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_trigraphs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17700,12 +17750,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17716,7 +17766,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17737,13 +17787,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17772,30 +17824,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17824,19 +17876,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -17853,10 +17905,10 @@ found="no" CFLAGS="$CFLAGS -Werror=array-bounds" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5 -$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=array-bounds" >&5 +$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_array_bounds + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17895,12 +17947,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -17911,7 +17963,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -17932,13 +17984,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -17967,30 +18021,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18019,19 +18073,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -18048,10 +18102,10 @@ found="no" CFLAGS="$CFLAGS -Werror=write-strings" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5 -$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=write-strings" >&5 +$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_write_strings + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18090,12 +18144,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18106,7 +18160,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18127,13 +18181,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18162,30 +18218,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18214,19 +18270,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -18243,10 +18299,10 @@ found="no" CFLAGS="$CFLAGS -Werror=address" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5 -$as_echo_n "checking if $CC supports -Werror=address... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=address" >&5 +$as_echo_n "checking if $CC supports-Werror=address... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_address + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18285,12 +18341,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18301,7 +18357,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18322,13 +18378,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18357,30 +18415,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18409,19 +18467,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -18438,10 +18496,10 @@ found="no" CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5 -$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=int-to-pointer-cast" >&5 +$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18480,12 +18538,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18496,7 +18554,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18516,10 +18574,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 -$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_COMBINATION` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 +$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18558,12 +18616,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18574,7 +18632,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18595,13 +18653,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18630,30 +18690,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18682,19 +18742,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -18711,10 +18771,10 @@ found="no" CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5 -$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=pointer-to-int-cast" >&5 +$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18753,12 +18813,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18769,7 +18829,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18793,13 +18853,15 @@ $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warn + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18828,30 +18890,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18880,19 +18942,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -18909,10 +18971,10 @@ found="no" CFLAGS="$CFLAGS -Wimplicit" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5 -$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wimplicit" >&5 +$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } + cacheid=xorg_cv_cc_flag__Wimplicit + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -18951,12 +19013,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -18967,7 +19029,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -18988,13 +19050,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19023,30 +19087,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19075,19 +19139,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -19104,10 +19168,10 @@ found="no" CFLAGS="$CFLAGS -Wnonnull" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5 -$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wnonnull" >&5 +$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } + cacheid=xorg_cv_cc_flag__Wnonnull + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19146,12 +19210,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -19162,7 +19226,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -19183,13 +19247,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19218,30 +19284,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19270,19 +19336,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -19299,10 +19365,10 @@ found="no" CFLAGS="$CFLAGS -Winit-self" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5 -$as_echo_n "checking if $CC supports -Winit-self... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Winit-self" >&5 +$as_echo_n "checking if $CC supports-Winit-self... " >&6; } + cacheid=xorg_cv_cc_flag__Winit_self + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19341,12 +19407,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -19357,7 +19423,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -19378,13 +19444,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19413,30 +19481,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19465,19 +19533,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -19494,10 +19562,10 @@ found="no" CFLAGS="$CFLAGS -Wmain" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5 -$as_echo_n "checking if $CC supports -Wmain... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmain" >&5 +$as_echo_n "checking if $CC supports-Wmain... " >&6; } + cacheid=xorg_cv_cc_flag__Wmain + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19536,12 +19604,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -19552,7 +19620,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -19573,13 +19641,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19608,30 +19678,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19660,19 +19730,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -19689,10 +19759,10 @@ found="no" CFLAGS="$CFLAGS -Wmissing-braces" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5 -$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wmissing-braces" >&5 +$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } + cacheid=xorg_cv_cc_flag__Wmissing_braces + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19731,12 +19801,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -19747,7 +19817,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -19768,13 +19838,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19803,30 +19875,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19855,19 +19927,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -19884,10 +19956,10 @@ found="no" CFLAGS="$CFLAGS -Wsequence-point" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5 -$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wsequence-point" >&5 +$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } + cacheid=xorg_cv_cc_flag__Wsequence_point + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19926,12 +19998,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -19942,7 +20014,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -19963,13 +20035,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -19998,30 +20072,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20050,19 +20124,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -20079,10 +20153,10 @@ found="no" CFLAGS="$CFLAGS -Wreturn-type" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5 -$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wreturn-type" >&5 +$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } + cacheid=xorg_cv_cc_flag__Wreturn_type + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20121,12 +20195,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -20137,7 +20211,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -20158,13 +20232,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20193,30 +20269,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20245,19 +20321,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -20274,10 +20350,10 @@ found="no" CFLAGS="$CFLAGS -Wtrigraphs" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5 -$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wtrigraphs" >&5 +$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } + cacheid=xorg_cv_cc_flag__Wtrigraphs + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20316,12 +20392,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -20332,7 +20408,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -20353,13 +20429,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20388,30 +20466,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20440,19 +20518,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -20469,10 +20547,10 @@ found="no" CFLAGS="$CFLAGS -Warray-bounds" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5 -$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Warray-bounds" >&5 +$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } + cacheid=xorg_cv_cc_flag__Warray_bounds + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20511,12 +20589,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -20527,7 +20605,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -20548,13 +20626,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20583,30 +20663,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20635,19 +20715,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -20664,10 +20744,10 @@ found="no" CFLAGS="$CFLAGS -Wwrite-strings" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5 -$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wwrite-strings" >&5 +$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } + cacheid=xorg_cv_cc_flag__Wwrite_strings + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20706,12 +20786,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -20722,7 +20802,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -20743,13 +20823,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20778,30 +20860,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20830,19 +20912,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -20859,10 +20941,10 @@ found="no" CFLAGS="$CFLAGS -Waddress" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5 -$as_echo_n "checking if $CC supports -Waddress... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Waddress" >&5 +$as_echo_n "checking if $CC supports-Waddress... " >&6; } + cacheid=xorg_cv_cc_flag__Waddress + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20901,12 +20983,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -20917,7 +20999,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -20938,13 +21020,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -20973,30 +21057,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21025,19 +21109,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -21054,10 +21138,10 @@ found="no" CFLAGS="$CFLAGS -Wint-to-pointer-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5 -$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wint-to-pointer-cast" >&5 +$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21096,12 +21180,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -21112,7 +21196,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -21133,13 +21217,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21168,30 +21254,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21220,19 +21306,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -21249,10 +21335,10 @@ found="no" CFLAGS="$CFLAGS -Wpointer-to-int-cast" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5 -$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Wpointer-to-int-cast" >&5 +$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } + cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21291,12 +21377,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -21307,7 +21393,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -21361,13 +21447,15 @@ STRICT_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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21396,30 +21484,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21448,19 +21536,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -21477,10 +21565,10 @@ found="no" CFLAGS="$CFLAGS -pedantic" - { $as_echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5 -$as_echo_n "checking if $CC supports -pedantic... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-pedantic" >&5 +$as_echo_n "checking if $CC supports-pedantic... " >&6; } + cacheid=xorg_cv_cc_flag__pedantic + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21519,12 +21607,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -21535,7 +21623,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -21556,13 +21644,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21591,30 +21681,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21643,19 +21733,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -21672,10 +21762,10 @@ found="no" CFLAGS="$CFLAGS -Werror" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5 -$as_echo_n "checking if $CC supports -Werror... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror" >&5 +$as_echo_n "checking if $CC supports-Werror... " >&6; } + cacheid=xorg_cv_cc_flag__Werror + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21714,12 +21804,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -21730,7 +21820,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -21750,10 +21840,10 @@ $as_echo "$supported" >&6; } CFLAGS="$CFLAGS -errwarn" - { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5 -$as_echo_n "checking if $CC supports -errwarn... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-errwarn" >&5 +$as_echo_n "checking if $CC supports-errwarn... " >&6; } + cacheid=xorg_cv_cc_flag__errwarn + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21792,12 +21882,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -21808,7 +21898,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then @@ -21832,13 +21922,15 @@ $as_echo "$supported" >&6; } + + 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" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unknown-warning-option" >&5 -$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } -if test "${xorg_cv_compiler_flag_unknown_warning_option+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5 +$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } +if test "${xorg_cv_cc_flag_unknown_warning_option+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21867,30 +21959,30 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unknown_warning_option=yes + xorg_cv_cc_flag_unknown_warning_option=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unknown_warning_option=no + xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 -$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } - xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 +$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } + xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi -if test "x$xorg_testset_unused_command_line_argument" = "x" ; then - if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then +if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then + if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" - { $as_echo "$as_me:$LINENO: checking if compiler supports -Werror=unused-command-line-argument" >&5 -$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } -if test "${xorg_cv_compiler_flag_unused_command_line_argument+set}" = set; then + { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5 +$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } +if test "${xorg_cv_cc_flag_unused_command_line_argument+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21919,19 +22011,19 @@ $as_echo "$ac_try_echo") >&5 test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then - xorg_cv_compiler_flag_unused_command_line_argument=yes + xorg_cv_cc_flag_unused_command_line_argument=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - xorg_cv_compiler_flag_unused_command_line_argument=no + xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 -$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } - xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument +{ $as_echo "$as_me:$LINENO: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 +$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } + xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi @@ -21948,10 +22040,10 @@ found="no" CFLAGS="$CFLAGS -Werror=attributes" - { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5 -$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } - cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` - if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking if $CC supports-Werror=attributes" >&5 +$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } + cacheid=xorg_cv_cc_flag__Werror_attributes + if { as_var=$cacheid; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -21990,12 +22082,12 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - eval `$as_echo "$cacheid" | $as_tr_sh`=yes + eval $cacheid=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - eval `$as_echo "$cacheid" | $as_tr_sh`=no + eval $cacheid=no fi rm -rf conftest.dSYM @@ -22006,7 +22098,7 @@ fi CFLAGS="$xorg_testset_save_CFLAGS" - eval supported=$`$as_echo "$cacheid" | $as_tr_sh` + eval supported=\$$cacheid { $as_echo "$as_me:$LINENO: result: $supported" >&5 $as_echo "$supported" >&6; } if test "$supported" = "yes" ; then |