~ubuntu-branches/ubuntu/wily/xcb-util/wily-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2015-08-11 12:01:14 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150811120114-ec837g3xvh4t80g2
Tags: 0.4.0-0ubuntu1
* New upstream release. (LP: #1473825)
* debian/control:
  - Use standards version 3.9.6
  - Drop build-depends on x11proto-core-dev
  - Rename libxcb-util0 to libxcb-util1
  - Rename libxcb-util0-dev to libxcb-util-dev
  - Add transitional libxcb-util0-dev package

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 xcb-util 0.3.8.
4
 
#
5
 
# Report bugs to <xcb@lists.freedesktop.org>.
6
 
#
7
 
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10
 
# Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.69 for xcb-util 0.4.0.
 
4
#
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
9
#
12
10
#
13
11
# This configure script is free software; the Free Software Foundation
136
134
# CDPATH.
137
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
139
162
if test "x$CONFIG_SHELL" = x; then
140
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
164
  emulate sh
169
192
else
170
193
  exitcode=1; echo positional parameters were not saved.
171
194
fi
172
 
test x\$exitcode = x0 || exit 1"
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
173
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
222
246
 
223
247
 
224
248
      if test "x$CONFIG_SHELL" != x; then :
225
 
  # We cannot yet assume a decent shell, so we have to provide a
226
 
        # neutralization value for shells without unset; and this also
227
 
        # works around shells that cannot unset nonexistent variables.
228
 
        # Preserve -v and -x to the replacement shell.
229
 
        BASH_ENV=/dev/null
230
 
        ENV=/dev/null
231
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
 
        export CONFIG_SHELL
233
 
        case $- in # ((((
234
 
          *v*x* | *x*v* ) as_opts=-vx ;;
235
 
          *v* ) as_opts=-v ;;
236
 
          *x* ) as_opts=-x ;;
237
 
          * ) as_opts= ;;
238
 
        esac
239
 
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
240
268
fi
241
269
 
242
270
    if test x$as_have_required = xno; then :
247
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248
276
  else
249
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250
 
$0: xcb@lists.freedesktop.org about your system, including
251
 
$0: any error possibly output before this message. Then
252
 
$0: install a modern shell, or manually run the script
253
 
$0: under such a shell if you do have one."
 
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
254
283
  fi
255
284
  exit 1
256
285
fi
339
368
 
340
369
 
341
370
} # as_fn_mkdir_p
 
371
 
 
372
# as_fn_executable_p FILE
 
373
# -----------------------
 
374
# Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} # as_fn_executable_p
342
379
# as_fn_append VAR VALUE
343
380
# ----------------------
344
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
460
497
  chmod +x "$as_me.lineno" ||
461
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
463
504
  # Don't try to exec as it changes $[0], causing all sort of problems
464
505
  # (the dirname of $[0] is not the place where we might find the
465
506
  # original and so on.  Autoconf is especially sensitive to this).
494
535
    # ... but there are two gotchas:
495
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
 
    # In both cases, we have to default to `cp -p'.
 
538
    # In both cases, we have to default to `cp -pR'.
498
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499
 
      as_ln_s='cp -p'
 
540
      as_ln_s='cp -pR'
500
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
501
542
    as_ln_s=ln
502
543
  else
503
 
    as_ln_s='cp -p'
 
544
    as_ln_s='cp -pR'
504
545
  fi
505
546
else
506
 
  as_ln_s='cp -p'
 
547
  as_ln_s='cp -pR'
507
548
fi
508
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
550
rmdir conf$$.dir 2>/dev/null
515
556
  as_mkdir_p=false
516
557
fi
517
558
 
518
 
if test -x / >/dev/null 2>&1; then
519
 
  as_test_x='test -x'
520
 
else
521
 
  if ls -dL / >/dev/null 2>&1; then
522
 
    as_ls_L_option=L
523
 
  else
524
 
    as_ls_L_option=
525
 
  fi
526
 
  as_test_x='
527
 
    eval sh -c '\''
528
 
      if test -d "$1"; then
529
 
        test -d "$1/.";
530
 
      else
531
 
        case $1 in #(
532
 
        -*)set "./$1";;
533
 
        esac;
534
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
 
        ???[sx]*):;;*)false;;esac;fi
536
 
    '\'' sh
537
 
  '
538
 
fi
539
 
as_executable_p=$as_test_x
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
540
561
 
541
562
# Sed expression to map a string onto a valid CPP name.
542
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
591
# Identity of this package.
571
592
PACKAGE_NAME='xcb-util'
572
593
PACKAGE_TARNAME='xcb-util'
573
 
PACKAGE_VERSION='0.3.8'
574
 
PACKAGE_STRING='xcb-util 0.3.8'
575
 
PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
 
594
PACKAGE_VERSION='0.4.0'
 
595
PACKAGE_STRING='xcb-util 0.4.0'
 
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils'
576
597
PACKAGE_URL=''
577
598
 
578
599
ac_unique_file="Makefile.am"
617
638
am__EXEEXT_TRUE
618
639
LTLIBOBJS
619
640
LIBOBJS
620
 
XPROTO_LIBS
621
 
XPROTO_CFLAGS
622
 
GPERF
623
641
HAVE_DOXYGEN_FALSE
624
642
HAVE_DOXYGEN_TRUE
 
643
HAVE_DOT_FALSE
 
644
HAVE_DOT_TRUE
 
645
HAVE_DOT
 
646
DOT
625
647
DOXYGEN
626
648
ENABLE_DEVEL_DOCS_FALSE
627
649
ENABLE_DEVEL_DOCS_TRUE
628
 
AM_BACKSLASH
629
 
AM_DEFAULT_VERBOSITY
630
650
MAN_SUBSTS
631
651
XORG_MAN_PAGE
632
652
ADMIN_MAN_DIR
643
663
APP_MAN_SUFFIX
644
664
INSTALL_CMD
645
665
CHANGELOG_CMD
 
666
STRICT_CFLAGS
646
667
CWARNFLAGS
 
668
BASE_CFLAGS
647
669
XCB_LIBS
648
670
XCB_CFLAGS
649
671
PKG_CONFIG_LIBDIR
675
697
am__fastdepCC_FALSE
676
698
am__fastdepCC_TRUE
677
699
CCDEPMODE
 
700
am__nodep
678
701
AMDEPBACKSLASH
679
702
AMDEP_FALSE
680
703
AMDEP_TRUE
697
720
build_cpu
698
721
build
699
722
LIBTOOL
700
 
M4
701
 
MAINT
702
 
MAINTAINER_MODE_FALSE
703
 
MAINTAINER_MODE_TRUE
 
723
AM_BACKSLASH
 
724
AM_DEFAULT_VERBOSITY
 
725
AM_DEFAULT_V
 
726
AM_V
704
727
am__untar
705
728
am__tar
706
729
AMTAR
765
788
ac_subst_files=''
766
789
ac_user_opts='
767
790
enable_option_checking
768
 
enable_maintainer_mode
 
791
enable_silent_rules
769
792
enable_shared
770
793
enable_static
771
794
with_pic
774
797
with_gnu_ld
775
798
with_sysroot
776
799
enable_libtool_lock
 
800
enable_selective_werror
777
801
enable_strict_compilation
778
 
enable_silent_rules
779
802
enable_devel_docs
780
803
with_doxygen
781
804
'
794
817
XCB_CFLAGS
795
818
XCB_LIBS
796
819
DOXYGEN
797
 
XPROTO_CFLAGS
798
 
XPROTO_LIBS'
 
820
DOT'
799
821
 
800
822
 
801
823
# Initialize some variables set by options.
1251
1273
if test "x$host_alias" != x; then
1252
1274
  if test "x$build_alias" = x; then
1253
1275
    cross_compiling=maybe
1254
 
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1255
 
    If a cross compiler is detected then cross compile mode will be used" >&2
1256
1276
  elif test "x$build_alias" != "x$host_alias"; then
1257
1277
    cross_compiling=yes
1258
1278
  fi
1338
1358
  # Omit some internal or obsolete options to make the list less imposing.
1339
1359
  # This message is too long to be a string in the A/UX 3.1 sh.
1340
1360
  cat <<_ACEOF
1341
 
\`configure' configures xcb-util 0.3.8 to adapt to many kinds of systems.
 
1361
\`configure' configures xcb-util 0.4.0 to adapt to many kinds of systems.
1342
1362
 
1343
1363
Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1364
 
1408
1428
 
1409
1429
if test -n "$ac_init_help"; then
1410
1430
  case $ac_init_help in
1411
 
     short | recursive ) echo "Configuration of xcb-util 0.3.8:";;
 
1431
     short | recursive ) echo "Configuration of xcb-util 0.4.0:";;
1412
1432
   esac
1413
1433
  cat <<\_ACEOF
1414
1434
 
1416
1436
  --disable-option-checking  ignore unrecognized --enable/--with options
1417
1437
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418
1438
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1420
 
                          (and sometimes confusing) to the casual installer
 
1439
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1440
  --disable-silent-rules  verbose build output (undo: "make V=0")
1421
1441
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1422
1442
  --enable-static[=PKGS]  build static libraries [default=yes]
1423
1443
  --enable-fast-install[=PKGS]
1424
1444
                          optimize for fast installation [default=yes]
1425
 
  --disable-dependency-tracking  speeds up one-time build
1426
 
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1445
  --enable-dependency-tracking
 
1446
                          do not reject slow dependency extractors
 
1447
  --disable-dependency-tracking
 
1448
                          speeds up one-time build
1427
1449
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1450
  --disable-selective-werror
 
1451
                          Turn off selective compiler errors. (default:
 
1452
                          enabled)
1428
1453
  --enable-strict-compilation
1429
1454
                          Enable all warnings from compiler and make them
1430
1455
                          errors (default: disabled)
1431
 
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1432
 
  --disable-silent-rules         verbose build output (undo: `make V=0')
1433
1456
  --enable-devel-docs     Enable building the developer documentation
1434
1457
                          (default: yes)
1435
1458
 
1436
1459
Optional Packages:
1437
1460
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438
1461
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1462
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440
1463
                          both]
1441
1464
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442
1465
  --with-sysroot=DIR Search for dependent libraries within DIR
1461
1484
  XCB_CFLAGS  C compiler flags for XCB, overriding pkg-config
1462
1485
  XCB_LIBS    linker flags for XCB, overriding pkg-config
1463
1486
  DOXYGEN     Path to doxygen command
1464
 
  XPROTO_CFLAGS
1465
 
              C compiler flags for XPROTO, overriding pkg-config
1466
 
  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
 
1487
  DOT         Path to the dot graphics utility
1467
1488
 
1468
1489
Use these variables to override the choices made by `configure' or to help
1469
1490
it to find libraries and programs with nonstandard names/locations.
1470
1491
 
1471
 
Report bugs to <xcb@lists.freedesktop.org>.
 
1492
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
1472
1493
_ACEOF
1473
1494
ac_status=$?
1474
1495
fi
1531
1552
test -n "$ac_init_help" && exit $ac_status
1532
1553
if $ac_init_version; then
1533
1554
  cat <<\_ACEOF
1534
 
xcb-util configure 0.3.8
1535
 
generated by GNU Autoconf 2.68
 
1555
xcb-util configure 0.4.0
 
1556
generated by GNU Autoconf 2.69
1536
1557
 
1537
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
1558
Copyright (C) 2012 Free Software Foundation, Inc.
1538
1559
This configure script is free software; the Free Software Foundation
1539
1560
gives unlimited permission to copy, distribute and modify it.
1540
1561
_ACEOF
1610
1631
         test ! -s conftest.err
1611
1632
       } && test -s conftest$ac_exeext && {
1612
1633
         test "$cross_compiling" = yes ||
1613
 
         $as_test_x conftest$ac_exeext
 
1634
         test -x conftest$ac_exeext
1614
1635
       }; then :
1615
1636
  ac_retval=0
1616
1637
else
1851
1872
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1873
 
1853
1874
} # ac_fn_c_check_decl
1854
 
 
1855
 
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856
 
# -------------------------------------------
1857
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
1858
 
# variable VAR accordingly.
1859
 
ac_fn_c_check_type ()
1860
 
{
1861
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863
 
$as_echo_n "checking for $2... " >&6; }
1864
 
if eval \${$3+:} false; then :
1865
 
  $as_echo_n "(cached) " >&6
1866
 
else
1867
 
  eval "$3=no"
1868
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869
 
/* end confdefs.h.  */
1870
 
$4
1871
 
int
1872
 
main ()
1873
 
{
1874
 
if (sizeof ($2))
1875
 
         return 0;
1876
 
  ;
1877
 
  return 0;
1878
 
}
1879
 
_ACEOF
1880
 
if ac_fn_c_try_compile "$LINENO"; then :
1881
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
 
/* end confdefs.h.  */
1883
 
$4
1884
 
int
1885
 
main ()
1886
 
{
1887
 
if (sizeof (($2)))
1888
 
            return 0;
1889
 
  ;
1890
 
  return 0;
1891
 
}
1892
 
_ACEOF
1893
 
if ac_fn_c_try_compile "$LINENO"; then :
1894
 
 
1895
 
else
1896
 
  eval "$3=yes"
1897
 
fi
1898
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899
 
fi
1900
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901
 
fi
1902
 
eval ac_res=\$$3
1903
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904
 
$as_echo "$ac_res" >&6; }
1905
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
 
 
1907
 
} # ac_fn_c_check_type
1908
1875
cat >config.log <<_ACEOF
1909
1876
This file contains any messages produced by compilers while
1910
1877
running configure, to aid debugging if configure makes a mistake.
1911
1878
 
1912
 
It was created by xcb-util $as_me 0.3.8, which was
1913
 
generated by GNU Autoconf 2.68.  Invocation command line was
 
1879
It was created by xcb-util $as_me 0.4.0, which was
 
1880
generated by GNU Autoconf 2.69.  Invocation command line was
1914
1881
 
1915
1882
  $ $0 $@
1916
1883
 
2259
2226
 
2260
2227
 
2261
2228
 
2262
 
 
2263
 
am__api_version='1.11'
 
2229
ac_config_headers="$ac_config_headers config.h"
 
2230
 
 
2231
 
 
2232
am__api_version='1.14'
2264
2233
 
2265
2234
ac_aux_dir=
2266
2235
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2328
2297
    # by default.
2329
2298
    for ac_prog in ginstall scoinst install; do
2330
2299
      for ac_exec_ext in '' $ac_executable_extensions; do
2331
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2300
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2332
2301
          if test $ac_prog = install &&
2333
2302
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334
2303
            # AIX install.  It has an incompatible calling convention.
2386
2355
 
2387
2356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2388
2357
$as_echo_n "checking whether build environment is sane... " >&6; }
2389
 
# Just in case
2390
 
sleep 1
2391
 
echo timestamp > conftest.file
2392
2358
# Reject unsafe characters in $srcdir or the absolute working directory
2393
2359
# name.  Accept space and tab only in the latter.
2394
2360
am_lf='
2399
2365
esac
2400
2366
case $srcdir in
2401
2367
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2402
 
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2368
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2403
2369
esac
2404
2370
 
2405
 
# Do `set' in a subshell so we don't clobber the current shell's
 
2371
# Do 'set' in a subshell so we don't clobber the current shell's
2406
2372
# arguments.  Must try -L first in case configure is actually a
2407
2373
# symlink; some systems play weird games with the mod time of symlinks
2408
2374
# (eg FreeBSD returns the mod time of the symlink's containing
2409
2375
# directory).
2410
2376
if (
2411
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2412
 
   if test "$*" = "X"; then
2413
 
      # -L didn't work.
2414
 
      set X `ls -t "$srcdir/configure" conftest.file`
2415
 
   fi
2416
 
   rm -f conftest.file
2417
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2418
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2419
 
 
2420
 
      # If neither matched, then we have a broken ls.  This can happen
2421
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2422
 
      # broken ls alias from the environment.  This has actually
2423
 
      # happened.  Such a system could not be considered "sane".
2424
 
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2425
 
alias in your environment" "$LINENO" 5
2426
 
   fi
2427
 
 
 
2377
   am_has_slept=no
 
2378
   for am_try in 1 2; do
 
2379
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2380
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2381
     if test "$*" = "X"; then
 
2382
        # -L didn't work.
 
2383
        set X `ls -t "$srcdir/configure" conftest.file`
 
2384
     fi
 
2385
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2386
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2387
 
 
2388
        # If neither matched, then we have a broken ls.  This can happen
 
2389
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2390
        # broken ls alias from the environment.  This has actually
 
2391
        # happened.  Such a system could not be considered "sane".
 
2392
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2393
  alias in your environment" "$LINENO" 5
 
2394
     fi
 
2395
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2396
       break
 
2397
     fi
 
2398
     # Just in case.
 
2399
     sleep 1
 
2400
     am_has_slept=yes
 
2401
   done
2428
2402
   test "$2" = conftest.file
2429
2403
   )
2430
2404
then
2436
2410
fi
2437
2411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2438
2412
$as_echo "yes" >&6; }
 
2413
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2414
# generated files are strictly newer.
 
2415
am_sleep_pid=
 
2416
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2417
  ( sleep 1 ) &
 
2418
  am_sleep_pid=$!
 
2419
fi
 
2420
 
 
2421
rm -f conftest.file
 
2422
 
2439
2423
test "$program_prefix" != NONE &&
2440
2424
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2441
2425
# Use a double $ so make ignores it.
2458
2442
  esac
2459
2443
fi
2460
2444
# Use eval to expand $SHELL
2461
 
if eval "$MISSING --run true"; then
2462
 
  am_missing_run="$MISSING --run "
 
2445
if eval "$MISSING --is-lightweight"; then
 
2446
  am_missing_run="$MISSING "
2463
2447
else
2464
2448
  am_missing_run=
2465
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2466
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2449
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2450
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2467
2451
fi
2468
2452
 
2469
2453
if test x"${install_sh}" != xset; then
2475
2459
  esac
2476
2460
fi
2477
2461
 
2478
 
# Installed binaries are usually stripped using `strip' when the user
2479
 
# run `make install-strip'.  However `strip' might not be the right
 
2462
# Installed binaries are usually stripped using 'strip' when the user
 
2463
# run "make install-strip".  However 'strip' might not be the right
2480
2464
# tool to use in cross-compilation environments, therefore Automake
2481
 
# will honor the `STRIP' environment variable to overrule this program.
 
2465
# will honor the 'STRIP' environment variable to overrule this program.
2482
2466
if test "$cross_compiling" != no; then
2483
2467
  if test -n "$ac_tool_prefix"; then
2484
2468
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497
2481
  IFS=$as_save_IFS
2498
2482
  test -z "$as_dir" && as_dir=.
2499
2483
    for ac_exec_ext in '' $ac_executable_extensions; do
2500
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2484
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501
2485
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2502
2486
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503
2487
    break 2
2537
2521
  IFS=$as_save_IFS
2538
2522
  test -z "$as_dir" && as_dir=.
2539
2523
    for ac_exec_ext in '' $ac_executable_extensions; do
2540
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2524
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541
2525
    ac_cv_prog_ac_ct_STRIP="strip"
2542
2526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543
2527
    break 2
2588
2572
  test -z "$as_dir" && as_dir=.
2589
2573
    for ac_prog in mkdir gmkdir; do
2590
2574
         for ac_exec_ext in '' $ac_executable_extensions; do
2591
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2575
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2592
2576
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2593
2577
             'mkdir (GNU coreutils) '* | \
2594
2578
             'mkdir (coreutils) '* | \
2617
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2618
2602
$as_echo "$MKDIR_P" >&6; }
2619
2603
 
2620
 
mkdir_p="$MKDIR_P"
2621
 
case $mkdir_p in
2622
 
  [\\/$]* | ?:[\\/]*) ;;
2623
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2624
 
esac
2625
 
 
2626
2604
for ac_prog in gawk mawk nawk awk
2627
2605
do
2628
2606
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2641
2619
  IFS=$as_save_IFS
2642
2620
  test -z "$as_dir" && as_dir=.
2643
2621
    for ac_exec_ext in '' $ac_executable_extensions; do
2644
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2622
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645
2623
    ac_cv_prog_AWK="$ac_prog"
2646
2624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647
2625
    break 2
2705
2683
fi
2706
2684
rmdir .tst 2>/dev/null
2707
2685
 
 
2686
# Check whether --enable-silent-rules was given.
 
2687
if test "${enable_silent_rules+set}" = set; then :
 
2688
  enableval=$enable_silent_rules;
 
2689
fi
 
2690
 
 
2691
case $enable_silent_rules in # (((
 
2692
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2693
   no) AM_DEFAULT_VERBOSITY=1;;
 
2694
    *) AM_DEFAULT_VERBOSITY=1;;
 
2695
esac
 
2696
am_make=${MAKE-make}
 
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2698
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2699
if ${am_cv_make_support_nested_variables+:} false; then :
 
2700
  $as_echo_n "(cached) " >&6
 
2701
else
 
2702
  if $as_echo 'TRUE=$(BAR$(V))
 
2703
BAR0=false
 
2704
BAR1=true
 
2705
V=1
 
2706
am__doit:
 
2707
        @$(TRUE)
 
2708
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2709
  am_cv_make_support_nested_variables=yes
 
2710
else
 
2711
  am_cv_make_support_nested_variables=no
 
2712
fi
 
2713
fi
 
2714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2715
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2716
if test $am_cv_make_support_nested_variables = yes; then
 
2717
    AM_V='$(V)'
 
2718
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2719
else
 
2720
  AM_V=$AM_DEFAULT_VERBOSITY
 
2721
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2722
fi
 
2723
AM_BACKSLASH='\'
 
2724
 
2708
2725
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2709
2726
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2710
2727
  # is not polluted with repeated "-I."
2727
2744
 
2728
2745
# Define the identity of the package.
2729
2746
 PACKAGE='xcb-util'
2730
 
 VERSION='0.3.8'
 
2747
 VERSION='0.4.0'
2731
2748
 
2732
2749
 
2733
2750
cat >>confdefs.h <<_ACEOF
2755
2772
 
2756
2773
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2757
2774
 
 
2775
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2776
# dies out for good.  For more background, see:
 
2777
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2778
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2779
mkdir_p='$(MKDIR_P)'
 
2780
 
2758
2781
# We need awk for the "check" target.  The system "awk" is bad on
2759
2782
# some platforms.
2760
 
# Always define AMTAR for backward compatibility.
2761
 
 
2762
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2763
 
 
2764
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
 
 
2770
 
 
2771
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2772
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2773
 
    # Check whether --enable-maintainer-mode was given.
2774
 
if test "${enable_maintainer_mode+set}" = set; then :
2775
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2776
 
else
2777
 
  USE_MAINTAINER_MODE=no
2778
 
fi
2779
 
 
2780
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2781
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2782
 
   if test $USE_MAINTAINER_MODE = yes; then
2783
 
  MAINTAINER_MODE_TRUE=
2784
 
  MAINTAINER_MODE_FALSE='#'
2785
 
else
2786
 
  MAINTAINER_MODE_TRUE='#'
2787
 
  MAINTAINER_MODE_FALSE=
2788
 
fi
2789
 
 
2790
 
  MAINT=$MAINTAINER_MODE_TRUE
2791
 
 
2792
 
 
2793
 
 
2794
 
 
2795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -I option" >&5
2796
 
$as_echo_n "checking for m4 that supports -I option... " >&6; }
2797
 
if ${ac_cv_path_M4+:} false; then :
2798
 
  $as_echo_n "(cached) " >&6
2799
 
else
2800
 
  if test -z "$M4"; then
2801
 
  ac_path_M4_found=false
2802
 
  # Loop through the user's path and test for each of PROGNAME-LIST
2803
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804
 
as_dummy="$PATH:/usr/gnu/bin"
2805
 
for as_dir in $as_dummy
2806
 
do
2807
 
  IFS=$as_save_IFS
2808
 
  test -z "$as_dir" && as_dir=.
2809
 
    for ac_prog in m4 gm4; do
2810
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2811
 
      ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
2812
 
      { test -f "$ac_path_M4" && $as_test_x "$ac_path_M4"; } || continue
2813
 
$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \
2814
 
         ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
2815
 
      $ac_path_M4_found && break 3
2816
 
    done
2817
 
  done
2818
 
  done
2819
 
IFS=$as_save_IFS
2820
 
  if test -z "$ac_cv_path_M4"; then
2821
 
    as_fn_error $? "could not find m4 that supports -I option" "$LINENO" 5
 
2783
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2784
# in the wild :-(  We should find a proper way to deprecate it ...
 
2785
AMTAR='$${TAR-tar}'
 
2786
 
 
2787
 
 
2788
# We'll loop over all known methods to create a tar archive until one works.
 
2789
_am_tools='gnutar  pax cpio none'
 
2790
 
 
2791
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2792
 
 
2793
 
 
2794
 
 
2795
 
 
2796
 
 
2797
 
 
2798
# POSIX will say in a future version that running "rm -f" with no argument
 
2799
# is OK; and we want to be able to make that assumption in our Makefile
 
2800
# recipes.  So use an aggressive probe to check that the usage we want is
 
2801
# actually supported "in the wild" to an acceptable degree.
 
2802
# See automake bug#10828.
 
2803
# To make any issue more visible, cause the running configure to be aborted
 
2804
# by default if the 'rm' program in use doesn't match our expectations; the
 
2805
# user can still override this though.
 
2806
if rm -f && rm -fr && rm -rf; then : OK; else
 
2807
  cat >&2 <<'END'
 
2808
Oops!
 
2809
 
 
2810
Your 'rm' program seems unable to run without file operands specified
 
2811
on the command line, even when the '-f' option is present.  This is contrary
 
2812
to the behaviour of most rm programs out there, and not conforming with
 
2813
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2814
 
 
2815
Please tell bug-automake@gnu.org about your system, including the value
 
2816
of your $PATH and any error possibly output before this message.  This
 
2817
can help us improve future automake versions.
 
2818
 
 
2819
END
 
2820
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2821
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2822
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2823
    echo >&2
 
2824
  else
 
2825
    cat >&2 <<'END'
 
2826
Aborting the configuration process, to ensure you take notice of the issue.
 
2827
 
 
2828
You can download and install GNU coreutils to get an 'rm' implementation
 
2829
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2830
 
 
2831
If you want to complete the configuration process using your problematic
 
2832
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2833
to "yes", and re-run configure.
 
2834
 
 
2835
END
 
2836
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2822
2837
  fi
2823
 
else
2824
 
  ac_cv_path_M4=$M4
2825
 
fi
2826
 
 
2827
 
fi
2828
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
2829
 
$as_echo "$ac_cv_path_M4" >&6; }
2830
 
 
2831
 
M4=$ac_cv_path_M4
 
2838
fi
2832
2839
 
2833
2840
 
2834
2841
case `pwd` in
2839
2846
 
2840
2847
 
2841
2848
 
2842
 
macro_version='2.4'
2843
 
macro_revision='1.3293'
 
2849
macro_version='2.4.2'
 
2850
macro_revision='1.3337'
2844
2851
 
2845
2852
 
2846
2853
 
3015
3022
_am_result=none
3016
3023
# First try GNU make style include.
3017
3024
echo "include confinc" > confmf
3018
 
# Ignore all kinds of additional output from `make'.
 
3025
# Ignore all kinds of additional output from 'make'.
3019
3026
case `$am_make -s -f confmf 2> /dev/null` in #(
3020
3027
*the\ am__doit\ target*)
3021
3028
  am__include=include
3048
3055
if test "x$enable_dependency_tracking" != xno; then
3049
3056
  am_depcomp="$ac_aux_dir/depcomp"
3050
3057
  AMDEPBACKSLASH='\'
 
3058
  am__nodep='_no'
3051
3059
fi
3052
3060
 if test "x$enable_dependency_tracking" != xno; then
3053
3061
  AMDEP_TRUE=
3080
3088
  IFS=$as_save_IFS
3081
3089
  test -z "$as_dir" && as_dir=.
3082
3090
    for ac_exec_ext in '' $ac_executable_extensions; do
3083
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3091
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084
3092
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3085
3093
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086
3094
    break 2
3120
3128
  IFS=$as_save_IFS
3121
3129
  test -z "$as_dir" && as_dir=.
3122
3130
    for ac_exec_ext in '' $ac_executable_extensions; do
3123
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3131
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124
3132
    ac_cv_prog_ac_ct_CC="gcc"
3125
3133
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126
3134
    break 2
3173
3181
  IFS=$as_save_IFS
3174
3182
  test -z "$as_dir" && as_dir=.
3175
3183
    for ac_exec_ext in '' $ac_executable_extensions; do
3176
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3184
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177
3185
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3178
3186
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179
3187
    break 2
3214
3222
  IFS=$as_save_IFS
3215
3223
  test -z "$as_dir" && as_dir=.
3216
3224
    for ac_exec_ext in '' $ac_executable_extensions; do
3217
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3225
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218
3226
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3219
3227
       ac_prog_rejected=yes
3220
3228
       continue
3272
3280
  IFS=$as_save_IFS
3273
3281
  test -z "$as_dir" && as_dir=.
3274
3282
    for ac_exec_ext in '' $ac_executable_extensions; do
3275
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3283
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276
3284
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3277
3285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278
3286
    break 2
3316
3324
  IFS=$as_save_IFS
3317
3325
  test -z "$as_dir" && as_dir=.
3318
3326
    for ac_exec_ext in '' $ac_executable_extensions; do
3319
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3327
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320
3328
    ac_cv_prog_ac_ct_CC="$ac_prog"
3321
3329
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322
3330
    break 2
3762
3770
/* end confdefs.h.  */
3763
3771
#include <stdarg.h>
3764
3772
#include <stdio.h>
3765
 
#include <sys/types.h>
3766
 
#include <sys/stat.h>
 
3773
struct stat;
3767
3774
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3768
3775
struct buf { int x; };
3769
3776
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848
3855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849
3856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850
3857
 
 
3858
ac_ext=c
 
3859
ac_cpp='$CPP $CPPFLAGS'
 
3860
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3861
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3862
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3864
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3865
if ${am_cv_prog_cc_c_o+:} false; then :
 
3866
  $as_echo_n "(cached) " >&6
 
3867
else
 
3868
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3869
/* end confdefs.h.  */
 
3870
 
 
3871
int
 
3872
main ()
 
3873
{
 
3874
 
 
3875
  ;
 
3876
  return 0;
 
3877
}
 
3878
_ACEOF
 
3879
  # Make sure it works both with $CC and with simple cc.
 
3880
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3881
  # compilers refuse to overwrite an existing .o file with -o,
 
3882
  # though they will create one.
 
3883
  am_cv_prog_cc_c_o=yes
 
3884
  for am_i in 1 2; do
 
3885
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3886
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3887
   ac_status=$?
 
3888
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3889
   (exit $ac_status); } \
 
3890
         && test -f conftest2.$ac_objext; then
 
3891
      : OK
 
3892
    else
 
3893
      am_cv_prog_cc_c_o=no
 
3894
      break
 
3895
    fi
 
3896
  done
 
3897
  rm -f core conftest*
 
3898
  unset am_i
 
3899
fi
 
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3901
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3902
if test "$am_cv_prog_cc_c_o" != yes; then
 
3903
   # Losing compiler, so override with the script.
 
3904
   # FIXME: It is wrong to rewrite CC.
 
3905
   # But if we don't then we get into trouble of one sort or another.
 
3906
   # A longer-term fix would be to have automake use am__CC in this case,
 
3907
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3908
   CC="$am_aux_dir/compile $CC"
 
3909
fi
 
3910
ac_ext=c
 
3911
ac_cpp='$CPP $CPPFLAGS'
 
3912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3915
 
 
3916
 
3851
3917
depcc="$CC"   am_compiler_list=
3852
3918
 
3853
3919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3859
3925
  # We make a subdir and do the tests there.  Otherwise we can end up
3860
3926
  # making bogus files that we don't know about and never remove.  For
3861
3927
  # instance it was reported that on HP-UX the gcc test will end up
3862
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3863
 
  # in D'.
 
3928
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3929
  # in D".
 
3930
  rm -rf conftest.dir
3864
3931
  mkdir conftest.dir
3865
3932
  # Copy depcomp to subdir because otherwise we won't find it if we're
3866
3933
  # using a relative directory.
3894
3961
    : > sub/conftest.c
3895
3962
    for i in 1 2 3 4 5 6; do
3896
3963
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3897
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3898
 
      # Solaris 8's {/usr,}/bin/sh.
3899
 
      touch sub/conftst$i.h
 
3964
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3965
      # Solaris 10 /bin/sh.
 
3966
      echo '/* dummy */' > sub/conftst$i.h
3900
3967
    done
3901
3968
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3902
3969
 
3903
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3970
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3904
3971
    # mode.  It turns out that the SunPro C++ compiler does not properly
3905
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3906
 
    # versions had trouble with output in subdirs
 
3972
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3973
    # versions had trouble with output in subdirs.
3907
3974
    am__obj=sub/conftest.${OBJEXT-o}
3908
3975
    am__minus_obj="-o $am__obj"
3909
3976
    case $depmode in
3912
3979
      test "$am__universal" = false || continue
3913
3980
      ;;
3914
3981
    nosideeffect)
3915
 
      # after this tag, mechanisms are not by side-effect, so they'll
3916
 
      # only be used when explicitly requested
 
3982
      # After this tag, mechanisms are not by side-effect, so they'll
 
3983
      # only be used when explicitly requested.
3917
3984
      if test "x$enable_dependency_tracking" = xyes; then
3918
3985
        continue
3919
3986
      else
3920
3987
        break
3921
3988
      fi
3922
3989
      ;;
3923
 
    msvisualcpp | msvcmsys)
3924
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3990
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3991
      # This compiler won't grok '-c -o', but also, the minuso test has
3925
3992
      # not run yet.  These depmodes are late enough in the game, and
3926
3993
      # so weak that their functioning should not be impacted.
3927
3994
      am__obj=conftest.${OBJEXT-o}
3997
4064
    for ac_prog in sed gsed; do
3998
4065
    for ac_exec_ext in '' $ac_executable_extensions; do
3999
4066
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4000
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4067
      as_fn_executable_p "$ac_path_SED" || continue
4001
4068
# Check for GNU ac_path_SED and select it if it is found.
4002
4069
  # Check for GNU $ac_path_SED
4003
4070
case `"$ac_path_SED" --version 2>&1` in
4073
4140
    for ac_prog in grep ggrep; do
4074
4141
    for ac_exec_ext in '' $ac_executable_extensions; do
4075
4142
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4143
      as_fn_executable_p "$ac_path_GREP" || continue
4077
4144
# Check for GNU ac_path_GREP and select it if it is found.
4078
4145
  # Check for GNU $ac_path_GREP
4079
4146
case `"$ac_path_GREP" --version 2>&1` in
4139
4206
    for ac_prog in egrep; do
4140
4207
    for ac_exec_ext in '' $ac_executable_extensions; do
4141
4208
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4209
      as_fn_executable_p "$ac_path_EGREP" || continue
4143
4210
# Check for GNU ac_path_EGREP and select it if it is found.
4144
4211
  # Check for GNU $ac_path_EGREP
4145
4212
case `"$ac_path_EGREP" --version 2>&1` in
4206
4273
    for ac_prog in fgrep; do
4207
4274
    for ac_exec_ext in '' $ac_executable_extensions; do
4208
4275
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4209
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4276
      as_fn_executable_p "$ac_path_FGREP" || continue
4210
4277
# Check for GNU ac_path_FGREP and select it if it is found.
4211
4278
  # Check for GNU $ac_path_FGREP
4212
4279
case `"$ac_path_FGREP" --version 2>&1` in
4462
4529
  IFS=$as_save_IFS
4463
4530
  test -z "$as_dir" && as_dir=.
4464
4531
    for ac_exec_ext in '' $ac_executable_extensions; do
4465
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4532
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466
4533
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4467
4534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468
4535
    break 2
4506
4573
  IFS=$as_save_IFS
4507
4574
  test -z "$as_dir" && as_dir=.
4508
4575
    for ac_exec_ext in '' $ac_executable_extensions; do
4509
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4576
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510
4577
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4511
4578
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512
4579
    break 2
4664
4731
    lt_cv_sys_max_cmd_len=196608
4665
4732
    ;;
4666
4733
 
 
4734
  os2*)
 
4735
    # The test takes a long time on OS/2.
 
4736
    lt_cv_sys_max_cmd_len=8192
 
4737
    ;;
 
4738
 
4667
4739
  osf*)
4668
4740
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4669
4741
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4690
4762
    ;;
4691
4763
  *)
4692
4764
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4693
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4765
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
4766
        test undefined != "$lt_cv_sys_max_cmd_len"; then
4694
4767
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4695
4768
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4696
4769
    else
4703
4776
      # If test is not a shell built-in, we'll probably end up computing a
4704
4777
      # maximum length that is only half of the actual maximum length, but
4705
4778
      # we can't tell.
4706
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
4779
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4707
4780
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4708
4781
              test $i != 17 # 1/2 MB should be enough
4709
4782
      do
4925
4998
  IFS=$as_save_IFS
4926
4999
  test -z "$as_dir" && as_dir=.
4927
5000
    for ac_exec_ext in '' $ac_executable_extensions; do
4928
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5001
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929
5002
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4930
5003
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931
5004
    break 2
4965
5038
  IFS=$as_save_IFS
4966
5039
  test -z "$as_dir" && as_dir=.
4967
5040
    for ac_exec_ext in '' $ac_executable_extensions; do
4968
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5041
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969
5042
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4970
5043
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971
5044
    break 2
5091
5164
  fi
5092
5165
  ;;
5093
5166
 
5094
 
gnu*)
5095
 
  lt_cv_deplibs_check_method=pass_all
5096
 
  ;;
5097
 
 
5098
5167
haiku*)
5099
5168
  lt_cv_deplibs_check_method=pass_all
5100
5169
  ;;
5132
5201
  lt_cv_deplibs_check_method=pass_all
5133
5202
  ;;
5134
5203
 
5135
 
# This must be Linux ELF.
5136
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5204
# This must be glibc/ELF.
 
5205
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5137
5206
  lt_cv_deplibs_check_method=pass_all
5138
5207
  ;;
5139
5208
 
5271
5340
  IFS=$as_save_IFS
5272
5341
  test -z "$as_dir" && as_dir=.
5273
5342
    for ac_exec_ext in '' $ac_executable_extensions; do
5274
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5343
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275
5344
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5276
5345
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277
5346
    break 2
5311
5380
  IFS=$as_save_IFS
5312
5381
  test -z "$as_dir" && as_dir=.
5313
5382
    for ac_exec_ext in '' $ac_executable_extensions; do
5314
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5383
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315
5384
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5316
5385
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317
5386
    break 2
5415
5484
  IFS=$as_save_IFS
5416
5485
  test -z "$as_dir" && as_dir=.
5417
5486
    for ac_exec_ext in '' $ac_executable_extensions; do
5418
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5487
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419
5488
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420
5489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421
5490
    break 2
5459
5528
  IFS=$as_save_IFS
5460
5529
  test -z "$as_dir" && as_dir=.
5461
5530
    for ac_exec_ext in '' $ac_executable_extensions; do
5462
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5531
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463
5532
    ac_cv_prog_ac_ct_AR="$ac_prog"
5464
5533
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465
5534
    break 2
5584
5653
  IFS=$as_save_IFS
5585
5654
  test -z "$as_dir" && as_dir=.
5586
5655
    for ac_exec_ext in '' $ac_executable_extensions; do
5587
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5656
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588
5657
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589
5658
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590
5659
    break 2
5624
5693
  IFS=$as_save_IFS
5625
5694
  test -z "$as_dir" && as_dir=.
5626
5695
    for ac_exec_ext in '' $ac_executable_extensions; do
5627
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5696
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628
5697
    ac_cv_prog_ac_ct_STRIP="strip"
5629
5698
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630
5699
    break 2
5683
5752
  IFS=$as_save_IFS
5684
5753
  test -z "$as_dir" && as_dir=.
5685
5754
    for ac_exec_ext in '' $ac_executable_extensions; do
5686
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5755
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687
5756
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688
5757
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689
5758
    break 2
5723
5792
  IFS=$as_save_IFS
5724
5793
  test -z "$as_dir" && as_dir=.
5725
5794
    for ac_exec_ext in '' $ac_executable_extensions; do
5726
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5795
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727
5796
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5728
5797
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729
5798
    break 2
5773
5842
if test -n "$RANLIB"; then
5774
5843
  case $host_os in
5775
5844
  openbsd*)
5776
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5845
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5777
5846
    ;;
5778
5847
  *)
5779
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5848
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5780
5849
    ;;
5781
5850
  esac
5782
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5851
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5783
5852
fi
5784
5853
 
5785
5854
case $host_os in
5926
5995
    # which start with @ or ?.
5927
5996
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5928
5997
"     {last_section=section; section=\$ 3};"\
 
5998
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5929
5999
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5930
6000
"     \$ 0!~/External *\|/{next};"\
5931
6001
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6214
6284
  rm -rf conftest*
6215
6285
  ;;
6216
6286
 
6217
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6287
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6218
6288
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6219
6289
  # Find out which ABI we are using.
6220
6290
  echo 'int i;' > conftest.$ac_ext
6230
6300
            LD="${LD-ld} -m elf_i386_fbsd"
6231
6301
            ;;
6232
6302
          x86_64-*linux*)
6233
 
            LD="${LD-ld} -m elf_i386"
6234
 
            ;;
6235
 
          ppc64-*linux*|powerpc64-*linux*)
 
6303
            case `/usr/bin/file conftest.o` in
 
6304
              *x86-64*)
 
6305
                LD="${LD-ld} -m elf32_x86_64"
 
6306
                ;;
 
6307
              *)
 
6308
                LD="${LD-ld} -m elf_i386"
 
6309
                ;;
 
6310
            esac
 
6311
            ;;
 
6312
          powerpc64le-*)
 
6313
            LD="${LD-ld} -m elf32lppclinux"
 
6314
            ;;
 
6315
          powerpc64-*)
6236
6316
            LD="${LD-ld} -m elf32ppclinux"
6237
6317
            ;;
6238
6318
          s390x-*linux*)
6251
6331
          x86_64-*linux*)
6252
6332
            LD="${LD-ld} -m elf_x86_64"
6253
6333
            ;;
6254
 
          ppc*-*linux*|powerpc*-*linux*)
 
6334
          powerpcle-*)
 
6335
            LD="${LD-ld} -m elf64lppc"
 
6336
            ;;
 
6337
          powerpc-*)
6255
6338
            LD="${LD-ld} -m elf64ppc"
6256
6339
            ;;
6257
6340
          s390*-*linux*|s390*-*tpf*)
6314
6397
    CFLAGS="$SAVE_CFLAGS"
6315
6398
  fi
6316
6399
  ;;
6317
 
sparc*-*solaris*)
 
6400
*-*solaris*)
6318
6401
  # Find out which ABI we are using.
6319
6402
  echo 'int i;' > conftest.$ac_ext
6320
6403
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325
6408
    case `/usr/bin/file conftest.o` in
6326
6409
    *64-bit*)
6327
6410
      case $lt_cv_prog_gnu_ld in
6328
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6411
      yes*)
 
6412
        case $host in
 
6413
        i?86-*-solaris*)
 
6414
          LD="${LD-ld} -m elf_x86_64"
 
6415
          ;;
 
6416
        sparc*-*-solaris*)
 
6417
          LD="${LD-ld} -m elf64_sparc"
 
6418
          ;;
 
6419
        esac
 
6420
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6421
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6422
          LD="${LD-ld}_sol2"
 
6423
        fi
 
6424
        ;;
6329
6425
      *)
6330
6426
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6331
6427
          LD="${LD-ld} -64"
6358
6454
  IFS=$as_save_IFS
6359
6455
  test -z "$as_dir" && as_dir=.
6360
6456
    for ac_exec_ext in '' $ac_executable_extensions; do
6361
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6457
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362
6458
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6363
6459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364
6460
    break 2
6398
6494
  IFS=$as_save_IFS
6399
6495
  test -z "$as_dir" && as_dir=.
6400
6496
    for ac_exec_ext in '' $ac_executable_extensions; do
6401
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6497
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402
6498
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6403
6499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404
6500
    break 2
6478
6574
  IFS=$as_save_IFS
6479
6575
  test -z "$as_dir" && as_dir=.
6480
6576
    for ac_exec_ext in '' $ac_executable_extensions; do
6481
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6577
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482
6578
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6483
6579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484
6580
    break 2
6518
6614
  IFS=$as_save_IFS
6519
6615
  test -z "$as_dir" && as_dir=.
6520
6616
    for ac_exec_ext in '' $ac_executable_extensions; do
6521
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6617
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522
6618
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6523
6619
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524
6620
    break 2
6570
6666
  IFS=$as_save_IFS
6571
6667
  test -z "$as_dir" && as_dir=.
6572
6668
    for ac_exec_ext in '' $ac_executable_extensions; do
6573
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6669
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574
6670
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6575
6671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576
6672
    break 2
6610
6706
  IFS=$as_save_IFS
6611
6707
  test -z "$as_dir" && as_dir=.
6612
6708
    for ac_exec_ext in '' $ac_executable_extensions; do
6613
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6709
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614
6710
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6615
6711
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616
6712
    break 2
6662
6758
  IFS=$as_save_IFS
6663
6759
  test -z "$as_dir" && as_dir=.
6664
6760
    for ac_exec_ext in '' $ac_executable_extensions; do
6665
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6761
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666
6762
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6667
6763
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668
6764
    break 2
6702
6798
  IFS=$as_save_IFS
6703
6799
  test -z "$as_dir" && as_dir=.
6704
6800
    for ac_exec_ext in '' $ac_executable_extensions; do
6705
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6801
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706
6802
    ac_cv_prog_ac_ct_LIPO="lipo"
6707
6803
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708
6804
    break 2
6754
6850
  IFS=$as_save_IFS
6755
6851
  test -z "$as_dir" && as_dir=.
6756
6852
    for ac_exec_ext in '' $ac_executable_extensions; do
6757
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6853
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758
6854
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6759
6855
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760
6856
    break 2
6794
6890
  IFS=$as_save_IFS
6795
6891
  test -z "$as_dir" && as_dir=.
6796
6892
    for ac_exec_ext in '' $ac_executable_extensions; do
6797
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6893
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798
6894
    ac_cv_prog_ac_ct_OTOOL="otool"
6799
6895
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800
6896
    break 2
6846
6942
  IFS=$as_save_IFS
6847
6943
  test -z "$as_dir" && as_dir=.
6848
6944
    for ac_exec_ext in '' $ac_executable_extensions; do
6849
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6945
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850
6946
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6851
6947
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852
6948
    break 2
6886
6982
  IFS=$as_save_IFS
6887
6983
  test -z "$as_dir" && as_dir=.
6888
6984
    for ac_exec_ext in '' $ac_executable_extensions; do
6889
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6985
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890
6986
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6891
6987
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892
6988
    break 2
6965
7061
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6966
7062
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6967
7063
        _lt_result=$?
6968
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7064
        # If there is a non-empty error log, and "single_module"
 
7065
        # appears in it, assume the flag caused a linker warning
 
7066
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7067
          cat conftest.err >&5
 
7068
        # Otherwise, if the output was created with a 0 exit code from
 
7069
        # the compiler, it worked.
 
7070
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6969
7071
          lt_cv_apple_cc_single_mod=yes
6970
7072
        else
6971
7073
          cat conftest.err >&5
6976
7078
fi
6977
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6978
7080
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7081
 
6979
7082
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6980
7083
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6981
7084
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7008
7111
fi
7009
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7010
7113
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7114
 
7011
7115
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7012
7116
$as_echo_n "checking for -force_load linker flag... " >&6; }
7013
7117
if ${lt_cv_ld_force_load+:} false; then :
7029
7133
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7030
7134
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7031
7135
      _lt_result=$?
7032
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
7136
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7137
        cat conftest.err >&5
 
7138
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7033
7139
        lt_cv_ld_force_load=yes
7034
7140
      else
7035
7141
        cat conftest.err >&5
7434
7540
 
7435
7541
# Check whether --with-pic was given.
7436
7542
if test "${with_pic+set}" = set; then :
7437
 
  withval=$with_pic; pic_mode="$withval"
 
7543
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7544
    case $withval in
 
7545
    yes|no) pic_mode=$withval ;;
 
7546
    *)
 
7547
      pic_mode=default
 
7548
      # Look at the argument we got.  We use all the common list separators.
 
7549
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7550
      for lt_pkg in $withval; do
 
7551
        IFS="$lt_save_ifs"
 
7552
        if test "X$lt_pkg" = "X$lt_p"; then
 
7553
          pic_mode=yes
 
7554
        fi
 
7555
      done
 
7556
      IFS="$lt_save_ifs"
 
7557
      ;;
 
7558
    esac
7438
7559
else
7439
7560
  pic_mode=default
7440
7561
fi
7512
7633
 
7513
7634
 
7514
7635
 
 
7636
 
 
7637
 
 
7638
 
 
7639
 
7515
7640
test -z "$LN_S" && LN_S="ln -s"
7516
7641
 
7517
7642
 
7971
8096
    case $cc_basename in
7972
8097
    nvcc*) # Cuda Compiler Driver 2.2
7973
8098
      lt_prog_compiler_wl='-Xlinker '
7974
 
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8099
      if test -n "$lt_prog_compiler_pic"; then
 
8100
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8101
      fi
7975
8102
      ;;
7976
8103
    esac
7977
8104
  else
8015
8142
      lt_prog_compiler_static='-non_shared'
8016
8143
      ;;
8017
8144
 
8018
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8145
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8019
8146
      case $cc_basename in
8020
8147
      # old Intel for x86_64 which still supported -KPIC.
8021
8148
      ecc*)
8062
8189
        ;;
8063
8190
      *)
8064
8191
        case `$CC -V 2>&1 | sed 5q` in
8065
 
        *Sun\ F* | *Sun*Fortran*)
 
8192
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8066
8193
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8067
8194
          lt_prog_compiler_pic='-KPIC'
8068
8195
          lt_prog_compiler_static='-Bstatic'
8069
8196
          lt_prog_compiler_wl=''
8070
8197
          ;;
 
8198
        *Sun\ F* | *Sun*Fortran*)
 
8199
          lt_prog_compiler_pic='-KPIC'
 
8200
          lt_prog_compiler_static='-Bstatic'
 
8201
          lt_prog_compiler_wl='-Qoption ld '
 
8202
          ;;
8071
8203
        *Sun\ C*)
8072
8204
          # Sun C 5.9
8073
8205
          lt_prog_compiler_pic='-KPIC'
8074
8206
          lt_prog_compiler_static='-Bstatic'
8075
8207
          lt_prog_compiler_wl='-Wl,'
8076
8208
          ;;
 
8209
        *Intel*\ [CF]*Compiler*)
 
8210
          lt_prog_compiler_wl='-Wl,'
 
8211
          lt_prog_compiler_pic='-fPIC'
 
8212
          lt_prog_compiler_static='-static'
 
8213
          ;;
 
8214
        *Portland\ Group*)
 
8215
          lt_prog_compiler_wl='-Wl,'
 
8216
          lt_prog_compiler_pic='-fpic'
 
8217
          lt_prog_compiler_static='-Bstatic'
 
8218
          ;;
8077
8219
        esac
8078
8220
        ;;
8079
8221
      esac
8435
8577
  hardcode_direct=no
8436
8578
  hardcode_direct_absolute=no
8437
8579
  hardcode_libdir_flag_spec=
8438
 
  hardcode_libdir_flag_spec_ld=
8439
8580
  hardcode_libdir_separator=
8440
8581
  hardcode_minus_L=no
8441
8582
  hardcode_shlibpath_var=unsupported
8688
8829
        xlf* | bgf* | bgxlf* | mpixlf*)
8689
8830
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8690
8831
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8691
 
          hardcode_libdir_flag_spec=
8692
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8832
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693
8833
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8694
8834
          if test "x$supports_anon_versioning" = xyes; then
8695
8835
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9069
9209
        # The linker will not automatically build a static lib if we build a DLL.
9070
9210
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9071
9211
        enable_shared_with_static_runtimes=yes
 
9212
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9072
9213
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9073
9214
        # Don't use ranlib
9074
9215
        old_postinstall_cmds='chmod 644 $oldlib'
9114
9255
  hardcode_shlibpath_var=unsupported
9115
9256
  if test "$lt_cv_ld_force_load" = "yes"; then
9116
9257
    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\"`'
 
9258
 
9117
9259
  else
9118
9260
    whole_archive_flag_spec=''
9119
9261
  fi
9142
9284
      hardcode_shlibpath_var=no
9143
9285
      ;;
9144
9286
 
9145
 
    freebsd1*)
9146
 
      ld_shlibs=no
9147
 
      ;;
9148
 
 
9149
9287
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9150
9288
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9151
9289
    # does not break anything, and helps significantly (at the cost of a little
9158
9296
      ;;
9159
9297
 
9160
9298
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9161
 
    freebsd2*)
 
9299
    freebsd2.*)
9162
9300
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163
9301
      hardcode_direct=yes
9164
9302
      hardcode_minus_L=yes
9197
9335
      fi
9198
9336
      if test "$with_gnu_ld" = no; then
9199
9337
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9200
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9201
9338
        hardcode_libdir_separator=:
9202
9339
        hardcode_direct=yes
9203
9340
        hardcode_direct_absolute=yes
9821
9958
 
9822
9959
 
9823
9960
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
9961
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9830
9962
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9831
9963
 
9915
10047
 
9916
10048
case $host_os in
9917
10049
aix3*)
9918
 
  version_type=linux
 
10050
  version_type=linux # correct to gnu/linux during the next big refactor
9919
10051
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9920
10052
  shlibpath_var=LIBPATH
9921
10053
 
9924
10056
  ;;
9925
10057
 
9926
10058
aix[4-9]*)
9927
 
  version_type=linux
 
10059
  version_type=linux # correct to gnu/linux during the next big refactor
9928
10060
  need_lib_prefix=no
9929
10061
  need_version=no
9930
10062
  hardcode_into_libs=yes
9989
10121
  ;;
9990
10122
 
9991
10123
bsdi[45]*)
9992
 
  version_type=linux
 
10124
  version_type=linux # correct to gnu/linux during the next big refactor
9993
10125
  need_version=no
9994
10126
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995
10127
  soname_spec='${libname}${release}${shared_ext}$major'
10128
10260
  ;;
10129
10261
 
10130
10262
dgux*)
10131
 
  version_type=linux
 
10263
  version_type=linux # correct to gnu/linux during the next big refactor
10132
10264
  need_lib_prefix=no
10133
10265
  need_version=no
10134
10266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10136
10268
  shlibpath_var=LD_LIBRARY_PATH
10137
10269
  ;;
10138
10270
 
10139
 
freebsd1*)
10140
 
  dynamic_linker=no
10141
 
  ;;
10142
 
 
10143
10271
freebsd* | dragonfly*)
10144
10272
  # DragonFly does not have aout.  When/if they implement a new
10145
10273
  # versioning mechanism, adjust this.
10147
10275
    objformat=`/usr/bin/objformat`
10148
10276
  else
10149
10277
    case $host_os in
10150
 
    freebsd[123]*) objformat=aout ;;
 
10278
    freebsd[23].*) objformat=aout ;;
10151
10279
    *) objformat=elf ;;
10152
10280
    esac
10153
10281
  fi
10165
10293
  esac
10166
10294
  shlibpath_var=LD_LIBRARY_PATH
10167
10295
  case $host_os in
10168
 
  freebsd2*)
 
10296
  freebsd2.*)
10169
10297
    shlibpath_overrides_runpath=yes
10170
10298
    ;;
10171
10299
  freebsd3.[01]* | freebsdelf3.[01]*)
10184
10312
  esac
10185
10313
  ;;
10186
10314
 
10187
 
gnu*)
10188
 
  version_type=linux
10189
 
  need_lib_prefix=no
10190
 
  need_version=no
10191
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10192
 
  soname_spec='${libname}${release}${shared_ext}$major'
10193
 
  shlibpath_var=LD_LIBRARY_PATH
10194
 
  shlibpath_overrides_runpath=no
10195
 
  hardcode_into_libs=yes
10196
 
  ;;
10197
 
 
10198
10315
haiku*)
10199
 
  version_type=linux
 
10316
  version_type=linux # correct to gnu/linux during the next big refactor
10200
10317
  need_lib_prefix=no
10201
10318
  need_version=no
10202
10319
  dynamic_linker="$host_os runtime_loader"
10257
10374
  ;;
10258
10375
 
10259
10376
interix[3-9]*)
10260
 
  version_type=linux
 
10377
  version_type=linux # correct to gnu/linux during the next big refactor
10261
10378
  need_lib_prefix=no
10262
10379
  need_version=no
10263
10380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10273
10390
    nonstopux*) version_type=nonstopux ;;
10274
10391
    *)
10275
10392
        if test "$lt_cv_prog_gnu_ld" = yes; then
10276
 
                version_type=linux
 
10393
                version_type=linux # correct to gnu/linux during the next big refactor
10277
10394
        else
10278
10395
                version_type=irix
10279
10396
        fi ;;
10310
10427
  dynamic_linker=no
10311
10428
  ;;
10312
10429
 
10313
 
# This must be Linux ELF.
10314
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10315
 
  version_type=linux
 
10430
# This must be glibc/ELF.
 
10431
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
10432
  version_type=linux # correct to gnu/linux during the next big refactor
10316
10433
  need_lib_prefix=no
10317
10434
  need_version=no
10318
10435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406
10523
  ;;
10407
10524
 
10408
10525
newsos6)
10409
 
  version_type=linux
 
10526
  version_type=linux # correct to gnu/linux during the next big refactor
10410
10527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411
10528
  shlibpath_var=LD_LIBRARY_PATH
10412
10529
  shlibpath_overrides_runpath=yes
10475
10592
  ;;
10476
10593
 
10477
10594
solaris*)
10478
 
  version_type=linux
 
10595
  version_type=linux # correct to gnu/linux during the next big refactor
10479
10596
  need_lib_prefix=no
10480
10597
  need_version=no
10481
10598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500
10617
  ;;
10501
10618
 
10502
10619
sysv4 | sysv4.3*)
10503
 
  version_type=linux
 
10620
  version_type=linux # correct to gnu/linux during the next big refactor
10504
10621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505
10622
  soname_spec='${libname}${release}${shared_ext}$major'
10506
10623
  shlibpath_var=LD_LIBRARY_PATH
10524
10641
 
10525
10642
sysv4*MP*)
10526
10643
  if test -d /usr/nec ;then
10527
 
    version_type=linux
 
10644
    version_type=linux # correct to gnu/linux during the next big refactor
10528
10645
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10529
10646
    soname_spec='$libname${shared_ext}.$major'
10530
10647
    shlibpath_var=LD_LIBRARY_PATH
10555
10672
 
10556
10673
tpf*)
10557
10674
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10558
 
  version_type=linux
 
10675
  version_type=linux # correct to gnu/linux during the next big refactor
10559
10676
  need_lib_prefix=no
10560
10677
  need_version=no
10561
10678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565
10682
  ;;
10566
10683
 
10567
10684
uts4*)
10568
 
  version_type=linux
 
10685
  version_type=linux # correct to gnu/linux during the next big refactor
10569
10686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570
10687
  soname_spec='${libname}${release}${shared_ext}$major'
10571
10688
  shlibpath_var=LD_LIBRARY_PATH
11347
11464
 
11348
11465
 
11349
11466
 
 
11467
 
 
11468
 
11350
11469
        ac_config_commands="$ac_config_commands libtool"
11351
11470
 
11352
11471
 
11361
11480
 
11362
11481
 
11363
11482
 
 
11483
 
11364
11484
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11365
11485
        if test -n "$ac_tool_prefix"; then
11366
11486
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11381
11501
  IFS=$as_save_IFS
11382
11502
  test -z "$as_dir" && as_dir=.
11383
11503
    for ac_exec_ext in '' $ac_executable_extensions; do
11384
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11504
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385
11505
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11386
11506
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387
11507
    break 2
11424
11544
  IFS=$as_save_IFS
11425
11545
  test -z "$as_dir" && as_dir=.
11426
11546
    for ac_exec_ext in '' $ac_executable_extensions; do
11427
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11547
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428
11548
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11429
11549
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430
11550
    break 2
11620
11740
  return 0;
11621
11741
}
11622
11742
_ACEOF
11623
 
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
11743
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11624
11744
do
11625
11745
  CC="$ac_save_CC $ac_arg"
11626
11746
  if ac_fn_c_try_compile "$LINENO"; then :
11655
11775
 
11656
11776
 
11657
11777
 
 
11778
ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
 
11779
if test "x$ac_cv_have_decl___clang__" = xyes; then :
 
11780
  CLANGCC="yes"
 
11781
else
 
11782
  CLANGCC="no"
 
11783
fi
 
11784
 
 
11785
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
 
11786
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
 
11787
  INTELCC="yes"
 
11788
else
 
11789
  INTELCC="no"
 
11790
fi
 
11791
 
 
11792
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
 
11793
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
 
11794
  SUNCC="yes"
 
11795
else
 
11796
  SUNCC="no"
 
11797
fi
 
11798
 
 
11799
 
 
11800
 
 
11801
 
 
11802
 
 
11803
 
11658
11804
 
11659
11805
# Define header files and pkgconfig paths
11660
11806
xcbincludedir='${includedir}/xcb'
11678
11824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11679
11825
  test $ac_status = 0; }; then
11680
11826
  pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
 
11827
                      test "x$?" != "x0" && pkg_failed=yes
11681
11828
else
11682
11829
  pkg_failed=yes
11683
11830
fi
11694
11841
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695
11842
  test $ac_status = 0; }; then
11696
11843
  pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
 
11844
                      test "x$?" != "x0" && pkg_failed=yes
11697
11845
else
11698
11846
  pkg_failed=yes
11699
11847
fi
11713
11861
        _pkg_short_errors_supported=no
11714
11862
fi
11715
11863
        if test $_pkg_short_errors_supported = yes; then
11716
 
                XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.4" 2>&1`
 
11864
                XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
11717
11865
        else
11718
 
                XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.4" 2>&1`
 
11866
                XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
11719
11867
        fi
11720
11868
        # Put the nasty error message in config.log where it belongs
11721
11869
        echo "$XCB_PKG_ERRORS" >&5
11778
11926
  IFS=$as_save_IFS
11779
11927
  test -z "$as_dir" && as_dir=.
11780
11928
    for ac_exec_ext in '' $ac_executable_extensions; do
11781
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11929
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782
11930
    ac_cv_prog_AWK="$ac_prog"
11783
11931
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784
11932
    break 2
11860
12008
 
11861
12009
 
11862
12010
 
11863
 
if  test "x$GCC" = xyes ; then
11864
 
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11865
 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11866
 
-Wbad-function-cast -Wformat=2"
11867
 
    case `$CC -dumpversion` in
11868
 
    3.4.* | 4.*)
11869
 
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11870
 
        ;;
11871
 
    esac
11872
 
else
11873
 
    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11874
 
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11875
 
  SUNCC="yes"
11876
 
else
11877
 
  SUNCC="no"
11878
 
fi
11879
 
 
11880
 
    if test "x$SUNCC" = "xyes"; then
11881
 
        CWARNFLAGS="-v"
11882
 
    fi
11883
 
fi
11884
 
 
11885
 
 
11886
 
 
11887
 
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
 
12011
 
 
12012
# Check whether --enable-selective-werror was given.
 
12013
if test "${enable_selective_werror+set}" = set; then :
 
12014
  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
 
12015
else
 
12016
  SELECTIVE_WERROR=yes
 
12017
fi
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
# -v is too short to test reliably with XORG_TESTSET_CFLAG
 
12024
if test "x$SUNCC" = "xyes"; then
 
12025
    BASE_CFLAGS="-v"
 
12026
else
 
12027
    BASE_CFLAGS=""
 
12028
fi
 
12029
 
 
12030
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
 
 
12044
xorg_testset_save_CFLAGS="$CFLAGS"
 
12045
 
 
12046
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12047
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12048
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12049
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12050
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12051
  $as_echo_n "(cached) " >&6
 
12052
else
 
12053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12054
/* end confdefs.h.  */
 
12055
int i;
 
12056
_ACEOF
 
12057
if ac_fn_c_try_compile "$LINENO"; then :
 
12058
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12059
else
 
12060
  xorg_cv_cc_flag_unknown_warning_option=no
 
12061
fi
 
12062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12063
fi
 
12064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12065
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12066
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12067
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12068
fi
 
12069
 
 
12070
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12071
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12072
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12073
        fi
 
12074
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12075
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12076
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12077
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12078
  $as_echo_n "(cached) " >&6
 
12079
else
 
12080
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12081
/* end confdefs.h.  */
 
12082
int i;
 
12083
_ACEOF
 
12084
if ac_fn_c_try_compile "$LINENO"; then :
 
12085
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12086
else
 
12087
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12088
fi
 
12089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12090
fi
 
12091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12092
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12093
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12094
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12095
fi
 
12096
 
 
12097
found="no"
 
12098
 
 
12099
        if test $found = "no" ; then
 
12100
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12101
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12102
                fi
 
12103
 
 
12104
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12105
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12106
                fi
 
12107
 
 
12108
                CFLAGS="$CFLAGS -Wall"
 
12109
 
 
12110
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
 
12111
$as_echo_n "checking if $CC supports -Wall... " >&6; }
 
12112
                cacheid=xorg_cv_cc_flag__Wall
 
12113
                if eval \${$cacheid+:} false; then :
 
12114
  $as_echo_n "(cached) " >&6
 
12115
else
 
12116
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12117
/* end confdefs.h.  */
 
12118
int i;
 
12119
int
 
12120
main ()
 
12121
{
 
12122
 
 
12123
  ;
 
12124
  return 0;
 
12125
}
 
12126
_ACEOF
 
12127
if ac_fn_c_try_link "$LINENO"; then :
 
12128
  eval $cacheid=yes
 
12129
else
 
12130
  eval $cacheid=no
 
12131
fi
 
12132
rm -f core conftest.err conftest.$ac_objext \
 
12133
    conftest$ac_exeext conftest.$ac_ext
 
12134
fi
 
12135
 
 
12136
 
 
12137
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12138
 
 
12139
                eval supported=\$$cacheid
 
12140
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12141
$as_echo "$supported" >&6; }
 
12142
                if test "$supported" = "yes" ; then
 
12143
                        BASE_CFLAGS="$BASE_CFLAGS -Wall"
 
12144
                        found="yes"
 
12145
                fi
 
12146
        fi
 
12147
 
 
12148
 
 
12149
 
 
12150
 
 
12151
 
 
12152
 
 
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
 
 
12158
 
 
12159
 
 
12160
 
 
12161
 
 
12162
xorg_testset_save_CFLAGS="$CFLAGS"
 
12163
 
 
12164
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12165
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12166
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12167
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12168
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12169
  $as_echo_n "(cached) " >&6
 
12170
else
 
12171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12172
/* end confdefs.h.  */
 
12173
int i;
 
12174
_ACEOF
 
12175
if ac_fn_c_try_compile "$LINENO"; then :
 
12176
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12177
else
 
12178
  xorg_cv_cc_flag_unknown_warning_option=no
 
12179
fi
 
12180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12181
fi
 
12182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12183
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12184
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12185
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12186
fi
 
12187
 
 
12188
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12189
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12190
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12191
        fi
 
12192
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12193
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12194
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12195
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12196
  $as_echo_n "(cached) " >&6
 
12197
else
 
12198
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12199
/* end confdefs.h.  */
 
12200
int i;
 
12201
_ACEOF
 
12202
if ac_fn_c_try_compile "$LINENO"; then :
 
12203
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12204
else
 
12205
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12206
fi
 
12207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12208
fi
 
12209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12210
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12211
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12212
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12213
fi
 
12214
 
 
12215
found="no"
 
12216
 
 
12217
        if test $found = "no" ; then
 
12218
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12219
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12220
                fi
 
12221
 
 
12222
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12223
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12224
                fi
 
12225
 
 
12226
                CFLAGS="$CFLAGS -Wpointer-arith"
 
12227
 
 
12228
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
 
12229
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
 
12230
                cacheid=xorg_cv_cc_flag__Wpointer_arith
 
12231
                if eval \${$cacheid+:} false; then :
 
12232
  $as_echo_n "(cached) " >&6
 
12233
else
 
12234
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12235
/* end confdefs.h.  */
 
12236
int i;
 
12237
int
 
12238
main ()
 
12239
{
 
12240
 
 
12241
  ;
 
12242
  return 0;
 
12243
}
 
12244
_ACEOF
 
12245
if ac_fn_c_try_link "$LINENO"; then :
 
12246
  eval $cacheid=yes
 
12247
else
 
12248
  eval $cacheid=no
 
12249
fi
 
12250
rm -f core conftest.err conftest.$ac_objext \
 
12251
    conftest$ac_exeext conftest.$ac_ext
 
12252
fi
 
12253
 
 
12254
 
 
12255
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12256
 
 
12257
                eval supported=\$$cacheid
 
12258
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12259
$as_echo "$supported" >&6; }
 
12260
                if test "$supported" = "yes" ; then
 
12261
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
 
12262
                        found="yes"
 
12263
                fi
 
12264
        fi
 
12265
 
 
12266
 
 
12267
 
 
12268
 
 
12269
 
 
12270
 
 
12271
 
 
12272
 
 
12273
 
 
12274
 
 
12275
 
 
12276
 
 
12277
 
 
12278
 
 
12279
 
 
12280
xorg_testset_save_CFLAGS="$CFLAGS"
 
12281
 
 
12282
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12283
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12284
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12285
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12286
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12287
  $as_echo_n "(cached) " >&6
 
12288
else
 
12289
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12290
/* end confdefs.h.  */
 
12291
int i;
 
12292
_ACEOF
 
12293
if ac_fn_c_try_compile "$LINENO"; then :
 
12294
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12295
else
 
12296
  xorg_cv_cc_flag_unknown_warning_option=no
 
12297
fi
 
12298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12299
fi
 
12300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12301
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12302
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12303
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12304
fi
 
12305
 
 
12306
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12307
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12308
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12309
        fi
 
12310
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12311
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12312
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12313
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12314
  $as_echo_n "(cached) " >&6
 
12315
else
 
12316
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12317
/* end confdefs.h.  */
 
12318
int i;
 
12319
_ACEOF
 
12320
if ac_fn_c_try_compile "$LINENO"; then :
 
12321
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12322
else
 
12323
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12324
fi
 
12325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12326
fi
 
12327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12328
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12329
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12330
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12331
fi
 
12332
 
 
12333
found="no"
 
12334
 
 
12335
        if test $found = "no" ; then
 
12336
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12337
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12338
                fi
 
12339
 
 
12340
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12341
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12342
                fi
 
12343
 
 
12344
                CFLAGS="$CFLAGS -Wmissing-declarations"
 
12345
 
 
12346
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
 
12347
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
 
12348
                cacheid=xorg_cv_cc_flag__Wmissing_declarations
 
12349
                if eval \${$cacheid+:} false; then :
 
12350
  $as_echo_n "(cached) " >&6
 
12351
else
 
12352
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12353
/* end confdefs.h.  */
 
12354
int i;
 
12355
int
 
12356
main ()
 
12357
{
 
12358
 
 
12359
  ;
 
12360
  return 0;
 
12361
}
 
12362
_ACEOF
 
12363
if ac_fn_c_try_link "$LINENO"; then :
 
12364
  eval $cacheid=yes
 
12365
else
 
12366
  eval $cacheid=no
 
12367
fi
 
12368
rm -f core conftest.err conftest.$ac_objext \
 
12369
    conftest$ac_exeext conftest.$ac_ext
 
12370
fi
 
12371
 
 
12372
 
 
12373
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12374
 
 
12375
                eval supported=\$$cacheid
 
12376
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12377
$as_echo "$supported" >&6; }
 
12378
                if test "$supported" = "yes" ; then
 
12379
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
 
12380
                        found="yes"
 
12381
                fi
 
12382
        fi
 
12383
 
 
12384
 
 
12385
 
 
12386
 
 
12387
 
 
12388
 
 
12389
 
 
12390
 
 
12391
 
 
12392
 
 
12393
 
 
12394
 
 
12395
 
 
12396
 
 
12397
 
 
12398
xorg_testset_save_CFLAGS="$CFLAGS"
 
12399
 
 
12400
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12401
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12402
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12403
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12404
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12405
  $as_echo_n "(cached) " >&6
 
12406
else
 
12407
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12408
/* end confdefs.h.  */
 
12409
int i;
 
12410
_ACEOF
 
12411
if ac_fn_c_try_compile "$LINENO"; then :
 
12412
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12413
else
 
12414
  xorg_cv_cc_flag_unknown_warning_option=no
 
12415
fi
 
12416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12417
fi
 
12418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12419
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12420
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12421
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12422
fi
 
12423
 
 
12424
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12425
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12426
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12427
        fi
 
12428
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12429
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12430
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12431
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12432
  $as_echo_n "(cached) " >&6
 
12433
else
 
12434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12435
/* end confdefs.h.  */
 
12436
int i;
 
12437
_ACEOF
 
12438
if ac_fn_c_try_compile "$LINENO"; then :
 
12439
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12440
else
 
12441
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12442
fi
 
12443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12444
fi
 
12445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12446
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12447
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12448
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12449
fi
 
12450
 
 
12451
found="no"
 
12452
 
 
12453
        if test $found = "no" ; then
 
12454
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12455
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12456
                fi
 
12457
 
 
12458
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12459
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12460
                fi
 
12461
 
 
12462
                CFLAGS="$CFLAGS -Wformat=2"
 
12463
 
 
12464
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
 
12465
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
 
12466
                cacheid=xorg_cv_cc_flag__Wformat_2
 
12467
                if eval \${$cacheid+:} false; then :
 
12468
  $as_echo_n "(cached) " >&6
 
12469
else
 
12470
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12471
/* end confdefs.h.  */
 
12472
int i;
 
12473
int
 
12474
main ()
 
12475
{
 
12476
 
 
12477
  ;
 
12478
  return 0;
 
12479
}
 
12480
_ACEOF
 
12481
if ac_fn_c_try_link "$LINENO"; then :
 
12482
  eval $cacheid=yes
 
12483
else
 
12484
  eval $cacheid=no
 
12485
fi
 
12486
rm -f core conftest.err conftest.$ac_objext \
 
12487
    conftest$ac_exeext conftest.$ac_ext
 
12488
fi
 
12489
 
 
12490
 
 
12491
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12492
 
 
12493
                eval supported=\$$cacheid
 
12494
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12495
$as_echo "$supported" >&6; }
 
12496
                if test "$supported" = "yes" ; then
 
12497
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
 
12498
                        found="yes"
 
12499
                fi
 
12500
        fi
 
12501
 
 
12502
        if test $found = "no" ; then
 
12503
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12504
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12505
                fi
 
12506
 
 
12507
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12508
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12509
                fi
 
12510
 
 
12511
                CFLAGS="$CFLAGS -Wformat"
 
12512
 
 
12513
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
 
12514
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
 
12515
                cacheid=xorg_cv_cc_flag__Wformat
 
12516
                if eval \${$cacheid+:} false; then :
 
12517
  $as_echo_n "(cached) " >&6
 
12518
else
 
12519
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12520
/* end confdefs.h.  */
 
12521
int i;
 
12522
int
 
12523
main ()
 
12524
{
 
12525
 
 
12526
  ;
 
12527
  return 0;
 
12528
}
 
12529
_ACEOF
 
12530
if ac_fn_c_try_link "$LINENO"; then :
 
12531
  eval $cacheid=yes
 
12532
else
 
12533
  eval $cacheid=no
 
12534
fi
 
12535
rm -f core conftest.err conftest.$ac_objext \
 
12536
    conftest$ac_exeext conftest.$ac_ext
 
12537
fi
 
12538
 
 
12539
 
 
12540
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12541
 
 
12542
                eval supported=\$$cacheid
 
12543
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12544
$as_echo "$supported" >&6; }
 
12545
                if test "$supported" = "yes" ; then
 
12546
                        BASE_CFLAGS="$BASE_CFLAGS -Wformat"
 
12547
                        found="yes"
 
12548
                fi
 
12549
        fi
 
12550
 
 
12551
 
 
12552
 
 
12553
 
 
12554
 
 
12555
 
 
12556
 
 
12557
 
 
12558
 
 
12559
 
 
12560
 
 
12561
 
 
12562
 
 
12563
 
 
12564
 
 
12565
 
 
12566
 
 
12567
xorg_testset_save_CFLAGS="$CFLAGS"
 
12568
 
 
12569
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12570
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12571
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12572
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12573
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12574
  $as_echo_n "(cached) " >&6
 
12575
else
 
12576
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12577
/* end confdefs.h.  */
 
12578
int i;
 
12579
_ACEOF
 
12580
if ac_fn_c_try_compile "$LINENO"; then :
 
12581
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12582
else
 
12583
  xorg_cv_cc_flag_unknown_warning_option=no
 
12584
fi
 
12585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12586
fi
 
12587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12588
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12589
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12590
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12591
fi
 
12592
 
 
12593
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12594
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12595
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12596
        fi
 
12597
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12598
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12599
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12600
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12601
  $as_echo_n "(cached) " >&6
 
12602
else
 
12603
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12604
/* end confdefs.h.  */
 
12605
int i;
 
12606
_ACEOF
 
12607
if ac_fn_c_try_compile "$LINENO"; then :
 
12608
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12609
else
 
12610
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12611
fi
 
12612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12613
fi
 
12614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12615
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12616
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12617
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12618
fi
 
12619
 
 
12620
found="no"
 
12621
 
 
12622
        if test $found = "no" ; then
 
12623
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12624
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12625
                fi
 
12626
 
 
12627
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12628
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12629
                fi
 
12630
 
 
12631
                CFLAGS="$CFLAGS -Wstrict-prototypes"
 
12632
 
 
12633
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
 
12634
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
 
12635
                cacheid=xorg_cv_cc_flag__Wstrict_prototypes
 
12636
                if eval \${$cacheid+:} false; then :
 
12637
  $as_echo_n "(cached) " >&6
 
12638
else
 
12639
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12640
/* end confdefs.h.  */
 
12641
int i;
 
12642
int
 
12643
main ()
 
12644
{
 
12645
 
 
12646
  ;
 
12647
  return 0;
 
12648
}
 
12649
_ACEOF
 
12650
if ac_fn_c_try_link "$LINENO"; then :
 
12651
  eval $cacheid=yes
 
12652
else
 
12653
  eval $cacheid=no
 
12654
fi
 
12655
rm -f core conftest.err conftest.$ac_objext \
 
12656
    conftest$ac_exeext conftest.$ac_ext
 
12657
fi
 
12658
 
 
12659
 
 
12660
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12661
 
 
12662
                eval supported=\$$cacheid
 
12663
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12664
$as_echo "$supported" >&6; }
 
12665
                if test "$supported" = "yes" ; then
 
12666
                        BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
 
12667
                        found="yes"
 
12668
                fi
 
12669
        fi
 
12670
 
 
12671
 
 
12672
 
 
12673
 
 
12674
 
 
12675
 
 
12676
 
 
12677
 
 
12678
 
 
12679
 
 
12680
 
 
12681
 
 
12682
 
 
12683
 
 
12684
 
 
12685
xorg_testset_save_CFLAGS="$CFLAGS"
 
12686
 
 
12687
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12688
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12689
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12690
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12691
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12692
  $as_echo_n "(cached) " >&6
 
12693
else
 
12694
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12695
/* end confdefs.h.  */
 
12696
int i;
 
12697
_ACEOF
 
12698
if ac_fn_c_try_compile "$LINENO"; then :
 
12699
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12700
else
 
12701
  xorg_cv_cc_flag_unknown_warning_option=no
 
12702
fi
 
12703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12704
fi
 
12705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12706
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12707
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12708
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12709
fi
 
12710
 
 
12711
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12712
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12713
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12714
        fi
 
12715
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12716
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12717
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12718
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12719
  $as_echo_n "(cached) " >&6
 
12720
else
 
12721
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12722
/* end confdefs.h.  */
 
12723
int i;
 
12724
_ACEOF
 
12725
if ac_fn_c_try_compile "$LINENO"; then :
 
12726
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12727
else
 
12728
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12729
fi
 
12730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12731
fi
 
12732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12733
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12734
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12735
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12736
fi
 
12737
 
 
12738
found="no"
 
12739
 
 
12740
        if test $found = "no" ; then
 
12741
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12742
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12743
                fi
 
12744
 
 
12745
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12746
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12747
                fi
 
12748
 
 
12749
                CFLAGS="$CFLAGS -Wmissing-prototypes"
 
12750
 
 
12751
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
 
12752
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
 
12753
                cacheid=xorg_cv_cc_flag__Wmissing_prototypes
 
12754
                if eval \${$cacheid+:} false; then :
 
12755
  $as_echo_n "(cached) " >&6
 
12756
else
 
12757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12758
/* end confdefs.h.  */
 
12759
int i;
 
12760
int
 
12761
main ()
 
12762
{
 
12763
 
 
12764
  ;
 
12765
  return 0;
 
12766
}
 
12767
_ACEOF
 
12768
if ac_fn_c_try_link "$LINENO"; then :
 
12769
  eval $cacheid=yes
 
12770
else
 
12771
  eval $cacheid=no
 
12772
fi
 
12773
rm -f core conftest.err conftest.$ac_objext \
 
12774
    conftest$ac_exeext conftest.$ac_ext
 
12775
fi
 
12776
 
 
12777
 
 
12778
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12779
 
 
12780
                eval supported=\$$cacheid
 
12781
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12782
$as_echo "$supported" >&6; }
 
12783
                if test "$supported" = "yes" ; then
 
12784
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
 
12785
                        found="yes"
 
12786
                fi
 
12787
        fi
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
 
 
12794
 
 
12795
 
 
12796
 
 
12797
 
 
12798
 
 
12799
 
 
12800
 
 
12801
 
 
12802
 
 
12803
xorg_testset_save_CFLAGS="$CFLAGS"
 
12804
 
 
12805
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12806
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12807
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12808
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12809
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12810
  $as_echo_n "(cached) " >&6
 
12811
else
 
12812
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12813
/* end confdefs.h.  */
 
12814
int i;
 
12815
_ACEOF
 
12816
if ac_fn_c_try_compile "$LINENO"; then :
 
12817
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12818
else
 
12819
  xorg_cv_cc_flag_unknown_warning_option=no
 
12820
fi
 
12821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12822
fi
 
12823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12824
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12825
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12826
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12827
fi
 
12828
 
 
12829
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12830
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12831
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12832
        fi
 
12833
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12834
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12835
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12836
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12837
  $as_echo_n "(cached) " >&6
 
12838
else
 
12839
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12840
/* end confdefs.h.  */
 
12841
int i;
 
12842
_ACEOF
 
12843
if ac_fn_c_try_compile "$LINENO"; then :
 
12844
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12845
else
 
12846
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12847
fi
 
12848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12849
fi
 
12850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12851
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12852
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12853
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12854
fi
 
12855
 
 
12856
found="no"
 
12857
 
 
12858
        if test $found = "no" ; then
 
12859
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12860
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12861
                fi
 
12862
 
 
12863
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12864
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12865
                fi
 
12866
 
 
12867
                CFLAGS="$CFLAGS -Wnested-externs"
 
12868
 
 
12869
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
 
12870
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
 
12871
                cacheid=xorg_cv_cc_flag__Wnested_externs
 
12872
                if eval \${$cacheid+:} false; then :
 
12873
  $as_echo_n "(cached) " >&6
 
12874
else
 
12875
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12876
/* end confdefs.h.  */
 
12877
int i;
 
12878
int
 
12879
main ()
 
12880
{
 
12881
 
 
12882
  ;
 
12883
  return 0;
 
12884
}
 
12885
_ACEOF
 
12886
if ac_fn_c_try_link "$LINENO"; then :
 
12887
  eval $cacheid=yes
 
12888
else
 
12889
  eval $cacheid=no
 
12890
fi
 
12891
rm -f core conftest.err conftest.$ac_objext \
 
12892
    conftest$ac_exeext conftest.$ac_ext
 
12893
fi
 
12894
 
 
12895
 
 
12896
                CFLAGS="$xorg_testset_save_CFLAGS"
 
12897
 
 
12898
                eval supported=\$$cacheid
 
12899
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
12900
$as_echo "$supported" >&6; }
 
12901
                if test "$supported" = "yes" ; then
 
12902
                        BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
 
12903
                        found="yes"
 
12904
                fi
 
12905
        fi
 
12906
 
 
12907
 
 
12908
 
 
12909
 
 
12910
 
 
12911
 
 
12912
 
 
12913
 
 
12914
 
 
12915
 
 
12916
 
 
12917
 
 
12918
 
 
12919
 
 
12920
 
 
12921
xorg_testset_save_CFLAGS="$CFLAGS"
 
12922
 
 
12923
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
12924
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12925
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
12926
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
12927
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
12928
  $as_echo_n "(cached) " >&6
 
12929
else
 
12930
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12931
/* end confdefs.h.  */
 
12932
int i;
 
12933
_ACEOF
 
12934
if ac_fn_c_try_compile "$LINENO"; then :
 
12935
  xorg_cv_cc_flag_unknown_warning_option=yes
 
12936
else
 
12937
  xorg_cv_cc_flag_unknown_warning_option=no
 
12938
fi
 
12939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12940
fi
 
12941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
12942
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
12943
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
12944
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12945
fi
 
12946
 
 
12947
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
12948
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12949
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12950
        fi
 
12951
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12952
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
12953
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
12954
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
12955
  $as_echo_n "(cached) " >&6
 
12956
else
 
12957
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12958
/* end confdefs.h.  */
 
12959
int i;
 
12960
_ACEOF
 
12961
if ac_fn_c_try_compile "$LINENO"; then :
 
12962
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
12963
else
 
12964
  xorg_cv_cc_flag_unused_command_line_argument=no
 
12965
fi
 
12966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12967
fi
 
12968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
12969
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
12970
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
12971
        CFLAGS="$xorg_testset_save_CFLAGS"
 
12972
fi
 
12973
 
 
12974
found="no"
 
12975
 
 
12976
        if test $found = "no" ; then
 
12977
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
12978
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
12979
                fi
 
12980
 
 
12981
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
12982
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
12983
                fi
 
12984
 
 
12985
                CFLAGS="$CFLAGS -Wbad-function-cast"
 
12986
 
 
12987
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
 
12988
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
 
12989
                cacheid=xorg_cv_cc_flag__Wbad_function_cast
 
12990
                if eval \${$cacheid+:} false; then :
 
12991
  $as_echo_n "(cached) " >&6
 
12992
else
 
12993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12994
/* end confdefs.h.  */
 
12995
int i;
 
12996
int
 
12997
main ()
 
12998
{
 
12999
 
 
13000
  ;
 
13001
  return 0;
 
13002
}
 
13003
_ACEOF
 
13004
if ac_fn_c_try_link "$LINENO"; then :
 
13005
  eval $cacheid=yes
 
13006
else
 
13007
  eval $cacheid=no
 
13008
fi
 
13009
rm -f core conftest.err conftest.$ac_objext \
 
13010
    conftest$ac_exeext conftest.$ac_ext
 
13011
fi
 
13012
 
 
13013
 
 
13014
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13015
 
 
13016
                eval supported=\$$cacheid
 
13017
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13018
$as_echo "$supported" >&6; }
 
13019
                if test "$supported" = "yes" ; then
 
13020
                        BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
 
13021
                        found="yes"
 
13022
                fi
 
13023
        fi
 
13024
 
 
13025
 
 
13026
 
 
13027
 
 
13028
 
 
13029
 
 
13030
 
 
13031
 
 
13032
 
 
13033
 
 
13034
 
 
13035
 
 
13036
 
 
13037
 
 
13038
 
 
13039
xorg_testset_save_CFLAGS="$CFLAGS"
 
13040
 
 
13041
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13042
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13043
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13044
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13045
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13046
  $as_echo_n "(cached) " >&6
 
13047
else
 
13048
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13049
/* end confdefs.h.  */
 
13050
int i;
 
13051
_ACEOF
 
13052
if ac_fn_c_try_compile "$LINENO"; then :
 
13053
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13054
else
 
13055
  xorg_cv_cc_flag_unknown_warning_option=no
 
13056
fi
 
13057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13058
fi
 
13059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13060
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13061
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13062
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13063
fi
 
13064
 
 
13065
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13066
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13067
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13068
        fi
 
13069
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13070
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13071
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13072
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13073
  $as_echo_n "(cached) " >&6
 
13074
else
 
13075
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13076
/* end confdefs.h.  */
 
13077
int i;
 
13078
_ACEOF
 
13079
if ac_fn_c_try_compile "$LINENO"; then :
 
13080
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13081
else
 
13082
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13083
fi
 
13084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13085
fi
 
13086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13087
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13088
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13089
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13090
fi
 
13091
 
 
13092
found="no"
 
13093
 
 
13094
        if test $found = "no" ; then
 
13095
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13096
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13097
                fi
 
13098
 
 
13099
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13100
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13101
                fi
 
13102
 
 
13103
                CFLAGS="$CFLAGS -Wold-style-definition"
 
13104
 
 
13105
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
 
13106
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
 
13107
                cacheid=xorg_cv_cc_flag__Wold_style_definition
 
13108
                if eval \${$cacheid+:} false; then :
 
13109
  $as_echo_n "(cached) " >&6
 
13110
else
 
13111
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13112
/* end confdefs.h.  */
 
13113
int i;
 
13114
int
 
13115
main ()
 
13116
{
 
13117
 
 
13118
  ;
 
13119
  return 0;
 
13120
}
 
13121
_ACEOF
 
13122
if ac_fn_c_try_link "$LINENO"; then :
 
13123
  eval $cacheid=yes
 
13124
else
 
13125
  eval $cacheid=no
 
13126
fi
 
13127
rm -f core conftest.err conftest.$ac_objext \
 
13128
    conftest$ac_exeext conftest.$ac_ext
 
13129
fi
 
13130
 
 
13131
 
 
13132
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13133
 
 
13134
                eval supported=\$$cacheid
 
13135
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13136
$as_echo "$supported" >&6; }
 
13137
                if test "$supported" = "yes" ; then
 
13138
                        BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
 
13139
                        found="yes"
 
13140
                fi
 
13141
        fi
 
13142
 
 
13143
        if test $found = "no" ; then
 
13144
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13145
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13146
                fi
 
13147
 
 
13148
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13149
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13150
                fi
 
13151
 
 
13152
                CFLAGS="$CFLAGS -fd"
 
13153
 
 
13154
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
 
13155
$as_echo_n "checking if $CC supports -fd... " >&6; }
 
13156
                cacheid=xorg_cv_cc_flag__fd
 
13157
                if eval \${$cacheid+:} false; then :
 
13158
  $as_echo_n "(cached) " >&6
 
13159
else
 
13160
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13161
/* end confdefs.h.  */
 
13162
int i;
 
13163
int
 
13164
main ()
 
13165
{
 
13166
 
 
13167
  ;
 
13168
  return 0;
 
13169
}
 
13170
_ACEOF
 
13171
if ac_fn_c_try_link "$LINENO"; then :
 
13172
  eval $cacheid=yes
 
13173
else
 
13174
  eval $cacheid=no
 
13175
fi
 
13176
rm -f core conftest.err conftest.$ac_objext \
 
13177
    conftest$ac_exeext conftest.$ac_ext
 
13178
fi
 
13179
 
 
13180
 
 
13181
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13182
 
 
13183
                eval supported=\$$cacheid
 
13184
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13185
$as_echo "$supported" >&6; }
 
13186
                if test "$supported" = "yes" ; then
 
13187
                        BASE_CFLAGS="$BASE_CFLAGS -fd"
 
13188
                        found="yes"
 
13189
                fi
 
13190
        fi
 
13191
 
 
13192
 
 
13193
 
 
13194
 
 
13195
 
 
13196
 
 
13197
 
 
13198
 
 
13199
 
 
13200
 
 
13201
 
 
13202
 
 
13203
 
 
13204
 
 
13205
 
 
13206
xorg_testset_save_CFLAGS="$CFLAGS"
 
13207
 
 
13208
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13209
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13210
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13211
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13212
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13213
  $as_echo_n "(cached) " >&6
 
13214
else
 
13215
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13216
/* end confdefs.h.  */
 
13217
int i;
 
13218
_ACEOF
 
13219
if ac_fn_c_try_compile "$LINENO"; then :
 
13220
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13221
else
 
13222
  xorg_cv_cc_flag_unknown_warning_option=no
 
13223
fi
 
13224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13225
fi
 
13226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13227
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13228
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13229
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13230
fi
 
13231
 
 
13232
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13233
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13234
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13235
        fi
 
13236
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13237
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13238
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13239
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13240
  $as_echo_n "(cached) " >&6
 
13241
else
 
13242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13243
/* end confdefs.h.  */
 
13244
int i;
 
13245
_ACEOF
 
13246
if ac_fn_c_try_compile "$LINENO"; then :
 
13247
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13248
else
 
13249
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13250
fi
 
13251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13252
fi
 
13253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13254
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13255
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13256
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13257
fi
 
13258
 
 
13259
found="no"
 
13260
 
 
13261
        if test $found = "no" ; then
 
13262
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13263
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13264
                fi
 
13265
 
 
13266
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13267
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13268
                fi
 
13269
 
 
13270
                CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 
13271
 
 
13272
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
 
13273
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
 
13274
                cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
 
13275
                if eval \${$cacheid+:} false; then :
 
13276
  $as_echo_n "(cached) " >&6
 
13277
else
 
13278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13279
/* end confdefs.h.  */
 
13280
int i;
 
13281
int
 
13282
main ()
 
13283
{
 
13284
 
 
13285
  ;
 
13286
  return 0;
 
13287
}
 
13288
_ACEOF
 
13289
if ac_fn_c_try_link "$LINENO"; then :
 
13290
  eval $cacheid=yes
 
13291
else
 
13292
  eval $cacheid=no
 
13293
fi
 
13294
rm -f core conftest.err conftest.$ac_objext \
 
13295
    conftest$ac_exeext conftest.$ac_ext
 
13296
fi
 
13297
 
 
13298
 
 
13299
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13300
 
 
13301
                eval supported=\$$cacheid
 
13302
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13303
$as_echo "$supported" >&6; }
 
13304
                if test "$supported" = "yes" ; then
 
13305
                        BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
 
13306
                        found="yes"
 
13307
                fi
 
13308
        fi
 
13309
 
 
13310
 
 
13311
 
 
13312
 
 
13313
 
 
13314
# This chunk adds additional warnings that could catch undesired effects.
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
 
 
13325
 
 
13326
 
 
13327
 
 
13328
xorg_testset_save_CFLAGS="$CFLAGS"
 
13329
 
 
13330
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13331
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13332
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13333
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13334
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13335
  $as_echo_n "(cached) " >&6
 
13336
else
 
13337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13338
/* end confdefs.h.  */
 
13339
int i;
 
13340
_ACEOF
 
13341
if ac_fn_c_try_compile "$LINENO"; then :
 
13342
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13343
else
 
13344
  xorg_cv_cc_flag_unknown_warning_option=no
 
13345
fi
 
13346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13347
fi
 
13348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13349
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13350
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13351
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13352
fi
 
13353
 
 
13354
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13355
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13356
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13357
        fi
 
13358
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13359
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13360
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13361
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13362
  $as_echo_n "(cached) " >&6
 
13363
else
 
13364
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13365
/* end confdefs.h.  */
 
13366
int i;
 
13367
_ACEOF
 
13368
if ac_fn_c_try_compile "$LINENO"; then :
 
13369
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13370
else
 
13371
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13372
fi
 
13373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13374
fi
 
13375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13376
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13377
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13378
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13379
fi
 
13380
 
 
13381
found="no"
 
13382
 
 
13383
        if test $found = "no" ; then
 
13384
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13385
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13386
                fi
 
13387
 
 
13388
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13389
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13390
                fi
 
13391
 
 
13392
                CFLAGS="$CFLAGS -Wunused"
 
13393
 
 
13394
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
 
13395
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
 
13396
                cacheid=xorg_cv_cc_flag__Wunused
 
13397
                if eval \${$cacheid+:} false; then :
 
13398
  $as_echo_n "(cached) " >&6
 
13399
else
 
13400
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13401
/* end confdefs.h.  */
 
13402
int i;
 
13403
int
 
13404
main ()
 
13405
{
 
13406
 
 
13407
  ;
 
13408
  return 0;
 
13409
}
 
13410
_ACEOF
 
13411
if ac_fn_c_try_link "$LINENO"; then :
 
13412
  eval $cacheid=yes
 
13413
else
 
13414
  eval $cacheid=no
 
13415
fi
 
13416
rm -f core conftest.err conftest.$ac_objext \
 
13417
    conftest$ac_exeext conftest.$ac_ext
 
13418
fi
 
13419
 
 
13420
 
 
13421
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13422
 
 
13423
                eval supported=\$$cacheid
 
13424
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13425
$as_echo "$supported" >&6; }
 
13426
                if test "$supported" = "yes" ; then
 
13427
                        BASE_CFLAGS="$BASE_CFLAGS -Wunused"
 
13428
                        found="yes"
 
13429
                fi
 
13430
        fi
 
13431
 
 
13432
 
 
13433
 
 
13434
 
 
13435
 
 
13436
 
 
13437
 
 
13438
 
 
13439
 
 
13440
 
 
13441
 
 
13442
 
 
13443
 
 
13444
 
 
13445
 
 
13446
xorg_testset_save_CFLAGS="$CFLAGS"
 
13447
 
 
13448
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13449
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13450
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13451
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13452
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13453
  $as_echo_n "(cached) " >&6
 
13454
else
 
13455
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13456
/* end confdefs.h.  */
 
13457
int i;
 
13458
_ACEOF
 
13459
if ac_fn_c_try_compile "$LINENO"; then :
 
13460
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13461
else
 
13462
  xorg_cv_cc_flag_unknown_warning_option=no
 
13463
fi
 
13464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13465
fi
 
13466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13467
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13468
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13469
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13470
fi
 
13471
 
 
13472
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13473
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13474
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13475
        fi
 
13476
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13477
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13478
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13479
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13480
  $as_echo_n "(cached) " >&6
 
13481
else
 
13482
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13483
/* end confdefs.h.  */
 
13484
int i;
 
13485
_ACEOF
 
13486
if ac_fn_c_try_compile "$LINENO"; then :
 
13487
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13488
else
 
13489
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13490
fi
 
13491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13492
fi
 
13493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13494
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13495
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13496
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13497
fi
 
13498
 
 
13499
found="no"
 
13500
 
 
13501
        if test $found = "no" ; then
 
13502
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13503
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13504
                fi
 
13505
 
 
13506
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13507
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13508
                fi
 
13509
 
 
13510
                CFLAGS="$CFLAGS -Wuninitialized"
 
13511
 
 
13512
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
 
13513
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
 
13514
                cacheid=xorg_cv_cc_flag__Wuninitialized
 
13515
                if eval \${$cacheid+:} false; then :
 
13516
  $as_echo_n "(cached) " >&6
 
13517
else
 
13518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13519
/* end confdefs.h.  */
 
13520
int i;
 
13521
int
 
13522
main ()
 
13523
{
 
13524
 
 
13525
  ;
 
13526
  return 0;
 
13527
}
 
13528
_ACEOF
 
13529
if ac_fn_c_try_link "$LINENO"; then :
 
13530
  eval $cacheid=yes
 
13531
else
 
13532
  eval $cacheid=no
 
13533
fi
 
13534
rm -f core conftest.err conftest.$ac_objext \
 
13535
    conftest$ac_exeext conftest.$ac_ext
 
13536
fi
 
13537
 
 
13538
 
 
13539
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13540
 
 
13541
                eval supported=\$$cacheid
 
13542
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13543
$as_echo "$supported" >&6; }
 
13544
                if test "$supported" = "yes" ; then
 
13545
                        BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
 
13546
                        found="yes"
 
13547
                fi
 
13548
        fi
 
13549
 
 
13550
 
 
13551
 
 
13552
 
 
13553
 
 
13554
 
 
13555
 
 
13556
 
 
13557
 
 
13558
 
 
13559
 
 
13560
 
 
13561
 
 
13562
 
 
13563
 
 
13564
xorg_testset_save_CFLAGS="$CFLAGS"
 
13565
 
 
13566
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13567
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13568
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13569
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13570
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13571
  $as_echo_n "(cached) " >&6
 
13572
else
 
13573
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13574
/* end confdefs.h.  */
 
13575
int i;
 
13576
_ACEOF
 
13577
if ac_fn_c_try_compile "$LINENO"; then :
 
13578
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13579
else
 
13580
  xorg_cv_cc_flag_unknown_warning_option=no
 
13581
fi
 
13582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13583
fi
 
13584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13585
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13586
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13587
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13588
fi
 
13589
 
 
13590
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13591
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13592
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13593
        fi
 
13594
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13595
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13596
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13597
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13598
  $as_echo_n "(cached) " >&6
 
13599
else
 
13600
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13601
/* end confdefs.h.  */
 
13602
int i;
 
13603
_ACEOF
 
13604
if ac_fn_c_try_compile "$LINENO"; then :
 
13605
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13606
else
 
13607
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13608
fi
 
13609
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13610
fi
 
13611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13612
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13613
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13614
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13615
fi
 
13616
 
 
13617
found="no"
 
13618
 
 
13619
        if test $found = "no" ; then
 
13620
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13621
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13622
                fi
 
13623
 
 
13624
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13625
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13626
                fi
 
13627
 
 
13628
                CFLAGS="$CFLAGS -Wshadow"
 
13629
 
 
13630
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
 
13631
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
 
13632
                cacheid=xorg_cv_cc_flag__Wshadow
 
13633
                if eval \${$cacheid+:} false; then :
 
13634
  $as_echo_n "(cached) " >&6
 
13635
else
 
13636
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13637
/* end confdefs.h.  */
 
13638
int i;
 
13639
int
 
13640
main ()
 
13641
{
 
13642
 
 
13643
  ;
 
13644
  return 0;
 
13645
}
 
13646
_ACEOF
 
13647
if ac_fn_c_try_link "$LINENO"; then :
 
13648
  eval $cacheid=yes
 
13649
else
 
13650
  eval $cacheid=no
 
13651
fi
 
13652
rm -f core conftest.err conftest.$ac_objext \
 
13653
    conftest$ac_exeext conftest.$ac_ext
 
13654
fi
 
13655
 
 
13656
 
 
13657
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13658
 
 
13659
                eval supported=\$$cacheid
 
13660
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13661
$as_echo "$supported" >&6; }
 
13662
                if test "$supported" = "yes" ; then
 
13663
                        BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
 
13664
                        found="yes"
 
13665
                fi
 
13666
        fi
 
13667
 
 
13668
 
 
13669
 
 
13670
 
 
13671
 
 
13672
 
 
13673
 
 
13674
 
 
13675
 
 
13676
 
 
13677
 
 
13678
 
 
13679
 
 
13680
 
 
13681
 
 
13682
xorg_testset_save_CFLAGS="$CFLAGS"
 
13683
 
 
13684
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13685
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13686
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13687
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13688
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13689
  $as_echo_n "(cached) " >&6
 
13690
else
 
13691
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13692
/* end confdefs.h.  */
 
13693
int i;
 
13694
_ACEOF
 
13695
if ac_fn_c_try_compile "$LINENO"; then :
 
13696
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13697
else
 
13698
  xorg_cv_cc_flag_unknown_warning_option=no
 
13699
fi
 
13700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13701
fi
 
13702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13703
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13704
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13705
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13706
fi
 
13707
 
 
13708
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13709
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13710
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13711
        fi
 
13712
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13713
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13714
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13715
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13716
  $as_echo_n "(cached) " >&6
 
13717
else
 
13718
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13719
/* end confdefs.h.  */
 
13720
int i;
 
13721
_ACEOF
 
13722
if ac_fn_c_try_compile "$LINENO"; then :
 
13723
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13724
else
 
13725
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13726
fi
 
13727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13728
fi
 
13729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13730
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13731
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13732
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13733
fi
 
13734
 
 
13735
found="no"
 
13736
 
 
13737
        if test $found = "no" ; then
 
13738
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13739
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13740
                fi
 
13741
 
 
13742
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13743
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13744
                fi
 
13745
 
 
13746
                CFLAGS="$CFLAGS -Wmissing-noreturn"
 
13747
 
 
13748
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
 
13749
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
 
13750
                cacheid=xorg_cv_cc_flag__Wmissing_noreturn
 
13751
                if eval \${$cacheid+:} false; then :
 
13752
  $as_echo_n "(cached) " >&6
 
13753
else
 
13754
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13755
/* end confdefs.h.  */
 
13756
int i;
 
13757
int
 
13758
main ()
 
13759
{
 
13760
 
 
13761
  ;
 
13762
  return 0;
 
13763
}
 
13764
_ACEOF
 
13765
if ac_fn_c_try_link "$LINENO"; then :
 
13766
  eval $cacheid=yes
 
13767
else
 
13768
  eval $cacheid=no
 
13769
fi
 
13770
rm -f core conftest.err conftest.$ac_objext \
 
13771
    conftest$ac_exeext conftest.$ac_ext
 
13772
fi
 
13773
 
 
13774
 
 
13775
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13776
 
 
13777
                eval supported=\$$cacheid
 
13778
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13779
$as_echo "$supported" >&6; }
 
13780
                if test "$supported" = "yes" ; then
 
13781
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
 
13782
                        found="yes"
 
13783
                fi
 
13784
        fi
 
13785
 
 
13786
 
 
13787
 
 
13788
 
 
13789
 
 
13790
 
 
13791
 
 
13792
 
 
13793
 
 
13794
 
 
13795
 
 
13796
 
 
13797
 
 
13798
 
 
13799
 
 
13800
xorg_testset_save_CFLAGS="$CFLAGS"
 
13801
 
 
13802
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13803
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13804
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13805
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13806
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13807
  $as_echo_n "(cached) " >&6
 
13808
else
 
13809
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13810
/* end confdefs.h.  */
 
13811
int i;
 
13812
_ACEOF
 
13813
if ac_fn_c_try_compile "$LINENO"; then :
 
13814
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13815
else
 
13816
  xorg_cv_cc_flag_unknown_warning_option=no
 
13817
fi
 
13818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13819
fi
 
13820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13821
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13822
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13823
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13824
fi
 
13825
 
 
13826
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13827
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13828
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13829
        fi
 
13830
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13831
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13832
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13833
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13834
  $as_echo_n "(cached) " >&6
 
13835
else
 
13836
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13837
/* end confdefs.h.  */
 
13838
int i;
 
13839
_ACEOF
 
13840
if ac_fn_c_try_compile "$LINENO"; then :
 
13841
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13842
else
 
13843
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13844
fi
 
13845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13846
fi
 
13847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13848
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13849
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13850
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13851
fi
 
13852
 
 
13853
found="no"
 
13854
 
 
13855
        if test $found = "no" ; then
 
13856
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13857
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13858
                fi
 
13859
 
 
13860
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13861
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13862
                fi
 
13863
 
 
13864
                CFLAGS="$CFLAGS -Wmissing-format-attribute"
 
13865
 
 
13866
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
 
13867
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
 
13868
                cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
 
13869
                if eval \${$cacheid+:} false; then :
 
13870
  $as_echo_n "(cached) " >&6
 
13871
else
 
13872
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13873
/* end confdefs.h.  */
 
13874
int i;
 
13875
int
 
13876
main ()
 
13877
{
 
13878
 
 
13879
  ;
 
13880
  return 0;
 
13881
}
 
13882
_ACEOF
 
13883
if ac_fn_c_try_link "$LINENO"; then :
 
13884
  eval $cacheid=yes
 
13885
else
 
13886
  eval $cacheid=no
 
13887
fi
 
13888
rm -f core conftest.err conftest.$ac_objext \
 
13889
    conftest$ac_exeext conftest.$ac_ext
 
13890
fi
 
13891
 
 
13892
 
 
13893
                CFLAGS="$xorg_testset_save_CFLAGS"
 
13894
 
 
13895
                eval supported=\$$cacheid
 
13896
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
13897
$as_echo "$supported" >&6; }
 
13898
                if test "$supported" = "yes" ; then
 
13899
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
 
13900
                        found="yes"
 
13901
                fi
 
13902
        fi
 
13903
 
 
13904
 
 
13905
 
 
13906
 
 
13907
 
 
13908
 
 
13909
 
 
13910
 
 
13911
 
 
13912
 
 
13913
 
 
13914
 
 
13915
 
 
13916
 
 
13917
 
 
13918
xorg_testset_save_CFLAGS="$CFLAGS"
 
13919
 
 
13920
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
13921
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13922
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
13923
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
13924
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
13925
  $as_echo_n "(cached) " >&6
 
13926
else
 
13927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13928
/* end confdefs.h.  */
 
13929
int i;
 
13930
_ACEOF
 
13931
if ac_fn_c_try_compile "$LINENO"; then :
 
13932
  xorg_cv_cc_flag_unknown_warning_option=yes
 
13933
else
 
13934
  xorg_cv_cc_flag_unknown_warning_option=no
 
13935
fi
 
13936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13937
fi
 
13938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
13939
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
13940
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
13941
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13942
fi
 
13943
 
 
13944
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
13945
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13946
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13947
        fi
 
13948
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13949
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
13950
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
13951
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
13952
  $as_echo_n "(cached) " >&6
 
13953
else
 
13954
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13955
/* end confdefs.h.  */
 
13956
int i;
 
13957
_ACEOF
 
13958
if ac_fn_c_try_compile "$LINENO"; then :
 
13959
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
13960
else
 
13961
  xorg_cv_cc_flag_unused_command_line_argument=no
 
13962
fi
 
13963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13964
fi
 
13965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
13966
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
13967
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
13968
        CFLAGS="$xorg_testset_save_CFLAGS"
 
13969
fi
 
13970
 
 
13971
found="no"
 
13972
 
 
13973
        if test $found = "no" ; then
 
13974
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
13975
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
13976
                fi
 
13977
 
 
13978
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
13979
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
13980
                fi
 
13981
 
 
13982
                CFLAGS="$CFLAGS -Wredundant-decls"
 
13983
 
 
13984
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
 
13985
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
 
13986
                cacheid=xorg_cv_cc_flag__Wredundant_decls
 
13987
                if eval \${$cacheid+:} false; then :
 
13988
  $as_echo_n "(cached) " >&6
 
13989
else
 
13990
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13991
/* end confdefs.h.  */
 
13992
int i;
 
13993
int
 
13994
main ()
 
13995
{
 
13996
 
 
13997
  ;
 
13998
  return 0;
 
13999
}
 
14000
_ACEOF
 
14001
if ac_fn_c_try_link "$LINENO"; then :
 
14002
  eval $cacheid=yes
 
14003
else
 
14004
  eval $cacheid=no
 
14005
fi
 
14006
rm -f core conftest.err conftest.$ac_objext \
 
14007
    conftest$ac_exeext conftest.$ac_ext
 
14008
fi
 
14009
 
 
14010
 
 
14011
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14012
 
 
14013
                eval supported=\$$cacheid
 
14014
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14015
$as_echo "$supported" >&6; }
 
14016
                if test "$supported" = "yes" ; then
 
14017
                        BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
 
14018
                        found="yes"
 
14019
                fi
 
14020
        fi
 
14021
 
 
14022
 
 
14023
 
 
14024
 
 
14025
 
 
14026
 
 
14027
 
 
14028
 
 
14029
 
 
14030
 
 
14031
 
 
14032
 
 
14033
 
 
14034
 
 
14035
 
 
14036
xorg_testset_save_CFLAGS="$CFLAGS"
 
14037
 
 
14038
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14039
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14040
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14041
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14042
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14043
  $as_echo_n "(cached) " >&6
 
14044
else
 
14045
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14046
/* end confdefs.h.  */
 
14047
int i;
 
14048
_ACEOF
 
14049
if ac_fn_c_try_compile "$LINENO"; then :
 
14050
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14051
else
 
14052
  xorg_cv_cc_flag_unknown_warning_option=no
 
14053
fi
 
14054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14055
fi
 
14056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14057
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14058
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14059
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14060
fi
 
14061
 
 
14062
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14063
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14064
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14065
        fi
 
14066
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14067
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14068
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14069
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14070
  $as_echo_n "(cached) " >&6
 
14071
else
 
14072
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14073
/* end confdefs.h.  */
 
14074
int i;
 
14075
_ACEOF
 
14076
if ac_fn_c_try_compile "$LINENO"; then :
 
14077
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14078
else
 
14079
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14080
fi
 
14081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14082
fi
 
14083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14084
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14085
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14086
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14087
fi
 
14088
 
 
14089
found="no"
 
14090
 
 
14091
        if test $found = "no" ; then
 
14092
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14093
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14094
                fi
 
14095
 
 
14096
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14097
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14098
                fi
 
14099
 
 
14100
                CFLAGS="$CFLAGS -Wlogical-op"
 
14101
 
 
14102
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
 
14103
$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
 
14104
                cacheid=xorg_cv_cc_flag__Wlogical_op
 
14105
                if eval \${$cacheid+:} false; then :
 
14106
  $as_echo_n "(cached) " >&6
 
14107
else
 
14108
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14109
/* end confdefs.h.  */
 
14110
int i;
 
14111
int
 
14112
main ()
 
14113
{
 
14114
 
 
14115
  ;
 
14116
  return 0;
 
14117
}
 
14118
_ACEOF
 
14119
if ac_fn_c_try_link "$LINENO"; then :
 
14120
  eval $cacheid=yes
 
14121
else
 
14122
  eval $cacheid=no
 
14123
fi
 
14124
rm -f core conftest.err conftest.$ac_objext \
 
14125
    conftest$ac_exeext conftest.$ac_ext
 
14126
fi
 
14127
 
 
14128
 
 
14129
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14130
 
 
14131
                eval supported=\$$cacheid
 
14132
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14133
$as_echo "$supported" >&6; }
 
14134
                if test "$supported" = "yes" ; then
 
14135
                        BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
 
14136
                        found="yes"
 
14137
                fi
 
14138
        fi
 
14139
 
 
14140
 
 
14141
 
 
14142
# These are currently disabled because they are noisy.  They will be enabled
 
14143
# in the future once the codebase is sufficiently modernized to silence
 
14144
# them.  For now, I don't want them to drown out the other warnings.
 
14145
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
 
14146
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 
14147
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
 
14148
 
 
14149
# Turn some warnings into errors, so we don't accidently get successful builds
 
14150
# when there are problems that should be fixed.
 
14151
 
 
14152
if test "x$SELECTIVE_WERROR" = "xyes" ; then
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
 
 
14163
 
 
14164
 
 
14165
 
 
14166
xorg_testset_save_CFLAGS="$CFLAGS"
 
14167
 
 
14168
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14169
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14170
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14171
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14172
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14173
  $as_echo_n "(cached) " >&6
 
14174
else
 
14175
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14176
/* end confdefs.h.  */
 
14177
int i;
 
14178
_ACEOF
 
14179
if ac_fn_c_try_compile "$LINENO"; then :
 
14180
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14181
else
 
14182
  xorg_cv_cc_flag_unknown_warning_option=no
 
14183
fi
 
14184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14185
fi
 
14186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14187
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14188
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14189
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14190
fi
 
14191
 
 
14192
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14193
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14194
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14195
        fi
 
14196
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14197
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14198
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14199
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14200
  $as_echo_n "(cached) " >&6
 
14201
else
 
14202
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14203
/* end confdefs.h.  */
 
14204
int i;
 
14205
_ACEOF
 
14206
if ac_fn_c_try_compile "$LINENO"; then :
 
14207
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14208
else
 
14209
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14210
fi
 
14211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14212
fi
 
14213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14214
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14215
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14216
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14217
fi
 
14218
 
 
14219
found="no"
 
14220
 
 
14221
        if test $found = "no" ; then
 
14222
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14223
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14224
                fi
 
14225
 
 
14226
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14227
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14228
                fi
 
14229
 
 
14230
                CFLAGS="$CFLAGS -Werror=implicit"
 
14231
 
 
14232
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
 
14233
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
 
14234
                cacheid=xorg_cv_cc_flag__Werror_implicit
 
14235
                if eval \${$cacheid+:} false; then :
 
14236
  $as_echo_n "(cached) " >&6
 
14237
else
 
14238
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14239
/* end confdefs.h.  */
 
14240
int i;
 
14241
int
 
14242
main ()
 
14243
{
 
14244
 
 
14245
  ;
 
14246
  return 0;
 
14247
}
 
14248
_ACEOF
 
14249
if ac_fn_c_try_link "$LINENO"; then :
 
14250
  eval $cacheid=yes
 
14251
else
 
14252
  eval $cacheid=no
 
14253
fi
 
14254
rm -f core conftest.err conftest.$ac_objext \
 
14255
    conftest$ac_exeext conftest.$ac_ext
 
14256
fi
 
14257
 
 
14258
 
 
14259
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14260
 
 
14261
                eval supported=\$$cacheid
 
14262
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14263
$as_echo "$supported" >&6; }
 
14264
                if test "$supported" = "yes" ; then
 
14265
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
 
14266
                        found="yes"
 
14267
                fi
 
14268
        fi
 
14269
 
 
14270
        if test $found = "no" ; then
 
14271
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14272
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14273
                fi
 
14274
 
 
14275
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14276
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14277
                fi
 
14278
 
 
14279
                CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
14280
 
 
14281
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
 
14282
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
 
14283
                cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
 
14284
                if eval \${$cacheid+:} false; then :
 
14285
  $as_echo_n "(cached) " >&6
 
14286
else
 
14287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14288
/* end confdefs.h.  */
 
14289
int i;
 
14290
int
 
14291
main ()
 
14292
{
 
14293
 
 
14294
  ;
 
14295
  return 0;
 
14296
}
 
14297
_ACEOF
 
14298
if ac_fn_c_try_link "$LINENO"; then :
 
14299
  eval $cacheid=yes
 
14300
else
 
14301
  eval $cacheid=no
 
14302
fi
 
14303
rm -f core conftest.err conftest.$ac_objext \
 
14304
    conftest$ac_exeext conftest.$ac_ext
 
14305
fi
 
14306
 
 
14307
 
 
14308
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14309
 
 
14310
                eval supported=\$$cacheid
 
14311
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14312
$as_echo "$supported" >&6; }
 
14313
                if test "$supported" = "yes" ; then
 
14314
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
 
14315
                        found="yes"
 
14316
                fi
 
14317
        fi
 
14318
 
 
14319
 
 
14320
 
 
14321
 
 
14322
 
 
14323
 
 
14324
 
 
14325
 
 
14326
 
 
14327
 
 
14328
 
 
14329
 
 
14330
 
 
14331
 
 
14332
 
 
14333
xorg_testset_save_CFLAGS="$CFLAGS"
 
14334
 
 
14335
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14336
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14337
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14338
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14339
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14340
  $as_echo_n "(cached) " >&6
 
14341
else
 
14342
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14343
/* end confdefs.h.  */
 
14344
int i;
 
14345
_ACEOF
 
14346
if ac_fn_c_try_compile "$LINENO"; then :
 
14347
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14348
else
 
14349
  xorg_cv_cc_flag_unknown_warning_option=no
 
14350
fi
 
14351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14352
fi
 
14353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14354
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14355
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14356
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14357
fi
 
14358
 
 
14359
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14360
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14361
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14362
        fi
 
14363
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14364
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14365
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14366
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14367
  $as_echo_n "(cached) " >&6
 
14368
else
 
14369
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14370
/* end confdefs.h.  */
 
14371
int i;
 
14372
_ACEOF
 
14373
if ac_fn_c_try_compile "$LINENO"; then :
 
14374
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14375
else
 
14376
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14377
fi
 
14378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14379
fi
 
14380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14381
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14382
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14383
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14384
fi
 
14385
 
 
14386
found="no"
 
14387
 
 
14388
        if test $found = "no" ; then
 
14389
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14390
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14391
                fi
 
14392
 
 
14393
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14394
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14395
                fi
 
14396
 
 
14397
                CFLAGS="$CFLAGS -Werror=nonnull"
 
14398
 
 
14399
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
 
14400
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
 
14401
                cacheid=xorg_cv_cc_flag__Werror_nonnull
 
14402
                if eval \${$cacheid+:} false; then :
 
14403
  $as_echo_n "(cached) " >&6
 
14404
else
 
14405
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14406
/* end confdefs.h.  */
 
14407
int i;
 
14408
int
 
14409
main ()
 
14410
{
 
14411
 
 
14412
  ;
 
14413
  return 0;
 
14414
}
 
14415
_ACEOF
 
14416
if ac_fn_c_try_link "$LINENO"; then :
 
14417
  eval $cacheid=yes
 
14418
else
 
14419
  eval $cacheid=no
 
14420
fi
 
14421
rm -f core conftest.err conftest.$ac_objext \
 
14422
    conftest$ac_exeext conftest.$ac_ext
 
14423
fi
 
14424
 
 
14425
 
 
14426
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14427
 
 
14428
                eval supported=\$$cacheid
 
14429
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14430
$as_echo "$supported" >&6; }
 
14431
                if test "$supported" = "yes" ; then
 
14432
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
 
14433
                        found="yes"
 
14434
                fi
 
14435
        fi
 
14436
 
 
14437
 
 
14438
 
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
 
 
14444
 
 
14445
 
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
 
 
14451
xorg_testset_save_CFLAGS="$CFLAGS"
 
14452
 
 
14453
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14454
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14455
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14456
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14457
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14458
  $as_echo_n "(cached) " >&6
 
14459
else
 
14460
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14461
/* end confdefs.h.  */
 
14462
int i;
 
14463
_ACEOF
 
14464
if ac_fn_c_try_compile "$LINENO"; then :
 
14465
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14466
else
 
14467
  xorg_cv_cc_flag_unknown_warning_option=no
 
14468
fi
 
14469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14470
fi
 
14471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14472
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14473
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14474
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14475
fi
 
14476
 
 
14477
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14478
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14479
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14480
        fi
 
14481
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14482
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14483
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14484
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14485
  $as_echo_n "(cached) " >&6
 
14486
else
 
14487
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14488
/* end confdefs.h.  */
 
14489
int i;
 
14490
_ACEOF
 
14491
if ac_fn_c_try_compile "$LINENO"; then :
 
14492
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14493
else
 
14494
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14495
fi
 
14496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14497
fi
 
14498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14499
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14500
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14501
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14502
fi
 
14503
 
 
14504
found="no"
 
14505
 
 
14506
        if test $found = "no" ; then
 
14507
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14508
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14509
                fi
 
14510
 
 
14511
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14512
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14513
                fi
 
14514
 
 
14515
                CFLAGS="$CFLAGS -Werror=init-self"
 
14516
 
 
14517
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
 
14518
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
 
14519
                cacheid=xorg_cv_cc_flag__Werror_init_self
 
14520
                if eval \${$cacheid+:} false; then :
 
14521
  $as_echo_n "(cached) " >&6
 
14522
else
 
14523
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14524
/* end confdefs.h.  */
 
14525
int i;
 
14526
int
 
14527
main ()
 
14528
{
 
14529
 
 
14530
  ;
 
14531
  return 0;
 
14532
}
 
14533
_ACEOF
 
14534
if ac_fn_c_try_link "$LINENO"; then :
 
14535
  eval $cacheid=yes
 
14536
else
 
14537
  eval $cacheid=no
 
14538
fi
 
14539
rm -f core conftest.err conftest.$ac_objext \
 
14540
    conftest$ac_exeext conftest.$ac_ext
 
14541
fi
 
14542
 
 
14543
 
 
14544
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14545
 
 
14546
                eval supported=\$$cacheid
 
14547
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14548
$as_echo "$supported" >&6; }
 
14549
                if test "$supported" = "yes" ; then
 
14550
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
 
14551
                        found="yes"
 
14552
                fi
 
14553
        fi
 
14554
 
 
14555
 
 
14556
 
 
14557
 
 
14558
 
 
14559
 
 
14560
 
 
14561
 
 
14562
 
 
14563
 
 
14564
 
 
14565
 
 
14566
 
 
14567
 
 
14568
 
 
14569
xorg_testset_save_CFLAGS="$CFLAGS"
 
14570
 
 
14571
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14572
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14573
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14574
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14575
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14576
  $as_echo_n "(cached) " >&6
 
14577
else
 
14578
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14579
/* end confdefs.h.  */
 
14580
int i;
 
14581
_ACEOF
 
14582
if ac_fn_c_try_compile "$LINENO"; then :
 
14583
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14584
else
 
14585
  xorg_cv_cc_flag_unknown_warning_option=no
 
14586
fi
 
14587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14588
fi
 
14589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14590
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14591
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14592
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14593
fi
 
14594
 
 
14595
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14596
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14597
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14598
        fi
 
14599
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14600
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14601
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14602
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14603
  $as_echo_n "(cached) " >&6
 
14604
else
 
14605
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14606
/* end confdefs.h.  */
 
14607
int i;
 
14608
_ACEOF
 
14609
if ac_fn_c_try_compile "$LINENO"; then :
 
14610
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14611
else
 
14612
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14613
fi
 
14614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14615
fi
 
14616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14617
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14618
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14619
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14620
fi
 
14621
 
 
14622
found="no"
 
14623
 
 
14624
        if test $found = "no" ; then
 
14625
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14626
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14627
                fi
 
14628
 
 
14629
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14630
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14631
                fi
 
14632
 
 
14633
                CFLAGS="$CFLAGS -Werror=main"
 
14634
 
 
14635
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
 
14636
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
 
14637
                cacheid=xorg_cv_cc_flag__Werror_main
 
14638
                if eval \${$cacheid+:} false; then :
 
14639
  $as_echo_n "(cached) " >&6
 
14640
else
 
14641
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14642
/* end confdefs.h.  */
 
14643
int i;
 
14644
int
 
14645
main ()
 
14646
{
 
14647
 
 
14648
  ;
 
14649
  return 0;
 
14650
}
 
14651
_ACEOF
 
14652
if ac_fn_c_try_link "$LINENO"; then :
 
14653
  eval $cacheid=yes
 
14654
else
 
14655
  eval $cacheid=no
 
14656
fi
 
14657
rm -f core conftest.err conftest.$ac_objext \
 
14658
    conftest$ac_exeext conftest.$ac_ext
 
14659
fi
 
14660
 
 
14661
 
 
14662
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14663
 
 
14664
                eval supported=\$$cacheid
 
14665
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14666
$as_echo "$supported" >&6; }
 
14667
                if test "$supported" = "yes" ; then
 
14668
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
 
14669
                        found="yes"
 
14670
                fi
 
14671
        fi
 
14672
 
 
14673
 
 
14674
 
 
14675
 
 
14676
 
 
14677
 
 
14678
 
 
14679
 
 
14680
 
 
14681
 
 
14682
 
 
14683
 
 
14684
 
 
14685
 
 
14686
 
 
14687
xorg_testset_save_CFLAGS="$CFLAGS"
 
14688
 
 
14689
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14690
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14691
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14692
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14693
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14694
  $as_echo_n "(cached) " >&6
 
14695
else
 
14696
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14697
/* end confdefs.h.  */
 
14698
int i;
 
14699
_ACEOF
 
14700
if ac_fn_c_try_compile "$LINENO"; then :
 
14701
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14702
else
 
14703
  xorg_cv_cc_flag_unknown_warning_option=no
 
14704
fi
 
14705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14706
fi
 
14707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14708
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14709
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14710
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14711
fi
 
14712
 
 
14713
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14714
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14715
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14716
        fi
 
14717
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14718
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14719
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14720
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14721
  $as_echo_n "(cached) " >&6
 
14722
else
 
14723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14724
/* end confdefs.h.  */
 
14725
int i;
 
14726
_ACEOF
 
14727
if ac_fn_c_try_compile "$LINENO"; then :
 
14728
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14729
else
 
14730
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14731
fi
 
14732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14733
fi
 
14734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14735
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14736
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14737
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14738
fi
 
14739
 
 
14740
found="no"
 
14741
 
 
14742
        if test $found = "no" ; then
 
14743
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14744
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14745
                fi
 
14746
 
 
14747
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14748
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14749
                fi
 
14750
 
 
14751
                CFLAGS="$CFLAGS -Werror=missing-braces"
 
14752
 
 
14753
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
 
14754
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
 
14755
                cacheid=xorg_cv_cc_flag__Werror_missing_braces
 
14756
                if eval \${$cacheid+:} false; then :
 
14757
  $as_echo_n "(cached) " >&6
 
14758
else
 
14759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14760
/* end confdefs.h.  */
 
14761
int i;
 
14762
int
 
14763
main ()
 
14764
{
 
14765
 
 
14766
  ;
 
14767
  return 0;
 
14768
}
 
14769
_ACEOF
 
14770
if ac_fn_c_try_link "$LINENO"; then :
 
14771
  eval $cacheid=yes
 
14772
else
 
14773
  eval $cacheid=no
 
14774
fi
 
14775
rm -f core conftest.err conftest.$ac_objext \
 
14776
    conftest$ac_exeext conftest.$ac_ext
 
14777
fi
 
14778
 
 
14779
 
 
14780
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14781
 
 
14782
                eval supported=\$$cacheid
 
14783
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14784
$as_echo "$supported" >&6; }
 
14785
                if test "$supported" = "yes" ; then
 
14786
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
 
14787
                        found="yes"
 
14788
                fi
 
14789
        fi
 
14790
 
 
14791
 
 
14792
 
 
14793
 
 
14794
 
 
14795
 
 
14796
 
 
14797
 
 
14798
 
 
14799
 
 
14800
 
 
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
xorg_testset_save_CFLAGS="$CFLAGS"
 
14806
 
 
14807
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14808
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14809
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14810
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14811
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14812
  $as_echo_n "(cached) " >&6
 
14813
else
 
14814
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14815
/* end confdefs.h.  */
 
14816
int i;
 
14817
_ACEOF
 
14818
if ac_fn_c_try_compile "$LINENO"; then :
 
14819
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14820
else
 
14821
  xorg_cv_cc_flag_unknown_warning_option=no
 
14822
fi
 
14823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14824
fi
 
14825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14826
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14827
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14828
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14829
fi
 
14830
 
 
14831
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14832
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14833
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14834
        fi
 
14835
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14836
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14837
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14838
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14839
  $as_echo_n "(cached) " >&6
 
14840
else
 
14841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14842
/* end confdefs.h.  */
 
14843
int i;
 
14844
_ACEOF
 
14845
if ac_fn_c_try_compile "$LINENO"; then :
 
14846
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14847
else
 
14848
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14849
fi
 
14850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14851
fi
 
14852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14853
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14854
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14855
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14856
fi
 
14857
 
 
14858
found="no"
 
14859
 
 
14860
        if test $found = "no" ; then
 
14861
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14862
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14863
                fi
 
14864
 
 
14865
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14866
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14867
                fi
 
14868
 
 
14869
                CFLAGS="$CFLAGS -Werror=sequence-point"
 
14870
 
 
14871
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
 
14872
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
 
14873
                cacheid=xorg_cv_cc_flag__Werror_sequence_point
 
14874
                if eval \${$cacheid+:} false; then :
 
14875
  $as_echo_n "(cached) " >&6
 
14876
else
 
14877
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14878
/* end confdefs.h.  */
 
14879
int i;
 
14880
int
 
14881
main ()
 
14882
{
 
14883
 
 
14884
  ;
 
14885
  return 0;
 
14886
}
 
14887
_ACEOF
 
14888
if ac_fn_c_try_link "$LINENO"; then :
 
14889
  eval $cacheid=yes
 
14890
else
 
14891
  eval $cacheid=no
 
14892
fi
 
14893
rm -f core conftest.err conftest.$ac_objext \
 
14894
    conftest$ac_exeext conftest.$ac_ext
 
14895
fi
 
14896
 
 
14897
 
 
14898
                CFLAGS="$xorg_testset_save_CFLAGS"
 
14899
 
 
14900
                eval supported=\$$cacheid
 
14901
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
14902
$as_echo "$supported" >&6; }
 
14903
                if test "$supported" = "yes" ; then
 
14904
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
 
14905
                        found="yes"
 
14906
                fi
 
14907
        fi
 
14908
 
 
14909
 
 
14910
 
 
14911
 
 
14912
 
 
14913
 
 
14914
 
 
14915
 
 
14916
 
 
14917
 
 
14918
 
 
14919
 
 
14920
 
 
14921
 
 
14922
 
 
14923
xorg_testset_save_CFLAGS="$CFLAGS"
 
14924
 
 
14925
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
14926
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14927
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
14928
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
14929
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
14930
  $as_echo_n "(cached) " >&6
 
14931
else
 
14932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14933
/* end confdefs.h.  */
 
14934
int i;
 
14935
_ACEOF
 
14936
if ac_fn_c_try_compile "$LINENO"; then :
 
14937
  xorg_cv_cc_flag_unknown_warning_option=yes
 
14938
else
 
14939
  xorg_cv_cc_flag_unknown_warning_option=no
 
14940
fi
 
14941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14942
fi
 
14943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
14944
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
14945
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
14946
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14947
fi
 
14948
 
 
14949
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
14950
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14951
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14952
        fi
 
14953
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14954
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
14955
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
14956
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
14957
  $as_echo_n "(cached) " >&6
 
14958
else
 
14959
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14960
/* end confdefs.h.  */
 
14961
int i;
 
14962
_ACEOF
 
14963
if ac_fn_c_try_compile "$LINENO"; then :
 
14964
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
14965
else
 
14966
  xorg_cv_cc_flag_unused_command_line_argument=no
 
14967
fi
 
14968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14969
fi
 
14970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
14971
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
14972
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
14973
        CFLAGS="$xorg_testset_save_CFLAGS"
 
14974
fi
 
14975
 
 
14976
found="no"
 
14977
 
 
14978
        if test $found = "no" ; then
 
14979
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
14980
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
14981
                fi
 
14982
 
 
14983
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
14984
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
14985
                fi
 
14986
 
 
14987
                CFLAGS="$CFLAGS -Werror=return-type"
 
14988
 
 
14989
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
 
14990
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
 
14991
                cacheid=xorg_cv_cc_flag__Werror_return_type
 
14992
                if eval \${$cacheid+:} false; then :
 
14993
  $as_echo_n "(cached) " >&6
 
14994
else
 
14995
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14996
/* end confdefs.h.  */
 
14997
int i;
 
14998
int
 
14999
main ()
 
15000
{
 
15001
 
 
15002
  ;
 
15003
  return 0;
 
15004
}
 
15005
_ACEOF
 
15006
if ac_fn_c_try_link "$LINENO"; then :
 
15007
  eval $cacheid=yes
 
15008
else
 
15009
  eval $cacheid=no
 
15010
fi
 
15011
rm -f core conftest.err conftest.$ac_objext \
 
15012
    conftest$ac_exeext conftest.$ac_ext
 
15013
fi
 
15014
 
 
15015
 
 
15016
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15017
 
 
15018
                eval supported=\$$cacheid
 
15019
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15020
$as_echo "$supported" >&6; }
 
15021
                if test "$supported" = "yes" ; then
 
15022
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
 
15023
                        found="yes"
 
15024
                fi
 
15025
        fi
 
15026
 
 
15027
        if test $found = "no" ; then
 
15028
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15029
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15030
                fi
 
15031
 
 
15032
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15033
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15034
                fi
 
15035
 
 
15036
                CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
15037
 
 
15038
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
 
15039
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
 
15040
                cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
 
15041
                if eval \${$cacheid+:} false; then :
 
15042
  $as_echo_n "(cached) " >&6
 
15043
else
 
15044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15045
/* end confdefs.h.  */
 
15046
int i;
 
15047
int
 
15048
main ()
 
15049
{
 
15050
 
 
15051
  ;
 
15052
  return 0;
 
15053
}
 
15054
_ACEOF
 
15055
if ac_fn_c_try_link "$LINENO"; then :
 
15056
  eval $cacheid=yes
 
15057
else
 
15058
  eval $cacheid=no
 
15059
fi
 
15060
rm -f core conftest.err conftest.$ac_objext \
 
15061
    conftest$ac_exeext conftest.$ac_ext
 
15062
fi
 
15063
 
 
15064
 
 
15065
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15066
 
 
15067
                eval supported=\$$cacheid
 
15068
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15069
$as_echo "$supported" >&6; }
 
15070
                if test "$supported" = "yes" ; then
 
15071
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
 
15072
                        found="yes"
 
15073
                fi
 
15074
        fi
 
15075
 
 
15076
 
 
15077
 
 
15078
 
 
15079
 
 
15080
 
 
15081
 
 
15082
 
 
15083
 
 
15084
 
 
15085
 
 
15086
 
 
15087
 
 
15088
 
 
15089
 
 
15090
xorg_testset_save_CFLAGS="$CFLAGS"
 
15091
 
 
15092
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15093
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15094
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15095
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15096
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15097
  $as_echo_n "(cached) " >&6
 
15098
else
 
15099
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15100
/* end confdefs.h.  */
 
15101
int i;
 
15102
_ACEOF
 
15103
if ac_fn_c_try_compile "$LINENO"; then :
 
15104
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15105
else
 
15106
  xorg_cv_cc_flag_unknown_warning_option=no
 
15107
fi
 
15108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15109
fi
 
15110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15111
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15112
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15113
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15114
fi
 
15115
 
 
15116
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15117
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15118
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15119
        fi
 
15120
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15121
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15122
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15123
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15124
  $as_echo_n "(cached) " >&6
 
15125
else
 
15126
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15127
/* end confdefs.h.  */
 
15128
int i;
 
15129
_ACEOF
 
15130
if ac_fn_c_try_compile "$LINENO"; then :
 
15131
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15132
else
 
15133
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15134
fi
 
15135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15136
fi
 
15137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15138
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15139
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15140
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15141
fi
 
15142
 
 
15143
found="no"
 
15144
 
 
15145
        if test $found = "no" ; then
 
15146
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15147
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15148
                fi
 
15149
 
 
15150
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15151
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15152
                fi
 
15153
 
 
15154
                CFLAGS="$CFLAGS -Werror=trigraphs"
 
15155
 
 
15156
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
 
15157
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
 
15158
                cacheid=xorg_cv_cc_flag__Werror_trigraphs
 
15159
                if eval \${$cacheid+:} false; then :
 
15160
  $as_echo_n "(cached) " >&6
 
15161
else
 
15162
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15163
/* end confdefs.h.  */
 
15164
int i;
 
15165
int
 
15166
main ()
 
15167
{
 
15168
 
 
15169
  ;
 
15170
  return 0;
 
15171
}
 
15172
_ACEOF
 
15173
if ac_fn_c_try_link "$LINENO"; then :
 
15174
  eval $cacheid=yes
 
15175
else
 
15176
  eval $cacheid=no
 
15177
fi
 
15178
rm -f core conftest.err conftest.$ac_objext \
 
15179
    conftest$ac_exeext conftest.$ac_ext
 
15180
fi
 
15181
 
 
15182
 
 
15183
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15184
 
 
15185
                eval supported=\$$cacheid
 
15186
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15187
$as_echo "$supported" >&6; }
 
15188
                if test "$supported" = "yes" ; then
 
15189
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
 
15190
                        found="yes"
 
15191
                fi
 
15192
        fi
 
15193
 
 
15194
 
 
15195
 
 
15196
 
 
15197
 
 
15198
 
 
15199
 
 
15200
 
 
15201
 
 
15202
 
 
15203
 
 
15204
 
 
15205
 
 
15206
 
 
15207
 
 
15208
xorg_testset_save_CFLAGS="$CFLAGS"
 
15209
 
 
15210
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15211
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15212
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15213
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15214
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15215
  $as_echo_n "(cached) " >&6
 
15216
else
 
15217
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15218
/* end confdefs.h.  */
 
15219
int i;
 
15220
_ACEOF
 
15221
if ac_fn_c_try_compile "$LINENO"; then :
 
15222
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15223
else
 
15224
  xorg_cv_cc_flag_unknown_warning_option=no
 
15225
fi
 
15226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15227
fi
 
15228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15229
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15230
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15231
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15232
fi
 
15233
 
 
15234
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15235
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15236
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15237
        fi
 
15238
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15239
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15240
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15241
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15242
  $as_echo_n "(cached) " >&6
 
15243
else
 
15244
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15245
/* end confdefs.h.  */
 
15246
int i;
 
15247
_ACEOF
 
15248
if ac_fn_c_try_compile "$LINENO"; then :
 
15249
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15250
else
 
15251
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15252
fi
 
15253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15254
fi
 
15255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15256
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15257
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15258
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15259
fi
 
15260
 
 
15261
found="no"
 
15262
 
 
15263
        if test $found = "no" ; then
 
15264
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15265
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15266
                fi
 
15267
 
 
15268
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15269
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15270
                fi
 
15271
 
 
15272
                CFLAGS="$CFLAGS -Werror=array-bounds"
 
15273
 
 
15274
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
 
15275
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
 
15276
                cacheid=xorg_cv_cc_flag__Werror_array_bounds
 
15277
                if eval \${$cacheid+:} false; then :
 
15278
  $as_echo_n "(cached) " >&6
 
15279
else
 
15280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15281
/* end confdefs.h.  */
 
15282
int i;
 
15283
int
 
15284
main ()
 
15285
{
 
15286
 
 
15287
  ;
 
15288
  return 0;
 
15289
}
 
15290
_ACEOF
 
15291
if ac_fn_c_try_link "$LINENO"; then :
 
15292
  eval $cacheid=yes
 
15293
else
 
15294
  eval $cacheid=no
 
15295
fi
 
15296
rm -f core conftest.err conftest.$ac_objext \
 
15297
    conftest$ac_exeext conftest.$ac_ext
 
15298
fi
 
15299
 
 
15300
 
 
15301
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15302
 
 
15303
                eval supported=\$$cacheid
 
15304
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15305
$as_echo "$supported" >&6; }
 
15306
                if test "$supported" = "yes" ; then
 
15307
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
 
15308
                        found="yes"
 
15309
                fi
 
15310
        fi
 
15311
 
 
15312
 
 
15313
 
 
15314
 
 
15315
 
 
15316
 
 
15317
 
 
15318
 
 
15319
 
 
15320
 
 
15321
 
 
15322
 
 
15323
 
 
15324
 
 
15325
 
 
15326
xorg_testset_save_CFLAGS="$CFLAGS"
 
15327
 
 
15328
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15329
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15330
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15331
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15332
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15333
  $as_echo_n "(cached) " >&6
 
15334
else
 
15335
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15336
/* end confdefs.h.  */
 
15337
int i;
 
15338
_ACEOF
 
15339
if ac_fn_c_try_compile "$LINENO"; then :
 
15340
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15341
else
 
15342
  xorg_cv_cc_flag_unknown_warning_option=no
 
15343
fi
 
15344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15345
fi
 
15346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15347
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15348
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15349
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15350
fi
 
15351
 
 
15352
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15353
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15354
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15355
        fi
 
15356
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15357
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15358
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15359
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15360
  $as_echo_n "(cached) " >&6
 
15361
else
 
15362
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15363
/* end confdefs.h.  */
 
15364
int i;
 
15365
_ACEOF
 
15366
if ac_fn_c_try_compile "$LINENO"; then :
 
15367
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15368
else
 
15369
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15370
fi
 
15371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15372
fi
 
15373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15374
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15375
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15376
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15377
fi
 
15378
 
 
15379
found="no"
 
15380
 
 
15381
        if test $found = "no" ; then
 
15382
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15383
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15384
                fi
 
15385
 
 
15386
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15387
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15388
                fi
 
15389
 
 
15390
                CFLAGS="$CFLAGS -Werror=write-strings"
 
15391
 
 
15392
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
 
15393
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
 
15394
                cacheid=xorg_cv_cc_flag__Werror_write_strings
 
15395
                if eval \${$cacheid+:} false; then :
 
15396
  $as_echo_n "(cached) " >&6
 
15397
else
 
15398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15399
/* end confdefs.h.  */
 
15400
int i;
 
15401
int
 
15402
main ()
 
15403
{
 
15404
 
 
15405
  ;
 
15406
  return 0;
 
15407
}
 
15408
_ACEOF
 
15409
if ac_fn_c_try_link "$LINENO"; then :
 
15410
  eval $cacheid=yes
 
15411
else
 
15412
  eval $cacheid=no
 
15413
fi
 
15414
rm -f core conftest.err conftest.$ac_objext \
 
15415
    conftest$ac_exeext conftest.$ac_ext
 
15416
fi
 
15417
 
 
15418
 
 
15419
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15420
 
 
15421
                eval supported=\$$cacheid
 
15422
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15423
$as_echo "$supported" >&6; }
 
15424
                if test "$supported" = "yes" ; then
 
15425
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
 
15426
                        found="yes"
 
15427
                fi
 
15428
        fi
 
15429
 
 
15430
 
 
15431
 
 
15432
 
 
15433
 
 
15434
 
 
15435
 
 
15436
 
 
15437
 
 
15438
 
 
15439
 
 
15440
 
 
15441
 
 
15442
 
 
15443
 
 
15444
xorg_testset_save_CFLAGS="$CFLAGS"
 
15445
 
 
15446
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15447
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15448
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15449
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15450
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15451
  $as_echo_n "(cached) " >&6
 
15452
else
 
15453
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15454
/* end confdefs.h.  */
 
15455
int i;
 
15456
_ACEOF
 
15457
if ac_fn_c_try_compile "$LINENO"; then :
 
15458
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15459
else
 
15460
  xorg_cv_cc_flag_unknown_warning_option=no
 
15461
fi
 
15462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15463
fi
 
15464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15465
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15466
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15467
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15468
fi
 
15469
 
 
15470
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15471
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15472
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15473
        fi
 
15474
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15475
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15476
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15477
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15478
  $as_echo_n "(cached) " >&6
 
15479
else
 
15480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15481
/* end confdefs.h.  */
 
15482
int i;
 
15483
_ACEOF
 
15484
if ac_fn_c_try_compile "$LINENO"; then :
 
15485
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15486
else
 
15487
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15488
fi
 
15489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15490
fi
 
15491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15492
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15493
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15494
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15495
fi
 
15496
 
 
15497
found="no"
 
15498
 
 
15499
        if test $found = "no" ; then
 
15500
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15501
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15502
                fi
 
15503
 
 
15504
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15505
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15506
                fi
 
15507
 
 
15508
                CFLAGS="$CFLAGS -Werror=address"
 
15509
 
 
15510
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
 
15511
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
 
15512
                cacheid=xorg_cv_cc_flag__Werror_address
 
15513
                if eval \${$cacheid+:} false; then :
 
15514
  $as_echo_n "(cached) " >&6
 
15515
else
 
15516
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15517
/* end confdefs.h.  */
 
15518
int i;
 
15519
int
 
15520
main ()
 
15521
{
 
15522
 
 
15523
  ;
 
15524
  return 0;
 
15525
}
 
15526
_ACEOF
 
15527
if ac_fn_c_try_link "$LINENO"; then :
 
15528
  eval $cacheid=yes
 
15529
else
 
15530
  eval $cacheid=no
 
15531
fi
 
15532
rm -f core conftest.err conftest.$ac_objext \
 
15533
    conftest$ac_exeext conftest.$ac_ext
 
15534
fi
 
15535
 
 
15536
 
 
15537
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15538
 
 
15539
                eval supported=\$$cacheid
 
15540
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15541
$as_echo "$supported" >&6; }
 
15542
                if test "$supported" = "yes" ; then
 
15543
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
 
15544
                        found="yes"
 
15545
                fi
 
15546
        fi
 
15547
 
 
15548
 
 
15549
 
 
15550
 
 
15551
 
 
15552
 
 
15553
 
 
15554
 
 
15555
 
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
 
15562
xorg_testset_save_CFLAGS="$CFLAGS"
 
15563
 
 
15564
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15565
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15566
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15567
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15568
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15569
  $as_echo_n "(cached) " >&6
 
15570
else
 
15571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15572
/* end confdefs.h.  */
 
15573
int i;
 
15574
_ACEOF
 
15575
if ac_fn_c_try_compile "$LINENO"; then :
 
15576
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15577
else
 
15578
  xorg_cv_cc_flag_unknown_warning_option=no
 
15579
fi
 
15580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15581
fi
 
15582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15583
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15584
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15585
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15586
fi
 
15587
 
 
15588
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15589
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15590
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15591
        fi
 
15592
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15593
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15594
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15595
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15596
  $as_echo_n "(cached) " >&6
 
15597
else
 
15598
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15599
/* end confdefs.h.  */
 
15600
int i;
 
15601
_ACEOF
 
15602
if ac_fn_c_try_compile "$LINENO"; then :
 
15603
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15604
else
 
15605
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15606
fi
 
15607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15608
fi
 
15609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15610
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15611
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15612
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15613
fi
 
15614
 
 
15615
found="no"
 
15616
 
 
15617
        if test $found = "no" ; then
 
15618
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15619
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15620
                fi
 
15621
 
 
15622
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15623
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15624
                fi
 
15625
 
 
15626
                CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
 
15627
 
 
15628
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
 
15629
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
 
15630
                cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
 
15631
                if eval \${$cacheid+:} false; then :
 
15632
  $as_echo_n "(cached) " >&6
 
15633
else
 
15634
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15635
/* end confdefs.h.  */
 
15636
int i;
 
15637
int
 
15638
main ()
 
15639
{
 
15640
 
 
15641
  ;
 
15642
  return 0;
 
15643
}
 
15644
_ACEOF
 
15645
if ac_fn_c_try_link "$LINENO"; then :
 
15646
  eval $cacheid=yes
 
15647
else
 
15648
  eval $cacheid=no
 
15649
fi
 
15650
rm -f core conftest.err conftest.$ac_objext \
 
15651
    conftest$ac_exeext conftest.$ac_ext
 
15652
fi
 
15653
 
 
15654
 
 
15655
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15656
 
 
15657
                eval supported=\$$cacheid
 
15658
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15659
$as_echo "$supported" >&6; }
 
15660
                if test "$supported" = "yes" ; then
 
15661
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
 
15662
                        found="yes"
 
15663
                fi
 
15664
        fi
 
15665
 
 
15666
        if test $found = "no" ; then
 
15667
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15668
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15669
                fi
 
15670
 
 
15671
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15672
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15673
                fi
 
15674
 
 
15675
                CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
15676
 
 
15677
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
 
15678
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
 
15679
                cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
 
15680
                if eval \${$cacheid+:} false; then :
 
15681
  $as_echo_n "(cached) " >&6
 
15682
else
 
15683
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15684
/* end confdefs.h.  */
 
15685
int i;
 
15686
int
 
15687
main ()
 
15688
{
 
15689
 
 
15690
  ;
 
15691
  return 0;
 
15692
}
 
15693
_ACEOF
 
15694
if ac_fn_c_try_link "$LINENO"; then :
 
15695
  eval $cacheid=yes
 
15696
else
 
15697
  eval $cacheid=no
 
15698
fi
 
15699
rm -f core conftest.err conftest.$ac_objext \
 
15700
    conftest$ac_exeext conftest.$ac_ext
 
15701
fi
 
15702
 
 
15703
 
 
15704
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15705
 
 
15706
                eval supported=\$$cacheid
 
15707
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15708
$as_echo "$supported" >&6; }
 
15709
                if test "$supported" = "yes" ; then
 
15710
                        BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
 
15711
                        found="yes"
 
15712
                fi
 
15713
        fi
 
15714
 
 
15715
 
 
15716
 
 
15717
 
 
15718
 
 
15719
 
 
15720
 
 
15721
 
 
15722
 
 
15723
 
 
15724
 
 
15725
 
 
15726
 
 
15727
 
 
15728
 
 
15729
xorg_testset_save_CFLAGS="$CFLAGS"
 
15730
 
 
15731
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15732
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15733
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15734
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15735
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15736
  $as_echo_n "(cached) " >&6
 
15737
else
 
15738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15739
/* end confdefs.h.  */
 
15740
int i;
 
15741
_ACEOF
 
15742
if ac_fn_c_try_compile "$LINENO"; then :
 
15743
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15744
else
 
15745
  xorg_cv_cc_flag_unknown_warning_option=no
 
15746
fi
 
15747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15748
fi
 
15749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15750
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15751
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15752
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15753
fi
 
15754
 
 
15755
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15756
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15757
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15758
        fi
 
15759
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15760
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15761
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15762
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15763
  $as_echo_n "(cached) " >&6
 
15764
else
 
15765
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15766
/* end confdefs.h.  */
 
15767
int i;
 
15768
_ACEOF
 
15769
if ac_fn_c_try_compile "$LINENO"; then :
 
15770
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15771
else
 
15772
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15773
fi
 
15774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15775
fi
 
15776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15777
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15778
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15779
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15780
fi
 
15781
 
 
15782
found="no"
 
15783
 
 
15784
        if test $found = "no" ; then
 
15785
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15786
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15787
                fi
 
15788
 
 
15789
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15790
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15791
                fi
 
15792
 
 
15793
                CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
 
15794
 
 
15795
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
 
15796
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
 
15797
                cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
 
15798
                if eval \${$cacheid+:} false; then :
 
15799
  $as_echo_n "(cached) " >&6
 
15800
else
 
15801
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15802
/* end confdefs.h.  */
 
15803
int i;
 
15804
int
 
15805
main ()
 
15806
{
 
15807
 
 
15808
  ;
 
15809
  return 0;
 
15810
}
 
15811
_ACEOF
 
15812
if ac_fn_c_try_link "$LINENO"; then :
 
15813
  eval $cacheid=yes
 
15814
else
 
15815
  eval $cacheid=no
 
15816
fi
 
15817
rm -f core conftest.err conftest.$ac_objext \
 
15818
    conftest$ac_exeext conftest.$ac_ext
 
15819
fi
 
15820
 
 
15821
 
 
15822
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15823
 
 
15824
                eval supported=\$$cacheid
 
15825
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15826
$as_echo "$supported" >&6; }
 
15827
                if test "$supported" = "yes" ; then
 
15828
                        BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
 
15829
                        found="yes"
 
15830
                fi
 
15831
        fi
 
15832
 
 
15833
 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
 
15834
else
 
15835
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
 
15836
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
 
15837
 
 
15838
 
 
15839
 
 
15840
 
 
15841
 
 
15842
 
 
15843
 
 
15844
 
 
15845
 
 
15846
 
 
15847
 
 
15848
 
 
15849
 
 
15850
xorg_testset_save_CFLAGS="$CFLAGS"
 
15851
 
 
15852
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15853
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15854
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15855
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15856
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15857
  $as_echo_n "(cached) " >&6
 
15858
else
 
15859
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15860
/* end confdefs.h.  */
 
15861
int i;
 
15862
_ACEOF
 
15863
if ac_fn_c_try_compile "$LINENO"; then :
 
15864
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15865
else
 
15866
  xorg_cv_cc_flag_unknown_warning_option=no
 
15867
fi
 
15868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15869
fi
 
15870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15871
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15872
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15873
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15874
fi
 
15875
 
 
15876
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15877
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15878
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15879
        fi
 
15880
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15881
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
15882
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
15883
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
15884
  $as_echo_n "(cached) " >&6
 
15885
else
 
15886
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15887
/* end confdefs.h.  */
 
15888
int i;
 
15889
_ACEOF
 
15890
if ac_fn_c_try_compile "$LINENO"; then :
 
15891
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
15892
else
 
15893
  xorg_cv_cc_flag_unused_command_line_argument=no
 
15894
fi
 
15895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15896
fi
 
15897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
15898
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
15899
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
15900
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15901
fi
 
15902
 
 
15903
found="no"
 
15904
 
 
15905
        if test $found = "no" ; then
 
15906
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15907
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15908
                fi
 
15909
 
 
15910
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
15911
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15912
                fi
 
15913
 
 
15914
                CFLAGS="$CFLAGS -Wimplicit"
 
15915
 
 
15916
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
 
15917
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
 
15918
                cacheid=xorg_cv_cc_flag__Wimplicit
 
15919
                if eval \${$cacheid+:} false; then :
 
15920
  $as_echo_n "(cached) " >&6
 
15921
else
 
15922
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15923
/* end confdefs.h.  */
 
15924
int i;
 
15925
int
 
15926
main ()
 
15927
{
 
15928
 
 
15929
  ;
 
15930
  return 0;
 
15931
}
 
15932
_ACEOF
 
15933
if ac_fn_c_try_link "$LINENO"; then :
 
15934
  eval $cacheid=yes
 
15935
else
 
15936
  eval $cacheid=no
 
15937
fi
 
15938
rm -f core conftest.err conftest.$ac_objext \
 
15939
    conftest$ac_exeext conftest.$ac_ext
 
15940
fi
 
15941
 
 
15942
 
 
15943
                CFLAGS="$xorg_testset_save_CFLAGS"
 
15944
 
 
15945
                eval supported=\$$cacheid
 
15946
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
15947
$as_echo "$supported" >&6; }
 
15948
                if test "$supported" = "yes" ; then
 
15949
                        BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
 
15950
                        found="yes"
 
15951
                fi
 
15952
        fi
 
15953
 
 
15954
 
 
15955
 
 
15956
 
 
15957
 
 
15958
 
 
15959
 
 
15960
 
 
15961
 
 
15962
 
 
15963
 
 
15964
 
 
15965
 
 
15966
 
 
15967
 
 
15968
xorg_testset_save_CFLAGS="$CFLAGS"
 
15969
 
 
15970
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
15971
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15972
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
15973
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
15974
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
15975
  $as_echo_n "(cached) " >&6
 
15976
else
 
15977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15978
/* end confdefs.h.  */
 
15979
int i;
 
15980
_ACEOF
 
15981
if ac_fn_c_try_compile "$LINENO"; then :
 
15982
  xorg_cv_cc_flag_unknown_warning_option=yes
 
15983
else
 
15984
  xorg_cv_cc_flag_unknown_warning_option=no
 
15985
fi
 
15986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15987
fi
 
15988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
15989
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
15990
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
15991
        CFLAGS="$xorg_testset_save_CFLAGS"
 
15992
fi
 
15993
 
 
15994
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
15995
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
15996
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
15997
        fi
 
15998
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
15999
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16000
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16001
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16002
  $as_echo_n "(cached) " >&6
 
16003
else
 
16004
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16005
/* end confdefs.h.  */
 
16006
int i;
 
16007
_ACEOF
 
16008
if ac_fn_c_try_compile "$LINENO"; then :
 
16009
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16010
else
 
16011
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16012
fi
 
16013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16014
fi
 
16015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16016
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16017
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16018
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16019
fi
 
16020
 
 
16021
found="no"
 
16022
 
 
16023
        if test $found = "no" ; then
 
16024
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16025
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16026
                fi
 
16027
 
 
16028
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16029
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16030
                fi
 
16031
 
 
16032
                CFLAGS="$CFLAGS -Wnonnull"
 
16033
 
 
16034
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
 
16035
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
 
16036
                cacheid=xorg_cv_cc_flag__Wnonnull
 
16037
                if eval \${$cacheid+:} false; then :
 
16038
  $as_echo_n "(cached) " >&6
 
16039
else
 
16040
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16041
/* end confdefs.h.  */
 
16042
int i;
 
16043
int
 
16044
main ()
 
16045
{
 
16046
 
 
16047
  ;
 
16048
  return 0;
 
16049
}
 
16050
_ACEOF
 
16051
if ac_fn_c_try_link "$LINENO"; then :
 
16052
  eval $cacheid=yes
 
16053
else
 
16054
  eval $cacheid=no
 
16055
fi
 
16056
rm -f core conftest.err conftest.$ac_objext \
 
16057
    conftest$ac_exeext conftest.$ac_ext
 
16058
fi
 
16059
 
 
16060
 
 
16061
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16062
 
 
16063
                eval supported=\$$cacheid
 
16064
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16065
$as_echo "$supported" >&6; }
 
16066
                if test "$supported" = "yes" ; then
 
16067
                        BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
 
16068
                        found="yes"
 
16069
                fi
 
16070
        fi
 
16071
 
 
16072
 
 
16073
 
 
16074
 
 
16075
 
 
16076
 
 
16077
 
 
16078
 
 
16079
 
 
16080
 
 
16081
 
 
16082
 
 
16083
 
 
16084
 
 
16085
 
 
16086
xorg_testset_save_CFLAGS="$CFLAGS"
 
16087
 
 
16088
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16089
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16090
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16091
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16092
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16093
  $as_echo_n "(cached) " >&6
 
16094
else
 
16095
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16096
/* end confdefs.h.  */
 
16097
int i;
 
16098
_ACEOF
 
16099
if ac_fn_c_try_compile "$LINENO"; then :
 
16100
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16101
else
 
16102
  xorg_cv_cc_flag_unknown_warning_option=no
 
16103
fi
 
16104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16105
fi
 
16106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16107
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16108
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16109
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16110
fi
 
16111
 
 
16112
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16113
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16114
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16115
        fi
 
16116
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16117
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16118
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16119
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16120
  $as_echo_n "(cached) " >&6
 
16121
else
 
16122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16123
/* end confdefs.h.  */
 
16124
int i;
 
16125
_ACEOF
 
16126
if ac_fn_c_try_compile "$LINENO"; then :
 
16127
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16128
else
 
16129
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16130
fi
 
16131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16132
fi
 
16133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16134
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16135
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16136
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16137
fi
 
16138
 
 
16139
found="no"
 
16140
 
 
16141
        if test $found = "no" ; then
 
16142
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16143
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16144
                fi
 
16145
 
 
16146
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16147
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16148
                fi
 
16149
 
 
16150
                CFLAGS="$CFLAGS -Winit-self"
 
16151
 
 
16152
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
 
16153
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
 
16154
                cacheid=xorg_cv_cc_flag__Winit_self
 
16155
                if eval \${$cacheid+:} false; then :
 
16156
  $as_echo_n "(cached) " >&6
 
16157
else
 
16158
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16159
/* end confdefs.h.  */
 
16160
int i;
 
16161
int
 
16162
main ()
 
16163
{
 
16164
 
 
16165
  ;
 
16166
  return 0;
 
16167
}
 
16168
_ACEOF
 
16169
if ac_fn_c_try_link "$LINENO"; then :
 
16170
  eval $cacheid=yes
 
16171
else
 
16172
  eval $cacheid=no
 
16173
fi
 
16174
rm -f core conftest.err conftest.$ac_objext \
 
16175
    conftest$ac_exeext conftest.$ac_ext
 
16176
fi
 
16177
 
 
16178
 
 
16179
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16180
 
 
16181
                eval supported=\$$cacheid
 
16182
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16183
$as_echo "$supported" >&6; }
 
16184
                if test "$supported" = "yes" ; then
 
16185
                        BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
 
16186
                        found="yes"
 
16187
                fi
 
16188
        fi
 
16189
 
 
16190
 
 
16191
 
 
16192
 
 
16193
 
 
16194
 
 
16195
 
 
16196
 
 
16197
 
 
16198
 
 
16199
 
 
16200
 
 
16201
 
 
16202
 
 
16203
 
 
16204
xorg_testset_save_CFLAGS="$CFLAGS"
 
16205
 
 
16206
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16207
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16208
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16209
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16210
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16211
  $as_echo_n "(cached) " >&6
 
16212
else
 
16213
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16214
/* end confdefs.h.  */
 
16215
int i;
 
16216
_ACEOF
 
16217
if ac_fn_c_try_compile "$LINENO"; then :
 
16218
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16219
else
 
16220
  xorg_cv_cc_flag_unknown_warning_option=no
 
16221
fi
 
16222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16223
fi
 
16224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16225
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16226
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16227
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16228
fi
 
16229
 
 
16230
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16231
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16232
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16233
        fi
 
16234
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16235
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16236
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16237
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16238
  $as_echo_n "(cached) " >&6
 
16239
else
 
16240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16241
/* end confdefs.h.  */
 
16242
int i;
 
16243
_ACEOF
 
16244
if ac_fn_c_try_compile "$LINENO"; then :
 
16245
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16246
else
 
16247
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16248
fi
 
16249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16250
fi
 
16251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16252
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16253
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16254
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16255
fi
 
16256
 
 
16257
found="no"
 
16258
 
 
16259
        if test $found = "no" ; then
 
16260
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16261
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16262
                fi
 
16263
 
 
16264
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16265
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16266
                fi
 
16267
 
 
16268
                CFLAGS="$CFLAGS -Wmain"
 
16269
 
 
16270
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
 
16271
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
 
16272
                cacheid=xorg_cv_cc_flag__Wmain
 
16273
                if eval \${$cacheid+:} false; then :
 
16274
  $as_echo_n "(cached) " >&6
 
16275
else
 
16276
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16277
/* end confdefs.h.  */
 
16278
int i;
 
16279
int
 
16280
main ()
 
16281
{
 
16282
 
 
16283
  ;
 
16284
  return 0;
 
16285
}
 
16286
_ACEOF
 
16287
if ac_fn_c_try_link "$LINENO"; then :
 
16288
  eval $cacheid=yes
 
16289
else
 
16290
  eval $cacheid=no
 
16291
fi
 
16292
rm -f core conftest.err conftest.$ac_objext \
 
16293
    conftest$ac_exeext conftest.$ac_ext
 
16294
fi
 
16295
 
 
16296
 
 
16297
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16298
 
 
16299
                eval supported=\$$cacheid
 
16300
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16301
$as_echo "$supported" >&6; }
 
16302
                if test "$supported" = "yes" ; then
 
16303
                        BASE_CFLAGS="$BASE_CFLAGS -Wmain"
 
16304
                        found="yes"
 
16305
                fi
 
16306
        fi
 
16307
 
 
16308
 
 
16309
 
 
16310
 
 
16311
 
 
16312
 
 
16313
 
 
16314
 
 
16315
 
 
16316
 
 
16317
 
 
16318
 
 
16319
 
 
16320
 
 
16321
 
 
16322
xorg_testset_save_CFLAGS="$CFLAGS"
 
16323
 
 
16324
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16325
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16326
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16327
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16328
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16329
  $as_echo_n "(cached) " >&6
 
16330
else
 
16331
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16332
/* end confdefs.h.  */
 
16333
int i;
 
16334
_ACEOF
 
16335
if ac_fn_c_try_compile "$LINENO"; then :
 
16336
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16337
else
 
16338
  xorg_cv_cc_flag_unknown_warning_option=no
 
16339
fi
 
16340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16341
fi
 
16342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16343
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16344
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16345
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16346
fi
 
16347
 
 
16348
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16349
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16350
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16351
        fi
 
16352
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16353
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16354
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16355
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16356
  $as_echo_n "(cached) " >&6
 
16357
else
 
16358
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16359
/* end confdefs.h.  */
 
16360
int i;
 
16361
_ACEOF
 
16362
if ac_fn_c_try_compile "$LINENO"; then :
 
16363
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16364
else
 
16365
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16366
fi
 
16367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16368
fi
 
16369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16370
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16371
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16372
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16373
fi
 
16374
 
 
16375
found="no"
 
16376
 
 
16377
        if test $found = "no" ; then
 
16378
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16379
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16380
                fi
 
16381
 
 
16382
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16383
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16384
                fi
 
16385
 
 
16386
                CFLAGS="$CFLAGS -Wmissing-braces"
 
16387
 
 
16388
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
 
16389
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
 
16390
                cacheid=xorg_cv_cc_flag__Wmissing_braces
 
16391
                if eval \${$cacheid+:} false; then :
 
16392
  $as_echo_n "(cached) " >&6
 
16393
else
 
16394
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16395
/* end confdefs.h.  */
 
16396
int i;
 
16397
int
 
16398
main ()
 
16399
{
 
16400
 
 
16401
  ;
 
16402
  return 0;
 
16403
}
 
16404
_ACEOF
 
16405
if ac_fn_c_try_link "$LINENO"; then :
 
16406
  eval $cacheid=yes
 
16407
else
 
16408
  eval $cacheid=no
 
16409
fi
 
16410
rm -f core conftest.err conftest.$ac_objext \
 
16411
    conftest$ac_exeext conftest.$ac_ext
 
16412
fi
 
16413
 
 
16414
 
 
16415
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16416
 
 
16417
                eval supported=\$$cacheid
 
16418
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16419
$as_echo "$supported" >&6; }
 
16420
                if test "$supported" = "yes" ; then
 
16421
                        BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
 
16422
                        found="yes"
 
16423
                fi
 
16424
        fi
 
16425
 
 
16426
 
 
16427
 
 
16428
 
 
16429
 
 
16430
 
 
16431
 
 
16432
 
 
16433
 
 
16434
 
 
16435
 
 
16436
 
 
16437
 
 
16438
 
 
16439
 
 
16440
xorg_testset_save_CFLAGS="$CFLAGS"
 
16441
 
 
16442
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16443
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16444
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16445
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16446
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16447
  $as_echo_n "(cached) " >&6
 
16448
else
 
16449
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16450
/* end confdefs.h.  */
 
16451
int i;
 
16452
_ACEOF
 
16453
if ac_fn_c_try_compile "$LINENO"; then :
 
16454
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16455
else
 
16456
  xorg_cv_cc_flag_unknown_warning_option=no
 
16457
fi
 
16458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16459
fi
 
16460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16461
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16462
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16463
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16464
fi
 
16465
 
 
16466
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16467
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16468
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16469
        fi
 
16470
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16471
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16472
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16473
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16474
  $as_echo_n "(cached) " >&6
 
16475
else
 
16476
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16477
/* end confdefs.h.  */
 
16478
int i;
 
16479
_ACEOF
 
16480
if ac_fn_c_try_compile "$LINENO"; then :
 
16481
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16482
else
 
16483
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16484
fi
 
16485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16486
fi
 
16487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16488
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16489
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16490
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16491
fi
 
16492
 
 
16493
found="no"
 
16494
 
 
16495
        if test $found = "no" ; then
 
16496
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16497
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16498
                fi
 
16499
 
 
16500
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16501
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16502
                fi
 
16503
 
 
16504
                CFLAGS="$CFLAGS -Wsequence-point"
 
16505
 
 
16506
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
 
16507
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
 
16508
                cacheid=xorg_cv_cc_flag__Wsequence_point
 
16509
                if eval \${$cacheid+:} false; then :
 
16510
  $as_echo_n "(cached) " >&6
 
16511
else
 
16512
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16513
/* end confdefs.h.  */
 
16514
int i;
 
16515
int
 
16516
main ()
 
16517
{
 
16518
 
 
16519
  ;
 
16520
  return 0;
 
16521
}
 
16522
_ACEOF
 
16523
if ac_fn_c_try_link "$LINENO"; then :
 
16524
  eval $cacheid=yes
 
16525
else
 
16526
  eval $cacheid=no
 
16527
fi
 
16528
rm -f core conftest.err conftest.$ac_objext \
 
16529
    conftest$ac_exeext conftest.$ac_ext
 
16530
fi
 
16531
 
 
16532
 
 
16533
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16534
 
 
16535
                eval supported=\$$cacheid
 
16536
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16537
$as_echo "$supported" >&6; }
 
16538
                if test "$supported" = "yes" ; then
 
16539
                        BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
 
16540
                        found="yes"
 
16541
                fi
 
16542
        fi
 
16543
 
 
16544
 
 
16545
 
 
16546
 
 
16547
 
 
16548
 
 
16549
 
 
16550
 
 
16551
 
 
16552
 
 
16553
 
 
16554
 
 
16555
 
 
16556
 
 
16557
 
 
16558
xorg_testset_save_CFLAGS="$CFLAGS"
 
16559
 
 
16560
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16561
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16562
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16563
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16564
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16565
  $as_echo_n "(cached) " >&6
 
16566
else
 
16567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16568
/* end confdefs.h.  */
 
16569
int i;
 
16570
_ACEOF
 
16571
if ac_fn_c_try_compile "$LINENO"; then :
 
16572
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16573
else
 
16574
  xorg_cv_cc_flag_unknown_warning_option=no
 
16575
fi
 
16576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16577
fi
 
16578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16579
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16580
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16581
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16582
fi
 
16583
 
 
16584
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16585
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16586
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16587
        fi
 
16588
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16589
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16590
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16591
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16592
  $as_echo_n "(cached) " >&6
 
16593
else
 
16594
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16595
/* end confdefs.h.  */
 
16596
int i;
 
16597
_ACEOF
 
16598
if ac_fn_c_try_compile "$LINENO"; then :
 
16599
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16600
else
 
16601
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16602
fi
 
16603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16604
fi
 
16605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16606
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16607
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16608
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16609
fi
 
16610
 
 
16611
found="no"
 
16612
 
 
16613
        if test $found = "no" ; then
 
16614
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16615
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16616
                fi
 
16617
 
 
16618
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16619
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16620
                fi
 
16621
 
 
16622
                CFLAGS="$CFLAGS -Wreturn-type"
 
16623
 
 
16624
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
 
16625
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
 
16626
                cacheid=xorg_cv_cc_flag__Wreturn_type
 
16627
                if eval \${$cacheid+:} false; then :
 
16628
  $as_echo_n "(cached) " >&6
 
16629
else
 
16630
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16631
/* end confdefs.h.  */
 
16632
int i;
 
16633
int
 
16634
main ()
 
16635
{
 
16636
 
 
16637
  ;
 
16638
  return 0;
 
16639
}
 
16640
_ACEOF
 
16641
if ac_fn_c_try_link "$LINENO"; then :
 
16642
  eval $cacheid=yes
 
16643
else
 
16644
  eval $cacheid=no
 
16645
fi
 
16646
rm -f core conftest.err conftest.$ac_objext \
 
16647
    conftest$ac_exeext conftest.$ac_ext
 
16648
fi
 
16649
 
 
16650
 
 
16651
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16652
 
 
16653
                eval supported=\$$cacheid
 
16654
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16655
$as_echo "$supported" >&6; }
 
16656
                if test "$supported" = "yes" ; then
 
16657
                        BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
 
16658
                        found="yes"
 
16659
                fi
 
16660
        fi
 
16661
 
 
16662
 
 
16663
 
 
16664
 
 
16665
 
 
16666
 
 
16667
 
 
16668
 
 
16669
 
 
16670
 
 
16671
 
 
16672
 
 
16673
 
 
16674
 
 
16675
 
 
16676
xorg_testset_save_CFLAGS="$CFLAGS"
 
16677
 
 
16678
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16679
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16680
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16681
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16682
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16683
  $as_echo_n "(cached) " >&6
 
16684
else
 
16685
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16686
/* end confdefs.h.  */
 
16687
int i;
 
16688
_ACEOF
 
16689
if ac_fn_c_try_compile "$LINENO"; then :
 
16690
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16691
else
 
16692
  xorg_cv_cc_flag_unknown_warning_option=no
 
16693
fi
 
16694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16695
fi
 
16696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16697
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16698
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16699
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16700
fi
 
16701
 
 
16702
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16703
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16704
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16705
        fi
 
16706
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16707
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16708
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16709
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16710
  $as_echo_n "(cached) " >&6
 
16711
else
 
16712
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16713
/* end confdefs.h.  */
 
16714
int i;
 
16715
_ACEOF
 
16716
if ac_fn_c_try_compile "$LINENO"; then :
 
16717
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16718
else
 
16719
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16720
fi
 
16721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16722
fi
 
16723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16724
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16725
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16726
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16727
fi
 
16728
 
 
16729
found="no"
 
16730
 
 
16731
        if test $found = "no" ; then
 
16732
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16733
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16734
                fi
 
16735
 
 
16736
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16737
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16738
                fi
 
16739
 
 
16740
                CFLAGS="$CFLAGS -Wtrigraphs"
 
16741
 
 
16742
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
 
16743
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
 
16744
                cacheid=xorg_cv_cc_flag__Wtrigraphs
 
16745
                if eval \${$cacheid+:} false; then :
 
16746
  $as_echo_n "(cached) " >&6
 
16747
else
 
16748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16749
/* end confdefs.h.  */
 
16750
int i;
 
16751
int
 
16752
main ()
 
16753
{
 
16754
 
 
16755
  ;
 
16756
  return 0;
 
16757
}
 
16758
_ACEOF
 
16759
if ac_fn_c_try_link "$LINENO"; then :
 
16760
  eval $cacheid=yes
 
16761
else
 
16762
  eval $cacheid=no
 
16763
fi
 
16764
rm -f core conftest.err conftest.$ac_objext \
 
16765
    conftest$ac_exeext conftest.$ac_ext
 
16766
fi
 
16767
 
 
16768
 
 
16769
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16770
 
 
16771
                eval supported=\$$cacheid
 
16772
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16773
$as_echo "$supported" >&6; }
 
16774
                if test "$supported" = "yes" ; then
 
16775
                        BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
 
16776
                        found="yes"
 
16777
                fi
 
16778
        fi
 
16779
 
 
16780
 
 
16781
 
 
16782
 
 
16783
 
 
16784
 
 
16785
 
 
16786
 
 
16787
 
 
16788
 
 
16789
 
 
16790
 
 
16791
 
 
16792
 
 
16793
 
 
16794
xorg_testset_save_CFLAGS="$CFLAGS"
 
16795
 
 
16796
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16797
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16798
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16799
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16800
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16801
  $as_echo_n "(cached) " >&6
 
16802
else
 
16803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16804
/* end confdefs.h.  */
 
16805
int i;
 
16806
_ACEOF
 
16807
if ac_fn_c_try_compile "$LINENO"; then :
 
16808
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16809
else
 
16810
  xorg_cv_cc_flag_unknown_warning_option=no
 
16811
fi
 
16812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16813
fi
 
16814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16815
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16816
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16817
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16818
fi
 
16819
 
 
16820
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16821
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16822
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16823
        fi
 
16824
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16825
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16826
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16827
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16828
  $as_echo_n "(cached) " >&6
 
16829
else
 
16830
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16831
/* end confdefs.h.  */
 
16832
int i;
 
16833
_ACEOF
 
16834
if ac_fn_c_try_compile "$LINENO"; then :
 
16835
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16836
else
 
16837
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16838
fi
 
16839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16840
fi
 
16841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16842
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16843
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16844
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16845
fi
 
16846
 
 
16847
found="no"
 
16848
 
 
16849
        if test $found = "no" ; then
 
16850
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16851
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16852
                fi
 
16853
 
 
16854
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16855
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16856
                fi
 
16857
 
 
16858
                CFLAGS="$CFLAGS -Warray-bounds"
 
16859
 
 
16860
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
 
16861
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
 
16862
                cacheid=xorg_cv_cc_flag__Warray_bounds
 
16863
                if eval \${$cacheid+:} false; then :
 
16864
  $as_echo_n "(cached) " >&6
 
16865
else
 
16866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16867
/* end confdefs.h.  */
 
16868
int i;
 
16869
int
 
16870
main ()
 
16871
{
 
16872
 
 
16873
  ;
 
16874
  return 0;
 
16875
}
 
16876
_ACEOF
 
16877
if ac_fn_c_try_link "$LINENO"; then :
 
16878
  eval $cacheid=yes
 
16879
else
 
16880
  eval $cacheid=no
 
16881
fi
 
16882
rm -f core conftest.err conftest.$ac_objext \
 
16883
    conftest$ac_exeext conftest.$ac_ext
 
16884
fi
 
16885
 
 
16886
 
 
16887
                CFLAGS="$xorg_testset_save_CFLAGS"
 
16888
 
 
16889
                eval supported=\$$cacheid
 
16890
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
16891
$as_echo "$supported" >&6; }
 
16892
                if test "$supported" = "yes" ; then
 
16893
                        BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
 
16894
                        found="yes"
 
16895
                fi
 
16896
        fi
 
16897
 
 
16898
 
 
16899
 
 
16900
 
 
16901
 
 
16902
 
 
16903
 
 
16904
 
 
16905
 
 
16906
 
 
16907
 
 
16908
 
 
16909
 
 
16910
 
 
16911
 
 
16912
xorg_testset_save_CFLAGS="$CFLAGS"
 
16913
 
 
16914
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
16915
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16916
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
16917
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
16918
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
16919
  $as_echo_n "(cached) " >&6
 
16920
else
 
16921
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16922
/* end confdefs.h.  */
 
16923
int i;
 
16924
_ACEOF
 
16925
if ac_fn_c_try_compile "$LINENO"; then :
 
16926
  xorg_cv_cc_flag_unknown_warning_option=yes
 
16927
else
 
16928
  xorg_cv_cc_flag_unknown_warning_option=no
 
16929
fi
 
16930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16931
fi
 
16932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
16933
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
16934
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
16935
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16936
fi
 
16937
 
 
16938
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
16939
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16940
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16941
        fi
 
16942
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16943
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
16944
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
16945
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
16946
  $as_echo_n "(cached) " >&6
 
16947
else
 
16948
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16949
/* end confdefs.h.  */
 
16950
int i;
 
16951
_ACEOF
 
16952
if ac_fn_c_try_compile "$LINENO"; then :
 
16953
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
16954
else
 
16955
  xorg_cv_cc_flag_unused_command_line_argument=no
 
16956
fi
 
16957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16958
fi
 
16959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
16960
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
16961
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
16962
        CFLAGS="$xorg_testset_save_CFLAGS"
 
16963
fi
 
16964
 
 
16965
found="no"
 
16966
 
 
16967
        if test $found = "no" ; then
 
16968
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
16969
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
16970
                fi
 
16971
 
 
16972
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
16973
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
16974
                fi
 
16975
 
 
16976
                CFLAGS="$CFLAGS -Wwrite-strings"
 
16977
 
 
16978
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
 
16979
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
 
16980
                cacheid=xorg_cv_cc_flag__Wwrite_strings
 
16981
                if eval \${$cacheid+:} false; then :
 
16982
  $as_echo_n "(cached) " >&6
 
16983
else
 
16984
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16985
/* end confdefs.h.  */
 
16986
int i;
 
16987
int
 
16988
main ()
 
16989
{
 
16990
 
 
16991
  ;
 
16992
  return 0;
 
16993
}
 
16994
_ACEOF
 
16995
if ac_fn_c_try_link "$LINENO"; then :
 
16996
  eval $cacheid=yes
 
16997
else
 
16998
  eval $cacheid=no
 
16999
fi
 
17000
rm -f core conftest.err conftest.$ac_objext \
 
17001
    conftest$ac_exeext conftest.$ac_ext
 
17002
fi
 
17003
 
 
17004
 
 
17005
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17006
 
 
17007
                eval supported=\$$cacheid
 
17008
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17009
$as_echo "$supported" >&6; }
 
17010
                if test "$supported" = "yes" ; then
 
17011
                        BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
 
17012
                        found="yes"
 
17013
                fi
 
17014
        fi
 
17015
 
 
17016
 
 
17017
 
 
17018
 
 
17019
 
 
17020
 
 
17021
 
 
17022
 
 
17023
 
 
17024
 
 
17025
 
 
17026
 
 
17027
 
 
17028
 
 
17029
 
 
17030
xorg_testset_save_CFLAGS="$CFLAGS"
 
17031
 
 
17032
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17033
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17034
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17035
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17036
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17037
  $as_echo_n "(cached) " >&6
 
17038
else
 
17039
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17040
/* end confdefs.h.  */
 
17041
int i;
 
17042
_ACEOF
 
17043
if ac_fn_c_try_compile "$LINENO"; then :
 
17044
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17045
else
 
17046
  xorg_cv_cc_flag_unknown_warning_option=no
 
17047
fi
 
17048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17049
fi
 
17050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17051
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17052
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17053
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17054
fi
 
17055
 
 
17056
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17057
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17058
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17059
        fi
 
17060
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17061
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17062
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17063
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17064
  $as_echo_n "(cached) " >&6
 
17065
else
 
17066
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17067
/* end confdefs.h.  */
 
17068
int i;
 
17069
_ACEOF
 
17070
if ac_fn_c_try_compile "$LINENO"; then :
 
17071
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17072
else
 
17073
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17074
fi
 
17075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17076
fi
 
17077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17078
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17079
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17080
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17081
fi
 
17082
 
 
17083
found="no"
 
17084
 
 
17085
        if test $found = "no" ; then
 
17086
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17087
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17088
                fi
 
17089
 
 
17090
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17091
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17092
                fi
 
17093
 
 
17094
                CFLAGS="$CFLAGS -Waddress"
 
17095
 
 
17096
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
 
17097
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
 
17098
                cacheid=xorg_cv_cc_flag__Waddress
 
17099
                if eval \${$cacheid+:} false; then :
 
17100
  $as_echo_n "(cached) " >&6
 
17101
else
 
17102
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17103
/* end confdefs.h.  */
 
17104
int i;
 
17105
int
 
17106
main ()
 
17107
{
 
17108
 
 
17109
  ;
 
17110
  return 0;
 
17111
}
 
17112
_ACEOF
 
17113
if ac_fn_c_try_link "$LINENO"; then :
 
17114
  eval $cacheid=yes
 
17115
else
 
17116
  eval $cacheid=no
 
17117
fi
 
17118
rm -f core conftest.err conftest.$ac_objext \
 
17119
    conftest$ac_exeext conftest.$ac_ext
 
17120
fi
 
17121
 
 
17122
 
 
17123
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17124
 
 
17125
                eval supported=\$$cacheid
 
17126
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17127
$as_echo "$supported" >&6; }
 
17128
                if test "$supported" = "yes" ; then
 
17129
                        BASE_CFLAGS="$BASE_CFLAGS -Waddress"
 
17130
                        found="yes"
 
17131
                fi
 
17132
        fi
 
17133
 
 
17134
 
 
17135
 
 
17136
 
 
17137
 
 
17138
 
 
17139
 
 
17140
 
 
17141
 
 
17142
 
 
17143
 
 
17144
 
 
17145
 
 
17146
 
 
17147
 
 
17148
xorg_testset_save_CFLAGS="$CFLAGS"
 
17149
 
 
17150
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17151
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17152
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17153
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17154
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17155
  $as_echo_n "(cached) " >&6
 
17156
else
 
17157
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17158
/* end confdefs.h.  */
 
17159
int i;
 
17160
_ACEOF
 
17161
if ac_fn_c_try_compile "$LINENO"; then :
 
17162
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17163
else
 
17164
  xorg_cv_cc_flag_unknown_warning_option=no
 
17165
fi
 
17166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17167
fi
 
17168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17169
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17170
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17171
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17172
fi
 
17173
 
 
17174
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17175
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17176
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17177
        fi
 
17178
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17179
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17180
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17181
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17182
  $as_echo_n "(cached) " >&6
 
17183
else
 
17184
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17185
/* end confdefs.h.  */
 
17186
int i;
 
17187
_ACEOF
 
17188
if ac_fn_c_try_compile "$LINENO"; then :
 
17189
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17190
else
 
17191
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17192
fi
 
17193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17194
fi
 
17195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17196
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17197
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17198
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17199
fi
 
17200
 
 
17201
found="no"
 
17202
 
 
17203
        if test $found = "no" ; then
 
17204
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17205
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17206
                fi
 
17207
 
 
17208
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17209
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17210
                fi
 
17211
 
 
17212
                CFLAGS="$CFLAGS -Wint-to-pointer-cast"
 
17213
 
 
17214
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
 
17215
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
 
17216
                cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
 
17217
                if eval \${$cacheid+:} false; then :
 
17218
  $as_echo_n "(cached) " >&6
 
17219
else
 
17220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17221
/* end confdefs.h.  */
 
17222
int i;
 
17223
int
 
17224
main ()
 
17225
{
 
17226
 
 
17227
  ;
 
17228
  return 0;
 
17229
}
 
17230
_ACEOF
 
17231
if ac_fn_c_try_link "$LINENO"; then :
 
17232
  eval $cacheid=yes
 
17233
else
 
17234
  eval $cacheid=no
 
17235
fi
 
17236
rm -f core conftest.err conftest.$ac_objext \
 
17237
    conftest$ac_exeext conftest.$ac_ext
 
17238
fi
 
17239
 
 
17240
 
 
17241
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17242
 
 
17243
                eval supported=\$$cacheid
 
17244
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17245
$as_echo "$supported" >&6; }
 
17246
                if test "$supported" = "yes" ; then
 
17247
                        BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
 
17248
                        found="yes"
 
17249
                fi
 
17250
        fi
 
17251
 
 
17252
 
 
17253
 
 
17254
 
 
17255
 
 
17256
 
 
17257
 
 
17258
 
 
17259
 
 
17260
 
 
17261
 
 
17262
 
 
17263
 
 
17264
 
 
17265
 
 
17266
xorg_testset_save_CFLAGS="$CFLAGS"
 
17267
 
 
17268
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17269
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17270
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17271
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17272
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17273
  $as_echo_n "(cached) " >&6
 
17274
else
 
17275
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17276
/* end confdefs.h.  */
 
17277
int i;
 
17278
_ACEOF
 
17279
if ac_fn_c_try_compile "$LINENO"; then :
 
17280
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17281
else
 
17282
  xorg_cv_cc_flag_unknown_warning_option=no
 
17283
fi
 
17284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17285
fi
 
17286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17287
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17288
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17289
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17290
fi
 
17291
 
 
17292
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17293
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17294
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17295
        fi
 
17296
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17297
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17298
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17299
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17300
  $as_echo_n "(cached) " >&6
 
17301
else
 
17302
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17303
/* end confdefs.h.  */
 
17304
int i;
 
17305
_ACEOF
 
17306
if ac_fn_c_try_compile "$LINENO"; then :
 
17307
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17308
else
 
17309
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17310
fi
 
17311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17312
fi
 
17313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17314
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17315
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17316
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17317
fi
 
17318
 
 
17319
found="no"
 
17320
 
 
17321
        if test $found = "no" ; then
 
17322
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17323
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17324
                fi
 
17325
 
 
17326
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17327
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17328
                fi
 
17329
 
 
17330
                CFLAGS="$CFLAGS -Wpointer-to-int-cast"
 
17331
 
 
17332
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
 
17333
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
 
17334
                cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
 
17335
                if eval \${$cacheid+:} false; then :
 
17336
  $as_echo_n "(cached) " >&6
 
17337
else
 
17338
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17339
/* end confdefs.h.  */
 
17340
int i;
 
17341
int
 
17342
main ()
 
17343
{
 
17344
 
 
17345
  ;
 
17346
  return 0;
 
17347
}
 
17348
_ACEOF
 
17349
if ac_fn_c_try_link "$LINENO"; then :
 
17350
  eval $cacheid=yes
 
17351
else
 
17352
  eval $cacheid=no
 
17353
fi
 
17354
rm -f core conftest.err conftest.$ac_objext \
 
17355
    conftest$ac_exeext conftest.$ac_ext
 
17356
fi
 
17357
 
 
17358
 
 
17359
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17360
 
 
17361
                eval supported=\$$cacheid
 
17362
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17363
$as_echo "$supported" >&6; }
 
17364
                if test "$supported" = "yes" ; then
 
17365
                        BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
 
17366
                        found="yes"
 
17367
                fi
 
17368
        fi
 
17369
 
 
17370
 
 
17371
fi
 
17372
 
 
17373
 
 
17374
 
 
17375
 
 
17376
 
 
17377
 
 
17378
 
 
17379
                CWARNFLAGS="$BASE_CFLAGS"
 
17380
                if  test "x$GCC" = xyes ; then
 
17381
                    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
 
17382
                fi
 
17383
 
 
17384
 
 
17385
 
 
17386
 
 
17387
 
11888
17388
 
11889
17389
 
11890
17390
 
11895
17395
  STRICT_COMPILE=no
11896
17396
fi
11897
17397
 
 
17398
 
 
17399
 
 
17400
 
 
17401
 
 
17402
 
 
17403
STRICT_CFLAGS=""
 
17404
 
 
17405
 
 
17406
 
 
17407
 
 
17408
 
 
17409
 
 
17410
 
 
17411
 
 
17412
 
 
17413
 
 
17414
 
 
17415
 
 
17416
 
 
17417
xorg_testset_save_CFLAGS="$CFLAGS"
 
17418
 
 
17419
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17420
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17421
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17422
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17423
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17424
  $as_echo_n "(cached) " >&6
 
17425
else
 
17426
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17427
/* end confdefs.h.  */
 
17428
int i;
 
17429
_ACEOF
 
17430
if ac_fn_c_try_compile "$LINENO"; then :
 
17431
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17432
else
 
17433
  xorg_cv_cc_flag_unknown_warning_option=no
 
17434
fi
 
17435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17436
fi
 
17437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17438
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17439
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17440
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17441
fi
 
17442
 
 
17443
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17444
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17445
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17446
        fi
 
17447
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17448
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17449
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17450
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17451
  $as_echo_n "(cached) " >&6
 
17452
else
 
17453
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17454
/* end confdefs.h.  */
 
17455
int i;
 
17456
_ACEOF
 
17457
if ac_fn_c_try_compile "$LINENO"; then :
 
17458
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17459
else
 
17460
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17461
fi
 
17462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17463
fi
 
17464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17465
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17466
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17467
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17468
fi
 
17469
 
 
17470
found="no"
 
17471
 
 
17472
        if test $found = "no" ; then
 
17473
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17474
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17475
                fi
 
17476
 
 
17477
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17478
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17479
                fi
 
17480
 
 
17481
                CFLAGS="$CFLAGS -pedantic"
 
17482
 
 
17483
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
 
17484
$as_echo_n "checking if $CC supports -pedantic... " >&6; }
 
17485
                cacheid=xorg_cv_cc_flag__pedantic
 
17486
                if eval \${$cacheid+:} false; then :
 
17487
  $as_echo_n "(cached) " >&6
 
17488
else
 
17489
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17490
/* end confdefs.h.  */
 
17491
int i;
 
17492
int
 
17493
main ()
 
17494
{
 
17495
 
 
17496
  ;
 
17497
  return 0;
 
17498
}
 
17499
_ACEOF
 
17500
if ac_fn_c_try_link "$LINENO"; then :
 
17501
  eval $cacheid=yes
 
17502
else
 
17503
  eval $cacheid=no
 
17504
fi
 
17505
rm -f core conftest.err conftest.$ac_objext \
 
17506
    conftest$ac_exeext conftest.$ac_ext
 
17507
fi
 
17508
 
 
17509
 
 
17510
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17511
 
 
17512
                eval supported=\$$cacheid
 
17513
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17514
$as_echo "$supported" >&6; }
 
17515
                if test "$supported" = "yes" ; then
 
17516
                        STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
 
17517
                        found="yes"
 
17518
                fi
 
17519
        fi
 
17520
 
 
17521
 
 
17522
 
 
17523
 
 
17524
 
 
17525
 
 
17526
 
 
17527
 
 
17528
 
 
17529
 
 
17530
 
 
17531
 
 
17532
 
 
17533
 
 
17534
 
 
17535
xorg_testset_save_CFLAGS="$CFLAGS"
 
17536
 
 
17537
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17538
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17539
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17540
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17541
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17542
  $as_echo_n "(cached) " >&6
 
17543
else
 
17544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17545
/* end confdefs.h.  */
 
17546
int i;
 
17547
_ACEOF
 
17548
if ac_fn_c_try_compile "$LINENO"; then :
 
17549
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17550
else
 
17551
  xorg_cv_cc_flag_unknown_warning_option=no
 
17552
fi
 
17553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17554
fi
 
17555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17556
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17557
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17558
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17559
fi
 
17560
 
 
17561
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17562
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17563
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17564
        fi
 
17565
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17566
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17567
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17568
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17569
  $as_echo_n "(cached) " >&6
 
17570
else
 
17571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17572
/* end confdefs.h.  */
 
17573
int i;
 
17574
_ACEOF
 
17575
if ac_fn_c_try_compile "$LINENO"; then :
 
17576
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17577
else
 
17578
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17579
fi
 
17580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17581
fi
 
17582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17583
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17584
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17585
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17586
fi
 
17587
 
 
17588
found="no"
 
17589
 
 
17590
        if test $found = "no" ; then
 
17591
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17592
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17593
                fi
 
17594
 
 
17595
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17596
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17597
                fi
 
17598
 
 
17599
                CFLAGS="$CFLAGS -Werror"
 
17600
 
 
17601
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
 
17602
$as_echo_n "checking if $CC supports -Werror... " >&6; }
 
17603
                cacheid=xorg_cv_cc_flag__Werror
 
17604
                if eval \${$cacheid+:} false; then :
 
17605
  $as_echo_n "(cached) " >&6
 
17606
else
 
17607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17608
/* end confdefs.h.  */
 
17609
int i;
 
17610
int
 
17611
main ()
 
17612
{
 
17613
 
 
17614
  ;
 
17615
  return 0;
 
17616
}
 
17617
_ACEOF
 
17618
if ac_fn_c_try_link "$LINENO"; then :
 
17619
  eval $cacheid=yes
 
17620
else
 
17621
  eval $cacheid=no
 
17622
fi
 
17623
rm -f core conftest.err conftest.$ac_objext \
 
17624
    conftest$ac_exeext conftest.$ac_ext
 
17625
fi
 
17626
 
 
17627
 
 
17628
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17629
 
 
17630
                eval supported=\$$cacheid
 
17631
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17632
$as_echo "$supported" >&6; }
 
17633
                if test "$supported" = "yes" ; then
 
17634
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
 
17635
                        found="yes"
 
17636
                fi
 
17637
        fi
 
17638
 
 
17639
        if test $found = "no" ; then
 
17640
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17641
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17642
                fi
 
17643
 
 
17644
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17645
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17646
                fi
 
17647
 
 
17648
                CFLAGS="$CFLAGS -errwarn"
 
17649
 
 
17650
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
 
17651
$as_echo_n "checking if $CC supports -errwarn... " >&6; }
 
17652
                cacheid=xorg_cv_cc_flag__errwarn
 
17653
                if eval \${$cacheid+:} false; then :
 
17654
  $as_echo_n "(cached) " >&6
 
17655
else
 
17656
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17657
/* end confdefs.h.  */
 
17658
int i;
 
17659
int
 
17660
main ()
 
17661
{
 
17662
 
 
17663
  ;
 
17664
  return 0;
 
17665
}
 
17666
_ACEOF
 
17667
if ac_fn_c_try_link "$LINENO"; then :
 
17668
  eval $cacheid=yes
 
17669
else
 
17670
  eval $cacheid=no
 
17671
fi
 
17672
rm -f core conftest.err conftest.$ac_objext \
 
17673
    conftest$ac_exeext conftest.$ac_ext
 
17674
fi
 
17675
 
 
17676
 
 
17677
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17678
 
 
17679
                eval supported=\$$cacheid
 
17680
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17681
$as_echo "$supported" >&6; }
 
17682
                if test "$supported" = "yes" ; then
 
17683
                        STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
 
17684
                        found="yes"
 
17685
                fi
 
17686
        fi
 
17687
 
 
17688
 
 
17689
 
 
17690
# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
 
17691
# activate it with -Werror, so we add it here explicitly.
 
17692
 
 
17693
 
 
17694
 
 
17695
 
 
17696
 
 
17697
 
 
17698
 
 
17699
 
 
17700
 
 
17701
 
 
17702
 
 
17703
 
 
17704
 
 
17705
xorg_testset_save_CFLAGS="$CFLAGS"
 
17706
 
 
17707
if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
 
17708
        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17709
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
 
17710
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
 
17711
if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
 
17712
  $as_echo_n "(cached) " >&6
 
17713
else
 
17714
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17715
/* end confdefs.h.  */
 
17716
int i;
 
17717
_ACEOF
 
17718
if ac_fn_c_try_compile "$LINENO"; then :
 
17719
  xorg_cv_cc_flag_unknown_warning_option=yes
 
17720
else
 
17721
  xorg_cv_cc_flag_unknown_warning_option=no
 
17722
fi
 
17723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17724
fi
 
17725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
 
17726
$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
 
17727
        xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
 
17728
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17729
fi
 
17730
 
 
17731
if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
 
17732
        if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17733
                CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17734
        fi
 
17735
        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17736
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
 
17737
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
 
17738
if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
 
17739
  $as_echo_n "(cached) " >&6
 
17740
else
 
17741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17742
/* end confdefs.h.  */
 
17743
int i;
 
17744
_ACEOF
 
17745
if ac_fn_c_try_compile "$LINENO"; then :
 
17746
  xorg_cv_cc_flag_unused_command_line_argument=yes
 
17747
else
 
17748
  xorg_cv_cc_flag_unused_command_line_argument=no
 
17749
fi
 
17750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17751
fi
 
17752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
 
17753
$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
 
17754
        xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
 
17755
        CFLAGS="$xorg_testset_save_CFLAGS"
 
17756
fi
 
17757
 
 
17758
found="no"
 
17759
 
 
17760
        if test $found = "no" ; then
 
17761
                if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
 
17762
                        CFLAGS="$CFLAGS -Werror=unknown-warning-option"
 
17763
                fi
 
17764
 
 
17765
                if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
 
17766
                        CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
 
17767
                fi
 
17768
 
 
17769
                CFLAGS="$CFLAGS -Werror=attributes"
 
17770
 
 
17771
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
 
17772
$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
 
17773
                cacheid=xorg_cv_cc_flag__Werror_attributes
 
17774
                if eval \${$cacheid+:} false; then :
 
17775
  $as_echo_n "(cached) " >&6
 
17776
else
 
17777
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17778
/* end confdefs.h.  */
 
17779
int i;
 
17780
int
 
17781
main ()
 
17782
{
 
17783
 
 
17784
  ;
 
17785
  return 0;
 
17786
}
 
17787
_ACEOF
 
17788
if ac_fn_c_try_link "$LINENO"; then :
 
17789
  eval $cacheid=yes
 
17790
else
 
17791
  eval $cacheid=no
 
17792
fi
 
17793
rm -f core conftest.err conftest.$ac_objext \
 
17794
    conftest$ac_exeext conftest.$ac_ext
 
17795
fi
 
17796
 
 
17797
 
 
17798
                CFLAGS="$xorg_testset_save_CFLAGS"
 
17799
 
 
17800
                eval supported=\$$cacheid
 
17801
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
 
17802
$as_echo "$supported" >&6; }
 
17803
                if test "$supported" = "yes" ; then
 
17804
                        STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
 
17805
                        found="yes"
 
17806
                fi
 
17807
        fi
 
17808
 
 
17809
 
 
17810
 
11898
17811
if test "x$STRICT_COMPILE" = "xyes"; then
11899
 
        ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11900
 
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11901
 
  SUNCC="yes"
11902
 
else
11903
 
  SUNCC="no"
11904
 
fi
11905
 
 
11906
 
        ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11907
 
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11908
 
  INTELCC="yes"
11909
 
else
11910
 
  INTELCC="no"
11911
 
fi
11912
 
 
11913
 
        if test "x$GCC" = xyes ; then
11914
 
                STRICT_CFLAGS="-pedantic -Werror"
11915
 
        elif test "x$SUNCC" = "xyes"; then
11916
 
                STRICT_CFLAGS="-errwarn"
11917
 
    elif test "x$INTELCC" = "xyes"; then
11918
 
                STRICT_CFLAGS="-Werror"
11919
 
        fi
11920
 
fi
11921
 
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
17812
    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
 
17813
    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
17814
fi
 
17815
 
 
17816
 
11922
17817
 
11923
17818
 
11924
17819
 
12057
17952
  enableval=$enable_silent_rules;
12058
17953
fi
12059
17954
 
12060
 
case $enable_silent_rules in
12061
 
yes) AM_DEFAULT_VERBOSITY=0;;
12062
 
no)  AM_DEFAULT_VERBOSITY=1;;
12063
 
*)   AM_DEFAULT_VERBOSITY=0;;
 
17955
case $enable_silent_rules in # (((
 
17956
  yes) AM_DEFAULT_VERBOSITY=0;;
 
17957
   no) AM_DEFAULT_VERBOSITY=1;;
 
17958
    *) AM_DEFAULT_VERBOSITY=0;;
12064
17959
esac
 
17960
am_make=${MAKE-make}
 
17961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
17962
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
17963
if ${am_cv_make_support_nested_variables+:} false; then :
 
17964
  $as_echo_n "(cached) " >&6
 
17965
else
 
17966
  if $as_echo 'TRUE=$(BAR$(V))
 
17967
BAR0=false
 
17968
BAR1=true
 
17969
V=1
 
17970
am__doit:
 
17971
        @$(TRUE)
 
17972
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
17973
  am_cv_make_support_nested_variables=yes
 
17974
else
 
17975
  am_cv_make_support_nested_variables=no
 
17976
fi
 
17977
fi
 
17978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
17979
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
17980
if test $am_cv_make_support_nested_variables = yes; then
 
17981
    AM_V='$(V)'
 
17982
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
17983
else
 
17984
  AM_V=$AM_DEFAULT_VERBOSITY
 
17985
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
17986
fi
12065
17987
AM_BACKSLASH='\'
12066
17988
 
12067
17989
 
12092
18014
 
12093
18015
 
12094
18016
 
 
18017
 
12095
18018
# Check whether --with-doxygen was given.
12096
18019
if test "${with_doxygen+set}" = set; then :
12097
18020
  withval=$with_doxygen; use_doxygen=$withval
12120
18043
  IFS=$as_save_IFS
12121
18044
  test -z "$as_dir" && as_dir=.
12122
18045
    for ac_exec_ext in '' $ac_executable_extensions; do
12123
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18046
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124
18047
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12125
18048
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126
18049
    break 2
12168
18091
  IFS=$as_save_IFS
12169
18092
  test -z "$as_dir" && as_dir=.
12170
18093
    for ac_exec_ext in '' $ac_executable_extensions; do
12171
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18094
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12172
18095
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12173
18096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174
18097
    break 2
12204
18127
   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12205
18128
fi
12206
18129
 
 
18130
 
 
18131
HAVE_DOT=no
 
18132
if test "x$have_doxygen" = "xyes"; then
 
18133
  # Extract the first word of "dot", so it can be a program name with args.
 
18134
set dummy dot; ac_word=$2
 
18135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18136
$as_echo_n "checking for $ac_word... " >&6; }
 
18137
if ${ac_cv_path_DOT+:} false; then :
 
18138
  $as_echo_n "(cached) " >&6
 
18139
else
 
18140
  case $DOT in
 
18141
  [\\/]* | ?:[\\/]*)
 
18142
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
 
18143
  ;;
 
18144
  *)
 
18145
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18146
for as_dir in $PATH
 
18147
do
 
18148
  IFS=$as_save_IFS
 
18149
  test -z "$as_dir" && as_dir=.
 
18150
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18151
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18152
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
 
18153
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18154
    break 2
 
18155
  fi
 
18156
done
 
18157
  done
 
18158
IFS=$as_save_IFS
 
18159
 
 
18160
  ;;
 
18161
esac
 
18162
fi
 
18163
DOT=$ac_cv_path_DOT
 
18164
if test -n "$DOT"; then
 
18165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
 
18166
$as_echo "$DOT" >&6; }
 
18167
else
 
18168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18169
$as_echo "no" >&6; }
 
18170
fi
 
18171
 
 
18172
 
 
18173
    if test "x$DOT" != "x"; then
 
18174
      HAVE_DOT=yes
 
18175
    fi
 
18176
fi
 
18177
 
 
18178
 
 
18179
 if test "$HAVE_DOT" = "yes"; then
 
18180
  HAVE_DOT_TRUE=
 
18181
  HAVE_DOT_FALSE='#'
 
18182
else
 
18183
  HAVE_DOT_TRUE='#'
 
18184
  HAVE_DOT_FALSE=
 
18185
fi
 
18186
 
12207
18187
 if test "$have_doxygen" = yes; then
12208
18188
  HAVE_DOXYGEN_TRUE=
12209
18189
  HAVE_DOXYGEN_FALSE='#'
12215
18195
 
12216
18196
 
12217
18197
 
12218
 
for ac_prog in gperf
12219
 
do
12220
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12221
 
set dummy $ac_prog; ac_word=$2
12222
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223
 
$as_echo_n "checking for $ac_word... " >&6; }
12224
 
if ${ac_cv_prog_GPERF+:} false; then :
12225
 
  $as_echo_n "(cached) " >&6
12226
 
else
12227
 
  if test -n "$GPERF"; then
12228
 
  ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
12229
 
else
12230
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231
 
for as_dir in $PATH
12232
 
do
12233
 
  IFS=$as_save_IFS
12234
 
  test -z "$as_dir" && as_dir=.
12235
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12236
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237
 
    ac_cv_prog_GPERF="$ac_prog"
12238
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239
 
    break 2
12240
 
  fi
12241
 
done
12242
 
  done
12243
 
IFS=$as_save_IFS
12244
 
 
12245
 
fi
12246
 
fi
12247
 
GPERF=$ac_cv_prog_GPERF
12248
 
if test -n "$GPERF"; then
12249
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
12250
 
$as_echo "$GPERF" >&6; }
12251
 
else
12252
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253
 
$as_echo "no" >&6; }
12254
 
fi
12255
 
 
12256
 
 
12257
 
  test -n "$GPERF" && break
12258
 
done
12259
 
test -n "$GPERF" || GPERF="no"
12260
 
 
12261
 
if test $GPERF = "no"; then
12262
 
        as_fn_error $? "Can't find gperf, please install it and try again" "$LINENO" 5
12263
 
fi
12264
 
 
12265
18198
 
12266
18199
 
12267
18200
 
12280
18213
 
12281
18214
 
12282
18215
 
12283
 
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12284
 
if test "x$ac_cv_type_ssize_t" = xyes; then :
12285
 
 
12286
 
else
12287
 
 
12288
 
cat >>confdefs.h <<_ACEOF
12289
 
#define ssize_t int
12290
 
_ACEOF
12291
 
 
12292
 
fi
12293
 
 
12294
 
 
12295
 
 
12296
 
pkg_failed=no
12297
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
12298
 
$as_echo_n "checking for XPROTO... " >&6; }
12299
 
 
12300
 
if test -n "$XPROTO_CFLAGS"; then
12301
 
    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
12302
 
 elif test -n "$PKG_CONFIG"; then
12303
 
    if test -n "$PKG_CONFIG" && \
12304
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
12305
 
  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
12306
 
  ac_status=$?
12307
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308
 
  test $ac_status = 0; }; then
12309
 
  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.8" 2>/dev/null`
12310
 
else
12311
 
  pkg_failed=yes
12312
 
fi
12313
 
 else
12314
 
    pkg_failed=untried
12315
 
fi
12316
 
if test -n "$XPROTO_LIBS"; then
12317
 
    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
12318
 
 elif test -n "$PKG_CONFIG"; then
12319
 
    if test -n "$PKG_CONFIG" && \
12320
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.8\""; } >&5
12321
 
  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.8") 2>&5
12322
 
  ac_status=$?
12323
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324
 
  test $ac_status = 0; }; then
12325
 
  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.8" 2>/dev/null`
12326
 
else
12327
 
  pkg_failed=yes
12328
 
fi
12329
 
 else
12330
 
    pkg_failed=untried
12331
 
fi
12332
 
 
12333
 
 
12334
 
 
12335
 
if test $pkg_failed = yes; then
12336
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337
 
$as_echo "no" >&6; }
12338
 
 
12339
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12340
 
        _pkg_short_errors_supported=yes
12341
 
else
12342
 
        _pkg_short_errors_supported=no
12343
 
fi
12344
 
        if test $_pkg_short_errors_supported = yes; then
12345
 
                XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.8" 2>&1`
12346
 
        else
12347
 
                XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.8" 2>&1`
12348
 
        fi
12349
 
        # Put the nasty error message in config.log where it belongs
12350
 
        echo "$XPROTO_PKG_ERRORS" >&5
12351
 
 
12352
 
        as_fn_error $? "Package requirements (xproto >= 7.0.8) were not met:
12353
 
 
12354
 
$XPROTO_PKG_ERRORS
12355
 
 
12356
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12357
 
installed software in a non-standard prefix.
12358
 
 
12359
 
Alternatively, you may set the environment variables XPROTO_CFLAGS
12360
 
and XPROTO_LIBS to avoid the need to call pkg-config.
12361
 
See the pkg-config man page for more details." "$LINENO" 5
12362
 
elif test $pkg_failed = untried; then
12363
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364
 
$as_echo "no" >&6; }
12365
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12366
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12367
 
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12368
 
is in your PATH or set the PKG_CONFIG environment variable to the full
12369
 
path to pkg-config.
12370
 
 
12371
 
Alternatively, you may set the environment variables XPROTO_CFLAGS
12372
 
and XPROTO_LIBS to avoid the need to call pkg-config.
12373
 
See the pkg-config man page for more details.
12374
 
 
12375
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12376
 
See \`config.log' for more details" "$LINENO" 5; }
12377
 
else
12378
 
        XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
12379
 
        XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
12380
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381
 
$as_echo "yes" >&6; }
12382
 
 
12383
 
fi
12384
 
 
12385
 
ac_config_files="$ac_config_files Makefile src/Makefile xcb-atom.pc xcb-aux.pc xcb-event.pc xcb-util.pc xcb_util_intro"
 
18216
 
 
18217
ac_config_files="$ac_config_files Makefile src/Makefile xcb-atom.pc xcb-aux.pc xcb-event.pc xcb-util.pc"
12386
18218
 
12387
18219
cat >confcache <<\_ACEOF
12388
18220
# This file is a shell script that caches the results of configure
12474
18306
# Let make expand exec_prefix.
12475
18307
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12476
18308
 
12477
 
# Transform confdefs.h into DEFS.
12478
 
# Protect against shell expansion while executing Makefile rules.
12479
 
# Protect against Makefile macro expansion.
12480
 
#
12481
 
# If the first sed substitution is executed (which looks for macros that
12482
 
# take arguments), then branch to the quote section.  Otherwise,
12483
 
# look for a macro that doesn't take arguments.
12484
 
ac_script='
12485
 
:mline
12486
 
/\\$/{
12487
 
 N
12488
 
 s,\\\n,,
12489
 
 b mline
12490
 
}
12491
 
t clear
12492
 
:clear
12493
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12494
 
t quote
12495
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12496
 
t quote
12497
 
b any
12498
 
:quote
12499
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12500
 
s/\[/\\&/g
12501
 
s/\]/\\&/g
12502
 
s/\$/$$/g
12503
 
H
12504
 
:any
12505
 
${
12506
 
        g
12507
 
        s/^\n//
12508
 
        s/\n/ /g
12509
 
        p
12510
 
}
12511
 
'
12512
 
DEFS=`sed -n "$ac_script" confdefs.h`
12513
 
 
 
18309
DEFS=-DHAVE_CONFIG_H
12514
18310
 
12515
18311
ac_libobjs=
12516
18312
ac_ltlibobjs=
12529
18325
LTLIBOBJS=$ac_ltlibobjs
12530
18326
 
12531
18327
 
 
18328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
18329
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
18330
   if test -n "$am_sleep_pid"; then
 
18331
     # Hide warnings about reused PIDs.
 
18332
     wait $am_sleep_pid 2>/dev/null
 
18333
   fi
 
18334
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
18335
$as_echo "done" >&6; }
12532
18336
 if test -n "$EXEEXT"; then
12533
18337
  am__EXEEXT_TRUE=
12534
18338
  am__EXEEXT_FALSE='#'
12537
18341
  am__EXEEXT_FALSE=
12538
18342
fi
12539
18343
 
12540
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12541
 
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12542
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12543
 
fi
12544
18344
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12545
18345
  as_fn_error $? "conditional \"AMDEP\" was never defined.
12546
18346
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12553
18353
  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
12554
18354
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12555
18355
fi
 
18356
if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
 
18357
  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
 
18358
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18359
fi
12556
18360
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12557
18361
  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12558
18362
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12855
18659
    # ... but there are two gotchas:
12856
18660
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12857
18661
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12858
 
    # In both cases, we have to default to `cp -p'.
 
18662
    # In both cases, we have to default to `cp -pR'.
12859
18663
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12860
 
      as_ln_s='cp -p'
 
18664
      as_ln_s='cp -pR'
12861
18665
  elif ln conf$$.file conf$$ 2>/dev/null; then
12862
18666
    as_ln_s=ln
12863
18667
  else
12864
 
    as_ln_s='cp -p'
 
18668
    as_ln_s='cp -pR'
12865
18669
  fi
12866
18670
else
12867
 
  as_ln_s='cp -p'
 
18671
  as_ln_s='cp -pR'
12868
18672
fi
12869
18673
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12870
18674
rmdir conf$$.dir 2>/dev/null
12924
18728
  as_mkdir_p=false
12925
18729
fi
12926
18730
 
12927
 
if test -x / >/dev/null 2>&1; then
12928
 
  as_test_x='test -x'
12929
 
else
12930
 
  if ls -dL / >/dev/null 2>&1; then
12931
 
    as_ls_L_option=L
12932
 
  else
12933
 
    as_ls_L_option=
12934
 
  fi
12935
 
  as_test_x='
12936
 
    eval sh -c '\''
12937
 
      if test -d "$1"; then
12938
 
        test -d "$1/.";
12939
 
      else
12940
 
        case $1 in #(
12941
 
        -*)set "./$1";;
12942
 
        esac;
12943
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12944
 
        ???[sx]*):;;*)false;;esac;fi
12945
 
    '\'' sh
12946
 
  '
12947
 
fi
12948
 
as_executable_p=$as_test_x
 
18731
 
 
18732
# as_fn_executable_p FILE
 
18733
# -----------------------
 
18734
# Test if FILE is an executable regular file.
 
18735
as_fn_executable_p ()
 
18736
{
 
18737
  test -f "$1" && test -x "$1"
 
18738
} # as_fn_executable_p
 
18739
as_test_x='test -x'
 
18740
as_executable_p=as_fn_executable_p
12949
18741
 
12950
18742
# Sed expression to map a string onto a valid CPP name.
12951
18743
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12966
18758
# report actual input values of CONFIG_FILES etc. instead of their
12967
18759
# values after options handling.
12968
18760
ac_log="
12969
 
This file was extended by xcb-util $as_me 0.3.8, which was
12970
 
generated by GNU Autoconf 2.68.  Invocation command line was
 
18761
This file was extended by xcb-util $as_me 0.4.0, which was
 
18762
generated by GNU Autoconf 2.69.  Invocation command line was
12971
18763
 
12972
18764
  CONFIG_FILES    = $CONFIG_FILES
12973
18765
  CONFIG_HEADERS  = $CONFIG_HEADERS
12984
18776
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12985
18777
esac
12986
18778
 
 
18779
case $ac_config_headers in *"
 
18780
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
18781
esac
12987
18782
 
12988
18783
 
12989
18784
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990
18785
# Files that config.status was made for.
12991
18786
config_files="$ac_config_files"
 
18787
config_headers="$ac_config_headers"
12992
18788
config_commands="$ac_config_commands"
12993
18789
 
12994
18790
_ACEOF
13010
18806
      --recheck    update $as_me by reconfiguring in the same conditions
13011
18807
      --file=FILE[:TEMPLATE]
13012
18808
                   instantiate the configuration file FILE
 
18809
      --header=FILE[:TEMPLATE]
 
18810
                   instantiate the configuration header FILE
13013
18811
 
13014
18812
Configuration files:
13015
18813
$config_files
13016
18814
 
 
18815
Configuration headers:
 
18816
$config_headers
 
18817
 
13017
18818
Configuration commands:
13018
18819
$config_commands
13019
18820
 
13020
 
Report bugs to <xcb@lists.freedesktop.org>."
 
18821
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>."
13021
18822
 
13022
18823
_ACEOF
13023
18824
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13024
18825
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13025
18826
ac_cs_version="\\
13026
 
xcb-util config.status 0.3.8
13027
 
configured by $0, generated by GNU Autoconf 2.68,
 
18827
xcb-util config.status 0.4.0
 
18828
configured by $0, generated by GNU Autoconf 2.69,
13028
18829
  with options \\"\$ac_cs_config\\"
13029
18830
 
13030
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
18831
Copyright (C) 2012 Free Software Foundation, Inc.
13031
18832
This config.status script is free software; the Free Software Foundation
13032
18833
gives unlimited permission to copy, distribute and modify it."
13033
18834
 
13080
18881
    esac
13081
18882
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13082
18883
    ac_need_defaults=false;;
13083
 
  --he | --h |  --help | --hel | -h )
 
18884
  --header | --heade | --head | --hea )
 
18885
    $ac_shift
 
18886
    case $ac_optarg in
 
18887
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
18888
    esac
 
18889
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
18890
    ac_need_defaults=false;;
 
18891
  --he | --h)
 
18892
    # Conflict between --help and --header
 
18893
    as_fn_error $? "ambiguous option: \`$1'
 
18894
Try \`$0 --help' for more information.";;
 
18895
  --help | --hel | -h )
13084
18896
    $as_echo "$ac_cs_usage"; exit ;;
13085
18897
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13086
18898
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13107
18919
_ACEOF
13108
18920
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13109
18921
if \$ac_cs_recheck; then
13110
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
18922
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13111
18923
  shift
13112
18924
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13113
18925
  CONFIG_SHELL='$SHELL'
13149
18961
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13150
18962
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13151
18963
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
18964
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13152
18965
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13153
18966
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13154
18967
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13231
19044
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13232
19045
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13233
19046
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13234
 
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13235
19047
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13236
19048
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13237
19049
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13287
19099
# Quote evaled strings.
13288
19100
for var in SHELL \
13289
19101
ECHO \
 
19102
PATH_SEPARATOR \
13290
19103
SED \
13291
19104
GREP \
13292
19105
EGREP \
13337
19150
allow_undefined_flag \
13338
19151
no_undefined_flag \
13339
19152
hardcode_libdir_flag_spec \
13340
 
hardcode_libdir_flag_spec_ld \
13341
19153
hardcode_libdir_separator \
13342
19154
exclude_expsyms \
13343
19155
include_expsyms \
13418
19230
for ac_config_target in $ac_config_targets
13419
19231
do
13420
19232
  case $ac_config_target in
 
19233
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13421
19234
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13422
19235
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13423
19236
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13426
19239
    "xcb-aux.pc") CONFIG_FILES="$CONFIG_FILES xcb-aux.pc" ;;
13427
19240
    "xcb-event.pc") CONFIG_FILES="$CONFIG_FILES xcb-event.pc" ;;
13428
19241
    "xcb-util.pc") CONFIG_FILES="$CONFIG_FILES xcb-util.pc" ;;
13429
 
    "xcb_util_intro") CONFIG_FILES="$CONFIG_FILES xcb_util_intro" ;;
13430
19242
 
13431
19243
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13432
19244
  esac
13439
19251
# bizarre bug on SunOS 4.1.3.
13440
19252
if $ac_need_defaults; then
13441
19253
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19254
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13442
19255
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13443
19256
fi
13444
19257
 
13627
19440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13628
19441
fi # test -n "$CONFIG_FILES"
13629
19442
 
13630
 
 
13631
 
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
19443
# Set up the scripts for CONFIG_HEADERS section.
 
19444
# No need to generate them if there are no CONFIG_HEADERS.
 
19445
# This happens for instance with `./config.status Makefile'.
 
19446
if test -n "$CONFIG_HEADERS"; then
 
19447
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
19448
BEGIN {
 
19449
_ACEOF
 
19450
 
 
19451
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
19452
# here-document in config.status, that substitutes the proper values into
 
19453
# config.h.in to produce config.h.
 
19454
 
 
19455
# Create a delimiter string that does not exist in confdefs.h, to ease
 
19456
# handling of long lines.
 
19457
ac_delim='%!_!# '
 
19458
for ac_last_try in false false :; do
 
19459
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
19460
  if test -z "$ac_tt"; then
 
19461
    break
 
19462
  elif $ac_last_try; then
 
19463
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
19464
  else
 
19465
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19466
  fi
 
19467
done
 
19468
 
 
19469
# For the awk script, D is an array of macro values keyed by name,
 
19470
# likewise P contains macro parameters if any.  Preserve backslash
 
19471
# newline sequences.
 
19472
 
 
19473
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
19474
sed -n '
 
19475
s/.\{148\}/&'"$ac_delim"'/g
 
19476
t rset
 
19477
:rset
 
19478
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
19479
t def
 
19480
d
 
19481
:def
 
19482
s/\\$//
 
19483
t bsnl
 
19484
s/["\\]/\\&/g
 
19485
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19486
D["\1"]=" \3"/p
 
19487
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
19488
d
 
19489
:bsnl
 
19490
s/["\\]/\\&/g
 
19491
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
19492
D["\1"]=" \3\\\\\\n"\\/p
 
19493
t cont
 
19494
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
19495
t cont
 
19496
d
 
19497
:cont
 
19498
n
 
19499
s/.\{148\}/&'"$ac_delim"'/g
 
19500
t clear
 
19501
:clear
 
19502
s/\\$//
 
19503
t bsnlc
 
19504
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
19505
d
 
19506
:bsnlc
 
19507
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
19508
b cont
 
19509
' <confdefs.h | sed '
 
19510
s/'"$ac_delim"'/"\\\
 
19511
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
19512
 
 
19513
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19514
  for (key in D) D_is_set[key] = 1
 
19515
  FS = ""
 
19516
}
 
19517
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
19518
  line = \$ 0
 
19519
  split(line, arg, " ")
 
19520
  if (arg[1] == "#") {
 
19521
    defundef = arg[2]
 
19522
    mac1 = arg[3]
 
19523
  } else {
 
19524
    defundef = substr(arg[1], 2)
 
19525
    mac1 = arg[2]
 
19526
  }
 
19527
  split(mac1, mac2, "(") #)
 
19528
  macro = mac2[1]
 
19529
  prefix = substr(line, 1, index(line, defundef) - 1)
 
19530
  if (D_is_set[macro]) {
 
19531
    # Preserve the white space surrounding the "#".
 
19532
    print prefix "define", macro P[macro] D[macro]
 
19533
    next
 
19534
  } else {
 
19535
    # Replace #undef with comments.  This is necessary, for example,
 
19536
    # in the case of _POSIX_SOURCE, which is predefined and required
 
19537
    # on some systems where configure will not decide to define it.
 
19538
    if (defundef == "undef") {
 
19539
      print "/*", prefix defundef, macro, "*/"
 
19540
      next
 
19541
    }
 
19542
  }
 
19543
}
 
19544
{ print }
 
19545
_ACAWK
 
19546
_ACEOF
 
19547
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19548
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
19549
fi # test -n "$CONFIG_HEADERS"
 
19550
 
 
19551
 
 
19552
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13632
19553
shift
13633
19554
for ac_tag
13634
19555
do
13847
19768
  esac \
13848
19769
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13849
19770
 ;;
13850
 
 
 
19771
  :H)
 
19772
  #
 
19773
  # CONFIG_HEADER
 
19774
  #
 
19775
  if test x"$ac_file" != x-; then
 
19776
    {
 
19777
      $as_echo "/* $configure_input  */" \
 
19778
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
19779
    } >"$ac_tmp/config.h" \
 
19780
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19781
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
19782
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
19783
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
19784
    else
 
19785
      rm -f "$ac_file"
 
19786
      mv "$ac_tmp/config.h" "$ac_file" \
 
19787
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
19788
    fi
 
19789
  else
 
19790
    $as_echo "/* $configure_input  */" \
 
19791
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
19792
      || as_fn_error $? "could not create -" "$LINENO" 5
 
19793
  fi
 
19794
# Compute "$ac_file"'s index in $config_headers.
 
19795
_am_arg="$ac_file"
 
19796
_am_stamp_count=1
 
19797
for _am_header in $config_headers :; do
 
19798
  case $_am_header in
 
19799
    $_am_arg | $_am_arg:* )
 
19800
      break ;;
 
19801
    * )
 
19802
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
19803
  esac
 
19804
done
 
19805
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
19806
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19807
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
19808
         X"$_am_arg" : 'X\(//\)$' \| \
 
19809
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
19810
$as_echo X"$_am_arg" |
 
19811
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19812
            s//\1/
 
19813
            q
 
19814
          }
 
19815
          /^X\(\/\/\)[^/].*/{
 
19816
            s//\1/
 
19817
            q
 
19818
          }
 
19819
          /^X\(\/\/\)$/{
 
19820
            s//\1/
 
19821
            q
 
19822
          }
 
19823
          /^X\(\/\).*/{
 
19824
            s//\1/
 
19825
            q
 
19826
          }
 
19827
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
19828
 ;;
13851
19829
 
13852
19830
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13853
19831
$as_echo "$as_me: executing $ac_file commands" >&6;}
13857
19835
 
13858
19836
  case $ac_file$ac_mode in
13859
19837
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13860
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
19838
  # Older Autoconf quotes --file arguments for eval, but not when files
13861
19839
  # are listed without --file.  Let's play safe and only enable the eval
13862
19840
  # if we detect the quoting.
13863
19841
  case $CONFIG_FILES in
13870
19848
    # Strip MF so we end up with the name of the file.
13871
19849
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13872
19850
    # Check whether this is an Automake generated Makefile or not.
13873
 
    # We used to match only the files named `Makefile.in', but
 
19851
    # We used to match only the files named 'Makefile.in', but
13874
19852
    # some people rename them; so instead we look at the file content.
13875
19853
    # Grep'ing the first line is not enough: some people post-process
13876
19854
    # each Makefile.in and add a new line on top of each file to say so.
13904
19882
      continue
13905
19883
    fi
13906
19884
    # Extract the definition of DEPDIR, am__include, and am__quote
13907
 
    # from the Makefile without running `make'.
 
19885
    # from the Makefile without running 'make'.
13908
19886
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13909
19887
    test -z "$DEPDIR" && continue
13910
19888
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13911
 
    test -z "am__include" && continue
 
19889
    test -z "$am__include" && continue
13912
19890
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13913
 
    # When using ansi2knr, U may be empty or an underscore; expand it
13914
 
    U=`sed -n 's/^U = //p' < "$mf"`
13915
19891
    # Find all dependency output files, they are included files with
13916
19892
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13917
19893
    # simplest approach to changing $(DEPDIR) to its actual value in the
13918
19894
    # expansion.
13919
19895
    for file in `sed -n "
13920
19896
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13921
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
19897
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13922
19898
      # Make sure the directory exists.
13923
19899
      test -f "$dirpart/$file" && continue
13924
19900
      fdir=`$as_dirname -- "$file" ||
13972
19948
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13973
19949
#
13974
19950
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13975
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13976
 
#                 Inc.
 
19951
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
19952
#                 Foundation, Inc.
13977
19953
#   Written by Gordon Matzigkeit, 1996
13978
19954
#
13979
19955
#   This file is part of GNU Libtool.
14027
20003
# An echo program that protects backslashes.
14028
20004
ECHO=$lt_ECHO
14029
20005
 
 
20006
# The PATH separator for the build system.
 
20007
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
20008
 
14030
20009
# The host system.
14031
20010
host_alias=$host_alias
14032
20011
host=$host
14328
20307
# This must work even if \$libdir does not exist
14329
20308
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14330
20309
 
14331
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
14332
 
# during linking.  This must work even if \$libdir does not exist.
14333
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14334
 
 
14335
20310
# Whether we need a single "-rpath" flag with a separated argument.
14336
20311
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14337
20312