~ubuntu-branches/ubuntu/utopic/libice/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2014-07-13 01:38:11 UTC
  • mfrom: (1.1.8) (0.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20140713013811-qtofhjeux1mfmx2j
Tags: 2:1.0.9-1
* New upstream release.
* Remove Cyril from Uploaders.
* Rewrite debian/rules using dh.  Switch to compat level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for libICE 1.0.8.
 
3
# Generated by GNU Autoconf 2.68 for libICE 1.0.9.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
631
631
# Identity of this package.
632
632
PACKAGE_NAME='libICE'
633
633
PACKAGE_TARNAME='libICE'
634
 
PACKAGE_VERSION='1.0.8'
635
 
PACKAGE_STRING='libICE 1.0.8'
 
634
PACKAGE_VERSION='1.0.9'
 
635
PACKAGE_STRING='libICE 1.0.9'
636
636
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637
637
PACKAGE_URL=''
638
638
 
706
706
ENABLE_SPECS_TRUE
707
707
ENABLE_DOCS_FALSE
708
708
ENABLE_DOCS_TRUE
709
 
AM_BACKSLASH
710
 
AM_DEFAULT_VERBOSITY
711
709
MAN_SUBSTS
712
710
XORG_MAN_PAGE
713
711
ADMIN_MAN_DIR
755
753
build_cpu
756
754
build
757
755
LIBTOOL
758
 
MAINT
759
 
MAINTAINER_MODE_FALSE
760
 
MAINTAINER_MODE_TRUE
 
756
AM_BACKSLASH
 
757
AM_DEFAULT_VERBOSITY
 
758
AM_DEFAULT_V
 
759
AM_V
761
760
am__fastdepCC_FALSE
762
761
am__fastdepCC_TRUE
763
762
CCDEPMODE
 
763
am__nodep
764
764
AMDEPBACKSLASH
765
765
AMDEP_FALSE
766
766
AMDEP_TRUE
842
842
ac_user_opts='
843
843
enable_option_checking
844
844
enable_dependency_tracking
845
 
enable_maintainer_mode
 
845
enable_silent_rules
846
846
enable_shared
847
847
enable_static
848
848
with_pic
852
852
enable_libtool_lock
853
853
enable_selective_werror
854
854
enable_strict_compilation
855
 
enable_silent_rules
856
855
enable_docs
857
856
enable_specs
858
857
with_xmlto
1424
1423
  # Omit some internal or obsolete options to make the list less imposing.
1425
1424
  # This message is too long to be a string in the A/UX 3.1 sh.
1426
1425
  cat <<_ACEOF
1427
 
\`configure' configures libICE 1.0.8 to adapt to many kinds of systems.
 
1426
\`configure' configures libICE 1.0.9 to adapt to many kinds of systems.
1428
1427
 
1429
1428
Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1429
 
1494
1493
 
1495
1494
if test -n "$ac_init_help"; then
1496
1495
  case $ac_init_help in
1497
 
     short | recursive ) echo "Configuration of libICE 1.0.8:";;
 
1496
     short | recursive ) echo "Configuration of libICE 1.0.9:";;
1498
1497
   esac
1499
1498
  cat <<\_ACEOF
1500
1499
 
1502
1501
  --disable-option-checking  ignore unrecognized --enable/--with options
1503
1502
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504
1503
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505
 
  --disable-dependency-tracking  speeds up one-time build
1506
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1507
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1508
 
                          (and sometimes confusing) to the casual installer
 
1504
  --enable-dependency-tracking
 
1505
                          do not reject slow dependency extractors
 
1506
  --disable-dependency-tracking
 
1507
                          speeds up one-time build
 
1508
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1509
  --disable-silent-rules  verbose build output (undo: "make V=0")
1509
1510
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1510
1511
  --enable-static[=PKGS]  build static libraries [default=yes]
1511
1512
  --enable-fast-install[=PKGS]
1517
1518
  --enable-strict-compilation
1518
1519
                          Enable all warnings from compiler and make them
1519
1520
                          errors (default: disabled)
1520
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1521
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1522
1521
  --enable-docs           Enable building the documentation (default: yes)
1523
1522
  --enable-specs          Enable building the specs (default: yes)
1524
1523
  --enable-unix-transport Enable UNIX domain socket transport
1531
1530
Optional Packages:
1532
1531
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533
1532
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1533
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1535
1534
                          both]
1536
1535
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1537
1536
  --with-sysroot=DIR Search for dependent libraries within DIR
1628
1627
test -n "$ac_init_help" && exit $ac_status
1629
1628
if $ac_init_version; then
1630
1629
  cat <<\_ACEOF
1631
 
libICE configure 1.0.8
 
1630
libICE configure 1.0.9
1632
1631
generated by GNU Autoconf 2.68
1633
1632
 
1634
1633
Copyright (C) 2010 Free Software Foundation, Inc.
2154
2153
This file contains any messages produced by compilers while
2155
2154
running configure, to aid debugging if configure makes a mistake.
2156
2155
 
2157
 
It was created by libICE $as_me 1.0.8, which was
 
2156
It was created by libICE $as_me 1.0.9, which was
2158
2157
generated by GNU Autoconf 2.68.  Invocation command line was
2159
2158
 
2160
2159
  $ $0 $@
2509
2508
# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2510
2509
# Must be called before any macros that run the compiler (like
2511
2510
# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
 
2511
# expand $ac_aux_dir to an absolute path
 
2512
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2513
 
2512
2514
ac_ext=c
2513
2515
ac_cpp='$CPP $CPPFLAGS'
2514
2516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299
3301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300
3302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3303
 
 
3304
ac_ext=c
 
3305
ac_cpp='$CPP $CPPFLAGS'
 
3306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3310
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3311
if ${am_cv_prog_cc_c_o+:} false; then :
 
3312
  $as_echo_n "(cached) " >&6
 
3313
else
 
3314
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3315
/* end confdefs.h.  */
 
3316
 
 
3317
int
 
3318
main ()
 
3319
{
 
3320
 
 
3321
  ;
 
3322
  return 0;
 
3323
}
 
3324
_ACEOF
 
3325
  # Make sure it works both with $CC and with simple cc.
 
3326
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3327
  # compilers refuse to overwrite an existing .o file with -o,
 
3328
  # though they will create one.
 
3329
  am_cv_prog_cc_c_o=yes
 
3330
  for am_i in 1 2; do
 
3331
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3332
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3333
   ac_status=$?
 
3334
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3335
   (exit $ac_status); } \
 
3336
         && test -f conftest2.$ac_objext; then
 
3337
      : OK
 
3338
    else
 
3339
      am_cv_prog_cc_c_o=no
 
3340
      break
 
3341
    fi
 
3342
  done
 
3343
  rm -f core conftest*
 
3344
  unset am_i
 
3345
fi
 
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3347
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3348
if test "$am_cv_prog_cc_c_o" != yes; then
 
3349
   # Losing compiler, so override with the script.
 
3350
   # FIXME: It is wrong to rewrite CC.
 
3351
   # But if we don't then we get into trouble of one sort or another.
 
3352
   # A longer-term fix would be to have automake use am__CC in this case,
 
3353
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3354
   CC="$am_aux_dir/compile $CC"
 
3355
fi
 
3356
ac_ext=c
 
3357
ac_cpp='$CPP $CPPFLAGS'
 
3358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3361
 
 
3362
 
3302
3363
 
3303
3364
ac_ext=c
3304
3365
ac_cpp='$CPP $CPPFLAGS'
3760
3821
 
3761
3822
 
3762
3823
# Initialize Automake
3763
 
am__api_version='1.11'
 
3824
am__api_version='1.14'
3764
3825
 
3765
3826
ac_aux_dir=
3766
3827
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3886
3947
 
3887
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3888
3949
$as_echo_n "checking whether build environment is sane... " >&6; }
3889
 
# Just in case
3890
 
sleep 1
3891
 
echo timestamp > conftest.file
3892
3950
# Reject unsafe characters in $srcdir or the absolute working directory
3893
3951
# name.  Accept space and tab only in the latter.
3894
3952
am_lf='
3899
3957
esac
3900
3958
case $srcdir in
3901
3959
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3902
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
3960
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3903
3961
esac
3904
3962
 
3905
 
# Do `set' in a subshell so we don't clobber the current shell's
 
3963
# Do 'set' in a subshell so we don't clobber the current shell's
3906
3964
# arguments.  Must try -L first in case configure is actually a
3907
3965
# symlink; some systems play weird games with the mod time of symlinks
3908
3966
# (eg FreeBSD returns the mod time of the symlink's containing
3909
3967
# directory).
3910
3968
if (
3911
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3912
 
   if test "$*" = "X"; then
3913
 
      # -L didn't work.
3914
 
      set X `ls -t "$srcdir/configure" conftest.file`
3915
 
   fi
3916
 
   rm -f conftest.file
3917
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3918
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3919
 
 
3920
 
      # If neither matched, then we have a broken ls.  This can happen
3921
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3922
 
      # broken ls alias from the environment.  This has actually
3923
 
      # happened.  Such a system could not be considered "sane".
3924
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3925
 
alias in your environment" "$LINENO" 5
3926
 
   fi
3927
 
 
 
3969
   am_has_slept=no
 
3970
   for am_try in 1 2; do
 
3971
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
3972
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
3973
     if test "$*" = "X"; then
 
3974
        # -L didn't work.
 
3975
        set X `ls -t "$srcdir/configure" conftest.file`
 
3976
     fi
 
3977
     if test "$*" != "X $srcdir/configure conftest.file" \
 
3978
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
3979
 
 
3980
        # If neither matched, then we have a broken ls.  This can happen
 
3981
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3982
        # broken ls alias from the environment.  This has actually
 
3983
        # happened.  Such a system could not be considered "sane".
 
3984
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
3985
  alias in your environment" "$LINENO" 5
 
3986
     fi
 
3987
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
3988
       break
 
3989
     fi
 
3990
     # Just in case.
 
3991
     sleep 1
 
3992
     am_has_slept=yes
 
3993
   done
3928
3994
   test "$2" = conftest.file
3929
3995
   )
3930
3996
then
3936
4002
fi
3937
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938
4004
$as_echo "yes" >&6; }
 
4005
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
4006
# generated files are strictly newer.
 
4007
am_sleep_pid=
 
4008
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
4009
  ( sleep 1 ) &
 
4010
  am_sleep_pid=$!
 
4011
fi
 
4012
 
 
4013
rm -f conftest.file
 
4014
 
3939
4015
test "$program_prefix" != NONE &&
3940
4016
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3941
4017
# Use a double $ so make ignores it.
3946
4022
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3947
4023
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3948
4024
 
3949
 
# expand $ac_aux_dir to an absolute path
3950
 
am_aux_dir=`cd $ac_aux_dir && pwd`
3951
 
 
3952
4025
if test x"${MISSING+set}" != xset; then
3953
4026
  case $am_aux_dir in
3954
4027
  *\ * | *\     *)
3958
4031
  esac
3959
4032
fi
3960
4033
# Use eval to expand $SHELL
3961
 
if eval "$MISSING --run true"; then
3962
 
  am_missing_run="$MISSING --run "
 
4034
if eval "$MISSING --is-lightweight"; then
 
4035
  am_missing_run="$MISSING "
3963
4036
else
3964
4037
  am_missing_run=
3965
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3966
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
4038
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
4039
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3967
4040
fi
3968
4041
 
3969
4042
if test x"${install_sh}" != xset; then
3975
4048
  esac
3976
4049
fi
3977
4050
 
3978
 
# Installed binaries are usually stripped using `strip' when the user
3979
 
# run `make install-strip'.  However `strip' might not be the right
 
4051
# Installed binaries are usually stripped using 'strip' when the user
 
4052
# run "make install-strip".  However 'strip' might not be the right
3980
4053
# tool to use in cross-compilation environments, therefore Automake
3981
 
# will honor the `STRIP' environment variable to overrule this program.
 
4054
# will honor the 'STRIP' environment variable to overrule this program.
3982
4055
if test "$cross_compiling" != no; then
3983
4056
  if test -n "$ac_tool_prefix"; then
3984
4057
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4117
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4118
4191
$as_echo "$MKDIR_P" >&6; }
4119
4192
 
4120
 
mkdir_p="$MKDIR_P"
4121
 
case $mkdir_p in
4122
 
  [\\/$]* | ?:[\\/]*) ;;
4123
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4124
 
esac
4125
 
 
4126
4193
for ac_prog in gawk mawk nawk awk
4127
4194
do
4128
4195
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4224
4291
_am_result=none
4225
4292
# First try GNU make style include.
4226
4293
echo "include confinc" > confmf
4227
 
# Ignore all kinds of additional output from `make'.
 
4294
# Ignore all kinds of additional output from 'make'.
4228
4295
case `$am_make -s -f confmf 2> /dev/null` in #(
4229
4296
*the\ am__doit\ target*)
4230
4297
  am__include=include
4257
4324
if test "x$enable_dependency_tracking" != xno; then
4258
4325
  am_depcomp="$ac_aux_dir/depcomp"
4259
4326
  AMDEPBACKSLASH='\'
 
4327
  am__nodep='_no'
4260
4328
fi
4261
4329
 if test "x$enable_dependency_tracking" != xno; then
4262
4330
  AMDEP_TRUE=
4267
4335
fi
4268
4336
 
4269
4337
 
 
4338
# Check whether --enable-silent-rules was given.
 
4339
if test "${enable_silent_rules+set}" = set; then :
 
4340
  enableval=$enable_silent_rules;
 
4341
fi
 
4342
 
 
4343
case $enable_silent_rules in # (((
 
4344
  yes) AM_DEFAULT_VERBOSITY=0;;
 
4345
   no) AM_DEFAULT_VERBOSITY=1;;
 
4346
    *) AM_DEFAULT_VERBOSITY=1;;
 
4347
esac
 
4348
am_make=${MAKE-make}
 
4349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
4350
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
4351
if ${am_cv_make_support_nested_variables+:} false; then :
 
4352
  $as_echo_n "(cached) " >&6
 
4353
else
 
4354
  if $as_echo 'TRUE=$(BAR$(V))
 
4355
BAR0=false
 
4356
BAR1=true
 
4357
V=1
 
4358
am__doit:
 
4359
        @$(TRUE)
 
4360
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
4361
  am_cv_make_support_nested_variables=yes
 
4362
else
 
4363
  am_cv_make_support_nested_variables=no
 
4364
fi
 
4365
fi
 
4366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
4367
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
4368
if test $am_cv_make_support_nested_variables = yes; then
 
4369
    AM_V='$(V)'
 
4370
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
4371
else
 
4372
  AM_V=$AM_DEFAULT_VERBOSITY
 
4373
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
4374
fi
 
4375
AM_BACKSLASH='\'
 
4376
 
4270
4377
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4271
4378
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4272
4379
  # is not polluted with repeated "-I."
4289
4396
 
4290
4397
# Define the identity of the package.
4291
4398
 PACKAGE='libICE'
4292
 
 VERSION='1.0.8'
 
4399
 VERSION='1.0.9'
4293
4400
 
4294
4401
 
4295
4402
cat >>confdefs.h <<_ACEOF
4317
4424
 
4318
4425
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4319
4426
 
 
4427
# For better backward compatibility.  To be removed once Automake 1.9.x
 
4428
# dies out for good.  For more background, see:
 
4429
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
4430
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
4431
mkdir_p='$(MKDIR_P)'
 
4432
 
4320
4433
# We need awk for the "check" target.  The system "awk" is bad on
4321
4434
# some platforms.
4322
 
# Always define AMTAR for backward compatibility.
4323
 
 
4324
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
4325
 
 
4326
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
4435
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
4436
# in the wild :-(  We should find a proper way to deprecate it ...
 
4437
AMTAR='$${TAR-tar}'
 
4438
 
 
4439
 
 
4440
# We'll loop over all known methods to create a tar archive until one works.
 
4441
_am_tools='gnutar  pax cpio none'
 
4442
 
 
4443
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
4444
 
4327
4445
 
4328
4446
 
4329
4447
 
4339
4457
  # We make a subdir and do the tests there.  Otherwise we can end up
4340
4458
  # making bogus files that we don't know about and never remove.  For
4341
4459
  # instance it was reported that on HP-UX the gcc test will end up
4342
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4343
 
  # in D'.
 
4460
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
4461
  # in D".
 
4462
  rm -rf conftest.dir
4344
4463
  mkdir conftest.dir
4345
4464
  # Copy depcomp to subdir because otherwise we won't find it if we're
4346
4465
  # using a relative directory.
4374
4493
    : > sub/conftest.c
4375
4494
    for i in 1 2 3 4 5 6; do
4376
4495
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4377
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4378
 
      # Solaris 8's {/usr,}/bin/sh.
4379
 
      touch sub/conftst$i.h
 
4496
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
4497
      # Solaris 10 /bin/sh.
 
4498
      echo '/* dummy */' > sub/conftst$i.h
4380
4499
    done
4381
4500
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4382
4501
 
4383
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4502
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4384
4503
    # mode.  It turns out that the SunPro C++ compiler does not properly
4385
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4386
 
    # versions had trouble with output in subdirs
 
4504
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4505
    # versions had trouble with output in subdirs.
4387
4506
    am__obj=sub/conftest.${OBJEXT-o}
4388
4507
    am__minus_obj="-o $am__obj"
4389
4508
    case $depmode in
4392
4511
      test "$am__universal" = false || continue
4393
4512
      ;;
4394
4513
    nosideeffect)
4395
 
      # after this tag, mechanisms are not by side-effect, so they'll
4396
 
      # only be used when explicitly requested
 
4514
      # After this tag, mechanisms are not by side-effect, so they'll
 
4515
      # only be used when explicitly requested.
4397
4516
      if test "x$enable_dependency_tracking" = xyes; then
4398
4517
        continue
4399
4518
      else
4400
4519
        break
4401
4520
      fi
4402
4521
      ;;
4403
 
    msvisualcpp | msvcmsys)
4404
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4522
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4523
      # This compiler won't grok '-c -o', but also, the minuso test has
4405
4524
      # not run yet.  These depmodes are late enough in the game, and
4406
4525
      # so weak that their functioning should not be impacted.
4407
4526
      am__obj=conftest.${OBJEXT-o}
4456
4575
 
4457
4576
 
4458
4577
 
4459
 
 
4460
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4461
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4462
 
    # Check whether --enable-maintainer-mode was given.
4463
 
if test "${enable_maintainer_mode+set}" = set; then :
4464
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4465
 
else
4466
 
  USE_MAINTAINER_MODE=no
4467
 
fi
4468
 
 
4469
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4470
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4471
 
   if test $USE_MAINTAINER_MODE = yes; then
4472
 
  MAINTAINER_MODE_TRUE=
4473
 
  MAINTAINER_MODE_FALSE='#'
4474
 
else
4475
 
  MAINTAINER_MODE_TRUE='#'
4476
 
  MAINTAINER_MODE_FALSE=
4477
 
fi
4478
 
 
4479
 
  MAINT=$MAINTAINER_MODE_TRUE
4480
 
 
4481
 
 
 
4578
# POSIX will say in a future version that running "rm -f" with no argument
 
4579
# is OK; and we want to be able to make that assumption in our Makefile
 
4580
# recipes.  So use an aggressive probe to check that the usage we want is
 
4581
# actually supported "in the wild" to an acceptable degree.
 
4582
# See automake bug#10828.
 
4583
# To make any issue more visible, cause the running configure to be aborted
 
4584
# by default if the 'rm' program in use doesn't match our expectations; the
 
4585
# user can still override this though.
 
4586
if rm -f && rm -fr && rm -rf; then : OK; else
 
4587
  cat >&2 <<'END'
 
4588
Oops!
 
4589
 
 
4590
Your 'rm' program seems unable to run without file operands specified
 
4591
on the command line, even when the '-f' option is present.  This is contrary
 
4592
to the behaviour of most rm programs out there, and not conforming with
 
4593
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
4594
 
 
4595
Please tell bug-automake@gnu.org about your system, including the value
 
4596
of your $PATH and any error possibly output before this message.  This
 
4597
can help us improve future automake versions.
 
4598
 
 
4599
END
 
4600
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
4601
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
4602
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
4603
    echo >&2
 
4604
  else
 
4605
    cat >&2 <<'END'
 
4606
Aborting the configuration process, to ensure you take notice of the issue.
 
4607
 
 
4608
You can download and install GNU coreutils to get an 'rm' implementation
 
4609
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
4610
 
 
4611
If you want to complete the configuration process using your problematic
 
4612
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
4613
to "yes", and re-run configure.
 
4614
 
 
4615
END
 
4616
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
4617
  fi
 
4618
fi
4482
4619
 
4483
4620
# Initialize libtool
4484
4621
case `pwd` in
4489
4626
 
4490
4627
 
4491
4628
 
4492
 
macro_version='2.4'
4493
 
macro_revision='1.3293'
 
4629
macro_version='2.4.2'
 
4630
macro_revision='1.3337'
4494
4631
 
4495
4632
 
4496
4633
 
5205
5342
    lt_cv_sys_max_cmd_len=196608
5206
5343
    ;;
5207
5344
 
 
5345
  os2*)
 
5346
    # The test takes a long time on OS/2.
 
5347
    lt_cv_sys_max_cmd_len=8192
 
5348
    ;;
 
5349
 
5208
5350
  osf*)
5209
5351
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5210
5352
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5244
5386
      # If test is not a shell built-in, we'll probably end up computing a
5245
5387
      # maximum length that is only half of the actual maximum length, but
5246
5388
      # we can't tell.
5247
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
5389
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5248
5390
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5249
5391
              test $i != 17 # 1/2 MB should be enough
5250
5392
      do
5673
5815
  lt_cv_deplibs_check_method=pass_all
5674
5816
  ;;
5675
5817
 
5676
 
# This must be Linux ELF.
 
5818
# This must be glibc/ELF.
5677
5819
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5678
5820
  lt_cv_deplibs_check_method=pass_all
5679
5821
  ;;
6313
6455
if test -n "$RANLIB"; then
6314
6456
  case $host_os in
6315
6457
  openbsd*)
6316
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6458
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6317
6459
    ;;
6318
6460
  *)
6319
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6461
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6320
6462
    ;;
6321
6463
  esac
6322
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6464
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6323
6465
fi
6324
6466
 
6325
6467
case $host_os in
6466
6608
    # which start with @ or ?.
6467
6609
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6468
6610
"     {last_section=section; section=\$ 3};"\
 
6611
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6469
6612
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6470
6613
"     \$ 0!~/External *\|/{next};"\
6471
6614
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6854
6997
    CFLAGS="$SAVE_CFLAGS"
6855
6998
  fi
6856
6999
  ;;
6857
 
sparc*-*solaris*)
 
7000
*-*solaris*)
6858
7001
  # Find out which ABI we are using.
6859
7002
  echo 'int i;' > conftest.$ac_ext
6860
7003
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865
7008
    case `/usr/bin/file conftest.o` in
6866
7009
    *64-bit*)
6867
7010
      case $lt_cv_prog_gnu_ld in
6868
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7011
      yes*)
 
7012
        case $host in
 
7013
        i?86-*-solaris*)
 
7014
          LD="${LD-ld} -m elf_x86_64"
 
7015
          ;;
 
7016
        sparc*-*-solaris*)
 
7017
          LD="${LD-ld} -m elf64_sparc"
 
7018
          ;;
 
7019
        esac
 
7020
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7021
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7022
          LD="${LD-ld}_sol2"
 
7023
        fi
 
7024
        ;;
6869
7025
      *)
6870
7026
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6871
7027
          LD="${LD-ld} -64"
7505
7661
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506
7662
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507
7663
        _lt_result=$?
7508
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7664
        # If there is a non-empty error log, and "single_module"
 
7665
        # appears in it, assume the flag caused a linker warning
 
7666
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7667
          cat conftest.err >&5
 
7668
        # Otherwise, if the output was created with a 0 exit code from
 
7669
        # the compiler, it worked.
 
7670
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7509
7671
          lt_cv_apple_cc_single_mod=yes
7510
7672
        else
7511
7673
          cat conftest.err >&5
7516
7678
fi
7517
7679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7518
7680
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7681
 
7519
7682
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7520
7683
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7521
7684
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7548
7711
fi
7549
7712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7550
7713
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7714
 
7551
7715
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7552
7716
$as_echo_n "checking for -force_load linker flag... " >&6; }
7553
7717
if ${lt_cv_ld_force_load+:} false; then :
7569
7733
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7570
7734
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7571
7735
      _lt_result=$?
7572
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
7736
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7737
        cat conftest.err >&5
 
7738
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7573
7739
        lt_cv_ld_force_load=yes
7574
7740
      else
7575
7741
        cat conftest.err >&5
7707
7873
 
7708
7874
# Check whether --with-pic was given.
7709
7875
if test "${with_pic+set}" = set; then :
7710
 
  withval=$with_pic; pic_mode="$withval"
 
7876
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7877
    case $withval in
 
7878
    yes|no) pic_mode=$withval ;;
 
7879
    *)
 
7880
      pic_mode=default
 
7881
      # Look at the argument we got.  We use all the common list separators.
 
7882
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7883
      for lt_pkg in $withval; do
 
7884
        IFS="$lt_save_ifs"
 
7885
        if test "X$lt_pkg" = "X$lt_p"; then
 
7886
          pic_mode=yes
 
7887
        fi
 
7888
      done
 
7889
      IFS="$lt_save_ifs"
 
7890
      ;;
 
7891
    esac
7711
7892
else
7712
7893
  pic_mode=default
7713
7894
fi
7785
7966
 
7786
7967
 
7787
7968
 
 
7969
 
 
7970
 
 
7971
 
 
7972
 
7788
7973
test -z "$LN_S" && LN_S="ln -s"
7789
7974
 
7790
7975
 
8240
8425
    case $cc_basename in
8241
8426
    nvcc*) # Cuda Compiler Driver 2.2
8242
8427
      lt_prog_compiler_wl='-Xlinker '
8243
 
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8428
      if test -n "$lt_prog_compiler_pic"; then
 
8429
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8430
      fi
8244
8431
      ;;
8245
8432
    esac
8246
8433
  else
8331
8518
        ;;
8332
8519
      *)
8333
8520
        case `$CC -V 2>&1 | sed 5q` in
8334
 
        *Sun\ F* | *Sun*Fortran*)
 
8521
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8335
8522
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336
8523
          lt_prog_compiler_pic='-KPIC'
8337
8524
          lt_prog_compiler_static='-Bstatic'
8338
8525
          lt_prog_compiler_wl=''
8339
8526
          ;;
 
8527
        *Sun\ F* | *Sun*Fortran*)
 
8528
          lt_prog_compiler_pic='-KPIC'
 
8529
          lt_prog_compiler_static='-Bstatic'
 
8530
          lt_prog_compiler_wl='-Qoption ld '
 
8531
          ;;
8340
8532
        *Sun\ C*)
8341
8533
          # Sun C 5.9
8342
8534
          lt_prog_compiler_pic='-KPIC'
8343
8535
          lt_prog_compiler_static='-Bstatic'
8344
8536
          lt_prog_compiler_wl='-Wl,'
8345
8537
          ;;
 
8538
        *Intel*\ [CF]*Compiler*)
 
8539
          lt_prog_compiler_wl='-Wl,'
 
8540
          lt_prog_compiler_pic='-fPIC'
 
8541
          lt_prog_compiler_static='-static'
 
8542
          ;;
 
8543
        *Portland\ Group*)
 
8544
          lt_prog_compiler_wl='-Wl,'
 
8545
          lt_prog_compiler_pic='-fpic'
 
8546
          lt_prog_compiler_static='-Bstatic'
 
8547
          ;;
8346
8548
        esac
8347
8549
        ;;
8348
8550
      esac
8704
8906
  hardcode_direct=no
8705
8907
  hardcode_direct_absolute=no
8706
8908
  hardcode_libdir_flag_spec=
8707
 
  hardcode_libdir_flag_spec_ld=
8708
8909
  hardcode_libdir_separator=
8709
8910
  hardcode_minus_L=no
8710
8911
  hardcode_shlibpath_var=unsupported
8954
9155
        xlf* | bgf* | bgxlf* | mpixlf*)
8955
9156
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8956
9157
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8957
 
          hardcode_libdir_flag_spec=
8958
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9158
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959
9159
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8960
9160
          if test "x$supports_anon_versioning" = xyes; then
8961
9161
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9334
9534
        # The linker will not automatically build a static lib if we build a DLL.
9335
9535
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9336
9536
        enable_shared_with_static_runtimes=yes
 
9537
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9337
9538
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9338
9539
        # Don't use ranlib
9339
9540
        old_postinstall_cmds='chmod 644 $oldlib'
9379
9580
  hardcode_shlibpath_var=unsupported
9380
9581
  if test "$lt_cv_ld_force_load" = "yes"; then
9381
9582
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9583
 
9382
9584
  else
9383
9585
    whole_archive_flag_spec=''
9384
9586
  fi
9407
9609
      hardcode_shlibpath_var=no
9408
9610
      ;;
9409
9611
 
9410
 
    freebsd1*)
9411
 
      ld_shlibs=no
9412
 
      ;;
9413
 
 
9414
9612
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9415
9613
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9416
9614
    # does not break anything, and helps significantly (at the cost of a little
9423
9621
      ;;
9424
9622
 
9425
9623
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9426
 
    freebsd2*)
 
9624
    freebsd2.*)
9427
9625
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9428
9626
      hardcode_direct=yes
9429
9627
      hardcode_minus_L=yes
9462
9660
      fi
9463
9661
      if test "$with_gnu_ld" = no; then
9464
9662
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9466
9663
        hardcode_libdir_separator=:
9467
9664
        hardcode_direct=yes
9468
9665
        hardcode_direct_absolute=yes
10086
10283
 
10087
10284
 
10088
10285
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
10286
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10095
10287
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10096
10288
 
10180
10372
 
10181
10373
case $host_os in
10182
10374
aix3*)
10183
 
  version_type=linux
 
10375
  version_type=linux # correct to gnu/linux during the next big refactor
10184
10376
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10185
10377
  shlibpath_var=LIBPATH
10186
10378
 
10189
10381
  ;;
10190
10382
 
10191
10383
aix[4-9]*)
10192
 
  version_type=linux
 
10384
  version_type=linux # correct to gnu/linux during the next big refactor
10193
10385
  need_lib_prefix=no
10194
10386
  need_version=no
10195
10387
  hardcode_into_libs=yes
10254
10446
  ;;
10255
10447
 
10256
10448
bsdi[45]*)
10257
 
  version_type=linux
 
10449
  version_type=linux # correct to gnu/linux during the next big refactor
10258
10450
  need_version=no
10259
10451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260
10452
  soname_spec='${libname}${release}${shared_ext}$major'
10393
10585
  ;;
10394
10586
 
10395
10587
dgux*)
10396
 
  version_type=linux
 
10588
  version_type=linux # correct to gnu/linux during the next big refactor
10397
10589
  need_lib_prefix=no
10398
10590
  need_version=no
10399
10591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10401
10593
  shlibpath_var=LD_LIBRARY_PATH
10402
10594
  ;;
10403
10595
 
10404
 
freebsd1*)
10405
 
  dynamic_linker=no
10406
 
  ;;
10407
 
 
10408
10596
freebsd* | dragonfly*)
10409
10597
  # DragonFly does not have aout.  When/if they implement a new
10410
10598
  # versioning mechanism, adjust this.
10412
10600
    objformat=`/usr/bin/objformat`
10413
10601
  else
10414
10602
    case $host_os in
10415
 
    freebsd[123]*) objformat=aout ;;
 
10603
    freebsd[23].*) objformat=aout ;;
10416
10604
    *) objformat=elf ;;
10417
10605
    esac
10418
10606
  fi
10430
10618
  esac
10431
10619
  shlibpath_var=LD_LIBRARY_PATH
10432
10620
  case $host_os in
10433
 
  freebsd2*)
 
10621
  freebsd2.*)
10434
10622
    shlibpath_overrides_runpath=yes
10435
10623
    ;;
10436
10624
  freebsd3.[01]* | freebsdelf3.[01]*)
10450
10638
  ;;
10451
10639
 
10452
10640
gnu*)
10453
 
  version_type=linux
 
10641
  version_type=linux # correct to gnu/linux during the next big refactor
10454
10642
  need_lib_prefix=no
10455
10643
  need_version=no
10456
10644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10457
10645
  soname_spec='${libname}${release}${shared_ext}$major'
10458
10646
  shlibpath_var=LD_LIBRARY_PATH
 
10647
  shlibpath_overrides_runpath=no
10459
10648
  hardcode_into_libs=yes
10460
10649
  ;;
10461
10650
 
10462
10651
haiku*)
10463
 
  version_type=linux
 
10652
  version_type=linux # correct to gnu/linux during the next big refactor
10464
10653
  need_lib_prefix=no
10465
10654
  need_version=no
10466
10655
  dynamic_linker="$host_os runtime_loader"
10521
10710
  ;;
10522
10711
 
10523
10712
interix[3-9]*)
10524
 
  version_type=linux
 
10713
  version_type=linux # correct to gnu/linux during the next big refactor
10525
10714
  need_lib_prefix=no
10526
10715
  need_version=no
10527
10716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537
10726
    nonstopux*) version_type=nonstopux ;;
10538
10727
    *)
10539
10728
        if test "$lt_cv_prog_gnu_ld" = yes; then
10540
 
                version_type=linux
 
10729
                version_type=linux # correct to gnu/linux during the next big refactor
10541
10730
        else
10542
10731
                version_type=irix
10543
10732
        fi ;;
10574
10763
  dynamic_linker=no
10575
10764
  ;;
10576
10765
 
10577
 
# This must be Linux ELF.
 
10766
# This must be glibc/ELF.
10578
10767
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10579
 
  version_type=linux
 
10768
  version_type=linux # correct to gnu/linux during the next big refactor
10580
10769
  need_lib_prefix=no
10581
10770
  need_version=no
10582
10771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658
10847
  ;;
10659
10848
 
10660
10849
newsos6)
10661
 
  version_type=linux
 
10850
  version_type=linux # correct to gnu/linux during the next big refactor
10662
10851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663
10852
  shlibpath_var=LD_LIBRARY_PATH
10664
10853
  shlibpath_overrides_runpath=yes
10727
10916
  ;;
10728
10917
 
10729
10918
solaris*)
10730
 
  version_type=linux
 
10919
  version_type=linux # correct to gnu/linux during the next big refactor
10731
10920
  need_lib_prefix=no
10732
10921
  need_version=no
10733
10922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752
10941
  ;;
10753
10942
 
10754
10943
sysv4 | sysv4.3*)
10755
 
  version_type=linux
 
10944
  version_type=linux # correct to gnu/linux during the next big refactor
10756
10945
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757
10946
  soname_spec='${libname}${release}${shared_ext}$major'
10758
10947
  shlibpath_var=LD_LIBRARY_PATH
10776
10965
 
10777
10966
sysv4*MP*)
10778
10967
  if test -d /usr/nec ;then
10779
 
    version_type=linux
 
10968
    version_type=linux # correct to gnu/linux during the next big refactor
10780
10969
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10781
10970
    soname_spec='$libname${shared_ext}.$major'
10782
10971
    shlibpath_var=LD_LIBRARY_PATH
10807
10996
 
10808
10997
tpf*)
10809
10998
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10810
 
  version_type=linux
 
10999
  version_type=linux # correct to gnu/linux during the next big refactor
10811
11000
  need_lib_prefix=no
10812
11001
  need_version=no
10813
11002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817
11006
  ;;
10818
11007
 
10819
11008
uts4*)
10820
 
  version_type=linux
 
11009
  version_type=linux # correct to gnu/linux during the next big refactor
10821
11010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822
11011
  soname_spec='${libname}${release}${shared_ext}$major'
10823
11012
  shlibpath_var=LD_LIBRARY_PATH
11599
11788
 
11600
11789
 
11601
11790
 
 
11791
 
 
11792
 
11602
11793
        ac_config_commands="$ac_config_commands libtool"
11603
11794
 
11604
11795
 
11799
11990
 
11800
11991
 
11801
11992
 
 
11993
 
 
11994
 
11802
11995
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11803
11996
if test "x$ac_cv_have_decl___clang__" = xyes; then :
11804
11997
  CLANGCC="yes"
11950
12143
fi
11951
12144
 
11952
12145
 
 
12146
 
 
12147
 
 
12148
 
11953
12149
# -v is too short to test reliably with XORG_TESTSET_CFLAG
11954
12150
if test "x$SUNCC" = "xyes"; then
11955
12151
    BASE_CFLAGS="-v"
11963
12159
 
11964
12160
 
11965
12161
 
 
12162
 
 
12163
 
 
12164
 
 
12165
 
 
12166
 
 
12167
 
 
12168
 
 
12169
 
11966
12170
xorg_testset_save_CFLAGS="$CFLAGS"
11967
12171
 
11968
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
12172
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11969
12173
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11970
12174
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11971
12175
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11985
12189
fi
11986
12190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11987
12191
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11988
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12192
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11989
12193
        CFLAGS="$xorg_testset_save_CFLAGS"
11990
12194
fi
11991
12195
 
11992
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11993
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12196
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12197
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11994
12198
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11995
12199
        fi
11996
12200
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12012
12216
fi
12013
12217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12014
12218
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12015
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12219
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12016
12220
        CFLAGS="$xorg_testset_save_CFLAGS"
12017
12221
fi
12018
12222
 
12019
12223
found="no"
12020
12224
 
12021
12225
        if test $found = "no" ; then
12022
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12226
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12023
12227
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12024
12228
                fi
12025
12229
 
12026
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
12230
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12027
12231
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12028
12232
                fi
12029
12233
 
12031
12235
 
12032
12236
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12033
12237
$as_echo_n "checking if $CC supports -Wall... " >&6; }
12034
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
12035
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12238
                cacheid=xorg_cv_cc_flag__Wall
 
12239
                if eval \${$cacheid+:} false; then :
12036
12240
  $as_echo_n "(cached) " >&6
12037
12241
else
12038
12242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047
12251
}
12048
12252
_ACEOF
12049
12253
if ac_fn_c_try_link "$LINENO"; then :
12050
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
12254
  eval $cacheid=yes
12051
12255
else
12052
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
12256
  eval $cacheid=no
12053
12257
fi
12054
12258
rm -f core conftest.err conftest.$ac_objext \
12055
12259
    conftest$ac_exeext conftest.$ac_ext
12058
12262
 
12059
12263
                CFLAGS="$xorg_testset_save_CFLAGS"
12060
12264
 
12061
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
12265
                eval supported=\$$cacheid
12062
12266
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12063
12267
$as_echo "$supported" >&6; }
12064
12268
                if test "$supported" = "yes" ; then
12073
12277
 
12074
12278
 
12075
12279
 
 
12280
 
 
12281
 
 
12282
 
 
12283
 
 
12284
 
 
12285
 
 
12286
 
 
12287
 
12076
12288
xorg_testset_save_CFLAGS="$CFLAGS"
12077
12289
 
12078
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
12290
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12079
12291
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12080
12292
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12081
12293
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12095
12307
fi
12096
12308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12097
12309
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12098
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12310
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12099
12311
        CFLAGS="$xorg_testset_save_CFLAGS"
12100
12312
fi
12101
12313
 
12102
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12103
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12314
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12315
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12104
12316
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12105
12317
        fi
12106
12318
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12122
12334
fi
12123
12335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12124
12336
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12125
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12337
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12126
12338
        CFLAGS="$xorg_testset_save_CFLAGS"
12127
12339
fi
12128
12340
 
12129
12341
found="no"
12130
12342
 
12131
12343
        if test $found = "no" ; then
12132
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12344
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12133
12345
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12134
12346
                fi
12135
12347
 
12136
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
12348
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12137
12349
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12138
12350
                fi
12139
12351
 
12141
12353
 
12142
12354
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12143
12355
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12144
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
12145
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12356
                cacheid=xorg_cv_cc_flag__Wpointer_arith
 
12357
                if eval \${$cacheid+:} false; then :
12146
12358
  $as_echo_n "(cached) " >&6
12147
12359
else
12148
12360
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157
12369
}
12158
12370
_ACEOF
12159
12371
if ac_fn_c_try_link "$LINENO"; then :
12160
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
12372
  eval $cacheid=yes
12161
12373
else
12162
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
12374
  eval $cacheid=no
12163
12375
fi
12164
12376
rm -f core conftest.err conftest.$ac_objext \
12165
12377
    conftest$ac_exeext conftest.$ac_ext
12168
12380
 
12169
12381
                CFLAGS="$xorg_testset_save_CFLAGS"
12170
12382
 
12171
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
12383
                eval supported=\$$cacheid
12172
12384
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12173
12385
$as_echo "$supported" >&6; }
12174
12386
                if test "$supported" = "yes" ; then
12183
12395
 
12184
12396
 
12185
12397
 
12186
 
xorg_testset_save_CFLAGS="$CFLAGS"
12187
 
 
12188
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12189
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12190
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12191
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12192
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12193
 
  $as_echo_n "(cached) " >&6
12194
 
else
12195
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
 
/* end confdefs.h.  */
12197
 
int i;
12198
 
_ACEOF
12199
 
if ac_fn_c_try_compile "$LINENO"; then :
12200
 
  xorg_cv_cc_flag_unknown_warning_option=yes
12201
 
else
12202
 
  xorg_cv_cc_flag_unknown_warning_option=no
12203
 
fi
12204
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205
 
fi
12206
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12207
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12208
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12209
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12210
 
fi
12211
 
 
12212
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12213
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12214
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12215
 
        fi
12216
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12217
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12218
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12219
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12220
 
  $as_echo_n "(cached) " >&6
12221
 
else
12222
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223
 
/* end confdefs.h.  */
12224
 
int i;
12225
 
_ACEOF
12226
 
if ac_fn_c_try_compile "$LINENO"; then :
12227
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
12228
 
else
12229
 
  xorg_cv_cc_flag_unused_command_line_argument=no
12230
 
fi
12231
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232
 
fi
12233
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12234
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12235
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12236
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12237
 
fi
12238
 
 
12239
 
found="no"
12240
 
 
12241
 
        if test $found = "no" ; then
12242
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12243
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244
 
                fi
12245
 
 
12246
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
12398
 
 
12399
 
 
12400
 
 
12401
 
 
12402
 
 
12403
 
 
12404
 
 
12405
 
 
12406
xorg_testset_save_CFLAGS="$CFLAGS"
 
12407
 
 
12408
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12409
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12410
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12411
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12412
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12413
  $as_echo_n "(cached) " >&6
 
12414
else
 
12415
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12416
/* end confdefs.h.  */
 
12417
int i;
 
12418
_ACEOF
 
12419
if ac_fn_c_try_compile "$LINENO"; then :
 
12420
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12421
else
 
12422
  xorg_cv_cc_flag_unknown_warning_option=no
 
12423
fi
 
12424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12425
fi
 
12426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12427
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12428
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12429
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12430
fi
 
12431
 
 
12432
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12433
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12434
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12435
        fi
 
12436
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12437
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12438
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12439
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12440
  $as_echo_n "(cached) " >&6
 
12441
else
 
12442
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12443
/* end confdefs.h.  */
 
12444
int i;
 
12445
_ACEOF
 
12446
if ac_fn_c_try_compile "$LINENO"; then :
 
12447
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12448
else
 
12449
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12450
fi
 
12451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12452
fi
 
12453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12454
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12455
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12456
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12457
fi
 
12458
 
 
12459
found="no"
 
12460
 
 
12461
        if test $found = "no" ; then
 
12462
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12463
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12464
                fi
 
12465
 
 
12466
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12467
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12468
                fi
 
12469
 
 
12470
                CFLAGS="$CFLAGS -Wmissing-declarations"
 
12471
 
 
12472
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
 
12473
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
 
12474
                cacheid=xorg_cv_cc_flag__Wmissing_declarations
 
12475
                if eval \${$cacheid+:} false; then :
 
12476
  $as_echo_n "(cached) " >&6
 
12477
else
 
12478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12479
/* end confdefs.h.  */
 
12480
int i;
 
12481
int
 
12482
main ()
 
12483
{
 
12484
 
 
12485
  ;
 
12486
  return 0;
 
12487
}
 
12488
_ACEOF
 
12489
if ac_fn_c_try_link "$LINENO"; then :
 
12490
  eval $cacheid=yes
 
12491
else
 
12492
  eval $cacheid=no
 
12493
fi
 
12494
rm -f core conftest.err conftest.$ac_objext \
 
12495
    conftest$ac_exeext conftest.$ac_ext
 
12496
fi
 
12497
 
 
12498
 
 
12499
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12500
 
 
12501
                eval supported=\$$cacheid
 
12502
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12503
$as_echo "$supported" >&6; }
 
12504
                if test "$supported" = "yes" ; then
 
12505
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
 
12506
                        found="yes"
 
12507
                fi
 
12508
        fi
 
12509
 
 
12510
 
 
12511
 
 
12512
 
 
12513
 
 
12514
 
 
12515
 
 
12516
 
 
12517
 
 
12518
 
 
12519
 
 
12520
 
 
12521
 
 
12522
 
 
12523
 
 
12524
xorg_testset_save_CFLAGS="$CFLAGS"
 
12525
 
 
12526
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12527
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12528
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12529
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12530
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12531
  $as_echo_n "(cached) " >&6
 
12532
else
 
12533
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12534
/* end confdefs.h.  */
 
12535
int i;
 
12536
_ACEOF
 
12537
if ac_fn_c_try_compile "$LINENO"; then :
 
12538
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12539
else
 
12540
  xorg_cv_cc_flag_unknown_warning_option=no
 
12541
fi
 
12542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12543
fi
 
12544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12545
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12546
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12547
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12548
fi
 
12549
 
 
12550
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12551
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12552
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12553
        fi
 
12554
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12555
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12556
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12557
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12558
  $as_echo_n "(cached) " >&6
 
12559
else
 
12560
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12561
/* end confdefs.h.  */
 
12562
int i;
 
12563
_ACEOF
 
12564
if ac_fn_c_try_compile "$LINENO"; then :
 
12565
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12566
else
 
12567
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12568
fi
 
12569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12570
fi
 
12571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12572
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12573
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12574
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12575
fi
 
12576
 
 
12577
found="no"
 
12578
 
 
12579
        if test $found = "no" ; then
 
12580
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12581
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12582
                fi
 
12583
 
 
12584
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12585
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12586
                fi
 
12587
 
 
12588
                CFLAGS="$CFLAGS -Wformat=2"
 
12589
 
 
12590
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
 
12591
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
 
12592
                cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
 
12593
                if eval \${$cacheid+:} false; then :
 
12594
  $as_echo_n "(cached) " >&6
 
12595
else
 
12596
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12597
/* end confdefs.h.  */
 
12598
int i;
 
12599
int
 
12600
main ()
 
12601
{
 
12602
 
 
12603
  ;
 
12604
  return 0;
 
12605
}
 
12606
_ACEOF
 
12607
if ac_fn_c_try_link "$LINENO"; then :
 
12608
  eval $cacheid=yes
 
12609
else
 
12610
  eval $cacheid=no
 
12611
fi
 
12612
rm -f core conftest.err conftest.$ac_objext \
 
12613
    conftest$ac_exeext conftest.$ac_ext
 
12614
fi
 
12615
 
 
12616
 
 
12617
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12618
 
 
12619
                eval supported=\$$cacheid
 
12620
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12621
$as_echo "$supported" >&6; }
 
12622
                if test "$supported" = "yes" ; then
 
12623
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
 
12624
                        found="yes"
 
12625
                fi
 
12626
        fi
 
12627
 
 
12628
        if test $found = "no" ; then
 
12629
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12630
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12631
                fi
 
12632
 
 
12633
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12634
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12635
                fi
 
12636
 
 
12637
                CFLAGS="$CFLAGS -Wformat"
 
12638
 
 
12639
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
 
12640
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
 
12641
                cacheid=xorg_cv_cc_flag__Wformat
 
12642
                if eval \${$cacheid+:} false; then :
 
12643
  $as_echo_n "(cached) " >&6
 
12644
else
 
12645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12646
/* end confdefs.h.  */
 
12647
int i;
 
12648
int
 
12649
main ()
 
12650
{
 
12651
 
 
12652
  ;
 
12653
  return 0;
 
12654
}
 
12655
_ACEOF
 
12656
if ac_fn_c_try_link "$LINENO"; then :
 
12657
  eval $cacheid=yes
 
12658
else
 
12659
  eval $cacheid=no
 
12660
fi
 
12661
rm -f core conftest.err conftest.$ac_objext \
 
12662
    conftest$ac_exeext conftest.$ac_ext
 
12663
fi
 
12664
 
 
12665
 
 
12666
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12667
 
 
12668
                eval supported=\$$cacheid
 
12669
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12670
$as_echo "$supported" >&6; }
 
12671
                if test "$supported" = "yes" ; then
 
12672
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
 
12673
                        found="yes"
 
12674
                fi
 
12675
        fi
 
12676
 
 
12677
 
 
12678
 
 
12679
 
 
12680
 
 
12681
 
 
12682
 
 
12683
 
 
12684
 
 
12685
 
 
12686
 
 
12687
 
 
12688
 
 
12689
 
 
12690
 
 
12691
 
 
12692
 
 
12693
xorg_testset_save_CFLAGS="$CFLAGS"
 
12694
 
 
12695
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12696
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12697
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12698
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12699
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12700
  $as_echo_n "(cached) " >&6
 
12701
else
 
12702
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12703
/* end confdefs.h.  */
 
12704
int i;
 
12705
_ACEOF
 
12706
if ac_fn_c_try_compile "$LINENO"; then :
 
12707
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12708
else
 
12709
  xorg_cv_cc_flag_unknown_warning_option=no
 
12710
fi
 
12711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12712
fi
 
12713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12714
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12715
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12716
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12717
fi
 
12718
 
 
12719
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12720
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12721
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12722
        fi
 
12723
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12724
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12725
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12726
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12727
  $as_echo_n "(cached) " >&6
 
12728
else
 
12729
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12730
/* end confdefs.h.  */
 
12731
int i;
 
12732
_ACEOF
 
12733
if ac_fn_c_try_compile "$LINENO"; then :
 
12734
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12735
else
 
12736
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12737
fi
 
12738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12739
fi
 
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12741
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12742
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12743
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12744
fi
 
12745
 
 
12746
found="no"
 
12747
 
 
12748
        if test $found = "no" ; then
 
12749
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12750
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12751
                fi
 
12752
 
 
12753
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12247
12754
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12248
12755
                fi
12249
12756
 
12251
12758
 
12252
12759
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12253
12760
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12254
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12255
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12761
                cacheid=xorg_cv_cc_flag__Wstrict_prototypes
 
12762
                if eval \${$cacheid+:} false; then :
12256
12763
  $as_echo_n "(cached) " >&6
12257
12764
else
12258
12765
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267
12774
}
12268
12775
_ACEOF
12269
12776
if ac_fn_c_try_link "$LINENO"; then :
12270
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
12777
  eval $cacheid=yes
12271
12778
else
12272
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
12779
  eval $cacheid=no
12273
12780
fi
12274
12781
rm -f core conftest.err conftest.$ac_objext \
12275
12782
    conftest$ac_exeext conftest.$ac_ext
12278
12785
 
12279
12786
                CFLAGS="$xorg_testset_save_CFLAGS"
12280
12787
 
12281
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
12788
                eval supported=\$$cacheid
12282
12789
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12283
12790
$as_echo "$supported" >&6; }
12284
12791
                if test "$supported" = "yes" ; then
12293
12800
 
12294
12801
 
12295
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
12296
12811
xorg_testset_save_CFLAGS="$CFLAGS"
12297
12812
 
12298
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
12813
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12299
12814
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12300
12815
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12301
12816
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12315
12830
fi
12316
12831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12317
12832
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12318
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12833
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12319
12834
        CFLAGS="$xorg_testset_save_CFLAGS"
12320
12835
fi
12321
12836
 
12322
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12323
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12837
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12838
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12324
12839
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12325
12840
        fi
12326
12841
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12342
12857
fi
12343
12858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12344
12859
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12345
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12860
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12346
12861
        CFLAGS="$xorg_testset_save_CFLAGS"
12347
12862
fi
12348
12863
 
12349
12864
found="no"
12350
12865
 
12351
12866
        if test $found = "no" ; then
12352
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
12867
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12353
12868
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12354
12869
                fi
12355
12870
 
12356
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
12871
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12357
12872
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12358
12873
                fi
12359
12874
 
12361
12876
 
12362
12877
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12363
12878
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12364
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12365
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12879
                cacheid=xorg_cv_cc_flag__Wmissing_prototypes
 
12880
                if eval \${$cacheid+:} false; then :
12366
12881
  $as_echo_n "(cached) " >&6
12367
12882
else
12368
12883
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377
12892
}
12378
12893
_ACEOF
12379
12894
if ac_fn_c_try_link "$LINENO"; then :
12380
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
12895
  eval $cacheid=yes
12381
12896
else
12382
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
12897
  eval $cacheid=no
12383
12898
fi
12384
12899
rm -f core conftest.err conftest.$ac_objext \
12385
12900
    conftest$ac_exeext conftest.$ac_ext
12388
12903
 
12389
12904
                CFLAGS="$xorg_testset_save_CFLAGS"
12390
12905
 
12391
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
12906
                eval supported=\$$cacheid
12392
12907
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12393
12908
$as_echo "$supported" >&6; }
12394
12909
                if test "$supported" = "yes" ; then
12403
12918
 
12404
12919
 
12405
12920
 
12406
 
xorg_testset_save_CFLAGS="$CFLAGS"
12407
 
 
12408
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12409
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12410
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12411
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12412
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12413
 
  $as_echo_n "(cached) " >&6
12414
 
else
12415
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416
 
/* end confdefs.h.  */
12417
 
int i;
12418
 
_ACEOF
12419
 
if ac_fn_c_try_compile "$LINENO"; then :
12420
 
  xorg_cv_cc_flag_unknown_warning_option=yes
12421
 
else
12422
 
  xorg_cv_cc_flag_unknown_warning_option=no
12423
 
fi
12424
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425
 
fi
12426
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12427
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12428
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12429
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12430
 
fi
12431
 
 
12432
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12433
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12434
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12435
 
        fi
12436
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12437
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12438
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12439
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12440
 
  $as_echo_n "(cached) " >&6
12441
 
else
12442
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443
 
/* end confdefs.h.  */
12444
 
int i;
12445
 
_ACEOF
12446
 
if ac_fn_c_try_compile "$LINENO"; then :
12447
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
12448
 
else
12449
 
  xorg_cv_cc_flag_unused_command_line_argument=no
12450
 
fi
12451
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452
 
fi
12453
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12454
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12455
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12456
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12457
 
fi
12458
 
 
12459
 
found="no"
12460
 
 
12461
 
        if test $found = "no" ; then
12462
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12463
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12464
 
                fi
12465
 
 
12466
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12467
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12468
 
                fi
12469
 
 
12470
 
                CFLAGS="$CFLAGS -Wmissing-declarations"
12471
 
 
12472
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12473
 
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12474
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
12475
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12476
 
  $as_echo_n "(cached) " >&6
12477
 
else
12478
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479
 
/* end confdefs.h.  */
12480
 
int i;
12481
 
int
12482
 
main ()
12483
 
{
12484
 
 
12485
 
  ;
12486
 
  return 0;
12487
 
}
12488
 
_ACEOF
12489
 
if ac_fn_c_try_link "$LINENO"; then :
12490
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12491
 
else
12492
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12493
 
fi
12494
 
rm -f core conftest.err conftest.$ac_objext \
12495
 
    conftest$ac_exeext conftest.$ac_ext
12496
 
fi
12497
 
 
12498
 
 
12499
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12500
 
 
12501
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12502
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12503
 
$as_echo "$supported" >&6; }
12504
 
                if test "$supported" = "yes" ; then
12505
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12506
 
                        found="yes"
12507
 
                fi
12508
 
        fi
12509
 
 
12510
 
 
12511
 
 
12512
 
 
12513
 
 
12514
 
 
12515
 
 
12516
 
xorg_testset_save_CFLAGS="$CFLAGS"
12517
 
 
12518
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12519
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12520
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12521
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12522
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12523
 
  $as_echo_n "(cached) " >&6
12524
 
else
12525
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526
 
/* end confdefs.h.  */
12527
 
int i;
12528
 
_ACEOF
12529
 
if ac_fn_c_try_compile "$LINENO"; then :
12530
 
  xorg_cv_cc_flag_unknown_warning_option=yes
12531
 
else
12532
 
  xorg_cv_cc_flag_unknown_warning_option=no
12533
 
fi
12534
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535
 
fi
12536
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12537
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12538
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12539
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12540
 
fi
12541
 
 
12542
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12543
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12544
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12545
 
        fi
12546
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12547
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12548
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12549
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12550
 
  $as_echo_n "(cached) " >&6
12551
 
else
12552
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553
 
/* end confdefs.h.  */
12554
 
int i;
12555
 
_ACEOF
12556
 
if ac_fn_c_try_compile "$LINENO"; then :
12557
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
12558
 
else
12559
 
  xorg_cv_cc_flag_unused_command_line_argument=no
12560
 
fi
12561
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562
 
fi
12563
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12564
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12565
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12566
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12567
 
fi
12568
 
 
12569
 
found="no"
12570
 
 
12571
 
        if test $found = "no" ; then
12572
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12573
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12574
 
                fi
12575
 
 
12576
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
12921
 
 
12922
 
 
12923
 
 
12924
 
 
12925
 
 
12926
 
 
12927
 
 
12928
 
 
12929
xorg_testset_save_CFLAGS="$CFLAGS"
 
12930
 
 
12931
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12932
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12933
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12934
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12935
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12936
  $as_echo_n "(cached) " >&6
 
12937
else
 
12938
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12939
/* end confdefs.h.  */
 
12940
int i;
 
12941
_ACEOF
 
12942
if ac_fn_c_try_compile "$LINENO"; then :
 
12943
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12944
else
 
12945
  xorg_cv_cc_flag_unknown_warning_option=no
 
12946
fi
 
12947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12948
fi
 
12949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12950
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12951
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12952
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12953
fi
 
12954
 
 
12955
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12956
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12957
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12958
        fi
 
12959
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12960
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12961
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12962
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12963
  $as_echo_n "(cached) " >&6
 
12964
else
 
12965
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12966
/* end confdefs.h.  */
 
12967
int i;
 
12968
_ACEOF
 
12969
if ac_fn_c_try_compile "$LINENO"; then :
 
12970
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12971
else
 
12972
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12973
fi
 
12974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12975
fi
 
12976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12977
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12978
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12979
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12980
fi
 
12981
 
 
12982
found="no"
 
12983
 
 
12984
        if test $found = "no" ; then
 
12985
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12986
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12987
                fi
 
12988
 
 
12989
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12577
12990
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12578
12991
                fi
12579
12992
 
12581
12994
 
12582
12995
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12583
12996
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12584
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12585
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12997
                cacheid=xorg_cv_cc_flag__Wnested_externs
 
12998
                if eval \${$cacheid+:} false; then :
12586
12999
  $as_echo_n "(cached) " >&6
12587
13000
else
12588
13001
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597
13010
}
12598
13011
_ACEOF
12599
13012
if ac_fn_c_try_link "$LINENO"; then :
12600
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13013
  eval $cacheid=yes
12601
13014
else
12602
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13015
  eval $cacheid=no
12603
13016
fi
12604
13017
rm -f core conftest.err conftest.$ac_objext \
12605
13018
    conftest$ac_exeext conftest.$ac_ext
12608
13021
 
12609
13022
                CFLAGS="$xorg_testset_save_CFLAGS"
12610
13023
 
12611
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13024
                eval supported=\$$cacheid
12612
13025
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12613
13026
$as_echo "$supported" >&6; }
12614
13027
                if test "$supported" = "yes" ; then
12623
13036
 
12624
13037
 
12625
13038
 
 
13039
 
 
13040
 
 
13041
 
 
13042
 
 
13043
 
 
13044
 
 
13045
 
 
13046
 
12626
13047
xorg_testset_save_CFLAGS="$CFLAGS"
12627
13048
 
12628
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13049
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12629
13050
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12630
13051
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12631
13052
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12645
13066
fi
12646
13067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12647
13068
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12648
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13069
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12649
13070
        CFLAGS="$xorg_testset_save_CFLAGS"
12650
13071
fi
12651
13072
 
12652
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12653
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13073
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13074
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12654
13075
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12655
13076
        fi
12656
13077
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12672
13093
fi
12673
13094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12674
13095
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12675
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13096
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12676
13097
        CFLAGS="$xorg_testset_save_CFLAGS"
12677
13098
fi
12678
13099
 
12679
13100
found="no"
12680
13101
 
12681
13102
        if test $found = "no" ; then
12682
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13103
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12683
13104
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12684
13105
                fi
12685
13106
 
12686
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13107
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12687
13108
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12688
13109
                fi
12689
13110
 
12691
13112
 
12692
13113
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12693
13114
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12694
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12695
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13115
                cacheid=xorg_cv_cc_flag__Wbad_function_cast
 
13116
                if eval \${$cacheid+:} false; then :
12696
13117
  $as_echo_n "(cached) " >&6
12697
13118
else
12698
13119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707
13128
}
12708
13129
_ACEOF
12709
13130
if ac_fn_c_try_link "$LINENO"; then :
12710
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13131
  eval $cacheid=yes
12711
13132
else
12712
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13133
  eval $cacheid=no
12713
13134
fi
12714
13135
rm -f core conftest.err conftest.$ac_objext \
12715
13136
    conftest$ac_exeext conftest.$ac_ext
12718
13139
 
12719
13140
                CFLAGS="$xorg_testset_save_CFLAGS"
12720
13141
 
12721
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13142
                eval supported=\$$cacheid
12722
13143
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12723
13144
$as_echo "$supported" >&6; }
12724
13145
                if test "$supported" = "yes" ; then
12733
13154
 
12734
13155
 
12735
13156
 
12736
 
xorg_testset_save_CFLAGS="$CFLAGS"
12737
 
 
12738
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12739
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12740
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12741
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12742
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12743
 
  $as_echo_n "(cached) " >&6
12744
 
else
12745
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746
 
/* end confdefs.h.  */
12747
 
int i;
12748
 
_ACEOF
12749
 
if ac_fn_c_try_compile "$LINENO"; then :
12750
 
  xorg_cv_cc_flag_unknown_warning_option=yes
12751
 
else
12752
 
  xorg_cv_cc_flag_unknown_warning_option=no
12753
 
fi
12754
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755
 
fi
12756
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12757
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12758
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12759
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12760
 
fi
12761
 
 
12762
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12763
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12764
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12765
 
        fi
12766
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12767
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12768
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12769
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12770
 
  $as_echo_n "(cached) " >&6
12771
 
else
12772
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773
 
/* end confdefs.h.  */
12774
 
int i;
12775
 
_ACEOF
12776
 
if ac_fn_c_try_compile "$LINENO"; then :
12777
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
12778
 
else
12779
 
  xorg_cv_cc_flag_unused_command_line_argument=no
12780
 
fi
12781
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782
 
fi
12783
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12784
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12785
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12786
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12787
 
fi
12788
 
 
12789
 
found="no"
12790
 
 
12791
 
        if test $found = "no" ; then
12792
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12793
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12794
 
                fi
12795
 
 
12796
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12797
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12798
 
                fi
12799
 
 
12800
 
                CFLAGS="$CFLAGS -Wformat=2"
12801
 
 
12802
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12803
 
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12804
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12805
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12806
 
  $as_echo_n "(cached) " >&6
12807
 
else
12808
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809
 
/* end confdefs.h.  */
12810
 
int i;
12811
 
int
12812
 
main ()
12813
 
{
12814
 
 
12815
 
  ;
12816
 
  return 0;
12817
 
}
12818
 
_ACEOF
12819
 
if ac_fn_c_try_link "$LINENO"; then :
12820
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12821
 
else
12822
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12823
 
fi
12824
 
rm -f core conftest.err conftest.$ac_objext \
12825
 
    conftest$ac_exeext conftest.$ac_ext
12826
 
fi
12827
 
 
12828
 
 
12829
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12830
 
 
12831
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12832
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12833
 
$as_echo "$supported" >&6; }
12834
 
                if test "$supported" = "yes" ; then
12835
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12836
 
                        found="yes"
12837
 
                fi
12838
 
        fi
12839
 
 
12840
 
        if test $found = "no" ; then
12841
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12842
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12843
 
                fi
12844
 
 
12845
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12846
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12847
 
                fi
12848
 
 
12849
 
                CFLAGS="$CFLAGS -Wformat"
12850
 
 
12851
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12852
 
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12853
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12854
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12855
 
  $as_echo_n "(cached) " >&6
12856
 
else
12857
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858
 
/* end confdefs.h.  */
12859
 
int i;
12860
 
int
12861
 
main ()
12862
 
{
12863
 
 
12864
 
  ;
12865
 
  return 0;
12866
 
}
12867
 
_ACEOF
12868
 
if ac_fn_c_try_link "$LINENO"; then :
12869
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12870
 
else
12871
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12872
 
fi
12873
 
rm -f core conftest.err conftest.$ac_objext \
12874
 
    conftest$ac_exeext conftest.$ac_ext
12875
 
fi
12876
 
 
12877
 
 
12878
 
                CFLAGS="$xorg_testset_save_CFLAGS"
12879
 
 
12880
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12881
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12882
 
$as_echo "$supported" >&6; }
12883
 
                if test "$supported" = "yes" ; then
12884
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12885
 
                        found="yes"
12886
 
                fi
12887
 
        fi
12888
 
 
12889
 
 
12890
 
 
12891
 
 
12892
 
 
12893
 
 
12894
 
 
12895
 
xorg_testset_save_CFLAGS="$CFLAGS"
12896
 
 
12897
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12898
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12899
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12900
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12901
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12902
 
  $as_echo_n "(cached) " >&6
12903
 
else
12904
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905
 
/* end confdefs.h.  */
12906
 
int i;
12907
 
_ACEOF
12908
 
if ac_fn_c_try_compile "$LINENO"; then :
12909
 
  xorg_cv_cc_flag_unknown_warning_option=yes
12910
 
else
12911
 
  xorg_cv_cc_flag_unknown_warning_option=no
12912
 
fi
12913
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914
 
fi
12915
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12916
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12917
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12918
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12919
 
fi
12920
 
 
12921
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12922
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12923
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12924
 
        fi
12925
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12926
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12927
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12928
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12929
 
  $as_echo_n "(cached) " >&6
12930
 
else
12931
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932
 
/* end confdefs.h.  */
12933
 
int i;
12934
 
_ACEOF
12935
 
if ac_fn_c_try_compile "$LINENO"; then :
12936
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
12937
 
else
12938
 
  xorg_cv_cc_flag_unused_command_line_argument=no
12939
 
fi
12940
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941
 
fi
12942
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12943
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12944
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12945
 
        CFLAGS="$xorg_testset_save_CFLAGS"
12946
 
fi
12947
 
 
12948
 
found="no"
12949
 
 
12950
 
        if test $found = "no" ; then
12951
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12952
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12953
 
                fi
12954
 
 
12955
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13157
 
 
13158
 
 
13159
 
 
13160
 
 
13161
 
 
13162
 
 
13163
 
 
13164
 
 
13165
xorg_testset_save_CFLAGS="$CFLAGS"
 
13166
 
 
13167
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13168
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13169
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13170
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13171
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13172
  $as_echo_n "(cached) " >&6
 
13173
else
 
13174
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13175
/* end confdefs.h.  */
 
13176
int i;
 
13177
_ACEOF
 
13178
if ac_fn_c_try_compile "$LINENO"; then :
 
13179
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13180
else
 
13181
  xorg_cv_cc_flag_unknown_warning_option=no
 
13182
fi
 
13183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13184
fi
 
13185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13186
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13187
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13188
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13189
fi
 
13190
 
 
13191
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13192
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13193
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13194
        fi
 
13195
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13196
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13197
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13198
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13199
  $as_echo_n "(cached) " >&6
 
13200
else
 
13201
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13202
/* end confdefs.h.  */
 
13203
int i;
 
13204
_ACEOF
 
13205
if ac_fn_c_try_compile "$LINENO"; then :
 
13206
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13207
else
 
13208
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13209
fi
 
13210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13211
fi
 
13212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13213
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13214
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13215
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13216
fi
 
13217
 
 
13218
found="no"
 
13219
 
 
13220
        if test $found = "no" ; then
 
13221
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13222
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13223
                fi
 
13224
 
 
13225
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12956
13226
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12957
13227
                fi
12958
13228
 
12960
13230
 
12961
13231
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12962
13232
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12963
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12964
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13233
                cacheid=xorg_cv_cc_flag__Wold_style_definition
 
13234
                if eval \${$cacheid+:} false; then :
12965
13235
  $as_echo_n "(cached) " >&6
12966
13236
else
12967
13237
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976
13246
}
12977
13247
_ACEOF
12978
13248
if ac_fn_c_try_link "$LINENO"; then :
12979
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13249
  eval $cacheid=yes
12980
13250
else
12981
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13251
  eval $cacheid=no
12982
13252
fi
12983
13253
rm -f core conftest.err conftest.$ac_objext \
12984
13254
    conftest$ac_exeext conftest.$ac_ext
12987
13257
 
12988
13258
                CFLAGS="$xorg_testset_save_CFLAGS"
12989
13259
 
12990
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13260
                eval supported=\$$cacheid
12991
13261
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12992
13262
$as_echo "$supported" >&6; }
12993
13263
                if test "$supported" = "yes" ; then
12996
13266
                fi
12997
13267
        fi
12998
13268
 
 
13269
        if test $found = "no" ; then
 
13270
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13271
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13272
                fi
 
13273
 
 
13274
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13275
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13276
                fi
 
13277
 
 
13278
                CFLAGS="$CFLAGS -fd"
 
13279
 
 
13280
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
 
13281
$as_echo_n "checking if $CC supports -fd... " >&6; }
 
13282
                cacheid=xorg_cv_cc_flag__fd
 
13283
                if eval \${$cacheid+:} false; then :
 
13284
  $as_echo_n "(cached) " >&6
 
13285
else
 
13286
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13287
/* end confdefs.h.  */
 
13288
int i;
 
13289
int
 
13290
main ()
 
13291
{
 
13292
 
 
13293
  ;
 
13294
  return 0;
 
13295
}
 
13296
_ACEOF
 
13297
if ac_fn_c_try_link "$LINENO"; then :
 
13298
  eval $cacheid=yes
 
13299
else
 
13300
  eval $cacheid=no
 
13301
fi
 
13302
rm -f core conftest.err conftest.$ac_objext \
 
13303
    conftest$ac_exeext conftest.$ac_ext
 
13304
fi
 
13305
 
 
13306
 
 
13307
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13308
 
 
13309
                eval supported=\$$cacheid
 
13310
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13311
$as_echo "$supported" >&6; }
 
13312
                if test "$supported" = "yes" ; then
 
13313
                        BASE_CFLAGS="$BASE_CFLAGS -fd"
 
13314
                        found="yes"
 
13315
                fi
 
13316
        fi
 
13317
 
 
13318
 
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
 
 
13325
 
12999
13326
 
13000
13327
 
13001
13328
 
13004
13331
 
13005
13332
xorg_testset_save_CFLAGS="$CFLAGS"
13006
13333
 
13007
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13334
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13008
13335
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009
13336
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13010
13337
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13024
13351
fi
13025
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13026
13353
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13027
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13354
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13028
13355
        CFLAGS="$xorg_testset_save_CFLAGS"
13029
13356
fi
13030
13357
 
13031
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13032
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13358
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13359
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13033
13360
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13034
13361
        fi
13035
13362
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13051
13378
fi
13052
13379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13053
13380
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13054
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13381
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13055
13382
        CFLAGS="$xorg_testset_save_CFLAGS"
13056
13383
fi
13057
13384
 
13058
13385
found="no"
13059
13386
 
13060
13387
        if test $found = "no" ; then
13061
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13388
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13062
13389
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13063
13390
                fi
13064
13391
 
13065
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13392
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13066
13393
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13067
13394
                fi
13068
13395
 
13070
13397
 
13071
13398
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13072
13399
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13073
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
13074
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13400
                cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
 
13401
                if eval \${$cacheid+:} false; then :
13075
13402
  $as_echo_n "(cached) " >&6
13076
13403
else
13077
13404
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086
13413
}
13087
13414
_ACEOF
13088
13415
if ac_fn_c_try_link "$LINENO"; then :
13089
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13416
  eval $cacheid=yes
13090
13417
else
13091
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13418
  eval $cacheid=no
13092
13419
fi
13093
13420
rm -f core conftest.err conftest.$ac_objext \
13094
13421
    conftest$ac_exeext conftest.$ac_ext
13097
13424
 
13098
13425
                CFLAGS="$xorg_testset_save_CFLAGS"
13099
13426
 
13100
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13427
                eval supported=\$$cacheid
13101
13428
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13102
13429
$as_echo "$supported" >&6; }
13103
13430
                if test "$supported" = "yes" ; then
13108
13435
 
13109
13436
 
13110
13437
 
 
13438
 
 
13439
 
13111
13440
# This chunk adds additional warnings that could catch undesired effects.
13112
13441
 
13113
13442
 
13114
13443
 
13115
13444
 
13116
13445
 
 
13446
 
 
13447
 
 
13448
 
 
13449
 
 
13450
 
 
13451
 
 
13452
 
 
13453
 
13117
13454
xorg_testset_save_CFLAGS="$CFLAGS"
13118
13455
 
13119
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13456
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13120
13457
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13121
13458
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13122
13459
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13136
13473
fi
13137
13474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13138
13475
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13139
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13476
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13140
13477
        CFLAGS="$xorg_testset_save_CFLAGS"
13141
13478
fi
13142
13479
 
13143
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13144
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13480
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13481
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13145
13482
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13146
13483
        fi
13147
13484
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13163
13500
fi
13164
13501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13165
13502
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13166
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13503
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13167
13504
        CFLAGS="$xorg_testset_save_CFLAGS"
13168
13505
fi
13169
13506
 
13170
13507
found="no"
13171
13508
 
13172
13509
        if test $found = "no" ; then
13173
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13510
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13174
13511
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13175
13512
                fi
13176
13513
 
13177
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13514
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13178
13515
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13179
13516
                fi
13180
13517
 
13182
13519
 
13183
13520
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13184
13521
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13185
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
13186
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13522
                cacheid=xorg_cv_cc_flag__Wunused
 
13523
                if eval \${$cacheid+:} false; then :
13187
13524
  $as_echo_n "(cached) " >&6
13188
13525
else
13189
13526
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198
13535
}
13199
13536
_ACEOF
13200
13537
if ac_fn_c_try_link "$LINENO"; then :
13201
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13538
  eval $cacheid=yes
13202
13539
else
13203
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13540
  eval $cacheid=no
13204
13541
fi
13205
13542
rm -f core conftest.err conftest.$ac_objext \
13206
13543
    conftest$ac_exeext conftest.$ac_ext
13209
13546
 
13210
13547
                CFLAGS="$xorg_testset_save_CFLAGS"
13211
13548
 
13212
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13549
                eval supported=\$$cacheid
13213
13550
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13214
13551
$as_echo "$supported" >&6; }
13215
13552
                if test "$supported" = "yes" ; then
13224
13561
 
13225
13562
 
13226
13563
 
 
13564
 
 
13565
 
 
13566
 
 
13567
 
 
13568
 
 
13569
 
 
13570
 
 
13571
 
13227
13572
xorg_testset_save_CFLAGS="$CFLAGS"
13228
13573
 
13229
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13574
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13230
13575
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13231
13576
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13232
13577
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13246
13591
fi
13247
13592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13248
13593
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13249
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13594
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13250
13595
        CFLAGS="$xorg_testset_save_CFLAGS"
13251
13596
fi
13252
13597
 
13253
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13254
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13598
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13599
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13255
13600
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13256
13601
        fi
13257
13602
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13273
13618
fi
13274
13619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13275
13620
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13276
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13621
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13277
13622
        CFLAGS="$xorg_testset_save_CFLAGS"
13278
13623
fi
13279
13624
 
13280
13625
found="no"
13281
13626
 
13282
13627
        if test $found = "no" ; then
13283
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13628
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13284
13629
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285
13630
                fi
13286
13631
 
13287
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13632
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13288
13633
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13289
13634
                fi
13290
13635
 
13292
13637
 
13293
13638
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13294
13639
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13295
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13296
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13640
                cacheid=xorg_cv_cc_flag__Wuninitialized
 
13641
                if eval \${$cacheid+:} false; then :
13297
13642
  $as_echo_n "(cached) " >&6
13298
13643
else
13299
13644
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308
13653
}
13309
13654
_ACEOF
13310
13655
if ac_fn_c_try_link "$LINENO"; then :
13311
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13656
  eval $cacheid=yes
13312
13657
else
13313
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13658
  eval $cacheid=no
13314
13659
fi
13315
13660
rm -f core conftest.err conftest.$ac_objext \
13316
13661
    conftest$ac_exeext conftest.$ac_ext
13319
13664
 
13320
13665
                CFLAGS="$xorg_testset_save_CFLAGS"
13321
13666
 
13322
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13667
                eval supported=\$$cacheid
13323
13668
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13324
13669
$as_echo "$supported" >&6; }
13325
13670
                if test "$supported" = "yes" ; then
13334
13679
 
13335
13680
 
13336
13681
 
 
13682
 
 
13683
 
 
13684
 
 
13685
 
 
13686
 
 
13687
 
 
13688
 
 
13689
 
13337
13690
xorg_testset_save_CFLAGS="$CFLAGS"
13338
13691
 
13339
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13692
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13340
13693
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13341
13694
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13342
13695
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13356
13709
fi
13357
13710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13358
13711
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13359
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13712
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13360
13713
        CFLAGS="$xorg_testset_save_CFLAGS"
13361
13714
fi
13362
13715
 
13363
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13364
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13716
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13717
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13365
13718
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366
13719
        fi
13367
13720
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383
13736
fi
13384
13737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13385
13738
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13386
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13739
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13387
13740
        CFLAGS="$xorg_testset_save_CFLAGS"
13388
13741
fi
13389
13742
 
13390
13743
found="no"
13391
13744
 
13392
13745
        if test $found = "no" ; then
13393
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13746
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13394
13747
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13395
13748
                fi
13396
13749
 
13397
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13750
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13398
13751
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13399
13752
                fi
13400
13753
 
13402
13755
 
13403
13756
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13404
13757
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13405
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13406
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13758
                cacheid=xorg_cv_cc_flag__Wshadow
 
13759
                if eval \${$cacheid+:} false; then :
13407
13760
  $as_echo_n "(cached) " >&6
13408
13761
else
13409
13762
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418
13771
}
13419
13772
_ACEOF
13420
13773
if ac_fn_c_try_link "$LINENO"; then :
13421
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13774
  eval $cacheid=yes
13422
13775
else
13423
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13776
  eval $cacheid=no
13424
13777
fi
13425
13778
rm -f core conftest.err conftest.$ac_objext \
13426
13779
    conftest$ac_exeext conftest.$ac_ext
13429
13782
 
13430
13783
                CFLAGS="$xorg_testset_save_CFLAGS"
13431
13784
 
13432
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13785
                eval supported=\$$cacheid
13433
13786
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13434
13787
$as_echo "$supported" >&6; }
13435
13788
                if test "$supported" = "yes" ; then
13444
13797
 
13445
13798
 
13446
13799
 
13447
 
xorg_testset_save_CFLAGS="$CFLAGS"
13448
 
 
13449
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13450
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13451
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13452
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13453
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13454
 
  $as_echo_n "(cached) " >&6
13455
 
else
13456
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457
 
/* end confdefs.h.  */
13458
 
int i;
13459
 
_ACEOF
13460
 
if ac_fn_c_try_compile "$LINENO"; then :
13461
 
  xorg_cv_cc_flag_unknown_warning_option=yes
13462
 
else
13463
 
  xorg_cv_cc_flag_unknown_warning_option=no
13464
 
fi
13465
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466
 
fi
13467
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13468
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13469
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13470
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13471
 
fi
13472
 
 
13473
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13474
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13475
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476
 
        fi
13477
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13478
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13479
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13480
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13481
 
  $as_echo_n "(cached) " >&6
13482
 
else
13483
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484
 
/* end confdefs.h.  */
13485
 
int i;
13486
 
_ACEOF
13487
 
if ac_fn_c_try_compile "$LINENO"; then :
13488
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
13489
 
else
13490
 
  xorg_cv_cc_flag_unused_command_line_argument=no
13491
 
fi
13492
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493
 
fi
13494
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13495
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13496
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13497
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13498
 
fi
13499
 
 
13500
 
found="no"
13501
 
 
13502
 
        if test $found = "no" ; then
13503
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13504
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13505
 
                fi
13506
 
 
13507
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13508
 
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13509
 
                fi
13510
 
 
13511
 
                CFLAGS="$CFLAGS -Wcast-qual"
13512
 
 
13513
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13514
 
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13515
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13516
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13517
 
  $as_echo_n "(cached) " >&6
13518
 
else
13519
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520
 
/* end confdefs.h.  */
13521
 
int i;
13522
 
int
13523
 
main ()
13524
 
{
13525
 
 
13526
 
  ;
13527
 
  return 0;
13528
 
}
13529
 
_ACEOF
13530
 
if ac_fn_c_try_link "$LINENO"; then :
13531
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13532
 
else
13533
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13534
 
fi
13535
 
rm -f core conftest.err conftest.$ac_objext \
13536
 
    conftest$ac_exeext conftest.$ac_ext
13537
 
fi
13538
 
 
13539
 
 
13540
 
                CFLAGS="$xorg_testset_save_CFLAGS"
13541
 
 
13542
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13543
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13544
 
$as_echo "$supported" >&6; }
13545
 
                if test "$supported" = "yes" ; then
13546
 
                        BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13547
 
                        found="yes"
13548
 
                fi
13549
 
        fi
13550
 
 
13551
 
 
13552
 
 
13553
 
 
13554
 
 
13555
 
 
13556
 
 
13557
 
xorg_testset_save_CFLAGS="$CFLAGS"
13558
 
 
13559
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13560
 
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13561
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13562
 
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13563
 
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13564
 
  $as_echo_n "(cached) " >&6
13565
 
else
13566
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567
 
/* end confdefs.h.  */
13568
 
int i;
13569
 
_ACEOF
13570
 
if ac_fn_c_try_compile "$LINENO"; then :
13571
 
  xorg_cv_cc_flag_unknown_warning_option=yes
13572
 
else
13573
 
  xorg_cv_cc_flag_unknown_warning_option=no
13574
 
fi
13575
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576
 
fi
13577
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13578
 
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13579
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13580
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13581
 
fi
13582
 
 
13583
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13584
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13585
 
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13586
 
        fi
13587
 
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13588
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13589
 
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13590
 
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13591
 
  $as_echo_n "(cached) " >&6
13592
 
else
13593
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594
 
/* end confdefs.h.  */
13595
 
int i;
13596
 
_ACEOF
13597
 
if ac_fn_c_try_compile "$LINENO"; then :
13598
 
  xorg_cv_cc_flag_unused_command_line_argument=yes
13599
 
else
13600
 
  xorg_cv_cc_flag_unused_command_line_argument=no
13601
 
fi
13602
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603
 
fi
13604
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13605
 
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13606
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13607
 
        CFLAGS="$xorg_testset_save_CFLAGS"
13608
 
fi
13609
 
 
13610
 
found="no"
13611
 
 
13612
 
        if test $found = "no" ; then
13613
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13614
 
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13615
 
                fi
13616
 
 
13617
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13800
 
 
13801
 
 
13802
 
 
13803
 
 
13804
 
 
13805
 
 
13806
 
 
13807
 
 
13808
xorg_testset_save_CFLAGS="$CFLAGS"
 
13809
 
 
13810
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13811
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13812
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13813
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13814
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13815
  $as_echo_n "(cached) " >&6
 
13816
else
 
13817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13818
/* end confdefs.h.  */
 
13819
int i;
 
13820
_ACEOF
 
13821
if ac_fn_c_try_compile "$LINENO"; then :
 
13822
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13823
else
 
13824
  xorg_cv_cc_flag_unknown_warning_option=no
 
13825
fi
 
13826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13827
fi
 
13828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13829
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13830
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13831
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13832
fi
 
13833
 
 
13834
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13835
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13836
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13837
        fi
 
13838
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13839
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13840
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13841
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13842
  $as_echo_n "(cached) " >&6
 
13843
else
 
13844
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13845
/* end confdefs.h.  */
 
13846
int i;
 
13847
_ACEOF
 
13848
if ac_fn_c_try_compile "$LINENO"; then :
 
13849
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13850
else
 
13851
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13852
fi
 
13853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13854
fi
 
13855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13856
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13857
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13858
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13859
fi
 
13860
 
 
13861
found="no"
 
13862
 
 
13863
        if test $found = "no" ; then
 
13864
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13865
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13866
                fi
 
13867
 
 
13868
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13618
13869
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13619
13870
                fi
13620
13871
 
13622
13873
 
13623
13874
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13624
13875
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13625
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13626
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13876
                cacheid=xorg_cv_cc_flag__Wmissing_noreturn
 
13877
                if eval \${$cacheid+:} false; then :
13627
13878
  $as_echo_n "(cached) " >&6
13628
13879
else
13629
13880
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638
13889
}
13639
13890
_ACEOF
13640
13891
if ac_fn_c_try_link "$LINENO"; then :
13641
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
13892
  eval $cacheid=yes
13642
13893
else
13643
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
13894
  eval $cacheid=no
13644
13895
fi
13645
13896
rm -f core conftest.err conftest.$ac_objext \
13646
13897
    conftest$ac_exeext conftest.$ac_ext
13649
13900
 
13650
13901
                CFLAGS="$xorg_testset_save_CFLAGS"
13651
13902
 
13652
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
13903
                eval supported=\$$cacheid
13653
13904
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13654
13905
$as_echo "$supported" >&6; }
13655
13906
                if test "$supported" = "yes" ; then
13664
13915
 
13665
13916
 
13666
13917
 
 
13918
 
 
13919
 
 
13920
 
 
13921
 
 
13922
 
 
13923
 
 
13924
 
 
13925
 
13667
13926
xorg_testset_save_CFLAGS="$CFLAGS"
13668
13927
 
13669
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
13928
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13670
13929
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13671
13930
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13672
13931
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13686
13945
fi
13687
13946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13688
13947
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13689
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13948
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13690
13949
        CFLAGS="$xorg_testset_save_CFLAGS"
13691
13950
fi
13692
13951
 
13693
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13694
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13952
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13953
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13695
13954
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13696
13955
        fi
13697
13956
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13713
13972
fi
13714
13973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13715
13974
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13716
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13975
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13717
13976
        CFLAGS="$xorg_testset_save_CFLAGS"
13718
13977
fi
13719
13978
 
13720
13979
found="no"
13721
13980
 
13722
13981
        if test $found = "no" ; then
13723
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
13982
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13724
13983
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725
13984
                fi
13726
13985
 
13727
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
13986
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13728
13987
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13729
13988
                fi
13730
13989
 
13732
13991
 
13733
13992
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13734
13993
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13735
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13736
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
13994
                cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
 
13995
                if eval \${$cacheid+:} false; then :
13737
13996
  $as_echo_n "(cached) " >&6
13738
13997
else
13739
13998
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748
14007
}
13749
14008
_ACEOF
13750
14009
if ac_fn_c_try_link "$LINENO"; then :
13751
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14010
  eval $cacheid=yes
13752
14011
else
13753
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14012
  eval $cacheid=no
13754
14013
fi
13755
14014
rm -f core conftest.err conftest.$ac_objext \
13756
14015
    conftest$ac_exeext conftest.$ac_ext
13759
14018
 
13760
14019
                CFLAGS="$xorg_testset_save_CFLAGS"
13761
14020
 
13762
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14021
                eval supported=\$$cacheid
13763
14022
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13764
14023
$as_echo "$supported" >&6; }
13765
14024
                if test "$supported" = "yes" ; then
13774
14033
 
13775
14034
 
13776
14035
 
 
14036
 
 
14037
 
 
14038
 
 
14039
 
 
14040
 
 
14041
 
 
14042
 
 
14043
 
13777
14044
xorg_testset_save_CFLAGS="$CFLAGS"
13778
14045
 
13779
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14046
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13780
14047
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13781
14048
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13782
14049
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13796
14063
fi
13797
14064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798
14065
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14066
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800
14067
        CFLAGS="$xorg_testset_save_CFLAGS"
13801
14068
fi
13802
14069
 
13803
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13804
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14070
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14071
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13805
14072
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806
14073
        fi
13807
14074
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13823
14090
fi
13824
14091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825
14092
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14093
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827
14094
        CFLAGS="$xorg_testset_save_CFLAGS"
13828
14095
fi
13829
14096
 
13830
14097
found="no"
13831
14098
 
13832
14099
        if test $found = "no" ; then
13833
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14100
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13834
14101
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835
14102
                fi
13836
14103
 
13837
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14104
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13838
14105
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839
14106
                fi
13840
14107
 
13842
14109
 
13843
14110
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13844
14111
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13845
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13846
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14112
                cacheid=xorg_cv_cc_flag__Wredundant_decls
 
14113
                if eval \${$cacheid+:} false; then :
13847
14114
  $as_echo_n "(cached) " >&6
13848
14115
else
13849
14116
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858
14125
}
13859
14126
_ACEOF
13860
14127
if ac_fn_c_try_link "$LINENO"; then :
13861
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14128
  eval $cacheid=yes
13862
14129
else
13863
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14130
  eval $cacheid=no
13864
14131
fi
13865
14132
rm -f core conftest.err conftest.$ac_objext \
13866
14133
    conftest$ac_exeext conftest.$ac_ext
13869
14136
 
13870
14137
                CFLAGS="$xorg_testset_save_CFLAGS"
13871
14138
 
13872
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14139
                eval supported=\$$cacheid
13873
14140
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13874
14141
$as_echo "$supported" >&6; }
13875
14142
                if test "$supported" = "yes" ; then
13880
14147
 
13881
14148
 
13882
14149
 
 
14150
 
 
14151
 
 
14152
 
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
xorg_testset_save_CFLAGS="$CFLAGS"
 
14163
 
 
14164
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14165
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14166
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14167
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14168
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14169
  $as_echo_n "(cached) " >&6
 
14170
else
 
14171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14172
/* end confdefs.h.  */
 
14173
int i;
 
14174
_ACEOF
 
14175
if ac_fn_c_try_compile "$LINENO"; then :
 
14176
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14177
else
 
14178
  xorg_cv_cc_flag_unknown_warning_option=no
 
14179
fi
 
14180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14181
fi
 
14182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14183
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14184
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14185
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14186
fi
 
14187
 
 
14188
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14189
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14190
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14191
        fi
 
14192
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14193
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14194
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14195
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14196
  $as_echo_n "(cached) " >&6
 
14197
else
 
14198
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14199
/* end confdefs.h.  */
 
14200
int i;
 
14201
_ACEOF
 
14202
if ac_fn_c_try_compile "$LINENO"; then :
 
14203
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14204
else
 
14205
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14206
fi
 
14207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14208
fi
 
14209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14210
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14211
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14212
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14213
fi
 
14214
 
 
14215
found="no"
 
14216
 
 
14217
        if test $found = "no" ; then
 
14218
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14219
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14220
                fi
 
14221
 
 
14222
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14223
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14224
                fi
 
14225
 
 
14226
                CFLAGS="$CFLAGS -Wlogical-op"
 
14227
 
 
14228
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
 
14229
$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
 
14230
                cacheid=xorg_cv_cc_flag__Wlogical_op
 
14231
                if eval \${$cacheid+:} false; then :
 
14232
  $as_echo_n "(cached) " >&6
 
14233
else
 
14234
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14235
/* end confdefs.h.  */
 
14236
int i;
 
14237
int
 
14238
main ()
 
14239
{
 
14240
 
 
14241
  ;
 
14242
  return 0;
 
14243
}
 
14244
_ACEOF
 
14245
if ac_fn_c_try_link "$LINENO"; then :
 
14246
  eval $cacheid=yes
 
14247
else
 
14248
  eval $cacheid=no
 
14249
fi
 
14250
rm -f core conftest.err conftest.$ac_objext \
 
14251
    conftest$ac_exeext conftest.$ac_ext
 
14252
fi
 
14253
 
 
14254
 
 
14255
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14256
 
 
14257
                eval supported=\$$cacheid
 
14258
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14259
$as_echo "$supported" >&6; }
 
14260
                if test "$supported" = "yes" ; then
 
14261
                        BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
 
14262
                        found="yes"
 
14263
                fi
 
14264
        fi
 
14265
 
 
14266
 
 
14267
 
13883
14268
# These are currently disabled because they are noisy.  They will be enabled
13884
14269
# in the future once the codebase is sufficiently modernized to silence
13885
14270
# them.  For now, I don't want them to drown out the other warnings.
13886
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
13887
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
13888
 
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
 
14271
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
 
14272
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 
14273
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13889
14274
 
13890
14275
# Turn some warnings into errors, so we don't accidently get successful builds
13891
14276
# when there are problems that should be fixed.
13896
14281
 
13897
14282
 
13898
14283
 
 
14284
 
 
14285
 
 
14286
 
 
14287
 
 
14288
 
 
14289
 
 
14290
 
 
14291
 
13899
14292
xorg_testset_save_CFLAGS="$CFLAGS"
13900
14293
 
13901
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14294
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13902
14295
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903
14296
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904
14297
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13918
14311
fi
13919
14312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920
14313
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14314
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922
14315
        CFLAGS="$xorg_testset_save_CFLAGS"
13923
14316
fi
13924
14317
 
13925
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13926
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14318
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14319
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13927
14320
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928
14321
        fi
13929
14322
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13945
14338
fi
13946
14339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13947
14340
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13948
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14341
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13949
14342
        CFLAGS="$xorg_testset_save_CFLAGS"
13950
14343
fi
13951
14344
 
13952
14345
found="no"
13953
14346
 
13954
14347
        if test $found = "no" ; then
13955
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14348
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956
14349
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957
14350
                fi
13958
14351
 
13959
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14352
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13960
14353
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13961
14354
                fi
13962
14355
 
13964
14357
 
13965
14358
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13966
14359
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13967
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13968
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14360
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
 
14361
                if eval \${$cacheid+:} false; then :
13969
14362
  $as_echo_n "(cached) " >&6
13970
14363
else
13971
14364
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980
14373
}
13981
14374
_ACEOF
13982
14375
if ac_fn_c_try_link "$LINENO"; then :
13983
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14376
  eval $cacheid=yes
13984
14377
else
13985
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14378
  eval $cacheid=no
13986
14379
fi
13987
14380
rm -f core conftest.err conftest.$ac_objext \
13988
14381
    conftest$ac_exeext conftest.$ac_ext
13991
14384
 
13992
14385
                CFLAGS="$xorg_testset_save_CFLAGS"
13993
14386
 
13994
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14387
                eval supported=\$$cacheid
13995
14388
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13996
14389
$as_echo "$supported" >&6; }
13997
14390
                if test "$supported" = "yes" ; then
14001
14394
        fi
14002
14395
 
14003
14396
        if test $found = "no" ; then
14004
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14397
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14005
14398
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14006
14399
                fi
14007
14400
 
14008
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14401
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14009
14402
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14010
14403
                fi
14011
14404
 
14013
14406
 
14014
14407
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14015
14408
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14016
 
                cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
14017
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14409
                cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
 
14410
                if eval \${$cacheid+:} false; then :
14018
14411
  $as_echo_n "(cached) " >&6
14019
14412
else
14020
14413
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029
14422
}
14030
14423
_ACEOF
14031
14424
if ac_fn_c_try_link "$LINENO"; then :
14032
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14425
  eval $cacheid=yes
14033
14426
else
14034
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14427
  eval $cacheid=no
14035
14428
fi
14036
14429
rm -f core conftest.err conftest.$ac_objext \
14037
14430
    conftest$ac_exeext conftest.$ac_ext
14040
14433
 
14041
14434
                CFLAGS="$xorg_testset_save_CFLAGS"
14042
14435
 
14043
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14436
                eval supported=\$$cacheid
14044
14437
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14045
14438
$as_echo "$supported" >&6; }
14046
14439
                if test "$supported" = "yes" ; then
14055
14448
 
14056
14449
 
14057
14450
 
 
14451
 
 
14452
 
 
14453
 
 
14454
 
 
14455
 
 
14456
 
 
14457
 
 
14458
 
14058
14459
xorg_testset_save_CFLAGS="$CFLAGS"
14059
14460
 
14060
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14461
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14061
14462
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14062
14463
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14063
14464
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14077
14478
fi
14078
14479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14079
14480
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14080
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14481
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14081
14482
        CFLAGS="$xorg_testset_save_CFLAGS"
14082
14483
fi
14083
14484
 
14084
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14085
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14485
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14486
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086
14487
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087
14488
        fi
14088
14489
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14104
14505
fi
14105
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14106
14507
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14107
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14508
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14108
14509
        CFLAGS="$xorg_testset_save_CFLAGS"
14109
14510
fi
14110
14511
 
14111
14512
found="no"
14112
14513
 
14113
14514
        if test $found = "no" ; then
14114
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14515
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115
14516
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116
14517
                fi
14117
14518
 
14118
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14519
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14119
14520
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120
14521
                fi
14121
14522
 
14123
14524
 
14124
14525
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14125
14526
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14126
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
14127
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14527
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
 
14528
                if eval \${$cacheid+:} false; then :
14128
14529
  $as_echo_n "(cached) " >&6
14129
14530
else
14130
14531
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139
14540
}
14140
14541
_ACEOF
14141
14542
if ac_fn_c_try_link "$LINENO"; then :
14142
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14543
  eval $cacheid=yes
14143
14544
else
14144
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14545
  eval $cacheid=no
14145
14546
fi
14146
14547
rm -f core conftest.err conftest.$ac_objext \
14147
14548
    conftest$ac_exeext conftest.$ac_ext
14150
14551
 
14151
14552
                CFLAGS="$xorg_testset_save_CFLAGS"
14152
14553
 
14153
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14554
                eval supported=\$$cacheid
14154
14555
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14155
14556
$as_echo "$supported" >&6; }
14156
14557
                if test "$supported" = "yes" ; then
14165
14566
 
14166
14567
 
14167
14568
 
 
14569
 
 
14570
 
 
14571
 
 
14572
 
 
14573
 
 
14574
 
 
14575
 
 
14576
 
14168
14577
xorg_testset_save_CFLAGS="$CFLAGS"
14169
14578
 
14170
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14579
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14171
14580
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14172
14581
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14173
14582
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14187
14596
fi
14188
14597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14189
14598
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14190
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14599
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14191
14600
        CFLAGS="$xorg_testset_save_CFLAGS"
14192
14601
fi
14193
14602
 
14194
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14195
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14603
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14604
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14196
14605
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14197
14606
        fi
14198
14607
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14214
14623
fi
14215
14624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14216
14625
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14217
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14626
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14218
14627
        CFLAGS="$xorg_testset_save_CFLAGS"
14219
14628
fi
14220
14629
 
14221
14630
found="no"
14222
14631
 
14223
14632
        if test $found = "no" ; then
14224
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14633
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14225
14634
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226
14635
                fi
14227
14636
 
14228
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14637
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14229
14638
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14230
14639
                fi
14231
14640
 
14233
14642
 
14234
14643
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14235
14644
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14236
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
14237
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14645
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
 
14646
                if eval \${$cacheid+:} false; then :
14238
14647
  $as_echo_n "(cached) " >&6
14239
14648
else
14240
14649
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249
14658
}
14250
14659
_ACEOF
14251
14660
if ac_fn_c_try_link "$LINENO"; then :
14252
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14661
  eval $cacheid=yes
14253
14662
else
14254
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14663
  eval $cacheid=no
14255
14664
fi
14256
14665
rm -f core conftest.err conftest.$ac_objext \
14257
14666
    conftest$ac_exeext conftest.$ac_ext
14260
14669
 
14261
14670
                CFLAGS="$xorg_testset_save_CFLAGS"
14262
14671
 
14263
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14672
                eval supported=\$$cacheid
14264
14673
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14265
14674
$as_echo "$supported" >&6; }
14266
14675
                if test "$supported" = "yes" ; then
14275
14684
 
14276
14685
 
14277
14686
 
 
14687
 
 
14688
 
 
14689
 
 
14690
 
 
14691
 
 
14692
 
 
14693
 
 
14694
 
14278
14695
xorg_testset_save_CFLAGS="$CFLAGS"
14279
14696
 
14280
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14697
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14281
14698
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282
14699
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283
14700
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14297
14714
fi
14298
14715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14299
14716
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14300
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14717
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14301
14718
        CFLAGS="$xorg_testset_save_CFLAGS"
14302
14719
fi
14303
14720
 
14304
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14305
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14721
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14722
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306
14723
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307
14724
        fi
14308
14725
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14324
14741
fi
14325
14742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14326
14743
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14327
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14744
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14328
14745
        CFLAGS="$xorg_testset_save_CFLAGS"
14329
14746
fi
14330
14747
 
14331
14748
found="no"
14332
14749
 
14333
14750
        if test $found = "no" ; then
14334
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14751
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335
14752
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336
14753
                fi
14337
14754
 
14338
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14755
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14339
14756
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14340
14757
                fi
14341
14758
 
14343
14760
 
14344
14761
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14345
14762
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14346
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14347
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14763
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
 
14764
                if eval \${$cacheid+:} false; then :
14348
14765
  $as_echo_n "(cached) " >&6
14349
14766
else
14350
14767
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359
14776
}
14360
14777
_ACEOF
14361
14778
if ac_fn_c_try_link "$LINENO"; then :
14362
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14779
  eval $cacheid=yes
14363
14780
else
14364
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14781
  eval $cacheid=no
14365
14782
fi
14366
14783
rm -f core conftest.err conftest.$ac_objext \
14367
14784
    conftest$ac_exeext conftest.$ac_ext
14370
14787
 
14371
14788
                CFLAGS="$xorg_testset_save_CFLAGS"
14372
14789
 
14373
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14790
                eval supported=\$$cacheid
14374
14791
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14375
14792
$as_echo "$supported" >&6; }
14376
14793
                if test "$supported" = "yes" ; then
14385
14802
 
14386
14803
 
14387
14804
 
 
14805
 
 
14806
 
 
14807
 
 
14808
 
 
14809
 
 
14810
 
 
14811
 
 
14812
 
14388
14813
xorg_testset_save_CFLAGS="$CFLAGS"
14389
14814
 
14390
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14815
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14391
14816
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14392
14817
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14393
14818
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14407
14832
fi
14408
14833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14409
14834
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14410
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14835
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14411
14836
        CFLAGS="$xorg_testset_save_CFLAGS"
14412
14837
fi
14413
14838
 
14414
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14415
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14839
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14840
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14416
14841
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14417
14842
        fi
14418
14843
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14434
14859
fi
14435
14860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14436
14861
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14437
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14862
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14438
14863
        CFLAGS="$xorg_testset_save_CFLAGS"
14439
14864
fi
14440
14865
 
14441
14866
found="no"
14442
14867
 
14443
14868
        if test $found = "no" ; then
14444
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14869
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445
14870
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446
14871
                fi
14447
14872
 
14448
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14873
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14449
14874
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14450
14875
                fi
14451
14876
 
14453
14878
 
14454
14879
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14455
14880
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14456
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14457
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14881
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
 
14882
                if eval \${$cacheid+:} false; then :
14458
14883
  $as_echo_n "(cached) " >&6
14459
14884
else
14460
14885
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469
14894
}
14470
14895
_ACEOF
14471
14896
if ac_fn_c_try_link "$LINENO"; then :
14472
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
14897
  eval $cacheid=yes
14473
14898
else
14474
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
14899
  eval $cacheid=no
14475
14900
fi
14476
14901
rm -f core conftest.err conftest.$ac_objext \
14477
14902
    conftest$ac_exeext conftest.$ac_ext
14480
14905
 
14481
14906
                CFLAGS="$xorg_testset_save_CFLAGS"
14482
14907
 
14483
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
14908
                eval supported=\$$cacheid
14484
14909
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14485
14910
$as_echo "$supported" >&6; }
14486
14911
                if test "$supported" = "yes" ; then
14495
14920
 
14496
14921
 
14497
14922
 
 
14923
 
 
14924
 
 
14925
 
 
14926
 
 
14927
 
 
14928
 
 
14929
 
 
14930
 
14498
14931
xorg_testset_save_CFLAGS="$CFLAGS"
14499
14932
 
14500
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
14933
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14501
14934
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502
14935
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14503
14936
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14517
14950
fi
14518
14951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14519
14952
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14520
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14953
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14521
14954
        CFLAGS="$xorg_testset_save_CFLAGS"
14522
14955
fi
14523
14956
 
14524
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14525
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14957
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14958
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14526
14959
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14527
14960
        fi
14528
14961
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14544
14977
fi
14545
14978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14546
14979
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14547
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14980
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14548
14981
        CFLAGS="$xorg_testset_save_CFLAGS"
14549
14982
fi
14550
14983
 
14551
14984
found="no"
14552
14985
 
14553
14986
        if test $found = "no" ; then
14554
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
14987
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14555
14988
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14556
14989
                fi
14557
14990
 
14558
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
14991
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14559
14992
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14560
14993
                fi
14561
14994
 
14563
14996
 
14564
14997
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14565
14998
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14566
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14567
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
14999
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
 
15000
                if eval \${$cacheid+:} false; then :
14568
15001
  $as_echo_n "(cached) " >&6
14569
15002
else
14570
15003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579
15012
}
14580
15013
_ACEOF
14581
15014
if ac_fn_c_try_link "$LINENO"; then :
14582
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15015
  eval $cacheid=yes
14583
15016
else
14584
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15017
  eval $cacheid=no
14585
15018
fi
14586
15019
rm -f core conftest.err conftest.$ac_objext \
14587
15020
    conftest$ac_exeext conftest.$ac_ext
14590
15023
 
14591
15024
                CFLAGS="$xorg_testset_save_CFLAGS"
14592
15025
 
14593
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15026
                eval supported=\$$cacheid
14594
15027
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14595
15028
$as_echo "$supported" >&6; }
14596
15029
                if test "$supported" = "yes" ; then
14605
15038
 
14606
15039
 
14607
15040
 
 
15041
 
 
15042
 
 
15043
 
 
15044
 
 
15045
 
 
15046
 
 
15047
 
 
15048
 
14608
15049
xorg_testset_save_CFLAGS="$CFLAGS"
14609
15050
 
14610
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15051
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14611
15052
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14612
15053
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14613
15054
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14627
15068
fi
14628
15069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14629
15070
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14630
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15071
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14631
15072
        CFLAGS="$xorg_testset_save_CFLAGS"
14632
15073
fi
14633
15074
 
14634
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14635
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15075
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15076
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14636
15077
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637
15078
        fi
14638
15079
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14654
15095
fi
14655
15096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14656
15097
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14657
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15098
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14658
15099
        CFLAGS="$xorg_testset_save_CFLAGS"
14659
15100
fi
14660
15101
 
14661
15102
found="no"
14662
15103
 
14663
15104
        if test $found = "no" ; then
14664
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15105
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14665
15106
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14666
15107
                fi
14667
15108
 
14668
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15109
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14669
15110
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14670
15111
                fi
14671
15112
 
14673
15114
 
14674
15115
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14675
15116
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14676
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14677
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15117
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
 
15118
                if eval \${$cacheid+:} false; then :
14678
15119
  $as_echo_n "(cached) " >&6
14679
15120
else
14680
15121
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689
15130
}
14690
15131
_ACEOF
14691
15132
if ac_fn_c_try_link "$LINENO"; then :
14692
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15133
  eval $cacheid=yes
14693
15134
else
14694
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15135
  eval $cacheid=no
14695
15136
fi
14696
15137
rm -f core conftest.err conftest.$ac_objext \
14697
15138
    conftest$ac_exeext conftest.$ac_ext
14700
15141
 
14701
15142
                CFLAGS="$xorg_testset_save_CFLAGS"
14702
15143
 
14703
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15144
                eval supported=\$$cacheid
14704
15145
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14705
15146
$as_echo "$supported" >&6; }
14706
15147
                if test "$supported" = "yes" ; then
14710
15151
        fi
14711
15152
 
14712
15153
        if test $found = "no" ; then
14713
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15154
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14714
15155
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14715
15156
                fi
14716
15157
 
14717
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15158
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14718
15159
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14719
15160
                fi
14720
15161
 
14722
15163
 
14723
15164
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14724
15165
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14725
 
                cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14726
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15166
                cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
 
15167
                if eval \${$cacheid+:} false; then :
14727
15168
  $as_echo_n "(cached) " >&6
14728
15169
else
14729
15170
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738
15179
}
14739
15180
_ACEOF
14740
15181
if ac_fn_c_try_link "$LINENO"; then :
14741
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15182
  eval $cacheid=yes
14742
15183
else
14743
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15184
  eval $cacheid=no
14744
15185
fi
14745
15186
rm -f core conftest.err conftest.$ac_objext \
14746
15187
    conftest$ac_exeext conftest.$ac_ext
14749
15190
 
14750
15191
                CFLAGS="$xorg_testset_save_CFLAGS"
14751
15192
 
14752
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15193
                eval supported=\$$cacheid
14753
15194
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14754
15195
$as_echo "$supported" >&6; }
14755
15196
                if test "$supported" = "yes" ; then
14764
15205
 
14765
15206
 
14766
15207
 
 
15208
 
 
15209
 
 
15210
 
 
15211
 
 
15212
 
 
15213
 
 
15214
 
 
15215
 
14767
15216
xorg_testset_save_CFLAGS="$CFLAGS"
14768
15217
 
14769
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15218
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14770
15219
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771
15220
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14772
15221
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14786
15235
fi
14787
15236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14788
15237
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14789
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15238
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14790
15239
        CFLAGS="$xorg_testset_save_CFLAGS"
14791
15240
fi
14792
15241
 
14793
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14794
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15242
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15243
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14795
15244
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14796
15245
        fi
14797
15246
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813
15262
fi
14814
15263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14815
15264
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14816
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15265
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14817
15266
        CFLAGS="$xorg_testset_save_CFLAGS"
14818
15267
fi
14819
15268
 
14820
15269
found="no"
14821
15270
 
14822
15271
        if test $found = "no" ; then
14823
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15272
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14824
15273
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825
15274
                fi
14826
15275
 
14827
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15276
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14828
15277
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829
15278
                fi
14830
15279
 
14832
15281
 
14833
15282
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14834
15283
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14835
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14836
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15284
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
 
15285
                if eval \${$cacheid+:} false; then :
14837
15286
  $as_echo_n "(cached) " >&6
14838
15287
else
14839
15288
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848
15297
}
14849
15298
_ACEOF
14850
15299
if ac_fn_c_try_link "$LINENO"; then :
14851
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15300
  eval $cacheid=yes
14852
15301
else
14853
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15302
  eval $cacheid=no
14854
15303
fi
14855
15304
rm -f core conftest.err conftest.$ac_objext \
14856
15305
    conftest$ac_exeext conftest.$ac_ext
14859
15308
 
14860
15309
                CFLAGS="$xorg_testset_save_CFLAGS"
14861
15310
 
14862
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15311
                eval supported=\$$cacheid
14863
15312
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14864
15313
$as_echo "$supported" >&6; }
14865
15314
                if test "$supported" = "yes" ; then
14874
15323
 
14875
15324
 
14876
15325
 
 
15326
 
 
15327
 
 
15328
 
 
15329
 
 
15330
 
 
15331
 
 
15332
 
 
15333
 
14877
15334
xorg_testset_save_CFLAGS="$CFLAGS"
14878
15335
 
14879
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15336
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14880
15337
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14881
15338
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14882
15339
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14896
15353
fi
14897
15354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14898
15355
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14899
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15356
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14900
15357
        CFLAGS="$xorg_testset_save_CFLAGS"
14901
15358
fi
14902
15359
 
14903
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14904
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15360
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15361
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905
15362
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906
15363
        fi
14907
15364
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923
15380
fi
14924
15381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14925
15382
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14926
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15383
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14927
15384
        CFLAGS="$xorg_testset_save_CFLAGS"
14928
15385
fi
14929
15386
 
14930
15387
found="no"
14931
15388
 
14932
15389
        if test $found = "no" ; then
14933
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15390
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14934
15391
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14935
15392
                fi
14936
15393
 
14937
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15394
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14938
15395
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14939
15396
                fi
14940
15397
 
14942
15399
 
14943
15400
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14944
15401
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14945
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14946
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15402
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
 
15403
                if eval \${$cacheid+:} false; then :
14947
15404
  $as_echo_n "(cached) " >&6
14948
15405
else
14949
15406
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958
15415
}
14959
15416
_ACEOF
14960
15417
if ac_fn_c_try_link "$LINENO"; then :
14961
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15418
  eval $cacheid=yes
14962
15419
else
14963
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15420
  eval $cacheid=no
14964
15421
fi
14965
15422
rm -f core conftest.err conftest.$ac_objext \
14966
15423
    conftest$ac_exeext conftest.$ac_ext
14969
15426
 
14970
15427
                CFLAGS="$xorg_testset_save_CFLAGS"
14971
15428
 
14972
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15429
                eval supported=\$$cacheid
14973
15430
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14974
15431
$as_echo "$supported" >&6; }
14975
15432
                if test "$supported" = "yes" ; then
14984
15441
 
14985
15442
 
14986
15443
 
 
15444
 
 
15445
 
 
15446
 
 
15447
 
 
15448
 
 
15449
 
 
15450
 
 
15451
 
14987
15452
xorg_testset_save_CFLAGS="$CFLAGS"
14988
15453
 
14989
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15454
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14990
15455
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14991
15456
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14992
15457
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15006
15471
fi
15007
15472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15008
15473
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15009
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15474
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15010
15475
        CFLAGS="$xorg_testset_save_CFLAGS"
15011
15476
fi
15012
15477
 
15013
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15014
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15478
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15479
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015
15480
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016
15481
        fi
15017
15482
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15033
15498
fi
15034
15499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15035
15500
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15036
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15501
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15037
15502
        CFLAGS="$xorg_testset_save_CFLAGS"
15038
15503
fi
15039
15504
 
15040
15505
found="no"
15041
15506
 
15042
15507
        if test $found = "no" ; then
15043
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15508
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044
15509
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045
15510
                fi
15046
15511
 
15047
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15512
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15048
15513
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049
15514
                fi
15050
15515
 
15052
15517
 
15053
15518
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15054
15519
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15055
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
15056
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15520
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
 
15521
                if eval \${$cacheid+:} false; then :
15057
15522
  $as_echo_n "(cached) " >&6
15058
15523
else
15059
15524
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068
15533
}
15069
15534
_ACEOF
15070
15535
if ac_fn_c_try_link "$LINENO"; then :
15071
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15536
  eval $cacheid=yes
15072
15537
else
15073
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15538
  eval $cacheid=no
15074
15539
fi
15075
15540
rm -f core conftest.err conftest.$ac_objext \
15076
15541
    conftest$ac_exeext conftest.$ac_ext
15079
15544
 
15080
15545
                CFLAGS="$xorg_testset_save_CFLAGS"
15081
15546
 
15082
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15547
                eval supported=\$$cacheid
15083
15548
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084
15549
$as_echo "$supported" >&6; }
15085
15550
                if test "$supported" = "yes" ; then
15094
15559
 
15095
15560
 
15096
15561
 
 
15562
 
 
15563
 
 
15564
 
 
15565
 
 
15566
 
 
15567
 
 
15568
 
 
15569
 
15097
15570
xorg_testset_save_CFLAGS="$CFLAGS"
15098
15571
 
15099
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15572
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15100
15573
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101
15574
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15102
15575
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15116
15589
fi
15117
15590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15118
15591
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15119
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15592
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15120
15593
        CFLAGS="$xorg_testset_save_CFLAGS"
15121
15594
fi
15122
15595
 
15123
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15124
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15596
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15597
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15125
15598
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15126
15599
        fi
15127
15600
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15143
15616
fi
15144
15617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15145
15618
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15146
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15619
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15147
15620
        CFLAGS="$xorg_testset_save_CFLAGS"
15148
15621
fi
15149
15622
 
15150
15623
found="no"
15151
15624
 
15152
15625
        if test $found = "no" ; then
15153
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15626
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15154
15627
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15155
15628
                fi
15156
15629
 
15157
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15630
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15158
15631
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15159
15632
                fi
15160
15633
 
15162
15635
 
15163
15636
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15164
15637
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15165
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
15166
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15638
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
 
15639
                if eval \${$cacheid+:} false; then :
15167
15640
  $as_echo_n "(cached) " >&6
15168
15641
else
15169
15642
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178
15651
}
15179
15652
_ACEOF
15180
15653
if ac_fn_c_try_link "$LINENO"; then :
15181
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15654
  eval $cacheid=yes
15182
15655
else
15183
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15656
  eval $cacheid=no
15184
15657
fi
15185
15658
rm -f core conftest.err conftest.$ac_objext \
15186
15659
    conftest$ac_exeext conftest.$ac_ext
15189
15662
 
15190
15663
                CFLAGS="$xorg_testset_save_CFLAGS"
15191
15664
 
15192
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15665
                eval supported=\$$cacheid
15193
15666
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15194
15667
$as_echo "$supported" >&6; }
15195
15668
                if test "$supported" = "yes" ; then
15204
15677
 
15205
15678
 
15206
15679
 
 
15680
 
 
15681
 
 
15682
 
 
15683
 
 
15684
 
 
15685
 
 
15686
 
 
15687
 
15207
15688
xorg_testset_save_CFLAGS="$CFLAGS"
15208
15689
 
15209
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15690
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15210
15691
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211
15692
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15212
15693
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15226
15707
fi
15227
15708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15228
15709
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15229
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15710
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15230
15711
        CFLAGS="$xorg_testset_save_CFLAGS"
15231
15712
fi
15232
15713
 
15233
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15234
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15714
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15715
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15235
15716
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15236
15717
        fi
15237
15718
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15253
15734
fi
15254
15735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15255
15736
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15256
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15737
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15257
15738
        CFLAGS="$xorg_testset_save_CFLAGS"
15258
15739
fi
15259
15740
 
15260
15741
found="no"
15261
15742
 
15262
15743
        if test $found = "no" ; then
15263
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15744
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15264
15745
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15265
15746
                fi
15266
15747
 
15267
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15748
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15268
15749
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15269
15750
                fi
15270
15751
 
15272
15753
 
15273
15754
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15274
15755
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15275
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15276
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15756
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
 
15757
                if eval \${$cacheid+:} false; then :
15277
15758
  $as_echo_n "(cached) " >&6
15278
15759
else
15279
15760
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288
15769
}
15289
15770
_ACEOF
15290
15771
if ac_fn_c_try_link "$LINENO"; then :
15291
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15772
  eval $cacheid=yes
15292
15773
else
15293
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15774
  eval $cacheid=no
15294
15775
fi
15295
15776
rm -f core conftest.err conftest.$ac_objext \
15296
15777
    conftest$ac_exeext conftest.$ac_ext
15299
15780
 
15300
15781
                CFLAGS="$xorg_testset_save_CFLAGS"
15301
15782
 
15302
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15783
                eval supported=\$$cacheid
15303
15784
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15304
15785
$as_echo "$supported" >&6; }
15305
15786
                if test "$supported" = "yes" ; then
15309
15790
        fi
15310
15791
 
15311
15792
        if test $found = "no" ; then
15312
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15793
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15313
15794
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314
15795
                fi
15315
15796
 
15316
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15797
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15317
15798
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15318
15799
                fi
15319
15800
 
15321
15802
 
15322
15803
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15323
15804
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15324
 
                cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15325
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15805
                cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
 
15806
                if eval \${$cacheid+:} false; then :
15326
15807
  $as_echo_n "(cached) " >&6
15327
15808
else
15328
15809
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337
15818
}
15338
15819
_ACEOF
15339
15820
if ac_fn_c_try_link "$LINENO"; then :
15340
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15821
  eval $cacheid=yes
15341
15822
else
15342
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15823
  eval $cacheid=no
15343
15824
fi
15344
15825
rm -f core conftest.err conftest.$ac_objext \
15345
15826
    conftest$ac_exeext conftest.$ac_ext
15348
15829
 
15349
15830
                CFLAGS="$xorg_testset_save_CFLAGS"
15350
15831
 
15351
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15832
                eval supported=\$$cacheid
15352
15833
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15353
15834
$as_echo "$supported" >&6; }
15354
15835
                if test "$supported" = "yes" ; then
15363
15844
 
15364
15845
 
15365
15846
 
 
15847
 
 
15848
 
 
15849
 
 
15850
 
 
15851
 
 
15852
 
 
15853
 
 
15854
 
15366
15855
xorg_testset_save_CFLAGS="$CFLAGS"
15367
15856
 
15368
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15857
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15369
15858
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370
15859
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15371
15860
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15385
15874
fi
15386
15875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15387
15876
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15388
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15877
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15389
15878
        CFLAGS="$xorg_testset_save_CFLAGS"
15390
15879
fi
15391
15880
 
15392
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15393
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15881
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15882
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15394
15883
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15395
15884
        fi
15396
15885
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412
15901
fi
15413
15902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15414
15903
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15415
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15904
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15416
15905
        CFLAGS="$xorg_testset_save_CFLAGS"
15417
15906
fi
15418
15907
 
15419
15908
found="no"
15420
15909
 
15421
15910
        if test $found = "no" ; then
15422
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
15911
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15423
15912
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15424
15913
                fi
15425
15914
 
15426
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
15915
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15427
15916
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15428
15917
                fi
15429
15918
 
15431
15920
 
15432
15921
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15433
15922
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15434
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15435
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
15923
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
 
15924
                if eval \${$cacheid+:} false; then :
15436
15925
  $as_echo_n "(cached) " >&6
15437
15926
else
15438
15927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447
15936
}
15448
15937
_ACEOF
15449
15938
if ac_fn_c_try_link "$LINENO"; then :
15450
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
15939
  eval $cacheid=yes
15451
15940
else
15452
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
15941
  eval $cacheid=no
15453
15942
fi
15454
15943
rm -f core conftest.err conftest.$ac_objext \
15455
15944
    conftest$ac_exeext conftest.$ac_ext
15458
15947
 
15459
15948
                CFLAGS="$xorg_testset_save_CFLAGS"
15460
15949
 
15461
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
15950
                eval supported=\$$cacheid
15462
15951
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15463
15952
$as_echo "$supported" >&6; }
15464
15953
                if test "$supported" = "yes" ; then
15476
15965
 
15477
15966
 
15478
15967
 
 
15968
 
 
15969
 
 
15970
 
 
15971
 
 
15972
 
 
15973
 
 
15974
 
 
15975
 
15479
15976
xorg_testset_save_CFLAGS="$CFLAGS"
15480
15977
 
15481
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
15978
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15482
15979
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483
15980
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15484
15981
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15498
15995
fi
15499
15996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15500
15997
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15501
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15998
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15502
15999
        CFLAGS="$xorg_testset_save_CFLAGS"
15503
16000
fi
15504
16001
 
15505
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15506
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16002
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16003
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15507
16004
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15508
16005
        fi
15509
16006
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15525
16022
fi
15526
16023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15527
16024
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15528
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16025
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15529
16026
        CFLAGS="$xorg_testset_save_CFLAGS"
15530
16027
fi
15531
16028
 
15532
16029
found="no"
15533
16030
 
15534
16031
        if test $found = "no" ; then
15535
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16032
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15536
16033
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537
16034
                fi
15538
16035
 
15539
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16036
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15540
16037
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15541
16038
                fi
15542
16039
 
15544
16041
 
15545
16042
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15546
16043
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15547
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15548
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16044
                cacheid=xorg_cv_cc_flag__Wimplicit
 
16045
                if eval \${$cacheid+:} false; then :
15549
16046
  $as_echo_n "(cached) " >&6
15550
16047
else
15551
16048
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560
16057
}
15561
16058
_ACEOF
15562
16059
if ac_fn_c_try_link "$LINENO"; then :
15563
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16060
  eval $cacheid=yes
15564
16061
else
15565
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16062
  eval $cacheid=no
15566
16063
fi
15567
16064
rm -f core conftest.err conftest.$ac_objext \
15568
16065
    conftest$ac_exeext conftest.$ac_ext
15571
16068
 
15572
16069
                CFLAGS="$xorg_testset_save_CFLAGS"
15573
16070
 
15574
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16071
                eval supported=\$$cacheid
15575
16072
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15576
16073
$as_echo "$supported" >&6; }
15577
16074
                if test "$supported" = "yes" ; then
15586
16083
 
15587
16084
 
15588
16085
 
 
16086
 
 
16087
 
 
16088
 
 
16089
 
 
16090
 
 
16091
 
 
16092
 
 
16093
 
15589
16094
xorg_testset_save_CFLAGS="$CFLAGS"
15590
16095
 
15591
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16096
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15592
16097
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15593
16098
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15594
16099
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15608
16113
fi
15609
16114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15610
16115
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15611
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16116
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15612
16117
        CFLAGS="$xorg_testset_save_CFLAGS"
15613
16118
fi
15614
16119
 
15615
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15616
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16120
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16121
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15617
16122
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15618
16123
        fi
15619
16124
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15635
16140
fi
15636
16141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15637
16142
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15638
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16143
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15639
16144
        CFLAGS="$xorg_testset_save_CFLAGS"
15640
16145
fi
15641
16146
 
15642
16147
found="no"
15643
16148
 
15644
16149
        if test $found = "no" ; then
15645
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16150
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15646
16151
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647
16152
                fi
15648
16153
 
15649
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16154
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15650
16155
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15651
16156
                fi
15652
16157
 
15654
16159
 
15655
16160
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15656
16161
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15657
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15658
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16162
                cacheid=xorg_cv_cc_flag__Wnonnull
 
16163
                if eval \${$cacheid+:} false; then :
15659
16164
  $as_echo_n "(cached) " >&6
15660
16165
else
15661
16166
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670
16175
}
15671
16176
_ACEOF
15672
16177
if ac_fn_c_try_link "$LINENO"; then :
15673
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16178
  eval $cacheid=yes
15674
16179
else
15675
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16180
  eval $cacheid=no
15676
16181
fi
15677
16182
rm -f core conftest.err conftest.$ac_objext \
15678
16183
    conftest$ac_exeext conftest.$ac_ext
15681
16186
 
15682
16187
                CFLAGS="$xorg_testset_save_CFLAGS"
15683
16188
 
15684
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16189
                eval supported=\$$cacheid
15685
16190
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15686
16191
$as_echo "$supported" >&6; }
15687
16192
                if test "$supported" = "yes" ; then
15696
16201
 
15697
16202
 
15698
16203
 
 
16204
 
 
16205
 
 
16206
 
 
16207
 
 
16208
 
 
16209
 
 
16210
 
 
16211
 
15699
16212
xorg_testset_save_CFLAGS="$CFLAGS"
15700
16213
 
15701
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16214
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15702
16215
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703
16216
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15704
16217
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15718
16231
fi
15719
16232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15720
16233
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15721
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16234
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15722
16235
        CFLAGS="$xorg_testset_save_CFLAGS"
15723
16236
fi
15724
16237
 
15725
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15726
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16238
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16239
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15727
16240
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728
16241
        fi
15729
16242
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15745
16258
fi
15746
16259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15747
16260
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15748
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16261
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15749
16262
        CFLAGS="$xorg_testset_save_CFLAGS"
15750
16263
fi
15751
16264
 
15752
16265
found="no"
15753
16266
 
15754
16267
        if test $found = "no" ; then
15755
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16268
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15756
16269
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757
16270
                fi
15758
16271
 
15759
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16272
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15760
16273
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761
16274
                fi
15762
16275
 
15764
16277
 
15765
16278
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15766
16279
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15767
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15768
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16280
                cacheid=xorg_cv_cc_flag__Winit_self
 
16281
                if eval \${$cacheid+:} false; then :
15769
16282
  $as_echo_n "(cached) " >&6
15770
16283
else
15771
16284
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780
16293
}
15781
16294
_ACEOF
15782
16295
if ac_fn_c_try_link "$LINENO"; then :
15783
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16296
  eval $cacheid=yes
15784
16297
else
15785
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16298
  eval $cacheid=no
15786
16299
fi
15787
16300
rm -f core conftest.err conftest.$ac_objext \
15788
16301
    conftest$ac_exeext conftest.$ac_ext
15791
16304
 
15792
16305
                CFLAGS="$xorg_testset_save_CFLAGS"
15793
16306
 
15794
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16307
                eval supported=\$$cacheid
15795
16308
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796
16309
$as_echo "$supported" >&6; }
15797
16310
                if test "$supported" = "yes" ; then
15806
16319
 
15807
16320
 
15808
16321
 
 
16322
 
 
16323
 
 
16324
 
 
16325
 
 
16326
 
 
16327
 
 
16328
 
 
16329
 
15809
16330
xorg_testset_save_CFLAGS="$CFLAGS"
15810
16331
 
15811
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16332
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15812
16333
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813
16334
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15814
16335
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15828
16349
fi
15829
16350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15830
16351
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15831
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16352
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15832
16353
        CFLAGS="$xorg_testset_save_CFLAGS"
15833
16354
fi
15834
16355
 
15835
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15836
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16356
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16357
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15837
16358
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15838
16359
        fi
15839
16360
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15855
16376
fi
15856
16377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15857
16378
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15858
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16379
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15859
16380
        CFLAGS="$xorg_testset_save_CFLAGS"
15860
16381
fi
15861
16382
 
15862
16383
found="no"
15863
16384
 
15864
16385
        if test $found = "no" ; then
15865
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16386
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15866
16387
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15867
16388
                fi
15868
16389
 
15869
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16390
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15870
16391
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15871
16392
                fi
15872
16393
 
15874
16395
 
15875
16396
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15876
16397
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15877
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15878
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16398
                cacheid=xorg_cv_cc_flag__Wmain
 
16399
                if eval \${$cacheid+:} false; then :
15879
16400
  $as_echo_n "(cached) " >&6
15880
16401
else
15881
16402
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890
16411
}
15891
16412
_ACEOF
15892
16413
if ac_fn_c_try_link "$LINENO"; then :
15893
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16414
  eval $cacheid=yes
15894
16415
else
15895
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16416
  eval $cacheid=no
15896
16417
fi
15897
16418
rm -f core conftest.err conftest.$ac_objext \
15898
16419
    conftest$ac_exeext conftest.$ac_ext
15901
16422
 
15902
16423
                CFLAGS="$xorg_testset_save_CFLAGS"
15903
16424
 
15904
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16425
                eval supported=\$$cacheid
15905
16426
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15906
16427
$as_echo "$supported" >&6; }
15907
16428
                if test "$supported" = "yes" ; then
15916
16437
 
15917
16438
 
15918
16439
 
 
16440
 
 
16441
 
 
16442
 
 
16443
 
 
16444
 
 
16445
 
 
16446
 
 
16447
 
15919
16448
xorg_testset_save_CFLAGS="$CFLAGS"
15920
16449
 
15921
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16450
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15922
16451
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15923
16452
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15924
16453
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15938
16467
fi
15939
16468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15940
16469
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15941
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16470
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15942
16471
        CFLAGS="$xorg_testset_save_CFLAGS"
15943
16472
fi
15944
16473
 
15945
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15946
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16474
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16475
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15947
16476
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948
16477
        fi
15949
16478
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15965
16494
fi
15966
16495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15967
16496
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15968
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16497
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15969
16498
        CFLAGS="$xorg_testset_save_CFLAGS"
15970
16499
fi
15971
16500
 
15972
16501
found="no"
15973
16502
 
15974
16503
        if test $found = "no" ; then
15975
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16504
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15976
16505
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15977
16506
                fi
15978
16507
 
15979
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16508
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15980
16509
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15981
16510
                fi
15982
16511
 
15984
16513
 
15985
16514
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15986
16515
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15987
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15988
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16516
                cacheid=xorg_cv_cc_flag__Wmissing_braces
 
16517
                if eval \${$cacheid+:} false; then :
15989
16518
  $as_echo_n "(cached) " >&6
15990
16519
else
15991
16520
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000
16529
}
16001
16530
_ACEOF
16002
16531
if ac_fn_c_try_link "$LINENO"; then :
16003
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16532
  eval $cacheid=yes
16004
16533
else
16005
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16534
  eval $cacheid=no
16006
16535
fi
16007
16536
rm -f core conftest.err conftest.$ac_objext \
16008
16537
    conftest$ac_exeext conftest.$ac_ext
16011
16540
 
16012
16541
                CFLAGS="$xorg_testset_save_CFLAGS"
16013
16542
 
16014
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16543
                eval supported=\$$cacheid
16015
16544
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16016
16545
$as_echo "$supported" >&6; }
16017
16546
                if test "$supported" = "yes" ; then
16026
16555
 
16027
16556
 
16028
16557
 
 
16558
 
 
16559
 
 
16560
 
 
16561
 
 
16562
 
 
16563
 
 
16564
 
 
16565
 
16029
16566
xorg_testset_save_CFLAGS="$CFLAGS"
16030
16567
 
16031
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16568
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16032
16569
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16033
16570
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16034
16571
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16048
16585
fi
16049
16586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16050
16587
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16051
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16588
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16052
16589
        CFLAGS="$xorg_testset_save_CFLAGS"
16053
16590
fi
16054
16591
 
16055
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16056
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16592
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16593
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16057
16594
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16058
16595
        fi
16059
16596
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16075
16612
fi
16076
16613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16077
16614
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16078
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16615
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16079
16616
        CFLAGS="$xorg_testset_save_CFLAGS"
16080
16617
fi
16081
16618
 
16082
16619
found="no"
16083
16620
 
16084
16621
        if test $found = "no" ; then
16085
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16622
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16086
16623
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16087
16624
                fi
16088
16625
 
16089
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16626
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16090
16627
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16091
16628
                fi
16092
16629
 
16094
16631
 
16095
16632
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16096
16633
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16097
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
16098
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16634
                cacheid=xorg_cv_cc_flag__Wsequence_point
 
16635
                if eval \${$cacheid+:} false; then :
16099
16636
  $as_echo_n "(cached) " >&6
16100
16637
else
16101
16638
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110
16647
}
16111
16648
_ACEOF
16112
16649
if ac_fn_c_try_link "$LINENO"; then :
16113
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16650
  eval $cacheid=yes
16114
16651
else
16115
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16652
  eval $cacheid=no
16116
16653
fi
16117
16654
rm -f core conftest.err conftest.$ac_objext \
16118
16655
    conftest$ac_exeext conftest.$ac_ext
16121
16658
 
16122
16659
                CFLAGS="$xorg_testset_save_CFLAGS"
16123
16660
 
16124
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16661
                eval supported=\$$cacheid
16125
16662
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16126
16663
$as_echo "$supported" >&6; }
16127
16664
                if test "$supported" = "yes" ; then
16136
16673
 
16137
16674
 
16138
16675
 
 
16676
 
 
16677
 
 
16678
 
 
16679
 
 
16680
 
 
16681
 
 
16682
 
 
16683
 
16139
16684
xorg_testset_save_CFLAGS="$CFLAGS"
16140
16685
 
16141
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16686
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16142
16687
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143
16688
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16144
16689
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16158
16703
fi
16159
16704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16160
16705
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16161
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16706
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16162
16707
        CFLAGS="$xorg_testset_save_CFLAGS"
16163
16708
fi
16164
16709
 
16165
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16166
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16710
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16711
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16167
16712
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16168
16713
        fi
16169
16714
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16185
16730
fi
16186
16731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16187
16732
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16188
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16733
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16189
16734
        CFLAGS="$xorg_testset_save_CFLAGS"
16190
16735
fi
16191
16736
 
16192
16737
found="no"
16193
16738
 
16194
16739
        if test $found = "no" ; then
16195
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16740
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16196
16741
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16197
16742
                fi
16198
16743
 
16199
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16744
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16200
16745
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16201
16746
                fi
16202
16747
 
16204
16749
 
16205
16750
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16206
16751
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16207
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16208
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16752
                cacheid=xorg_cv_cc_flag__Wreturn_type
 
16753
                if eval \${$cacheid+:} false; then :
16209
16754
  $as_echo_n "(cached) " >&6
16210
16755
else
16211
16756
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220
16765
}
16221
16766
_ACEOF
16222
16767
if ac_fn_c_try_link "$LINENO"; then :
16223
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16768
  eval $cacheid=yes
16224
16769
else
16225
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16770
  eval $cacheid=no
16226
16771
fi
16227
16772
rm -f core conftest.err conftest.$ac_objext \
16228
16773
    conftest$ac_exeext conftest.$ac_ext
16231
16776
 
16232
16777
                CFLAGS="$xorg_testset_save_CFLAGS"
16233
16778
 
16234
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16779
                eval supported=\$$cacheid
16235
16780
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16236
16781
$as_echo "$supported" >&6; }
16237
16782
                if test "$supported" = "yes" ; then
16246
16791
 
16247
16792
 
16248
16793
 
 
16794
 
 
16795
 
 
16796
 
 
16797
 
 
16798
 
 
16799
 
 
16800
 
 
16801
 
16249
16802
xorg_testset_save_CFLAGS="$CFLAGS"
16250
16803
 
16251
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16804
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16252
16805
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16253
16806
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16254
16807
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16268
16821
fi
16269
16822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16270
16823
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16271
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16824
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16272
16825
        CFLAGS="$xorg_testset_save_CFLAGS"
16273
16826
fi
16274
16827
 
16275
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16276
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16828
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16829
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277
16830
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278
16831
        fi
16279
16832
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16295
16848
fi
16296
16849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16297
16850
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16298
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16851
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16299
16852
        CFLAGS="$xorg_testset_save_CFLAGS"
16300
16853
fi
16301
16854
 
16302
16855
found="no"
16303
16856
 
16304
16857
        if test $found = "no" ; then
16305
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16858
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16306
16859
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16307
16860
                fi
16308
16861
 
16309
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16862
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16310
16863
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16311
16864
                fi
16312
16865
 
16314
16867
 
16315
16868
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16316
16869
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16317
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16318
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16870
                cacheid=xorg_cv_cc_flag__Wtrigraphs
 
16871
                if eval \${$cacheid+:} false; then :
16319
16872
  $as_echo_n "(cached) " >&6
16320
16873
else
16321
16874
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330
16883
}
16331
16884
_ACEOF
16332
16885
if ac_fn_c_try_link "$LINENO"; then :
16333
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
16886
  eval $cacheid=yes
16334
16887
else
16335
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
16888
  eval $cacheid=no
16336
16889
fi
16337
16890
rm -f core conftest.err conftest.$ac_objext \
16338
16891
    conftest$ac_exeext conftest.$ac_ext
16341
16894
 
16342
16895
                CFLAGS="$xorg_testset_save_CFLAGS"
16343
16896
 
16344
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
16897
                eval supported=\$$cacheid
16345
16898
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16346
16899
$as_echo "$supported" >&6; }
16347
16900
                if test "$supported" = "yes" ; then
16356
16909
 
16357
16910
 
16358
16911
 
 
16912
 
 
16913
 
 
16914
 
 
16915
 
 
16916
 
 
16917
 
 
16918
 
 
16919
 
16359
16920
xorg_testset_save_CFLAGS="$CFLAGS"
16360
16921
 
16361
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
16922
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16362
16923
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363
16924
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16364
16925
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16378
16939
fi
16379
16940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16380
16941
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16381
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16942
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16382
16943
        CFLAGS="$xorg_testset_save_CFLAGS"
16383
16944
fi
16384
16945
 
16385
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16386
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16946
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16947
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16387
16948
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16388
16949
        fi
16389
16950
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405
16966
fi
16406
16967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16407
16968
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16408
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16969
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16409
16970
        CFLAGS="$xorg_testset_save_CFLAGS"
16410
16971
fi
16411
16972
 
16412
16973
found="no"
16413
16974
 
16414
16975
        if test $found = "no" ; then
16415
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
16976
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16416
16977
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16417
16978
                fi
16418
16979
 
16419
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
16980
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16420
16981
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16421
16982
                fi
16422
16983
 
16424
16985
 
16425
16986
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16426
16987
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16427
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16428
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
16988
                cacheid=xorg_cv_cc_flag__Warray_bounds
 
16989
                if eval \${$cacheid+:} false; then :
16429
16990
  $as_echo_n "(cached) " >&6
16430
16991
else
16431
16992
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440
17001
}
16441
17002
_ACEOF
16442
17003
if ac_fn_c_try_link "$LINENO"; then :
16443
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17004
  eval $cacheid=yes
16444
17005
else
16445
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17006
  eval $cacheid=no
16446
17007
fi
16447
17008
rm -f core conftest.err conftest.$ac_objext \
16448
17009
    conftest$ac_exeext conftest.$ac_ext
16451
17012
 
16452
17013
                CFLAGS="$xorg_testset_save_CFLAGS"
16453
17014
 
16454
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17015
                eval supported=\$$cacheid
16455
17016
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16456
17017
$as_echo "$supported" >&6; }
16457
17018
                if test "$supported" = "yes" ; then
16466
17027
 
16467
17028
 
16468
17029
 
 
17030
 
 
17031
 
 
17032
 
 
17033
 
 
17034
 
 
17035
 
 
17036
 
 
17037
 
16469
17038
xorg_testset_save_CFLAGS="$CFLAGS"
16470
17039
 
16471
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17040
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16472
17041
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473
17042
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474
17043
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16488
17057
fi
16489
17058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16490
17059
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16491
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17060
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16492
17061
        CFLAGS="$xorg_testset_save_CFLAGS"
16493
17062
fi
16494
17063
 
16495
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16496
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17064
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17065
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16497
17066
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16498
17067
        fi
16499
17068
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16515
17084
fi
16516
17085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16517
17086
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16518
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17087
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16519
17088
        CFLAGS="$xorg_testset_save_CFLAGS"
16520
17089
fi
16521
17090
 
16522
17091
found="no"
16523
17092
 
16524
17093
        if test $found = "no" ; then
16525
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17094
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16526
17095
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527
17096
                fi
16528
17097
 
16529
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17098
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16530
17099
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16531
17100
                fi
16532
17101
 
16534
17103
 
16535
17104
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16536
17105
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16537
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16538
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17106
                cacheid=xorg_cv_cc_flag__Wwrite_strings
 
17107
                if eval \${$cacheid+:} false; then :
16539
17108
  $as_echo_n "(cached) " >&6
16540
17109
else
16541
17110
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550
17119
}
16551
17120
_ACEOF
16552
17121
if ac_fn_c_try_link "$LINENO"; then :
16553
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17122
  eval $cacheid=yes
16554
17123
else
16555
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17124
  eval $cacheid=no
16556
17125
fi
16557
17126
rm -f core conftest.err conftest.$ac_objext \
16558
17127
    conftest$ac_exeext conftest.$ac_ext
16561
17130
 
16562
17131
                CFLAGS="$xorg_testset_save_CFLAGS"
16563
17132
 
16564
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17133
                eval supported=\$$cacheid
16565
17134
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16566
17135
$as_echo "$supported" >&6; }
16567
17136
                if test "$supported" = "yes" ; then
16576
17145
 
16577
17146
 
16578
17147
 
 
17148
 
 
17149
 
 
17150
 
 
17151
 
 
17152
 
 
17153
 
 
17154
 
 
17155
 
16579
17156
xorg_testset_save_CFLAGS="$CFLAGS"
16580
17157
 
16581
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17158
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16582
17159
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583
17160
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16584
17161
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598
17175
fi
16599
17176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16600
17177
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16601
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17178
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16602
17179
        CFLAGS="$xorg_testset_save_CFLAGS"
16603
17180
fi
16604
17181
 
16605
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16606
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17182
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17183
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607
17184
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608
17185
        fi
16609
17186
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16625
17202
fi
16626
17203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16627
17204
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16628
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17205
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16629
17206
        CFLAGS="$xorg_testset_save_CFLAGS"
16630
17207
fi
16631
17208
 
16632
17209
found="no"
16633
17210
 
16634
17211
        if test $found = "no" ; then
16635
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17212
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636
17213
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637
17214
                fi
16638
17215
 
16639
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17216
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16640
17217
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641
17218
                fi
16642
17219
 
16644
17221
 
16645
17222
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16646
17223
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16647
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16648
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17224
                cacheid=xorg_cv_cc_flag__Waddress
 
17225
                if eval \${$cacheid+:} false; then :
16649
17226
  $as_echo_n "(cached) " >&6
16650
17227
else
16651
17228
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660
17237
}
16661
17238
_ACEOF
16662
17239
if ac_fn_c_try_link "$LINENO"; then :
16663
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17240
  eval $cacheid=yes
16664
17241
else
16665
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17242
  eval $cacheid=no
16666
17243
fi
16667
17244
rm -f core conftest.err conftest.$ac_objext \
16668
17245
    conftest$ac_exeext conftest.$ac_ext
16671
17248
 
16672
17249
                CFLAGS="$xorg_testset_save_CFLAGS"
16673
17250
 
16674
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17251
                eval supported=\$$cacheid
16675
17252
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676
17253
$as_echo "$supported" >&6; }
16677
17254
                if test "$supported" = "yes" ; then
16686
17263
 
16687
17264
 
16688
17265
 
 
17266
 
 
17267
 
 
17268
 
 
17269
 
 
17270
 
 
17271
 
 
17272
 
 
17273
 
16689
17274
xorg_testset_save_CFLAGS="$CFLAGS"
16690
17275
 
16691
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17276
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16692
17277
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16693
17278
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16694
17279
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16708
17293
fi
16709
17294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16710
17295
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16711
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17296
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16712
17297
        CFLAGS="$xorg_testset_save_CFLAGS"
16713
17298
fi
16714
17299
 
16715
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16716
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17300
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17301
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16717
17302
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16718
17303
        fi
16719
17304
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16735
17320
fi
16736
17321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16737
17322
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16738
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17323
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16739
17324
        CFLAGS="$xorg_testset_save_CFLAGS"
16740
17325
fi
16741
17326
 
16742
17327
found="no"
16743
17328
 
16744
17329
        if test $found = "no" ; then
16745
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17330
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16746
17331
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16747
17332
                fi
16748
17333
 
16749
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17334
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16750
17335
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751
17336
                fi
16752
17337
 
16754
17339
 
16755
17340
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16756
17341
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16757
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16758
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17342
                cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
 
17343
                if eval \${$cacheid+:} false; then :
16759
17344
  $as_echo_n "(cached) " >&6
16760
17345
else
16761
17346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770
17355
}
16771
17356
_ACEOF
16772
17357
if ac_fn_c_try_link "$LINENO"; then :
16773
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17358
  eval $cacheid=yes
16774
17359
else
16775
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17360
  eval $cacheid=no
16776
17361
fi
16777
17362
rm -f core conftest.err conftest.$ac_objext \
16778
17363
    conftest$ac_exeext conftest.$ac_ext
16781
17366
 
16782
17367
                CFLAGS="$xorg_testset_save_CFLAGS"
16783
17368
 
16784
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17369
                eval supported=\$$cacheid
16785
17370
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16786
17371
$as_echo "$supported" >&6; }
16787
17372
                if test "$supported" = "yes" ; then
16796
17381
 
16797
17382
 
16798
17383
 
 
17384
 
 
17385
 
 
17386
 
 
17387
 
 
17388
 
 
17389
 
 
17390
 
 
17391
 
16799
17392
xorg_testset_save_CFLAGS="$CFLAGS"
16800
17393
 
16801
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17394
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16802
17395
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16803
17396
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16804
17397
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16818
17411
fi
16819
17412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16820
17413
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16821
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17414
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16822
17415
        CFLAGS="$xorg_testset_save_CFLAGS"
16823
17416
fi
16824
17417
 
16825
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16826
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17418
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17419
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16827
17420
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16828
17421
        fi
16829
17422
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16845
17438
fi
16846
17439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16847
17440
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16848
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17441
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16849
17442
        CFLAGS="$xorg_testset_save_CFLAGS"
16850
17443
fi
16851
17444
 
16852
17445
found="no"
16853
17446
 
16854
17447
        if test $found = "no" ; then
16855
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17448
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856
17449
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857
17450
                fi
16858
17451
 
16859
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17452
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16860
17453
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16861
17454
                fi
16862
17455
 
16864
17457
 
16865
17458
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16866
17459
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16867
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16868
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17460
                cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
 
17461
                if eval \${$cacheid+:} false; then :
16869
17462
  $as_echo_n "(cached) " >&6
16870
17463
else
16871
17464
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880
17473
}
16881
17474
_ACEOF
16882
17475
if ac_fn_c_try_link "$LINENO"; then :
16883
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17476
  eval $cacheid=yes
16884
17477
else
16885
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17478
  eval $cacheid=no
16886
17479
fi
16887
17480
rm -f core conftest.err conftest.$ac_objext \
16888
17481
    conftest$ac_exeext conftest.$ac_ext
16891
17484
 
16892
17485
                CFLAGS="$xorg_testset_save_CFLAGS"
16893
17486
 
16894
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17487
                eval supported=\$$cacheid
16895
17488
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16896
17489
$as_echo "$supported" >&6; }
16897
17490
                if test "$supported" = "yes" ; then
16908
17501
 
16909
17502
 
16910
17503
 
16911
 
CWARNFLAGS="$BASE_CFLAGS"
16912
 
if  test "x$GCC" = xyes ; then
16913
 
    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16914
 
fi
 
17504
 
 
17505
                CWARNFLAGS="$BASE_CFLAGS"
 
17506
                if  test "x$GCC" = xyes ; then
 
17507
                    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
 
17508
                fi
 
17509
 
 
17510
 
16915
17511
 
16916
17512
 
16917
17513
 
16926
17522
fi
16927
17523
 
16928
17524
 
 
17525
 
 
17526
 
 
17527
 
 
17528
 
16929
17529
STRICT_CFLAGS=""
16930
17530
 
16931
17531
 
16932
17532
 
16933
17533
 
16934
17534
 
 
17535
 
 
17536
 
 
17537
 
 
17538
 
 
17539
 
 
17540
 
 
17541
 
 
17542
 
16935
17543
xorg_testset_save_CFLAGS="$CFLAGS"
16936
17544
 
16937
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17545
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16938
17546
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16939
17547
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16940
17548
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16954
17562
fi
16955
17563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16956
17564
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16957
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17565
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16958
17566
        CFLAGS="$xorg_testset_save_CFLAGS"
16959
17567
fi
16960
17568
 
16961
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16962
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17569
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17570
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16963
17571
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16964
17572
        fi
16965
17573
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981
17589
fi
16982
17590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16983
17591
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16984
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17592
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16985
17593
        CFLAGS="$xorg_testset_save_CFLAGS"
16986
17594
fi
16987
17595
 
16988
17596
found="no"
16989
17597
 
16990
17598
        if test $found = "no" ; then
16991
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17599
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992
17600
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993
17601
                fi
16994
17602
 
16995
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17603
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16996
17604
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16997
17605
                fi
16998
17606
 
17000
17608
 
17001
17609
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17002
17610
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17003
 
                cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
17004
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17611
                cacheid=xorg_cv_cc_flag__pedantic
 
17612
                if eval \${$cacheid+:} false; then :
17005
17613
  $as_echo_n "(cached) " >&6
17006
17614
else
17007
17615
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016
17624
}
17017
17625
_ACEOF
17018
17626
if ac_fn_c_try_link "$LINENO"; then :
17019
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17627
  eval $cacheid=yes
17020
17628
else
17021
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17629
  eval $cacheid=no
17022
17630
fi
17023
17631
rm -f core conftest.err conftest.$ac_objext \
17024
17632
    conftest$ac_exeext conftest.$ac_ext
17027
17635
 
17028
17636
                CFLAGS="$xorg_testset_save_CFLAGS"
17029
17637
 
17030
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17638
                eval supported=\$$cacheid
17031
17639
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17032
17640
$as_echo "$supported" >&6; }
17033
17641
                if test "$supported" = "yes" ; then
17042
17650
 
17043
17651
 
17044
17652
 
 
17653
 
 
17654
 
 
17655
 
 
17656
 
 
17657
 
 
17658
 
 
17659
 
 
17660
 
17045
17661
xorg_testset_save_CFLAGS="$CFLAGS"
17046
17662
 
17047
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17663
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17048
17664
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17049
17665
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17050
17666
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17064
17680
fi
17065
17681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17066
17682
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17067
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17683
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17068
17684
        CFLAGS="$xorg_testset_save_CFLAGS"
17069
17685
fi
17070
17686
 
17071
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17072
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17687
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17688
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17073
17689
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074
17690
        fi
17075
17691
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17091
17707
fi
17092
17708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17093
17709
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17094
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17710
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17095
17711
        CFLAGS="$xorg_testset_save_CFLAGS"
17096
17712
fi
17097
17713
 
17098
17714
found="no"
17099
17715
 
17100
17716
        if test $found = "no" ; then
17101
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17717
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17102
17718
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17103
17719
                fi
17104
17720
 
17105
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17721
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17106
17722
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17107
17723
                fi
17108
17724
 
17110
17726
 
17111
17727
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17112
17728
$as_echo_n "checking if $CC supports -Werror... " >&6; }
17113
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17114
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17729
                cacheid=xorg_cv_cc_flag__Werror
 
17730
                if eval \${$cacheid+:} false; then :
17115
17731
  $as_echo_n "(cached) " >&6
17116
17732
else
17117
17733
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126
17742
}
17127
17743
_ACEOF
17128
17744
if ac_fn_c_try_link "$LINENO"; then :
17129
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17745
  eval $cacheid=yes
17130
17746
else
17131
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17747
  eval $cacheid=no
17132
17748
fi
17133
17749
rm -f core conftest.err conftest.$ac_objext \
17134
17750
    conftest$ac_exeext conftest.$ac_ext
17137
17753
 
17138
17754
                CFLAGS="$xorg_testset_save_CFLAGS"
17139
17755
 
17140
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17756
                eval supported=\$$cacheid
17141
17757
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17142
17758
$as_echo "$supported" >&6; }
17143
17759
                if test "$supported" = "yes" ; then
17147
17763
        fi
17148
17764
 
17149
17765
        if test $found = "no" ; then
17150
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17766
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17151
17767
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17152
17768
                fi
17153
17769
 
17154
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17770
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17155
17771
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17156
17772
                fi
17157
17773
 
17159
17775
 
17160
17776
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17161
17777
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17162
 
                cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17163
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17778
                cacheid=xorg_cv_cc_flag__errwarn
 
17779
                if eval \${$cacheid+:} false; then :
17164
17780
  $as_echo_n "(cached) " >&6
17165
17781
else
17166
17782
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175
17791
}
17176
17792
_ACEOF
17177
17793
if ac_fn_c_try_link "$LINENO"; then :
17178
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17794
  eval $cacheid=yes
17179
17795
else
17180
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17796
  eval $cacheid=no
17181
17797
fi
17182
17798
rm -f core conftest.err conftest.$ac_objext \
17183
17799
    conftest$ac_exeext conftest.$ac_ext
17186
17802
 
17187
17803
                CFLAGS="$xorg_testset_save_CFLAGS"
17188
17804
 
17189
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17805
                eval supported=\$$cacheid
17190
17806
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17191
17807
$as_echo "$supported" >&6; }
17192
17808
                if test "$supported" = "yes" ; then
17204
17820
 
17205
17821
 
17206
17822
 
 
17823
 
 
17824
 
 
17825
 
 
17826
 
 
17827
 
 
17828
 
 
17829
 
 
17830
 
17207
17831
xorg_testset_save_CFLAGS="$CFLAGS"
17208
17832
 
17209
 
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
 
17833
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17210
17834
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211
17835
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17212
17836
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17226
17850
fi
17227
17851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17228
17852
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17229
 
        xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17853
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17230
17854
        CFLAGS="$xorg_testset_save_CFLAGS"
17231
17855
fi
17232
17856
 
17233
 
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17234
 
        if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17857
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17858
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17235
17859
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236
17860
        fi
17237
17861
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253
17877
fi
17254
17878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17255
17879
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17256
 
        xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17880
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17257
17881
        CFLAGS="$xorg_testset_save_CFLAGS"
17258
17882
fi
17259
17883
 
17260
17884
found="no"
17261
17885
 
17262
17886
        if test $found = "no" ; then
17263
 
                if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
 
17887
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17264
17888
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17265
17889
                fi
17266
17890
 
17267
 
                if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
 
17891
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17268
17892
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17269
17893
                fi
17270
17894
 
17272
17896
 
17273
17897
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17274
17898
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17275
 
                cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17276
 
                if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
17899
                cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
 
17900
                if eval \${$cacheid+:} false; then :
17277
17901
  $as_echo_n "(cached) " >&6
17278
17902
else
17279
17903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288
17912
}
17289
17913
_ACEOF
17290
17914
if ac_fn_c_try_link "$LINENO"; then :
17291
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
 
17915
  eval $cacheid=yes
17292
17916
else
17293
 
  eval `$as_echo "$cacheid" | $as_tr_sh`=no
 
17917
  eval $cacheid=no
17294
17918
fi
17295
17919
rm -f core conftest.err conftest.$ac_objext \
17296
17920
    conftest$ac_exeext conftest.$ac_ext
17299
17923
 
17300
17924
                CFLAGS="$xorg_testset_save_CFLAGS"
17301
17925
 
17302
 
                eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
 
17926
                eval supported=\$$cacheid
17303
17927
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17304
17928
$as_echo "$supported" >&6; }
17305
17929
                if test "$supported" = "yes" ; then
17454
18078
  enableval=$enable_silent_rules;
17455
18079
fi
17456
18080
 
17457
 
case $enable_silent_rules in
17458
 
yes) AM_DEFAULT_VERBOSITY=0;;
17459
 
no)  AM_DEFAULT_VERBOSITY=1;;
17460
 
*)   AM_DEFAULT_VERBOSITY=0;;
 
18081
case $enable_silent_rules in # (((
 
18082
  yes) AM_DEFAULT_VERBOSITY=0;;
 
18083
   no) AM_DEFAULT_VERBOSITY=1;;
 
18084
    *) AM_DEFAULT_VERBOSITY=0;;
17461
18085
esac
 
18086
am_make=${MAKE-make}
 
18087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
18088
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
18089
if ${am_cv_make_support_nested_variables+:} false; then :
 
18090
  $as_echo_n "(cached) " >&6
 
18091
else
 
18092
  if $as_echo 'TRUE=$(BAR$(V))
 
18093
BAR0=false
 
18094
BAR1=true
 
18095
V=1
 
18096
am__doit:
 
18097
        @$(TRUE)
 
18098
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
18099
  am_cv_make_support_nested_variables=yes
 
18100
else
 
18101
  am_cv_make_support_nested_variables=no
 
18102
fi
 
18103
fi
 
18104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
18105
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
18106
if test $am_cv_make_support_nested_variables = yes; then
 
18107
    AM_V='$(V)'
 
18108
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
18109
else
 
18110
  AM_V=$AM_DEFAULT_VERBOSITY
 
18111
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
18112
fi
17462
18113
AM_BACKSLASH='\'
17463
18114
 
17464
18115
 
18067
18718
fi
18068
18719
 
18069
18720
# Transport selection macro from xtrans.m4
18070
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18071
 
$as_echo_n "checking return type of signal handlers... " >&6; }
18072
 
if ${ac_cv_type_signal+:} false; then :
18073
 
  $as_echo_n "(cached) " >&6
18074
 
else
18075
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18076
 
/* end confdefs.h.  */
18077
 
#include <sys/types.h>
18078
 
#include <signal.h>
18079
 
 
18080
 
int
18081
 
main ()
18082
 
{
18083
 
return *(signal (0, 0)) (0) == 1;
18084
 
  ;
18085
 
  return 0;
18086
 
}
18087
 
_ACEOF
18088
 
if ac_fn_c_try_compile "$LINENO"; then :
18089
 
  ac_cv_type_signal=int
18090
 
else
18091
 
  ac_cv_type_signal=void
18092
 
fi
18093
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094
 
fi
18095
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18096
 
$as_echo "$ac_cv_type_signal" >&6; }
18097
 
 
18098
 
cat >>confdefs.h <<_ACEOF
18099
 
#define RETSIGTYPE $ac_cv_type_signal
18100
 
_ACEOF
18101
 
 
18102
 
 
18103
 
 
18104
18721
 
18105
18722
 
18106
18723
 case $host_os in
18291
18908
  LIBS="-lws2_32 $LIBS"
18292
18909
 
18293
18910
fi
18294
 
ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18295
18911
 
18296
18912
 fi
18297
18913
 
18348
18964
fi
18349
18965
 
18350
18966
 
 
18967
 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
 
18968
 # _XOPEN_SOURCE to get it (such as on Solaris)
 
18969
 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
 
18970
$ac_includes_default
 
18971
#include <sys/socket.h>
 
18972
 
 
18973
"
 
18974
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
 
18975
 
 
18976
fi
 
18977
 
 
18978
 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
 
18979
 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
 
18980
     unset ac_cv_member_struct_msghdr_msg_control
 
18981
     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
 
18982
$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
 
18983
     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
 
18984
#define _XOPEN_SOURCE 600
 
18985
$ac_includes_default
 
18986
#include <sys/socket.h>
 
18987
 
 
18988
"
 
18989
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
 
18990
 
 
18991
$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
 
18992
 
 
18993
 
 
18994
fi
 
18995
 
 
18996
 fi
 
18997
 # If that didn't work, fall back to XPG5/UNIX98 with C89
 
18998
 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
 
18999
     unset ac_cv_member_struct_msghdr_msg_control
 
19000
     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
 
19001
$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
 
19002
     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
 
19003
#define _XOPEN_SOURCE 500
 
19004
$ac_includes_default
 
19005
#include <sys/socket.h>
 
19006
 
 
19007
"
 
19008
if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
 
19009
 
 
19010
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
 
19011
 
 
19012
 
 
19013
fi
 
19014
 
 
19015
 fi
 
19016
 
 
19017
 
18351
19018
 
18352
19019
 fi
18353
19020
 case $host_os in
18377
19044
 
18378
19045
 
18379
19046
# Checks for library functions.
18380
 
for ac_func in asprintf
 
19047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
 
19048
$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
 
19049
if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
 
19050
  $as_echo_n "(cached) " >&6
 
19051
else
 
19052
  ac_check_lib_save_LIBS=$LIBS
 
19053
LIBS="-lbsd  $LIBS"
 
19054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19055
/* end confdefs.h.  */
 
19056
 
 
19057
/* Override any GCC internal prototype to avoid an error.
 
19058
   Use char because int might match the return type of a GCC
 
19059
   builtin and then its argument prototype would still apply.  */
 
19060
#ifdef __cplusplus
 
19061
extern "C"
 
19062
#endif
 
19063
char arc4random_buf ();
 
19064
int
 
19065
main ()
 
19066
{
 
19067
return arc4random_buf ();
 
19068
  ;
 
19069
  return 0;
 
19070
}
 
19071
_ACEOF
 
19072
if ac_fn_c_try_link "$LINENO"; then :
 
19073
  ac_cv_lib_bsd_arc4random_buf=yes
 
19074
else
 
19075
  ac_cv_lib_bsd_arc4random_buf=no
 
19076
fi
 
19077
rm -f core conftest.err conftest.$ac_objext \
 
19078
    conftest$ac_exeext conftest.$ac_ext
 
19079
LIBS=$ac_check_lib_save_LIBS
 
19080
fi
 
19081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
 
19082
$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
 
19083
if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
 
19084
  cat >>confdefs.h <<_ACEOF
 
19085
#define HAVE_LIBBSD 1
 
19086
_ACEOF
 
19087
 
 
19088
  LIBS="-lbsd $LIBS"
 
19089
 
 
19090
fi
 
19091
 
 
19092
for ac_func in asprintf arc4random_buf
18381
19093
do :
18382
 
  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
18383
 
if test "x$ac_cv_func_asprintf" = xyes; then :
 
19094
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19095
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
19096
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18384
19097
  cat >>confdefs.h <<_ACEOF
18385
 
#define HAVE_ASPRINTF 1
 
19098
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18386
19099
_ACEOF
18387
19100
 
18388
19101
fi
18634
19347
LTLIBOBJS=$ac_ltlibobjs
18635
19348
 
18636
19349
 
 
19350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
19351
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
19352
   if test -n "$am_sleep_pid"; then
 
19353
     # Hide warnings about reused PIDs.
 
19354
     wait $am_sleep_pid 2>/dev/null
 
19355
   fi
 
19356
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
19357
$as_echo "done" >&6; }
18637
19358
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18638
19359
  as_fn_error $? "conditional \"AMDEP\" was never defined.
18639
19360
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18650
19371
  am__EXEEXT_FALSE=
18651
19372
fi
18652
19373
 
18653
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18654
 
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18655
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18656
 
fi
18657
19374
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18658
19375
  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18659
19376
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19099
19816
# report actual input values of CONFIG_FILES etc. instead of their
19100
19817
# values after options handling.
19101
19818
ac_log="
19102
 
This file was extended by libICE $as_me 1.0.8, which was
 
19819
This file was extended by libICE $as_me 1.0.9, which was
19103
19820
generated by GNU Autoconf 2.68.  Invocation command line was
19104
19821
 
19105
19822
  CONFIG_FILES    = $CONFIG_FILES
19165
19882
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19166
19883
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19167
19884
ac_cs_version="\\
19168
 
libICE config.status 1.0.8
 
19885
libICE config.status 1.0.9
19169
19886
configured by $0, generated by GNU Autoconf 2.68,
19170
19887
  with options \\"\$ac_cs_config\\"
19171
19888
 
19302
20019
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19303
20020
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19304
20021
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
20022
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19305
20023
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19306
20024
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19307
20025
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19384
20102
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19385
20103
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19386
20104
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19387
 
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19388
20105
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19389
20106
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19390
20107
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19440
20157
# Quote evaled strings.
19441
20158
for var in SHELL \
19442
20159
ECHO \
 
20160
PATH_SEPARATOR \
19443
20161
SED \
19444
20162
GREP \
19445
20163
EGREP \
19490
20208
allow_undefined_flag \
19491
20209
no_undefined_flag \
19492
20210
hardcode_libdir_flag_spec \
19493
 
hardcode_libdir_flag_spec_ld \
19494
20211
hardcode_libdir_separator \
19495
20212
exclude_expsyms \
19496
20213
include_expsyms \
20175
20892
 
20176
20893
  case $ac_file$ac_mode in
20177
20894
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20178
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
20895
  # Older Autoconf quotes --file arguments for eval, but not when files
20179
20896
  # are listed without --file.  Let's play safe and only enable the eval
20180
20897
  # if we detect the quoting.
20181
20898
  case $CONFIG_FILES in
20188
20905
    # Strip MF so we end up with the name of the file.
20189
20906
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20190
20907
    # Check whether this is an Automake generated Makefile or not.
20191
 
    # We used to match only the files named `Makefile.in', but
 
20908
    # We used to match only the files named 'Makefile.in', but
20192
20909
    # some people rename them; so instead we look at the file content.
20193
20910
    # Grep'ing the first line is not enough: some people post-process
20194
20911
    # each Makefile.in and add a new line on top of each file to say so.
20222
20939
      continue
20223
20940
    fi
20224
20941
    # Extract the definition of DEPDIR, am__include, and am__quote
20225
 
    # from the Makefile without running `make'.
 
20942
    # from the Makefile without running 'make'.
20226
20943
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20227
20944
    test -z "$DEPDIR" && continue
20228
20945
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20229
 
    test -z "am__include" && continue
 
20946
    test -z "$am__include" && continue
20230
20947
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20231
 
    # When using ansi2knr, U may be empty or an underscore; expand it
20232
 
    U=`sed -n 's/^U = //p' < "$mf"`
20233
20948
    # Find all dependency output files, they are included files with
20234
20949
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20235
20950
    # simplest approach to changing $(DEPDIR) to its actual value in the
20236
20951
    # expansion.
20237
20952
    for file in `sed -n "
20238
20953
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20239
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20954
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20240
20955
      # Make sure the directory exists.
20241
20956
      test -f "$dirpart/$file" && continue
20242
20957
      fdir=`$as_dirname -- "$file" ||
20290
21005
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20291
21006
#
20292
21007
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20293
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20294
 
#                 Inc.
 
21008
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
21009
#                 Foundation, Inc.
20295
21010
#   Written by Gordon Matzigkeit, 1996
20296
21011
#
20297
21012
#   This file is part of GNU Libtool.
20345
21060
# An echo program that protects backslashes.
20346
21061
ECHO=$lt_ECHO
20347
21062
 
 
21063
# The PATH separator for the build system.
 
21064
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
21065
 
20348
21066
# The host system.
20349
21067
host_alias=$host_alias
20350
21068
host=$host
20646
21364
# This must work even if \$libdir does not exist
20647
21365
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20648
21366
 
20649
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
20650
 
# during linking.  This must work even if \$libdir does not exist.
20651
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20652
 
 
20653
21367
# Whether we need a single "-rpath" flag with a separated argument.
20654
21368
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20655
21369