2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xinit 1.3.2.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='xinit'
577 PACKAGE_VERSION='1.3.2'
578 PACKAGE_STRING='xinit 1.3.2'
579 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
581 ac_unique_file="Makefile.am"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
669 INSTALL_STRIP_PROGRAM
678 MAINTAINER_MODE_FALSE
742 LAUNCHAGENT_XSERVER_TRUE
743 LAUNCHAGENT_XSERVER_FALSE
765 ac_precious_vars='build_alias
781 # Initialize some variables set by options.
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name=s,x,x,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
888 eval enable_$ac_feature=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=no ;;
1116 # Obsolete; use --with-x.
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1170 eval ac_val=\$$ac_var
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200 test "$silent" = yes && exec 6>/dev/null
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1281 \`configure' configures xinit 1.3.2 to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1339 --program-prefix=PREFIX prepend PREFIX to installed program names
1340 --program-suffix=SUFFIX append SUFFIX to installed program names
1341 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1344 --build=BUILD configure for building on BUILD [guessed]
1345 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349 if test -n "$ac_init_help"; then
1350 case $ac_init_help in
1351 short | recursive ) echo "Configuration of xinit 1.3.2:";;
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-maintainer-mode enable make rules and dependencies not useful
1359 (and sometimes confusing) to the casual installer
1360 --disable-dependency-tracking speeds up one-time build
1361 --enable-dependency-tracking do not reject slow dependency extractors
1362 --disable-selective-werror
1363 Turn off selective compiler errors. (default:
1365 --enable-strict-compilation
1366 Enable all warnings from compiler and make them
1367 errors (default: disabled)
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-xrdb=XRDB Path to xrdb
1373 --with-xmodmap=XMODMAP Path to xmodmap
1374 --with-twm=TWM Path to twm
1375 --with-xclock=XCLOCK Path to xclock
1376 --with-xterm=XTERM Path to xterm
1377 --with-xserver=XSERVER Path to default X server
1378 --with-xauth=XAUTH Path to xauth
1379 --with-xinit=XINIT Path to xinit
1380 --with-xinitdir=XINITDIR
1382 --with-launchd Build with support for Apple's launchd (default:
1384 --with-launchagents-dir=PATH
1385 Path to launchd's LaunchAgents directory (default:
1386 /Library/LaunchAgents)
1387 --with-launchagent-xserver=PATH
1388 Path to the X server which the LaunchAgent should
1389 start (if not provided, let startx decide)"
1390 --with-launchdaemons-dir=PATH
1391 Path to launchd's LaunchDaemonss directory (default:
1392 /Library/LaunchDaemons)
1393 --with-launchd-id-prefix=PATH
1394 Deprecated: Use --with-bundle-id-prefix.
1395 --with-bundle-id-prefix=PATH
1396 Prefix to use for bundle identifiers (default:
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1408 PKG_CONFIG path to pkg-config utility
1410 directories to add to pkg-config's search path
1412 path overriding pkg-config's built-in search path
1414 C compiler flags for XINIT, overriding pkg-config
1415 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1420 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" || continue
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1448 .) # We are building in place.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1472 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1481 xinit configure 1.3.2
1482 generated by GNU Autoconf 2.61
1484 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1485 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1491 cat >config.log <<_ACEOF
1492 This file contains any messages produced by compilers while
1493 running configure, to aid debugging if configure makes a mistake.
1495 It was created by xinit $as_me 1.3.2, which was
1496 generated by GNU Autoconf 2.61. Invocation command line was
1508 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1509 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1510 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1511 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1512 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1514 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1515 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1517 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1518 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1519 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1520 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1521 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1522 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1523 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 echo "PATH: $as_dir"
1548 # Keep a trace of the command line.
1549 # Strip out --no-create and --no-recursion so they do not pile up.
1550 # Strip out --silent because we don't want to record it for future runs.
1551 # Also quote any args containing shell meta-characters.
1552 # Make two passes to allow for proper duplicate-argument suppression.
1556 ac_must_keep_next=false
1562 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1564 | -silent | --silent | --silen | --sile | --sil)
1567 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1570 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1572 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1573 if test $ac_must_keep_next = true; then
1574 ac_must_keep_next=false # Got value, back to normal.
1577 *=* | --config-cache | -C | -disable-* | --disable-* \
1578 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1579 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1580 | -with-* | --with-* | -without-* | --without-* | --x)
1581 case "$ac_configure_args0 " in
1582 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1585 -* ) ac_must_keep_next=true ;;
1588 ac_configure_args="$ac_configure_args '$ac_arg'"
1593 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1594 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1596 # When interrupted or exit'd, cleanup temporary files, and complete
1597 # config.log. We remove comments because anyway the quotes in there
1598 # would cause problems or look ugly.
1599 # WARNING: Use '\'' to represent an apostrophe within the trap.
1600 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1601 trap 'exit_status=$?
1602 # Save into config.log some information that might help in debugging.
1607 ## ---------------- ##
1608 ## Cache variables. ##
1609 ## ---------------- ##
1612 # The following way of writing the cache mishandles newlines in values,
1614 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1615 eval ac_val=\$$ac_var
1619 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1623 _ | IFS | as_nl) ;; #(
1624 *) $as_unset $ac_var ;;
1629 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1630 *${as_nl}ac_space=\ *)
1632 "s/'\''/'\''\\\\'\'''\''/g;
1633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1644 ## ----------------- ##
1645 ## Output variables. ##
1646 ## ----------------- ##
1649 for ac_var in $ac_subst_vars
1651 eval ac_val=\$$ac_var
1653 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 echo "$ac_var='\''$ac_val'\''"
1659 if test -n "$ac_subst_files"; then
1661 ## ------------------- ##
1662 ## File substitutions. ##
1663 ## ------------------- ##
1666 for ac_var in $ac_subst_files
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 echo "$ac_var='\''$ac_val'\''"
1677 if test -s confdefs.h; then
1687 test "$ac_signal" != 0 &&
1688 echo "$as_me: caught signal $ac_signal"
1689 echo "$as_me: exit $exit_status"
1691 rm -f core *.core core.conftest.* &&
1692 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1695 for ac_signal in 1 2 13 15; do
1696 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1700 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1701 rm -f -r conftest* confdefs.h
1703 # Predefined preprocessor variables.
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_NAME "$PACKAGE_NAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_STRING "$PACKAGE_STRING"
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1730 # Let the site file select an alternate cache file if it wants to.
1731 # Prefer explicitly selected file to automatically selected ones.
1732 if test -n "$CONFIG_SITE"; then
1733 set x "$CONFIG_SITE"
1734 elif test "x$prefix" != xNONE; then
1735 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1737 set x "$ac_default_prefix/share/config.site" \
1738 "$ac_default_prefix/etc/config.site"
1743 if test -r "$ac_site_file"; then
1744 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1745 echo "$as_me: loading site script $ac_site_file" >&6;}
1746 sed 's/^/| /' "$ac_site_file" >&5
1751 if test -r "$cache_file"; then
1752 # Some versions of bash will fail to source /dev/null (special
1753 # files actually), so we avoid doing that.
1754 if test -f "$cache_file"; then
1755 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1756 echo "$as_me: loading cache $cache_file" >&6;}
1758 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1759 *) . "./$cache_file";;
1763 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1764 echo "$as_me: creating cache $cache_file" >&6;}
1768 # Check that the precious variables saved in the cache have kept the same
1770 ac_cache_corrupted=false
1771 for ac_var in $ac_precious_vars; do
1772 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1773 eval ac_new_set=\$ac_env_${ac_var}_set
1774 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1775 eval ac_new_val=\$ac_env_${ac_var}_value
1776 case $ac_old_set,$ac_new_set in
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1782 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1783 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1784 ac_cache_corrupted=: ;;
1787 if test "x$ac_old_val" != "x$ac_new_val"; then
1788 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1789 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1790 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1791 echo "$as_me: former value: $ac_old_val" >&2;}
1792 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1793 echo "$as_me: current value: $ac_new_val" >&2;}
1794 ac_cache_corrupted=:
1797 # Pass precious variables to config.status.
1798 if test "$ac_new_set" = set; then
1800 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 *) ac_arg=$ac_var=$ac_new_val ;;
1803 case " $ac_configure_args " in
1804 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1805 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1809 if $ac_cache_corrupted; then
1810 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1811 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1812 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1813 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1814 { (exit 1); exit 1; }; }
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849 ac_config_headers="$ac_config_headers config.h"
1852 # Initialize Automake
1853 am__api_version='1.10'
1856 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1857 if test -f "$ac_dir/install-sh"; then
1859 ac_install_sh="$ac_aux_dir/install-sh -c"
1861 elif test -f "$ac_dir/install.sh"; then
1863 ac_install_sh="$ac_aux_dir/install.sh -c"
1865 elif test -f "$ac_dir/shtool"; then
1867 ac_install_sh="$ac_aux_dir/shtool install -c"
1871 if test -z "$ac_aux_dir"; then
1872 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1873 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1874 { (exit 1); exit 1; }; }
1877 # These three variables are undocumented and unsupported,
1878 # and are intended to be withdrawn in a future Autoconf release.
1879 # They can cause serious problems if a builder's source tree is in a directory
1880 # whose full name contains unusual characters.
1881 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1882 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1883 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1886 # Find a good install program. We prefer a C program (faster),
1887 # so one script is as good as another. But avoid the broken or
1888 # incompatible versions:
1889 # SysV /etc/install, /usr/sbin/install
1890 # SunOS /usr/etc/install
1891 # IRIX /sbin/install
1893 # AmigaOS /C/install, which installs bootblocks on floppy discs
1894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1897 # OS/2's system install, which has a completely different semantic
1898 # ./install, which can be erroneously created by make from ./install.sh.
1899 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1901 if test -z "$INSTALL"; then
1902 if test "${ac_cv_path_install+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 # Account for people who put trailing slashes in PATH elements.
1912 ./ | .// | /cC/* | \
1913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1917 # OSF1 and SCO ODT 3.0 have their own names for install.
1918 # Don't use installbsd from OSF since it installs stuff as root
1920 for ac_prog in ginstall scoinst install; do
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1923 if test $ac_prog = install &&
1924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1925 # AIX install. It has an incompatible calling convention.
1927 elif test $ac_prog = install &&
1928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1929 # program-specific install script used by HP pwplus--don't use.
1932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1945 if test "${ac_cv_path_install+set}" = set; then
1946 INSTALL=$ac_cv_path_install
1948 # As a last resort, use the slow shell script. Don't cache a
1949 # value for INSTALL within a source directory, because that will
1950 # break other packages using the cache if that directory is
1951 # removed, or if the value is a relative name.
1952 INSTALL=$ac_install_sh
1955 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1956 echo "${ECHO_T}$INSTALL" >&6; }
1958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1959 # It thinks the first close brace ends the variable substitution.
1960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1966 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1967 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1970 echo timestamp > conftest.file
1971 # Do `set' in a subshell so we don't clobber the current shell's
1972 # arguments. Must try -L first in case configure is actually a
1973 # symlink; some systems play weird games with the mod time of symlinks
1974 # (eg FreeBSD returns the mod time of the symlink's containing
1977 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1978 if test "$*" = "X"; then
1980 set X `ls -t $srcdir/configure conftest.file`
1983 if test "$*" != "X $srcdir/configure conftest.file" \
1984 && test "$*" != "X conftest.file $srcdir/configure"; then
1986 # If neither matched, then we have a broken ls. This can happen
1987 # if, for instance, CONFIG_SHELL is bash and it inherits a
1988 # broken ls alias from the environment. This has actually
1989 # happened. Such a system could not be considered "sane".
1990 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1991 alias in your environment" >&5
1992 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1993 alias in your environment" >&2;}
1994 { (exit 1); exit 1; }; }
1997 test "$2" = conftest.file
2003 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2004 Check your system clock" >&5
2005 echo "$as_me: error: newly created file is older than distributed files!
2006 Check your system clock" >&2;}
2007 { (exit 1); exit 1; }; }
2009 { echo "$as_me:$LINENO: result: yes" >&5
2010 echo "${ECHO_T}yes" >&6; }
2011 test "$program_prefix" != NONE &&
2012 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2013 # Use a double $ so make ignores it.
2014 test "$program_suffix" != NONE &&
2015 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2016 # Double any \ or $. echo might interpret backslashes.
2017 # By default was `s,x,x', remove it if useless.
2018 cat <<\_ACEOF >conftest.sed
2019 s/[\\$]/&&/g;s/;s,x,x,$//
2021 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2024 # expand $ac_aux_dir to an absolute path
2025 am_aux_dir=`cd $ac_aux_dir && pwd`
2027 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2028 # Use eval to expand $SHELL
2029 if eval "$MISSING --run true"; then
2030 am_missing_run="$MISSING --run "
2033 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2034 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2037 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2038 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2039 if test -z "$MKDIR_P"; then
2040 if test "${ac_cv_path_mkdir+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2047 test -z "$as_dir" && as_dir=.
2048 for ac_prog in mkdir gmkdir; do
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2051 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2052 'mkdir (GNU coreutils) '* | \
2053 'mkdir (coreutils) '* | \
2054 'mkdir (fileutils) '4.1*)
2055 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2065 if test "${ac_cv_path_mkdir+set}" = set; then
2066 MKDIR_P="$ac_cv_path_mkdir -p"
2068 # As a last resort, use the slow shell script. Don't cache a
2069 # value for MKDIR_P within a source directory, because that will
2070 # break other packages using the cache if that directory is
2071 # removed, or if the value is a relative name.
2072 test -d ./--version && rmdir ./--version
2073 MKDIR_P="$ac_install_sh -d"
2076 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2077 echo "${ECHO_T}$MKDIR_P" >&6; }
2081 [\\/$]* | ?:[\\/]*) ;;
2082 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2085 for ac_prog in gawk mawk nawk awk
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_AWK+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$AWK"; then
2095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 ac_cv_prog_AWK="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 if test -n "$AWK"; then
2116 { echo "$as_me:$LINENO: result: $AWK" >&5
2117 echo "${ECHO_T}$AWK" >&6; }
2119 { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2124 test -n "$AWK" && break
2127 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2128 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2129 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2130 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.make <<\_ACEOF
2136 @echo '@@@%%%=$(MAKE)=@@@%%%'
2138 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2139 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2141 eval ac_cv_prog_make_${ac_make}_set=yes;;
2143 eval ac_cv_prog_make_${ac_make}_set=no;;
2147 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2148 { echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6; }
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2154 SET_MAKE="MAKE=${MAKE-make}"
2157 rm -rf .tst 2>/dev/null
2158 mkdir .tst 2>/dev/null
2159 if test -d .tst; then
2164 rmdir .tst 2>/dev/null
2166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2168 # is not polluted with repeated "-I."
2169 am__isrc=' -I$(srcdir)'
2170 # test to see if srcdir already configured
2171 if test -f $srcdir/config.status; then
2172 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2173 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2174 { (exit 1); exit 1; }; }
2178 # test whether we have cygpath
2179 if test -z "$CYGPATH_W"; then
2180 if (cygpath --version) >/dev/null 2>/dev/null; then
2181 CYGPATH_W='cygpath -w'
2188 # Define the identity of the package.
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE "$PACKAGE"
2198 cat >>confdefs.h <<_ACEOF
2199 #define VERSION "$VERSION"
2202 # Some tools Automake needs.
2204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2216 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2218 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2220 # Installed binaries are usually stripped using `strip' when the user
2221 # run `make install-strip'. However `strip' might not be the right
2222 # tool to use in cross-compilation environments, therefore Automake
2223 # will honor the `STRIP' environment variable to overrule this program.
2224 if test "$cross_compiling" != no; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}strip; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_STRIP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$STRIP"; then
2234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 STRIP=$ac_cv_prog_STRIP
2254 if test -n "$STRIP"; then
2255 { echo "$as_me:$LINENO: result: $STRIP" >&5
2256 echo "${ECHO_T}$STRIP" >&6; }
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2264 if test -z "$ac_cv_prog_STRIP"; then
2266 # Extract the first word of "strip", so it can be a program name with args.
2267 set dummy strip; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$ac_ct_STRIP"; then
2274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_ac_ct_STRIP="strip"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2294 if test -n "$ac_ct_STRIP"; then
2295 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2296 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2302 if test "x$ac_ct_STRIP" = x; then
2305 case $cross_compiling:$ac_tool_warned in
2307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2308 whose name does not start with the host triplet. If you think this
2309 configuration is useful to you, please write to autoconf@gnu.org." >&5
2310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2311 whose name does not start with the host triplet. If you think this
2312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2313 ac_tool_warned=yes ;;
2318 STRIP="$ac_cv_prog_STRIP"
2322 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2324 # We need awk for the "check" target. The system "awk" is bad on
2326 # Always define AMTAR for backward compatibility.
2328 AMTAR=${AMTAR-"${am_missing_run}tar"}
2330 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2336 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2337 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2338 # Check whether --enable-maintainer-mode was given.
2339 if test "${enable_maintainer_mode+set}" = set; then
2340 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2342 USE_MAINTAINER_MODE=no
2345 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2346 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2347 if test $USE_MAINTAINER_MODE = yes; then
2348 MAINTAINER_MODE_TRUE=
2349 MAINTAINER_MODE_FALSE='#'
2351 MAINTAINER_MODE_TRUE='#'
2352 MAINTAINER_MODE_FALSE=
2355 MAINT=$MAINTAINER_MODE_TRUE
2359 # Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_DEFAULT_OPTIONS
2371 DEPDIR="${am__leading_dot}deps"
2373 ac_config_commands="$ac_config_commands depfiles"
2376 am_make=${MAKE-make}
2377 cat > confinc << 'END'
2382 # If we don't find an include directive, just comment out the code.
2383 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2384 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2388 # First try GNU make style include.
2389 echo "include confinc" > confmf
2390 # We grep out `Entering directory' and `Leaving directory'
2391 # messages which can occur if `w' ends up in MAKEFLAGS.
2392 # In particular we don't look at `^make:' because GNU make might
2393 # be invoked under some other name (usually "gmake"), in which
2394 # case it prints its new name instead of `make'.
2395 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2400 # Now try BSD make style include.
2401 if test "$am__include" = "#"; then
2402 echo '.include "confinc"' > confmf
2403 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2404 am__include=.include
2411 { echo "$as_me:$LINENO: result: $_am_result" >&5
2412 echo "${ECHO_T}$_am_result" >&6; }
2413 rm -f confinc confmf
2415 # Check whether --enable-dependency-tracking was given.
2416 if test "${enable_dependency_tracking+set}" = set; then
2417 enableval=$enable_dependency_tracking;
2420 if test "x$enable_dependency_tracking" != xno; then
2421 am_depcomp="$ac_aux_dir/depcomp"
2424 if test "x$enable_dependency_tracking" != xno; then
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$CC"; then
2468 { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2477 if test -z "$ac_cv_prog_CC"; then
2479 # Extract the first word of "gcc", so it can be a program name with args.
2480 set dummy gcc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_CC="gcc"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2515 if test "x$ac_ct_CC" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}cc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$CC"; then
2565 { echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6; }
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595 ac_prog_rejected=yes
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test $ac_prog_rejected = yes; then
2607 # We found a bogon in the path, so make sure we never use it.
2608 set dummy $ac_cv_prog_CC
2610 if test $# != 0; then
2611 # We chose a different compiler from the bogus one.
2612 # However, it has the same basename, so the bogon will be chosen
2613 # first if we set CC to just the basename; use the full file name.
2615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { echo "$as_me:$LINENO: result: $CC" >&5
2665 echo "${ECHO_T}$CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2672 test -n "$CC" && break
2675 if test -z "$CC"; then
2677 for ac_prog in cl.exe
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_ac_ct_CC="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2716 test -n "$ac_ct_CC" && break
2719 if test "x$ac_ct_CC" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2745 # Provide some information about the compiler.
2746 echo "$as_me:$LINENO: checking for C compiler version" >&5
2747 ac_compiler=`set X $ac_compile; echo $2`
2748 { (ac_try="$ac_compiler --version >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler --version >&5") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -v >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -v >&5") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compiler -V >&5") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 ac_clean_files_save=$ac_clean_files
2795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2796 # Try to create an executable without -o first, disregard a.out.
2797 # It will help us diagnose broken compilers, and finding out an intuition
2799 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803 # List of possible output files, starting from the most likely.
2804 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2805 # only as a last resort. b.out is created by i960 compilers.
2806 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808 # The IRIX 6 linker writes into existing files which may not be
2809 # executable, retaining their permissions. Remove them first so a
2810 # subsequent execution test works.
2812 for ac_file in $ac_files
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821 if { (ac_try="$ac_link_default"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_link_default") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2836 for ac_file in $ac_files ''
2838 test -f "$ac_file" || continue
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2843 # We found the default executable, but exeext='' is most
2847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 # We set ac_cv_exeext here because the later test for it is not
2852 # safe: cross compilers may not add the suffix if given an `-o'
2853 # argument, so we may need to know it at that point already.
2854 # Even if this section looks crufty: it has the advantage of
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&2;}
2877 { (exit 77); exit 77; }; }
2880 ac_exeext=$ac_cv_exeext
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889 if { ac_try='./$ac_file'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 if test "$cross_compiling" = maybe; then
2904 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot run C compiled programs.
2908 If you meant to cross compile, use \`--host'.
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_link") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
2938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe'), while it won't with
2942 for ac_file in conftest.exe conftest conftest.*; do
2943 test -f "$ac_file" || continue
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2963 rm -f conftest.$ac_ext
2964 EXEEXT=$ac_cv_exeext
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try="$ac_compile"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3214 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3225 if test "$GCC" = yes; then
3231 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_cv_prog_cc_c89=no
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3249 struct buf { int x; };
3250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251 static char *e (p, i)
3257 static char *f (char * (*g) (char **, int), char **p, ...)
3262 s = g (p, va_arg (v,int));
3267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3268 function prototypes and stuff, but not '\xHH' hex character constants.
3269 These don't provoke an error unfortunately, instead are silently treated
3270 as 'x'. The following induces an error, until -std is added to get
3271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3272 array size at least. It's necessary to write '\x00'==0 to get something
3273 that's true only with -std. */
3274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277 inside strings and character constants. */
3279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281 int test (int i, double x);
3282 struct s1 {int (*f) (int a);};
3283 struct s2 {int (*f) (double a);};
3284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 CC="$ac_save_CC $ac_arg"
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_c89=$ac_arg
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 rm -f conftest.$ac_ext
3332 case "x$ac_cv_prog_cc_c89" in
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 depcc="$CC" am_compiler_list=
3354 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3355 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3356 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3360 # We make a subdir and do the tests there. Otherwise we can end up
3361 # making bogus files that we don't know about and never remove. For
3362 # instance it was reported that on HP-UX the gcc test will end up
3363 # making a dummy file named `D' -- because `-MD' means `put the output
3366 # Copy depcomp to subdir because otherwise we won't find it if we're
3367 # using a relative directory.
3368 cp "$am_depcomp" conftest.dir
3370 # We will build objects and dependencies in a subdirectory because
3371 # it helps to detect inapplicable dependency modes. For instance
3372 # both Tru64's cc and ICC support -MD to output dependencies as a
3373 # side effect of compilation, but ICC will put the dependencies in
3374 # the current directory while Tru64 will put them in the object
3378 am_cv_CC_dependencies_compiler_type=none
3379 if test "$am_compiler_list" = ""; then
3380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3382 for depmode in $am_compiler_list; do
3383 # Setup a source with many dependencies, because some compilers
3384 # like to wrap large dependency lists on column 80 (with \), and
3385 # we should not choose a depcomp mode which is confused by this.
3387 # We need to recreate these files for each test, as the compiler may
3388 # overwrite some of them when testing with obscure command lines.
3389 # This happens at least with the AIX C compiler.
3391 for i in 1 2 3 4 5 6; do
3392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3394 # Solaris 8's {/usr,}/bin/sh.
3395 touch sub/conftst$i.h
3397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3401 # after this tag, mechanisms are not by side-effect, so they'll
3402 # only be used when explicitly requested
3403 if test "x$enable_dependency_tracking" = xyes; then
3411 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3412 # mode. It turns out that the SunPro C++ compiler does not properly
3413 # handle `-M -o', and we need to detect this.
3414 if depmode=$depmode \
3415 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3416 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3417 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3418 >/dev/null 2>conftest.err &&
3419 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3421 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3423 # icc doesn't choke on unknown options, it will just issue warnings
3424 # or remarks (even with -Werror). So we grep stderr for any message
3425 # that says an option was ignored or not supported.
3426 # When given -MP, icc 7.0 and 7.1 complain thusly:
3427 # icc: Command line warning: ignoring option '-M'; no argument required
3428 # The diagnosis changed in icc 8.0:
3429 # icc: Command line remark: option '-MP' not supported
3430 if (grep 'ignoring option' conftest.err ||
3431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3432 am_cv_CC_dependencies_compiler_type=$depmode
3441 am_cv_CC_dependencies_compiler_type=none
3445 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3450 test "x$enable_dependency_tracking" != xno \
3451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3453 am__fastdepCC_FALSE='#'
3455 am__fastdepCC_TRUE='#'
3456 am__fastdepCC_FALSE=
3460 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3461 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cc_c99+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 ac_cv_prog_cc_c99=no
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3474 #include <stdbool.h>
3479 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3480 #define debug(...) fprintf (stderr, __VA_ARGS__)
3481 #define showlist(...) puts (#__VA_ARGS__)
3482 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3484 test_varargs_macros (void)
3489 debug ("X = %d\n", x);
3490 showlist (The first, second, and third items.);
3491 report (x>y, "x is %d but y is %d", x, y);
3494 // Check long long types.
3495 #define BIG64 18446744073709551615ull
3496 #define BIG32 4294967295ul
3497 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3499 your preprocessor is broken;
3503 your preprocessor is broken;
3505 static long long int bignum = -9223372036854775807LL;
3506 static unsigned long long int ubignum = BIG64;
3508 struct incomplete_array
3516 const wchar_t *name;
3520 typedef const char *ccp;
3523 test_restrict (ccp restrict text)
3525 // See if C++-style comments work.
3526 // Iterate through items via the restricted pointer.
3527 // Also check for declarations in for loops.
3528 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3533 // Check varargs and va_copy.
3535 test_varargs (const char *format, ...)
3538 va_start (args, format);
3540 va_copy (args_copy, args);
3551 str = va_arg (args_copy, const char *);
3554 number = va_arg (args_copy, int);
3557 fnumber = va_arg (args_copy, double);
3572 _Bool success = false;
3575 if (test_restrict ("String literal") == 0)
3577 char *restrict newvar = "Another string";
3580 test_varargs ("s, d' f .", "string", 65, 34.234);
3581 test_varargs_macros ();
3583 // Check flexible array members.
3584 struct incomplete_array *ia =
3585 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3587 for (int i = 0; i < ia->datasize; ++i)
3588 ia->data[i] = i * 1.234;
3590 // Check named initializers.
3591 struct named_init ni = {
3593 .name = L"Test wide string",
3594 .average = 543.34343,
3599 int dynamic_array[ni.number];
3600 dynamic_array[ni.number - 1] = 543;
3602 // work around unused variable warnings
3603 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3604 || dynamic_array[ni.number - 1] != 543);
3610 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3612 CC="$ac_save_CC $ac_arg"
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3630 ac_cv_prog_cc_c99=$ac_arg
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3638 rm -f core conftest.err conftest.$ac_objext
3639 test "x$ac_cv_prog_cc_c99" != "xno" && break
3641 rm -f conftest.$ac_ext
3646 case "x$ac_cv_prog_cc_c99" in
3648 { echo "$as_me:$LINENO: result: none needed" >&5
3649 echo "${ECHO_T}none needed" >&6; } ;;
3651 { echo "$as_me:$LINENO: result: unsupported" >&5
3652 echo "${ECHO_T}unsupported" >&6; } ;;
3654 CC="$CC $ac_cv_prog_cc_c99"
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3669 # On Suns, sometimes $CPP names a directory.
3670 if test -n "$CPP" && test -d "$CPP"; then
3673 if test -z "$CPP"; then
3674 if test "${ac_cv_prog_CPP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 # Double quotes because CPP needs to be expanded
3678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681 for ac_c_preproc_warn_flag in '' yes
3683 # Use a header file that comes with gcc, so configuring glibc
3684 # with a fresh cross-compiler works.
3685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686 # <limits.h> exists even on freestanding compilers.
3687 # On the NeXT, cc -E runs the code through the compiler's parser,
3688 # not just through cpp. "Syntax error" is here to catch this case.
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3696 # include <limits.h>
3698 # include <assert.h>
3702 if { (ac_try="$ac_cpp conftest.$ac_ext"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null && {
3715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.$ac_ext
3729 # OK, works on sane cases. Now check whether nonexistent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3739 if { (ac_try="$ac_cpp conftest.$ac_ext"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null && {
3752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3753 test ! -s conftest.err
3755 # Broken: success on invalid input.
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3761 # Passes both tests.
3766 rm -f conftest.err conftest.$ac_ext
3769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770 rm -f conftest.err conftest.$ac_ext
3771 if $ac_preproc_ok; then
3783 { echo "$as_me:$LINENO: result: $CPP" >&5
3784 echo "${ECHO_T}$CPP" >&6; }
3786 for ac_c_preproc_warn_flag in '' yes
3788 # Use a header file that comes with gcc, so configuring glibc
3789 # with a fresh cross-compiler works.
3790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 # <limits.h> exists even on freestanding compilers.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3801 # include <limits.h>
3803 # include <assert.h>
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 grep -v '^ *+' conftest.er1 >conftest.err
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 # Broken: fails on valid input.
3832 rm -f conftest.err conftest.$ac_ext
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3844 if { (ac_try="$ac_cpp conftest.$ac_ext"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3860 # Broken: success on invalid input.
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 # Passes both tests.
3871 rm -f conftest.err conftest.$ac_ext
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then
3879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3880 See \`config.log' for more details." >&5
3881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details." >&2;}
3883 { (exit 1); exit 1; }; }
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3894 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3895 if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 # Extract the first word of "grep ggrep" to use in msg output
3899 if test -z "$GREP"; then
3900 set dummy grep ggrep; ac_prog_name=$2
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 ac_path_GREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in grep ggrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915 # Check for GNU ac_path_GREP and select it if it is found.
3916 # Check for GNU $ac_path_GREP
3917 case `"$ac_path_GREP" --version 2>&1` in
3919 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'GREP' >> "conftest.nl"
3929 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_GREP="$ac_path_GREP"
3935 ac_path_GREP_max=$ac_count
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 $ac_path_GREP_found && break 3
3954 GREP="$ac_cv_path_GREP"
3955 if test -z "$GREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3962 ac_cv_path_GREP=$GREP
3967 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3968 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3972 { echo "$as_me:$LINENO: checking for egrep" >&5
3973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978 then ac_cv_path_EGREP="$GREP -E"
3980 # Extract the first word of "egrep" to use in msg output
3981 if test -z "$EGREP"; then
3982 set dummy egrep; ac_prog_name=$2
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 ac_path_EGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in egrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3997 # Check for GNU ac_path_EGREP and select it if it is found.
3998 # Check for GNU $ac_path_EGREP
3999 case `"$ac_path_EGREP" --version 2>&1` in
4001 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4004 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 echo 'EGREP' >> "conftest.nl"
4011 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 ac_count=`expr $ac_count + 1`
4014 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_EGREP="$ac_path_EGREP"
4017 ac_path_EGREP_max=$ac_count
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4026 $ac_path_EGREP_found && break 3
4036 EGREP="$ac_cv_path_EGREP"
4037 if test -z "$EGREP"; then
4038 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4039 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4040 { (exit 1); exit 1; }; }
4044 ac_cv_path_EGREP=$EGREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4052 EGREP="$ac_cv_path_EGREP"
4055 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4056 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4057 if test "${ac_cv_header_stdc+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_header_stdc=yes
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 ac_cv_header_stdc=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 if test $ac_cv_header_stdc = yes; then
4107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "memchr" >/dev/null 2>&1; then
4121 ac_cv_header_stdc=no
4127 if test $ac_cv_header_stdc = yes; then
4128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "free" >/dev/null 2>&1; then
4142 ac_cv_header_stdc=no
4148 if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then
4153 cat >conftest.$ac_ext <<_ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4161 #if ((' ' & 0x0FF) == 0x020)
4162 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4163 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165 # define ISLOWER(c) \
4166 (('a' <= (c) && (c) <= 'i') \
4167 || ('j' <= (c) && (c) <= 'r') \
4168 || ('s' <= (c) && (c) <= 'z'))
4169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4172 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177 for (i = 0; i < 256; i++)
4178 if (XOR (islower (i), ISLOWER (i))
4179 || toupper (i) != TOUPPER (i))
4184 rm -f conftest$ac_exeext
4185 if { (ac_try="$ac_link"
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_link") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4195 { (case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_try") 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: program exited with status $ac_status" >&5
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_header_stdc=no
4213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4219 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4220 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4221 if test $ac_cv_header_stdc = yes; then
4223 cat >>confdefs.h <<\_ACEOF
4224 #define STDC_HEADERS 1
4229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4239 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4240 inttypes.h stdint.h unistd.h
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4256 #include <$ac_header>
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4275 eval "$as_ac_Header=yes"
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 eval "$as_ac_Header=no"
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_res=`eval echo '${'$as_ac_Header'}'`
4286 { echo "$as_me:$LINENO: result: $ac_res" >&5
4287 echo "${ECHO_T}$ac_res" >&6; }
4288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4289 cat >>confdefs.h <<_ACEOF
4290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4300 { echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
4301 echo $ECHO_N "checking whether __clang__ is declared... $ECHO_C" >&6; }
4302 if test "${ac_cv_have_decl___clang__+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4323 rm -f conftest.$ac_objext
4324 if { (ac_try="$ac_compile"
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_compile") 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest.$ac_objext; then
4340 ac_cv_have_decl___clang__=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_have_decl___clang__=no
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
4351 echo "${ECHO_T}$ac_cv_have_decl___clang__" >&6; }
4352 if test $ac_cv_have_decl___clang__ = yes; then
4358 { echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4359 echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; }
4360 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 $ac_includes_default
4373 #ifndef __INTEL_COMPILER
4374 (void) __INTEL_COMPILER;
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4398 ac_cv_have_decl___INTEL_COMPILER=yes
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_have_decl___INTEL_COMPILER=no
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4409 echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4410 if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
4416 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4417 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
4418 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 $ac_includes_default
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_compile") 2>conftest.er1
4448 grep -v '^ *+' conftest.er1 >conftest.err
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } && {
4453 test -z "$ac_c_werror_flag" ||
4454 test ! -s conftest.err
4455 } && test -s conftest.$ac_objext; then
4456 ac_cv_have_decl___SUNPRO_C=yes
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461 ac_cv_have_decl___SUNPRO_C=no
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4467 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
4468 if test $ac_cv_have_decl___SUNPRO_C = yes; then
4481 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4514 if test -n "$PKG_CONFIG"; then
4515 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4516 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4518 { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4524 if test -z "$ac_cv_path_PKG_CONFIG"; then
4525 ac_pt_PKG_CONFIG=$PKG_CONFIG
4526 # Extract the first word of "pkg-config", so it can be a program name with args.
4527 set dummy pkg-config; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 case $ac_pt_PKG_CONFIG in
4535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4557 if test -n "$ac_pt_PKG_CONFIG"; then
4558 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4559 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4565 if test "x$ac_pt_PKG_CONFIG" = x; then
4568 case $cross_compiling:$ac_tool_warned in
4570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4571 whose name does not start with the host triplet. If you think this
4572 configuration is useful to you, please write to autoconf@gnu.org." >&5
4573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4574 whose name does not start with the host triplet. If you think this
4575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4576 ac_tool_warned=yes ;;
4578 PKG_CONFIG=$ac_pt_PKG_CONFIG
4581 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4585 if test -n "$PKG_CONFIG"; then
4586 _pkg_min_version=0.9.0
4587 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4588 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4589 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4590 { echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4598 # Make sure we can run config.sub.
4599 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4600 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4601 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4602 { (exit 1); exit 1; }; }
4604 { echo "$as_me:$LINENO: checking build system type" >&5
4605 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4606 if test "${ac_cv_build+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 ac_build_alias=$build_alias
4610 test "x$ac_build_alias" = x &&
4611 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4612 test "x$ac_build_alias" = x &&
4613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4615 { (exit 1); exit 1; }; }
4616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4617 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4618 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4619 { (exit 1); exit 1; }; }
4622 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4623 echo "${ECHO_T}$ac_cv_build" >&6; }
4624 case $ac_cv_build in
4626 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4627 echo "$as_me: error: invalid value of canonical build" >&2;}
4628 { (exit 1); exit 1; }; };;
4631 ac_save_IFS=$IFS; IFS='-'
4637 # Remember, the first character of IFS is used to create $*,
4638 # except with old shells:
4641 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4644 { echo "$as_me:$LINENO: checking host system type" >&5
4645 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4646 if test "${ac_cv_host+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test "x$host_alias" = x; then
4650 ac_cv_host=$ac_cv_build
4652 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4653 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4654 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4655 { (exit 1); exit 1; }; }
4659 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4660 echo "${ECHO_T}$ac_cv_host" >&6; }
4663 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4664 echo "$as_me: error: invalid value of canonical host" >&2;}
4665 { (exit 1); exit 1; }; };;
4668 ac_save_IFS=$IFS; IFS='-'
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4681 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4682 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4683 if test "${ac_cv_path_SED+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4687 for ac_i in 1 2 3 4 5 6 7; do
4688 ac_script="$ac_script$as_nl$ac_script"
4690 echo "$ac_script" | sed 99q >conftest.sed
4691 $as_unset ac_script || ac_script=
4692 # Extract the first word of "sed gsed" to use in msg output
4693 if test -z "$SED"; then
4694 set dummy sed gsed; ac_prog_name=$2
4695 if test "${ac_cv_path_SED+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_path_SED_found=false
4699 # Loop through the user's path and test for each of PROGNAME-LIST
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_prog in sed gsed; do
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4708 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4709 # Check for GNU ac_path_SED and select it if it is found.
4710 # Check for GNU $ac_path_SED
4711 case `"$ac_path_SED" --version 2>&1` in
4713 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4719 cat "conftest.in" "conftest.in" >"conftest.tmp"
4720 mv "conftest.tmp" "conftest.in"
4721 cp "conftest.in" "conftest.nl"
4722 echo '' >> "conftest.nl"
4723 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725 ac_count=`expr $ac_count + 1`
4726 if test $ac_count -gt ${ac_path_SED_max-0}; then
4727 # Best one so far, save it but keep looking for a better one
4728 ac_cv_path_SED="$ac_path_SED"
4729 ac_path_SED_max=$ac_count
4731 # 10*(2^10) chars as input seems more than enough
4732 test $ac_count -gt 10 && break
4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 $ac_path_SED_found && break 3
4748 SED="$ac_cv_path_SED"
4749 if test -z "$SED"; then
4750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4751 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4752 { (exit 1); exit 1; }; }
4760 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4761 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4762 SED="$ac_cv_path_SED"
4770 # Check whether --enable-selective-werror was given.
4771 if test "${enable_selective_werror+set}" = set; then
4772 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4774 SELECTIVE_WERROR=yes
4778 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4779 if test "x$SUNCC" = "xyes"; then
4785 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4791 xorg_testset_save_CFLAGS="$CFLAGS"
4793 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4796 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 xorg_testset_unknown_warning_option=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 xorg_testset_unknown_warning_option=no
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4832 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4833 CFLAGS="$xorg_testset_save_CFLAGS"
4836 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4841 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
4842 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4868 xorg_testset_unused_command_line_argument=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 xorg_testset_unused_command_line_argument=no
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
4878 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4884 if test $found = "no" ; then
4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893 CFLAGS="$CFLAGS -Wall"
4895 { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
4896 echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (ac_try="$ac_link"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_link") 2>conftest.er1
4921 grep -v '^ *+' conftest.er1 >conftest.err
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } && {
4926 test -z "$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4928 } && test -s conftest$ac_exeext &&
4929 $as_test_x conftest$ac_exeext; then
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4939 conftest$ac_exeext conftest.$ac_ext
4940 { echo "$as_me:$LINENO: result: $supported" >&5
4941 echo "${ECHO_T}$supported" >&6; }
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4944 if test "$supported" = "yes" ; then
4945 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4956 xorg_testset_save_CFLAGS="$CFLAGS"
4958 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
4961 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
4962 cat >conftest.$ac_ext <<_ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 xorg_testset_unknown_warning_option=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 xorg_testset_unknown_warning_option=no
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
4997 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
4998 CFLAGS="$xorg_testset_save_CFLAGS"
5001 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5006 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5007 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5008 cat >conftest.$ac_ext <<_ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5016 rm -f conftest.$ac_objext
5017 if { (ac_try="$ac_compile"
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020 *) ac_try_echo=$ac_try;;
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023 (eval "$ac_compile") 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } && {
5030 test -z "$ac_c_werror_flag" ||
5031 test ! -s conftest.err
5032 } && test -s conftest.$ac_objext; then
5033 xorg_testset_unused_command_line_argument=yes
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 xorg_testset_unused_command_line_argument=no
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5043 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5044 CFLAGS="$xorg_testset_save_CFLAGS"
5049 if test $found = "no" ; then
5050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5054 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5058 CFLAGS="$CFLAGS -Wpointer-arith"
5060 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5061 echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104 conftest$ac_exeext conftest.$ac_ext
5105 { echo "$as_me:$LINENO: result: $supported" >&5
5106 echo "${ECHO_T}$supported" >&6; }
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5109 if test "$supported" = "yes" ; then
5110 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5121 xorg_testset_save_CFLAGS="$CFLAGS"
5123 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5126 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 xorg_testset_unknown_warning_option=yes
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 xorg_testset_unknown_warning_option=no
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5162 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5166 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5167 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_compile") 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && {
5195 test -z "$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5197 } && test -s conftest.$ac_objext; then
5198 xorg_testset_unused_command_line_argument=yes
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 xorg_testset_unused_command_line_argument=no
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5208 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5209 CFLAGS="$xorg_testset_save_CFLAGS"
5214 if test $found = "no" ; then
5215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223 CFLAGS="$CFLAGS -Wstrict-prototypes"
5225 { echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
5226 echo $ECHO_N "checking if $CC supports -Wstrict-prototypes... $ECHO_C" >&6; }
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (ac_try="$ac_link"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_link") 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest$ac_exeext &&
5259 $as_test_x conftest$ac_exeext; then
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5269 conftest$ac_exeext conftest.$ac_ext
5270 { echo "$as_me:$LINENO: result: $supported" >&5
5271 echo "${ECHO_T}$supported" >&6; }
5272 CFLAGS="$xorg_testset_save_CFLAGS"
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5286 xorg_testset_save_CFLAGS="$CFLAGS"
5288 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5291 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5292 cat >conftest.$ac_ext <<_ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 xorg_testset_unknown_warning_option=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 xorg_testset_unknown_warning_option=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5327 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5328 CFLAGS="$xorg_testset_save_CFLAGS"
5331 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5336 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5337 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 xorg_testset_unused_command_line_argument=yes
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 xorg_testset_unused_command_line_argument=no
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5373 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5379 if test $found = "no" ; then
5380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388 CFLAGS="$CFLAGS -Wmissing-prototypes"
5390 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
5391 echo $ECHO_N "checking if $CC supports -Wmissing-prototypes... $ECHO_C" >&6; }
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5407 rm -f conftest.$ac_objext conftest$ac_exeext
5408 if { (ac_try="$ac_link"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_link") 2>conftest.er1
5416 grep -v '^ *+' conftest.er1 >conftest.err
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest$ac_exeext &&
5424 $as_test_x conftest$ac_exeext; then
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5434 conftest$ac_exeext conftest.$ac_ext
5435 { echo "$as_me:$LINENO: result: $supported" >&5
5436 echo "${ECHO_T}$supported" >&6; }
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5439 if test "$supported" = "yes" ; then
5440 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5451 xorg_testset_save_CFLAGS="$CFLAGS"
5453 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5456 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 xorg_testset_unknown_warning_option=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 xorg_testset_unknown_warning_option=no
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5492 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5496 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 xorg_testset_unused_command_line_argument=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 xorg_testset_unused_command_line_argument=no
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5538 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5544 if test $found = "no" ; then
5545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5553 CFLAGS="$CFLAGS -Wmissing-declarations"
5555 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
5556 echo $ECHO_N "checking if $CC supports -Wmissing-declarations... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (ac_try="$ac_link"
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_link") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest$ac_exeext &&
5589 $as_test_x conftest$ac_exeext; then
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5599 conftest$ac_exeext conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $supported" >&5
5601 echo "${ECHO_T}$supported" >&6; }
5602 CFLAGS="$xorg_testset_save_CFLAGS"
5604 if test "$supported" = "yes" ; then
5605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5616 xorg_testset_save_CFLAGS="$CFLAGS"
5618 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5620 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5621 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 xorg_testset_unknown_warning_option=yes
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 xorg_testset_unknown_warning_option=no
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5657 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5658 CFLAGS="$xorg_testset_save_CFLAGS"
5661 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5667 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1 >conftest.err
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 xorg_testset_unused_command_line_argument=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 xorg_testset_unused_command_line_argument=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5703 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5704 CFLAGS="$xorg_testset_save_CFLAGS"
5709 if test $found = "no" ; then
5710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5718 CFLAGS="$CFLAGS -Wnested-externs"
5720 { echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
5721 echo $ECHO_N "checking if $CC supports -Wnested-externs... $ECHO_C" >&6; }
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest$ac_exeext &&
5754 $as_test_x conftest$ac_exeext; then
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764 conftest$ac_exeext conftest.$ac_ext
5765 { echo "$as_me:$LINENO: result: $supported" >&5
5766 echo "${ECHO_T}$supported" >&6; }
5767 CFLAGS="$xorg_testset_save_CFLAGS"
5769 if test "$supported" = "yes" ; then
5770 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5781 xorg_testset_save_CFLAGS="$CFLAGS"
5783 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5786 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 xorg_testset_unknown_warning_option=yes
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 xorg_testset_unknown_warning_option=no
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5822 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5826 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5827 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5832 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5841 rm -f conftest.$ac_objext
5842 if { (ac_try="$ac_compile"
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest.$ac_objext; then
5858 xorg_testset_unused_command_line_argument=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 xorg_testset_unused_command_line_argument=no
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
5868 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
5869 CFLAGS="$xorg_testset_save_CFLAGS"
5874 if test $found = "no" ; then
5875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5883 CFLAGS="$CFLAGS -Wbad-function-cast"
5885 { echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
5886 echo $ECHO_N "checking if $CC supports -Wbad-function-cast... $ECHO_C" >&6; }
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest$ac_exeext &&
5919 $as_test_x conftest$ac_exeext; then
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5929 conftest$ac_exeext conftest.$ac_ext
5930 { echo "$as_me:$LINENO: result: $supported" >&5
5931 echo "${ECHO_T}$supported" >&6; }
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5934 if test "$supported" = "yes" ; then
5935 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5946 xorg_testset_save_CFLAGS="$CFLAGS"
5948 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
5951 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 xorg_testset_unknown_warning_option=yes
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 xorg_testset_unknown_warning_option=no
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
5987 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5991 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 xorg_testset_unused_command_line_argument=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 xorg_testset_unused_command_line_argument=no
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6033 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6034 CFLAGS="$xorg_testset_save_CFLAGS"
6039 if test $found = "no" ; then
6040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6048 CFLAGS="$CFLAGS -Wformat=2"
6050 { echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
6051 echo $ECHO_N "checking if $CC supports -Wformat=2... $ECHO_C" >&6; }
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (ac_try="$ac_link"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_link") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest$ac_exeext &&
6084 $as_test_x conftest$ac_exeext; then
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094 conftest$ac_exeext conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $supported" >&5
6096 echo "${ECHO_T}$supported" >&6; }
6097 CFLAGS="$xorg_testset_save_CFLAGS"
6099 if test "$supported" = "yes" ; then
6100 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6105 if test $found = "no" ; then
6106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114 CFLAGS="$CFLAGS -Wformat"
6116 { echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
6117 echo $ECHO_N "checking if $CC supports -Wformat... $ECHO_C" >&6; }
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_link") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest$ac_exeext &&
6150 $as_test_x conftest$ac_exeext; then
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $supported" >&5
6162 echo "${ECHO_T}$supported" >&6; }
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6165 if test "$supported" = "yes" ; then
6166 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6177 xorg_testset_save_CFLAGS="$CFLAGS"
6179 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6182 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 xorg_testset_unknown_warning_option=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 xorg_testset_unknown_warning_option=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6218 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6222 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6237 rm -f conftest.$ac_objext
6238 if { (ac_try="$ac_compile"
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_compile") 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
6254 xorg_testset_unused_command_line_argument=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 xorg_testset_unused_command_line_argument=no
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6264 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6265 CFLAGS="$xorg_testset_save_CFLAGS"
6270 if test $found = "no" ; then
6271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6279 CFLAGS="$CFLAGS -Wold-style-definition"
6281 { echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
6282 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6; }
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (ac_try="$ac_link"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_link") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest$ac_exeext &&
6315 $as_test_x conftest$ac_exeext; then
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6325 conftest$ac_exeext conftest.$ac_ext
6326 { echo "$as_me:$LINENO: result: $supported" >&5
6327 echo "${ECHO_T}$supported" >&6; }
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6330 if test "$supported" = "yes" ; then
6331 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6342 xorg_testset_save_CFLAGS="$CFLAGS"
6344 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6347 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6356 rm -f conftest.$ac_objext
6357 if { (ac_try="$ac_compile"
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_compile") 2>conftest.er1
6365 grep -v '^ *+' conftest.er1 >conftest.err
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && {
6370 test -z "$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 } && test -s conftest.$ac_objext; then
6373 xorg_testset_unknown_warning_option=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 xorg_testset_unknown_warning_option=no
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6383 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6387 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 xorg_testset_unused_command_line_argument=yes
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 xorg_testset_unused_command_line_argument=no
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6429 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6435 if test $found = "no" ; then
6436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6446 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
6447 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_link") 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } && {
6477 test -z "$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6479 } && test -s conftest$ac_exeext &&
6480 $as_test_x conftest$ac_exeext; then
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490 conftest$ac_exeext conftest.$ac_ext
6491 { echo "$as_me:$LINENO: result: $supported" >&5
6492 echo "${ECHO_T}$supported" >&6; }
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6495 if test "$supported" = "yes" ; then
6496 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6503 # This chunk adds additional warnings that could catch undesired effects.
6509 xorg_testset_save_CFLAGS="$CFLAGS"
6511 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6514 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 xorg_testset_unknown_warning_option=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 xorg_testset_unknown_warning_option=no
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6550 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6554 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1 >conftest.err
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 xorg_testset_unused_command_line_argument=yes
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 xorg_testset_unused_command_line_argument=no
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6596 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6597 CFLAGS="$xorg_testset_save_CFLAGS"
6602 if test $found = "no" ; then
6603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611 CFLAGS="$CFLAGS -Wunused"
6613 { echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
6614 echo $ECHO_N "checking if $CC supports -Wunused... $ECHO_C" >&6; }
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (ac_try="$ac_link"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_link") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest$ac_exeext &&
6647 $as_test_x conftest$ac_exeext; then
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657 conftest$ac_exeext conftest.$ac_ext
6658 { echo "$as_me:$LINENO: result: $supported" >&5
6659 echo "${ECHO_T}$supported" >&6; }
6660 CFLAGS="$xorg_testset_save_CFLAGS"
6662 if test "$supported" = "yes" ; then
6663 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6674 xorg_testset_save_CFLAGS="$CFLAGS"
6676 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6679 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 xorg_testset_unknown_warning_option=yes
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 xorg_testset_unknown_warning_option=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6715 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6719 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6724 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6725 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6734 rm -f conftest.$ac_objext
6735 if { (ac_try="$ac_compile"
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_compile") 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest.$ac_objext; then
6751 xorg_testset_unused_command_line_argument=yes
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 xorg_testset_unused_command_line_argument=no
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6761 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6767 if test $found = "no" ; then
6768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776 CFLAGS="$CFLAGS -Wuninitialized"
6778 { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
6779 echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext &&
6812 $as_test_x conftest$ac_exeext; then
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $supported" >&5
6824 echo "${ECHO_T}$supported" >&6; }
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6827 if test "$supported" = "yes" ; then
6828 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6839 xorg_testset_save_CFLAGS="$CFLAGS"
6841 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
6844 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860 (eval "$ac_compile") 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && {
6867 test -z "$ac_c_werror_flag" ||
6868 test ! -s conftest.err
6869 } && test -s conftest.$ac_objext; then
6870 xorg_testset_unknown_warning_option=yes
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 xorg_testset_unknown_warning_option=no
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
6880 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
6881 CFLAGS="$xorg_testset_save_CFLAGS"
6884 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6889 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
6890 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 xorg_testset_unused_command_line_argument=yes
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 xorg_testset_unused_command_line_argument=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
6926 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6932 if test $found = "no" ; then
6933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6941 CFLAGS="$CFLAGS -Wshadow"
6943 { echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
6944 echo $ECHO_N "checking if $CC supports -Wshadow... $ECHO_C" >&6; }
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_link") 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest$ac_exeext &&
6977 $as_test_x conftest$ac_exeext; then
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6987 conftest$ac_exeext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $supported" >&5
6989 echo "${ECHO_T}$supported" >&6; }
6990 CFLAGS="$xorg_testset_save_CFLAGS"
6992 if test "$supported" = "yes" ; then
6993 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7004 xorg_testset_save_CFLAGS="$CFLAGS"
7006 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7009 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 xorg_testset_unknown_warning_option=yes
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 xorg_testset_unknown_warning_option=no
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7045 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7049 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7050 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 xorg_testset_unused_command_line_argument=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 xorg_testset_unused_command_line_argument=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7091 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7092 CFLAGS="$xorg_testset_save_CFLAGS"
7097 if test $found = "no" ; then
7098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106 CFLAGS="$CFLAGS -Wcast-qual"
7108 { echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
7109 echo $ECHO_N "checking if $CC supports -Wcast-qual... $ECHO_C" >&6; }
7110 cat >conftest.$ac_ext <<_ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (ac_try="$ac_link"
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_link") 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest$ac_exeext &&
7142 $as_test_x conftest$ac_exeext; then
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7152 conftest$ac_exeext conftest.$ac_ext
7153 { echo "$as_me:$LINENO: result: $supported" >&5
7154 echo "${ECHO_T}$supported" >&6; }
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7157 if test "$supported" = "yes" ; then
7158 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
7169 xorg_testset_save_CFLAGS="$CFLAGS"
7171 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7174 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7192 grep -v '^ *+' conftest.er1 >conftest.err
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 xorg_testset_unknown_warning_option=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 xorg_testset_unknown_warning_option=no
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7210 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7211 CFLAGS="$xorg_testset_save_CFLAGS"
7214 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7220 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 xorg_testset_unused_command_line_argument=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 xorg_testset_unused_command_line_argument=no
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7256 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7257 CFLAGS="$xorg_testset_save_CFLAGS"
7262 if test $found = "no" ; then
7263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7271 CFLAGS="$CFLAGS -Wmissing-noreturn"
7273 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
7274 echo $ECHO_N "checking if $CC supports -Wmissing-noreturn... $ECHO_C" >&6; }
7275 cat >conftest.$ac_ext <<_ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (ac_try="$ac_link"
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_link") 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest$ac_exeext &&
7307 $as_test_x conftest$ac_exeext; then
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 conftest$ac_exeext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $supported" >&5
7319 echo "${ECHO_T}$supported" >&6; }
7320 CFLAGS="$xorg_testset_save_CFLAGS"
7322 if test "$supported" = "yes" ; then
7323 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7334 xorg_testset_save_CFLAGS="$CFLAGS"
7336 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7339 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 xorg_testset_unknown_warning_option=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 xorg_testset_unknown_warning_option=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7375 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7379 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7384 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7385 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 xorg_testset_unused_command_line_argument=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 xorg_testset_unused_command_line_argument=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7421 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7427 if test $found = "no" ; then
7428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7438 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
7439 echo $ECHO_N "checking if $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7455 rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (ac_try="$ac_link"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_link") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest$ac_exeext &&
7472 $as_test_x conftest$ac_exeext; then
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7482 conftest$ac_exeext conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $supported" >&5
7484 echo "${ECHO_T}$supported" >&6; }
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7487 if test "$supported" = "yes" ; then
7488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7499 xorg_testset_save_CFLAGS="$CFLAGS"
7501 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7504 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7513 rm -f conftest.$ac_objext
7514 if { (ac_try="$ac_compile"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_compile") 2>conftest.er1
7522 grep -v '^ *+' conftest.er1 >conftest.err
7524 cat conftest.err >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_c_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest.$ac_objext; then
7530 xorg_testset_unknown_warning_option=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 xorg_testset_unknown_warning_option=no
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7540 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7544 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_compile") 2>conftest.er1
7568 grep -v '^ *+' conftest.er1 >conftest.err
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
7576 xorg_testset_unused_command_line_argument=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 xorg_testset_unused_command_line_argument=no
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7586 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7587 CFLAGS="$xorg_testset_save_CFLAGS"
7592 if test $found = "no" ; then
7593 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601 CFLAGS="$CFLAGS -Wredundant-decls"
7603 { echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
7604 echo $ECHO_N "checking if $CC supports -Wredundant-decls... $ECHO_C" >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest$ac_exeext &&
7637 $as_test_x conftest$ac_exeext; then
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7647 conftest$ac_exeext conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $supported" >&5
7649 echo "${ECHO_T}$supported" >&6; }
7650 CFLAGS="$xorg_testset_save_CFLAGS"
7652 if test "$supported" = "yes" ; then
7653 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7660 # These are currently disabled because they are noisy. They will be enabled
7661 # in the future once the codebase is sufficiently modernized to silence
7662 # them. For now, I don't want them to drown out the other warnings.
7663 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
7664 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
7665 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
7667 # Turn some warnings into errors, so we don't accidently get successful builds
7668 # when there are problems that should be fixed.
7670 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7676 xorg_testset_save_CFLAGS="$CFLAGS"
7678 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7681 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 xorg_testset_unknown_warning_option=yes
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 xorg_testset_unknown_warning_option=no
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7717 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7721 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7726 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7727 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 xorg_testset_unused_command_line_argument=yes
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 xorg_testset_unused_command_line_argument=no
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7763 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7764 CFLAGS="$xorg_testset_save_CFLAGS"
7769 if test $found = "no" ; then
7770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778 CFLAGS="$CFLAGS -Werror=implicit"
7780 { echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
7781 echo $ECHO_N "checking if $CC supports -Werror=implicit... $ECHO_C" >&6; }
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7806 grep -v '^ *+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824 conftest$ac_exeext conftest.$ac_ext
7825 { echo "$as_me:$LINENO: result: $supported" >&5
7826 echo "${ECHO_T}$supported" >&6; }
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7829 if test "$supported" = "yes" ; then
7830 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7835 if test $found = "no" ; then
7836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7844 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7846 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7847 echo $ECHO_N "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... $ECHO_C" >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest$ac_exeext &&
7880 $as_test_x conftest$ac_exeext; then
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890 conftest$ac_exeext conftest.$ac_ext
7891 { echo "$as_me:$LINENO: result: $supported" >&5
7892 echo "${ECHO_T}$supported" >&6; }
7893 CFLAGS="$xorg_testset_save_CFLAGS"
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7907 xorg_testset_save_CFLAGS="$CFLAGS"
7909 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
7912 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 xorg_testset_unknown_warning_option=yes
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 xorg_testset_unknown_warning_option=no
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
7948 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7952 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
7958 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
7959 cat >conftest.$ac_ext <<_ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_compile") 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest.$ac_objext; then
7984 xorg_testset_unused_command_line_argument=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 xorg_testset_unused_command_line_argument=no
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
7994 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
7995 CFLAGS="$xorg_testset_save_CFLAGS"
8000 if test $found = "no" ; then
8001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009 CFLAGS="$CFLAGS -Werror=nonnull"
8011 { echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
8012 echo $ECHO_N "checking if $CC supports -Werror=nonnull... $ECHO_C" >&6; }
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 conftest$ac_exeext conftest.$ac_ext
8056 { echo "$as_me:$LINENO: result: $supported" >&5
8057 echo "${ECHO_T}$supported" >&6; }
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8072 xorg_testset_save_CFLAGS="$CFLAGS"
8074 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8077 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8086 rm -f conftest.$ac_objext
8087 if { (ac_try="$ac_compile"
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_compile") 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest.$ac_objext; then
8103 xorg_testset_unknown_warning_option=yes
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 xorg_testset_unknown_warning_option=no
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8113 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8114 CFLAGS="$xorg_testset_save_CFLAGS"
8117 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
8149 xorg_testset_unused_command_line_argument=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 xorg_testset_unused_command_line_argument=no
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8159 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8165 if test $found = "no" ; then
8166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174 CFLAGS="$CFLAGS -Werror=init-self"
8176 { echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
8177 echo $ECHO_N "checking if $CC supports -Werror=init-self... $ECHO_C" >&6; }
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $supported" >&5
8222 echo "${ECHO_T}$supported" >&6; }
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8225 if test "$supported" = "yes" ; then
8226 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8237 xorg_testset_save_CFLAGS="$CFLAGS"
8239 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8242 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 xorg_testset_unknown_warning_option=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 xorg_testset_unknown_warning_option=no
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8278 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8282 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8283 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
8314 xorg_testset_unused_command_line_argument=yes
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 xorg_testset_unused_command_line_argument=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8324 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8325 CFLAGS="$xorg_testset_save_CFLAGS"
8330 if test $found = "no" ; then
8331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339 CFLAGS="$CFLAGS -Werror=main"
8341 { echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
8342 echo $ECHO_N "checking if $CC supports -Werror=main... $ECHO_C" >&6; }
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_link") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest$ac_exeext &&
8375 $as_test_x conftest$ac_exeext; then
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8385 conftest$ac_exeext conftest.$ac_ext
8386 { echo "$as_me:$LINENO: result: $supported" >&5
8387 echo "${ECHO_T}$supported" >&6; }
8388 CFLAGS="$xorg_testset_save_CFLAGS"
8390 if test "$supported" = "yes" ; then
8391 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8402 xorg_testset_save_CFLAGS="$CFLAGS"
8404 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8407 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8408 cat >conftest.$ac_ext <<_ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 xorg_testset_unknown_warning_option=yes
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 xorg_testset_unknown_warning_option=no
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8443 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8444 CFLAGS="$xorg_testset_save_CFLAGS"
8447 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8448 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8453 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 xorg_testset_unused_command_line_argument=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 xorg_testset_unused_command_line_argument=no
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8489 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8490 CFLAGS="$xorg_testset_save_CFLAGS"
8495 if test $found = "no" ; then
8496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504 CFLAGS="$CFLAGS -Werror=missing-braces"
8506 { echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
8507 echo $ECHO_N "checking if $CC supports -Werror=missing-braces... $ECHO_C" >&6; }
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (ac_try="$ac_link"
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_link") 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext &&
8540 $as_test_x conftest$ac_exeext; then
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550 conftest$ac_exeext conftest.$ac_ext
8551 { echo "$as_me:$LINENO: result: $supported" >&5
8552 echo "${ECHO_T}$supported" >&6; }
8553 CFLAGS="$xorg_testset_save_CFLAGS"
8555 if test "$supported" = "yes" ; then
8556 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8567 xorg_testset_save_CFLAGS="$CFLAGS"
8569 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8572 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 xorg_testset_unknown_warning_option=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 xorg_testset_unknown_warning_option=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8608 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8612 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8636 grep -v '^ *+' conftest.er1 >conftest.err
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 xorg_testset_unused_command_line_argument=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 xorg_testset_unused_command_line_argument=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8654 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8660 if test $found = "no" ; then
8661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669 CFLAGS="$CFLAGS -Werror=sequence-point"
8671 { echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
8672 echo $ECHO_N "checking if $CC supports -Werror=sequence-point... $ECHO_C" >&6; }
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_link") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest$ac_exeext &&
8705 $as_test_x conftest$ac_exeext; then
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8715 conftest$ac_exeext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $supported" >&5
8717 echo "${ECHO_T}$supported" >&6; }
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8720 if test "$supported" = "yes" ; then
8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8732 xorg_testset_save_CFLAGS="$CFLAGS"
8734 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8737 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 xorg_testset_unknown_warning_option=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 xorg_testset_unknown_warning_option=no
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
8773 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
8774 CFLAGS="$xorg_testset_save_CFLAGS"
8777 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
8783 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 xorg_testset_unused_command_line_argument=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 xorg_testset_unused_command_line_argument=no
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
8819 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
8820 CFLAGS="$xorg_testset_save_CFLAGS"
8825 if test $found = "no" ; then
8826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8834 CFLAGS="$CFLAGS -Werror=return-type"
8836 { echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
8837 echo $ECHO_N "checking if $CC supports -Werror=return-type... $ECHO_C" >&6; }
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_link") 2>conftest.er1
8862 grep -v '^ *+' conftest.er1 >conftest.err
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest$ac_exeext &&
8870 $as_test_x conftest$ac_exeext; then
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880 conftest$ac_exeext conftest.$ac_ext
8881 { echo "$as_me:$LINENO: result: $supported" >&5
8882 echo "${ECHO_T}$supported" >&6; }
8883 CFLAGS="$xorg_testset_save_CFLAGS"
8885 if test "$supported" = "yes" ; then
8886 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8902 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8903 echo $ECHO_N "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... $ECHO_C" >&6; }
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext &&
8936 $as_test_x conftest$ac_exeext; then
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 conftest$ac_exeext conftest.$ac_ext
8947 { echo "$as_me:$LINENO: result: $supported" >&5
8948 echo "${ECHO_T}$supported" >&6; }
8949 CFLAGS="$xorg_testset_save_CFLAGS"
8951 if test "$supported" = "yes" ; then
8952 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8963 xorg_testset_save_CFLAGS="$CFLAGS"
8965 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
8968 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
8969 cat >conftest.$ac_ext <<_ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8977 rm -f conftest.$ac_objext
8978 if { (ac_try="$ac_compile"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && {
8991 test -z "$ac_c_werror_flag" ||
8992 test ! -s conftest.err
8993 } && test -s conftest.$ac_objext; then
8994 xorg_testset_unknown_warning_option=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 xorg_testset_unknown_warning_option=no
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9004 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9008 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 xorg_testset_unused_command_line_argument=yes
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 xorg_testset_unused_command_line_argument=no
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9050 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9056 if test $found = "no" ; then
9057 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 CFLAGS="$CFLAGS -Werror=trigraphs"
9067 { echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
9068 echo $ECHO_N "checking if $CC supports -Werror=trigraphs... $ECHO_C" >&6; }
9069 cat >conftest.$ac_ext <<_ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_link") 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest$ac_exeext &&
9101 $as_test_x conftest$ac_exeext; then
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $supported" >&5
9113 echo "${ECHO_T}$supported" >&6; }
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9116 if test "$supported" = "yes" ; then
9117 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9128 xorg_testset_save_CFLAGS="$CFLAGS"
9130 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9133 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_compile") 2>conftest.er1
9151 grep -v '^ *+' conftest.er1 >conftest.err
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest.$ac_objext; then
9159 xorg_testset_unknown_warning_option=yes
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 xorg_testset_unknown_warning_option=no
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9169 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9173 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9188 rm -f conftest.$ac_objext
9189 if { (ac_try="$ac_compile"
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_compile") 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest.$ac_objext; then
9205 xorg_testset_unused_command_line_argument=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 xorg_testset_unused_command_line_argument=no
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9215 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9216 CFLAGS="$xorg_testset_save_CFLAGS"
9221 if test $found = "no" ; then
9222 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9230 CFLAGS="$CFLAGS -Werror=array-bounds"
9232 { echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
9233 echo $ECHO_N "checking if $CC supports -Werror=array-bounds... $ECHO_C" >&6; }
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9276 conftest$ac_exeext conftest.$ac_ext
9277 { echo "$as_me:$LINENO: result: $supported" >&5
9278 echo "${ECHO_T}$supported" >&6; }
9279 CFLAGS="$xorg_testset_save_CFLAGS"
9281 if test "$supported" = "yes" ; then
9282 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9293 xorg_testset_save_CFLAGS="$CFLAGS"
9295 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9298 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9307 rm -f conftest.$ac_objext
9308 if { (ac_try="$ac_compile"
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest.$ac_objext; then
9324 xorg_testset_unknown_warning_option=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 xorg_testset_unknown_warning_option=no
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9334 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9338 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 xorg_testset_unused_command_line_argument=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 xorg_testset_unused_command_line_argument=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9380 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9386 if test $found = "no" ; then
9387 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 CFLAGS="$CFLAGS -Werror=write-strings"
9397 { echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
9398 echo $ECHO_N "checking if $CC supports -Werror=write-strings... $ECHO_C" >&6; }
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 { echo "$as_me:$LINENO: result: $supported" >&5
9443 echo "${ECHO_T}$supported" >&6; }
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9458 xorg_testset_save_CFLAGS="$CFLAGS"
9460 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9463 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_compile") 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest.$ac_objext; then
9489 xorg_testset_unknown_warning_option=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 xorg_testset_unknown_warning_option=no
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9499 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9503 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9509 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 xorg_testset_unused_command_line_argument=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 xorg_testset_unused_command_line_argument=no
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9545 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9551 if test $found = "no" ; then
9552 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9556 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9560 CFLAGS="$CFLAGS -Werror=address"
9562 { echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
9563 echo $ECHO_N "checking if $CC supports -Werror=address... $ECHO_C" >&6; }
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9607 { echo "$as_me:$LINENO: result: $supported" >&5
9608 echo "${ECHO_T}$supported" >&6; }
9609 CFLAGS="$xorg_testset_save_CFLAGS"
9611 if test "$supported" = "yes" ; then
9612 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9623 xorg_testset_save_CFLAGS="$CFLAGS"
9625 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9628 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9637 rm -f conftest.$ac_objext
9638 if { (ac_try="$ac_compile"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_compile") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest.$ac_objext; then
9654 xorg_testset_unknown_warning_option=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 xorg_testset_unknown_warning_option=no
9662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9664 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9668 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9674 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9700 xorg_testset_unused_command_line_argument=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 xorg_testset_unused_command_line_argument=no
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9710 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9716 if test $found = "no" ; then
9717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9727 { echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9728 echo $ECHO_N "checking if $CC supports -Werror=int-to-pointer-cast... $ECHO_C" >&6; }
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771 conftest$ac_exeext conftest.$ac_ext
9772 { echo "$as_me:$LINENO: result: $supported" >&5
9773 echo "${ECHO_T}$supported" >&6; }
9774 CFLAGS="$xorg_testset_save_CFLAGS"
9776 if test "$supported" = "yes" ; then
9777 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9782 if test $found = "no" ; then
9783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9793 { echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9794 echo $ECHO_N "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... $ECHO_C" >&6; }
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 { echo "$as_me:$LINENO: result: $supported" >&5
9839 echo "${ECHO_T}$supported" >&6; }
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9842 if test "$supported" = "yes" ; then
9843 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9854 xorg_testset_save_CFLAGS="$CFLAGS"
9856 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
9859 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9868 rm -f conftest.$ac_objext
9869 if { (ac_try="$ac_compile"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_compile") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest.$ac_objext; then
9885 xorg_testset_unknown_warning_option=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 xorg_testset_unknown_warning_option=no
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
9895 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
9896 CFLAGS="$xorg_testset_save_CFLAGS"
9899 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
9905 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9914 rm -f conftest.$ac_objext
9915 if { (ac_try="$ac_compile"
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_compile") 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest.$ac_objext; then
9931 xorg_testset_unused_command_line_argument=yes
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 xorg_testset_unused_command_line_argument=no
9939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
9941 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
9942 CFLAGS="$xorg_testset_save_CFLAGS"
9947 if test $found = "no" ; then
9948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9956 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9958 { echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9959 echo $ECHO_N "checking if $CC supports -Werror=pointer-to-int-cast... $ECHO_C" >&6; }
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext &&
9992 $as_test_x conftest$ac_exeext; then
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $supported" >&5
10004 echo "${ECHO_T}$supported" >&6; }
10005 CFLAGS="$xorg_testset_save_CFLAGS"
10007 if test "$supported" = "yes" ; then
10008 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10013 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10015 { echo "$as_me:$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
10016 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;}
10022 xorg_testset_save_CFLAGS="$CFLAGS"
10024 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10027 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10036 rm -f conftest.$ac_objext
10037 if { (ac_try="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
10053 xorg_testset_unknown_warning_option=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 xorg_testset_unknown_warning_option=no
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10063 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10073 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_compile") 2>conftest.er1
10091 grep -v '^ *+' conftest.er1 >conftest.err
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest.$ac_objext; then
10099 xorg_testset_unused_command_line_argument=yes
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10104 xorg_testset_unused_command_line_argument=no
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10109 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10115 if test $found = "no" ; then
10116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124 CFLAGS="$CFLAGS -Wimplicit"
10126 { echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
10127 echo $ECHO_N "checking if $CC supports -Wimplicit... $ECHO_C" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest$ac_exeext &&
10160 $as_test_x conftest$ac_exeext; then
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 { echo "$as_me:$LINENO: result: $supported" >&5
10172 echo "${ECHO_T}$supported" >&6; }
10173 CFLAGS="$xorg_testset_save_CFLAGS"
10175 if test "$supported" = "yes" ; then
10176 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10187 xorg_testset_save_CFLAGS="$CFLAGS"
10189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10192 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10201 rm -f conftest.$ac_objext
10202 if { (ac_try="$ac_compile"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_compile") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest.$ac_objext; then
10218 xorg_testset_unknown_warning_option=yes
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 xorg_testset_unknown_warning_option=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10228 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10229 CFLAGS="$xorg_testset_save_CFLAGS"
10232 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10237 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10238 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10239 cat >conftest.$ac_ext <<_ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 xorg_testset_unused_command_line_argument=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 xorg_testset_unused_command_line_argument=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10274 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10275 CFLAGS="$xorg_testset_save_CFLAGS"
10280 if test $found = "no" ; then
10281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10289 CFLAGS="$CFLAGS -Wnonnull"
10291 { echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
10292 echo $ECHO_N "checking if $CC supports -Wnonnull... $ECHO_C" >&6; }
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext &&
10325 $as_test_x conftest$ac_exeext; then
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $supported" >&5
10337 echo "${ECHO_T}$supported" >&6; }
10338 CFLAGS="$xorg_testset_save_CFLAGS"
10340 if test "$supported" = "yes" ; then
10341 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10352 xorg_testset_save_CFLAGS="$CFLAGS"
10354 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10357 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10358 cat >conftest.$ac_ext <<_ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10366 rm -f conftest.$ac_objext
10367 if { (ac_try="$ac_compile"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_compile") 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest.$ac_objext; then
10383 xorg_testset_unknown_warning_option=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 xorg_testset_unknown_warning_option=no
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10393 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10394 CFLAGS="$xorg_testset_save_CFLAGS"
10397 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10398 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10412 rm -f conftest.$ac_objext
10413 if { (ac_try="$ac_compile"
10414 case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_compile") 2>conftest.er1
10421 grep -v '^ *+' conftest.er1 >conftest.err
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest.$ac_objext; then
10429 xorg_testset_unused_command_line_argument=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 xorg_testset_unused_command_line_argument=no
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10439 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10440 CFLAGS="$xorg_testset_save_CFLAGS"
10445 if test $found = "no" ; then
10446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10454 CFLAGS="$CFLAGS -Winit-self"
10456 { echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
10457 echo $ECHO_N "checking if $CC supports -Winit-self... $ECHO_C" >&6; }
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 { echo "$as_me:$LINENO: result: $supported" >&5
10502 echo "${ECHO_T}$supported" >&6; }
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10505 if test "$supported" = "yes" ; then
10506 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10517 xorg_testset_save_CFLAGS="$CFLAGS"
10519 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10521 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10522 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10548 xorg_testset_unknown_warning_option=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 xorg_testset_unknown_warning_option=no
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10558 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10559 CFLAGS="$xorg_testset_save_CFLAGS"
10562 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10567 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10568 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10594 xorg_testset_unused_command_line_argument=yes
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 xorg_testset_unused_command_line_argument=no
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10604 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10605 CFLAGS="$xorg_testset_save_CFLAGS"
10610 if test $found = "no" ; then
10611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10619 CFLAGS="$CFLAGS -Wmain"
10621 { echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
10622 echo $ECHO_N "checking if $CC supports -Wmain... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (ac_try="$ac_link"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_link") 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext &&
10655 $as_test_x conftest$ac_exeext; then
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10665 conftest$ac_exeext conftest.$ac_ext
10666 { echo "$as_me:$LINENO: result: $supported" >&5
10667 echo "${ECHO_T}$supported" >&6; }
10668 CFLAGS="$xorg_testset_save_CFLAGS"
10670 if test "$supported" = "yes" ; then
10671 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10682 xorg_testset_save_CFLAGS="$CFLAGS"
10684 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10687 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10696 rm -f conftest.$ac_objext
10697 if { (ac_try="$ac_compile"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_compile") 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && {
10710 test -z "$ac_c_werror_flag" ||
10711 test ! -s conftest.err
10712 } && test -s conftest.$ac_objext; then
10713 xorg_testset_unknown_warning_option=yes
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 xorg_testset_unknown_warning_option=no
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10723 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10724 CFLAGS="$xorg_testset_save_CFLAGS"
10727 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10732 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10733 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10742 rm -f conftest.$ac_objext
10743 if { (ac_try="$ac_compile"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 xorg_testset_unused_command_line_argument=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 xorg_testset_unused_command_line_argument=no
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10769 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10770 CFLAGS="$xorg_testset_save_CFLAGS"
10775 if test $found = "no" ; then
10776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10784 CFLAGS="$CFLAGS -Wmissing-braces"
10786 { echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
10787 echo $ECHO_N "checking if $CC supports -Wmissing-braces... $ECHO_C" >&6; }
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (ac_try="$ac_link"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_link") 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest$ac_exeext &&
10820 $as_test_x conftest$ac_exeext; then
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $supported" >&5
10832 echo "${ECHO_T}$supported" >&6; }
10833 CFLAGS="$xorg_testset_save_CFLAGS"
10835 if test "$supported" = "yes" ; then
10836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10847 xorg_testset_save_CFLAGS="$CFLAGS"
10849 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
10852 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest.$ac_objext; then
10878 xorg_testset_unknown_warning_option=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 xorg_testset_unknown_warning_option=no
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
10888 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
10889 CFLAGS="$xorg_testset_save_CFLAGS"
10892 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
10898 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
10899 cat >conftest.$ac_ext <<_ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_compile") 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest.$ac_objext; then
10924 xorg_testset_unused_command_line_argument=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 xorg_testset_unused_command_line_argument=no
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
10934 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
10935 CFLAGS="$xorg_testset_save_CFLAGS"
10940 if test $found = "no" ; then
10941 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10945 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10949 CFLAGS="$CFLAGS -Wsequence-point"
10951 { echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
10952 echo $ECHO_N "checking if $CC supports -Wsequence-point... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_link") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest$ac_exeext &&
10985 $as_test_x conftest$ac_exeext; then
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10995 conftest$ac_exeext conftest.$ac_ext
10996 { echo "$as_me:$LINENO: result: $supported" >&5
10997 echo "${ECHO_T}$supported" >&6; }
10998 CFLAGS="$xorg_testset_save_CFLAGS"
11000 if test "$supported" = "yes" ; then
11001 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11012 xorg_testset_save_CFLAGS="$CFLAGS"
11014 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11017 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11018 cat >conftest.$ac_ext <<_ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11026 rm -f conftest.$ac_objext
11027 if { (ac_try="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.$ac_objext; then
11043 xorg_testset_unknown_warning_option=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 xorg_testset_unknown_warning_option=no
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11053 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11054 CFLAGS="$xorg_testset_save_CFLAGS"
11057 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11063 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest.$ac_objext; then
11089 xorg_testset_unused_command_line_argument=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 xorg_testset_unused_command_line_argument=no
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11099 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11100 CFLAGS="$xorg_testset_save_CFLAGS"
11105 if test $found = "no" ; then
11106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11110 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11114 CFLAGS="$CFLAGS -Wreturn-type"
11116 { echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
11117 echo $ECHO_N "checking if $CC supports -Wreturn-type... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_link") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext &&
11150 $as_test_x conftest$ac_exeext; then
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160 conftest$ac_exeext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $supported" >&5
11162 echo "${ECHO_T}$supported" >&6; }
11163 CFLAGS="$xorg_testset_save_CFLAGS"
11165 if test "$supported" = "yes" ; then
11166 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11177 xorg_testset_save_CFLAGS="$CFLAGS"
11179 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11181 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11182 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 xorg_testset_unknown_warning_option=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 xorg_testset_unknown_warning_option=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11218 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11219 CFLAGS="$xorg_testset_save_CFLAGS"
11222 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11227 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11228 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.$ac_objext; then
11254 xorg_testset_unused_command_line_argument=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 xorg_testset_unused_command_line_argument=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11264 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11265 CFLAGS="$xorg_testset_save_CFLAGS"
11270 if test $found = "no" ; then
11271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11279 CFLAGS="$CFLAGS -Wtrigraphs"
11281 { echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
11282 echo $ECHO_N "checking if $CC supports -Wtrigraphs... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (ac_try="$ac_link"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_link") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest$ac_exeext &&
11315 $as_test_x conftest$ac_exeext; then
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325 conftest$ac_exeext conftest.$ac_ext
11326 { echo "$as_me:$LINENO: result: $supported" >&5
11327 echo "${ECHO_T}$supported" >&6; }
11328 CFLAGS="$xorg_testset_save_CFLAGS"
11330 if test "$supported" = "yes" ; then
11331 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11342 xorg_testset_save_CFLAGS="$CFLAGS"
11344 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11346 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11347 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 xorg_testset_unknown_warning_option=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 xorg_testset_unknown_warning_option=no
11381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11383 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11384 CFLAGS="$xorg_testset_save_CFLAGS"
11387 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11392 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11393 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 xorg_testset_unused_command_line_argument=yes
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 xorg_testset_unused_command_line_argument=no
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11429 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11430 CFLAGS="$xorg_testset_save_CFLAGS"
11435 if test $found = "no" ; then
11436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11444 CFLAGS="$CFLAGS -Warray-bounds"
11446 { echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
11447 echo $ECHO_N "checking if $CC supports -Warray-bounds... $ECHO_C" >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11472 grep -v '^ *+' conftest.er1 >conftest.err
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $supported" >&5
11492 echo "${ECHO_T}$supported" >&6; }
11493 CFLAGS="$xorg_testset_save_CFLAGS"
11495 if test "$supported" = "yes" ; then
11496 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11507 xorg_testset_save_CFLAGS="$CFLAGS"
11509 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11511 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11512 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 xorg_testset_unknown_warning_option=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 xorg_testset_unknown_warning_option=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11548 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11549 CFLAGS="$xorg_testset_save_CFLAGS"
11552 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11557 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11558 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11567 rm -f conftest.$ac_objext
11568 if { (ac_try="$ac_compile"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_compile") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest.$ac_objext; then
11584 xorg_testset_unused_command_line_argument=yes
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 xorg_testset_unused_command_line_argument=no
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11594 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11595 CFLAGS="$xorg_testset_save_CFLAGS"
11600 if test $found = "no" ; then
11601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11609 CFLAGS="$CFLAGS -Wwrite-strings"
11611 { echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
11612 echo $ECHO_N "checking if $CC supports -Wwrite-strings... $ECHO_C" >&6; }
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (ac_try="$ac_link"
11630 case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_link") 2>conftest.er1
11637 grep -v '^ *+' conftest.er1 >conftest.err
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && {
11642 test -z "$ac_c_werror_flag" ||
11643 test ! -s conftest.err
11644 } && test -s conftest$ac_exeext &&
11645 $as_test_x conftest$ac_exeext; then
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655 conftest$ac_exeext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $supported" >&5
11657 echo "${ECHO_T}$supported" >&6; }
11658 CFLAGS="$xorg_testset_save_CFLAGS"
11660 if test "$supported" = "yes" ; then
11661 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11672 xorg_testset_save_CFLAGS="$CFLAGS"
11674 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11677 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11678 cat >conftest.$ac_ext <<_ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11686 rm -f conftest.$ac_objext
11687 if { (ac_try="$ac_compile"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11703 xorg_testset_unknown_warning_option=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 xorg_testset_unknown_warning_option=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11713 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11714 CFLAGS="$xorg_testset_save_CFLAGS"
11717 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11722 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11723 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11732 rm -f conftest.$ac_objext
11733 if { (ac_try="$ac_compile"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_compile") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest.$ac_objext; then
11749 xorg_testset_unused_command_line_argument=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 xorg_testset_unused_command_line_argument=no
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11759 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11760 CFLAGS="$xorg_testset_save_CFLAGS"
11765 if test $found = "no" ; then
11766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11770 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11774 CFLAGS="$CFLAGS -Waddress"
11776 { echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
11777 echo $ECHO_N "checking if $CC supports -Waddress... $ECHO_C" >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest$ac_exeext &&
11810 $as_test_x conftest$ac_exeext; then
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11820 conftest$ac_exeext conftest.$ac_ext
11821 { echo "$as_me:$LINENO: result: $supported" >&5
11822 echo "${ECHO_T}$supported" >&6; }
11823 CFLAGS="$xorg_testset_save_CFLAGS"
11825 if test "$supported" = "yes" ; then
11826 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11837 xorg_testset_save_CFLAGS="$CFLAGS"
11839 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
11842 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_compile") 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } && {
11865 test -z "$ac_c_werror_flag" ||
11866 test ! -s conftest.err
11867 } && test -s conftest.$ac_objext; then
11868 xorg_testset_unknown_warning_option=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 xorg_testset_unknown_warning_option=no
11876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
11878 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
11879 CFLAGS="$xorg_testset_save_CFLAGS"
11882 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11887 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
11888 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11897 rm -f conftest.$ac_objext
11898 if { (ac_try="$ac_compile"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 xorg_testset_unused_command_line_argument=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 xorg_testset_unused_command_line_argument=no
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
11924 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
11925 CFLAGS="$xorg_testset_save_CFLAGS"
11930 if test $found = "no" ; then
11931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11935 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11939 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11941 { echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
11942 echo $ECHO_N "checking if $CC supports -Wint-to-pointer-cast... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext &&
11975 $as_test_x conftest$ac_exeext; then
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985 conftest$ac_exeext conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $supported" >&5
11987 echo "${ECHO_T}$supported" >&6; }
11988 CFLAGS="$xorg_testset_save_CFLAGS"
11990 if test "$supported" = "yes" ; then
11991 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
12002 xorg_testset_save_CFLAGS="$CFLAGS"
12004 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12006 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12007 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12008 cat >conftest.$ac_ext <<_ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12016 rm -f conftest.$ac_objext
12017 if { (ac_try="$ac_compile"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest.$ac_objext; then
12033 xorg_testset_unknown_warning_option=yes
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 xorg_testset_unknown_warning_option=no
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12043 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12044 CFLAGS="$xorg_testset_save_CFLAGS"
12047 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12052 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12053 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_compile") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest.$ac_objext; then
12079 xorg_testset_unused_command_line_argument=yes
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 xorg_testset_unused_command_line_argument=no
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12089 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12090 CFLAGS="$xorg_testset_save_CFLAGS"
12095 if test $found = "no" ; then
12096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12104 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12106 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
12107 echo $ECHO_N "checking if $CC supports -Wpointer-to-int-cast... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $supported" >&5
12152 echo "${ECHO_T}$supported" >&6; }
12153 CFLAGS="$xorg_testset_save_CFLAGS"
12155 if test "$supported" = "yes" ; then
12156 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12169 CWARNFLAGS="$BASE_CFLAGS"
12170 if test "x$GCC" = xyes ; then
12171 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12179 # Check whether --enable-strict-compilation was given.
12180 if test "${enable_strict_compilation+set}" = set; then
12181 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12193 xorg_testset_save_CFLAGS="$CFLAGS"
12195 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12197 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12198 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 xorg_testset_unknown_warning_option=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 xorg_testset_unknown_warning_option=no
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12234 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12235 CFLAGS="$xorg_testset_save_CFLAGS"
12238 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12243 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12244 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12270 xorg_testset_unused_command_line_argument=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 xorg_testset_unused_command_line_argument=no
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12280 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12281 CFLAGS="$xorg_testset_save_CFLAGS"
12286 if test $found = "no" ; then
12287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12295 CFLAGS="$CFLAGS -pedantic"
12297 { echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
12298 echo $ECHO_N "checking if $CC supports -pedantic... $ECHO_C" >&6; }
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342 { echo "$as_me:$LINENO: result: $supported" >&5
12343 echo "${ECHO_T}$supported" >&6; }
12344 CFLAGS="$xorg_testset_save_CFLAGS"
12346 if test "$supported" = "yes" ; then
12347 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12358 xorg_testset_save_CFLAGS="$CFLAGS"
12360 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12363 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12372 rm -f conftest.$ac_objext
12373 if { (ac_try="$ac_compile"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_compile") 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest.$ac_objext; then
12389 xorg_testset_unknown_warning_option=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 xorg_testset_unknown_warning_option=no
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12399 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12400 CFLAGS="$xorg_testset_save_CFLAGS"
12403 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12408 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12409 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12418 rm -f conftest.$ac_objext
12419 if { (ac_try="$ac_compile"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_compile") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest.$ac_objext; then
12435 xorg_testset_unused_command_line_argument=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 xorg_testset_unused_command_line_argument=no
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12445 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12446 CFLAGS="$xorg_testset_save_CFLAGS"
12451 if test $found = "no" ; then
12452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12456 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12460 CFLAGS="$CFLAGS -Werror"
12462 { echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
12463 echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest$ac_exeext &&
12496 $as_test_x conftest$ac_exeext; then
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506 conftest$ac_exeext conftest.$ac_ext
12507 { echo "$as_me:$LINENO: result: $supported" >&5
12508 echo "${ECHO_T}$supported" >&6; }
12509 CFLAGS="$xorg_testset_save_CFLAGS"
12511 if test "$supported" = "yes" ; then
12512 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12517 if test $found = "no" ; then
12518 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12522 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12526 CFLAGS="$CFLAGS -errwarn"
12528 { echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
12529 echo $ECHO_N "checking if $CC supports -errwarn... $ECHO_C" >&6; }
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest$ac_exeext &&
12562 $as_test_x conftest$ac_exeext; then
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 { echo "$as_me:$LINENO: result: $supported" >&5
12574 echo "${ECHO_T}$supported" >&6; }
12575 CFLAGS="$xorg_testset_save_CFLAGS"
12577 if test "$supported" = "yes" ; then
12578 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12585 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12586 # activate it with -Werror, so we add it here explicitly.
12592 xorg_testset_save_CFLAGS="$CFLAGS"
12594 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
12597 echo $ECHO_N "checking if $CC supports -Werror=unknown-warning-option... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 xorg_testset_unknown_warning_option=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 xorg_testset_unknown_warning_option=no
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
12633 echo "${ECHO_T}$xorg_testset_unknown_warning_option" >&6; }
12634 CFLAGS="$xorg_testset_save_CFLAGS"
12637 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12642 { echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
12643 echo $ECHO_N "checking if $CC supports -Werror=unused-command-line-argument... $ECHO_C" >&6; }
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
12669 xorg_testset_unused_command_line_argument=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 xorg_testset_unused_command_line_argument=no
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 { echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
12679 echo "${ECHO_T}$xorg_testset_unused_command_line_argument" >&6; }
12680 CFLAGS="$xorg_testset_save_CFLAGS"
12685 if test $found = "no" ; then
12686 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12690 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12694 CFLAGS="$CFLAGS -Werror=attributes"
12696 { echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
12697 echo $ECHO_N "checking if $CC supports -Werror=attributes... $ECHO_C" >&6; }
12698 cat >conftest.$ac_ext <<_ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_link") 2>conftest.er1
12722 grep -v '^ *+' conftest.er1 >conftest.err
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext &&
12730 $as_test_x conftest$ac_exeext; then
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12740 conftest$ac_exeext conftest.$ac_ext
12741 { echo "$as_me:$LINENO: result: $supported" >&5
12742 echo "${ECHO_T}$supported" >&6; }
12743 CFLAGS="$xorg_testset_save_CFLAGS"
12745 if test "$supported" = "yes" ; then
12746 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12753 if test "x$STRICT_COMPILE" = "xyes"; then
12754 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12755 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12763 cat >>confdefs.h <<_ACEOF
12764 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12767 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12768 if test "x$PVM" = "x"; then
12772 cat >>confdefs.h <<_ACEOF
12773 #define PACKAGE_VERSION_MINOR $PVM
12776 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12777 if test "x$PVP" = "x"; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12787 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12788 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12789 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12790 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12795 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12796 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12797 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12798 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12799 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12806 if test x$APP_MAN_SUFFIX = x ; then
12809 if test x$APP_MAN_DIR = x ; then
12810 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12813 if test x$LIB_MAN_SUFFIX = x ; then
12816 if test x$LIB_MAN_DIR = x ; then
12817 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12820 if test x$FILE_MAN_SUFFIX = x ; then
12822 solaris*) FILE_MAN_SUFFIX=4 ;;
12823 *) FILE_MAN_SUFFIX=5 ;;
12826 if test x$FILE_MAN_DIR = x ; then
12827 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12830 if test x$MISC_MAN_SUFFIX = x ; then
12832 solaris*) MISC_MAN_SUFFIX=5 ;;
12833 *) MISC_MAN_SUFFIX=7 ;;
12836 if test x$MISC_MAN_DIR = x ; then
12837 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12840 if test x$DRIVER_MAN_SUFFIX = x ; then
12842 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12843 *) DRIVER_MAN_SUFFIX=4 ;;
12846 if test x$DRIVER_MAN_DIR = x ; then
12847 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12850 if test x$ADMIN_MAN_SUFFIX = x ; then
12852 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12853 *) ADMIN_MAN_SUFFIX=8 ;;
12856 if test x$ADMIN_MAN_DIR = x ; then
12857 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12874 XORG_MAN_PAGE="X Version 11"
12877 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12878 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12879 -e 's|__xservername__|Xorg|g' \
12880 -e 's|__xconfigfile__|xorg.conf|g' \
12881 -e 's|__projectroot__|\$(prefix)|g' \
12882 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12883 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12884 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12885 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12886 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12887 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12888 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12892 AM_DEFAULT_VERBOSITY=1
12900 # Extract the first word of "$ac_prog", so it can be a program name with args.
12901 set dummy $ac_prog; ac_word=$2
12902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12904 if test "${ac_cv_path_RAWCPP+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12914 for as_dir in $as_dummy
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 RAWCPP=$ac_cv_path_RAWCPP
12932 if test -n "$RAWCPP"; then
12933 { echo "$as_me:$LINENO: result: $RAWCPP" >&5
12934 echo "${ECHO_T}$RAWCPP" >&6; }
12936 { echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6; }
12941 test -n "$RAWCPP" && break
12943 test -n "$RAWCPP" || RAWCPP="${CPP}"
12946 # Check for flag to avoid builtin definitions - assumes unix is predefined,
12947 # which is not the best choice for supporting other OS'es, but covers most
12948 # of the ones we need for now.
12949 { echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
12950 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 Does cpp redefine unix ?
12959 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12960 { echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6; }
12963 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12965 { echo "$as_me:$LINENO: result: yes" >&5
12966 echo "${ECHO_T}yes" >&6; }
12967 # under Cygwin unix is still defined even with -undef
12968 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12969 RAWCPPFLAGS="-undef -ansi"
12970 { echo "$as_me:$LINENO: result: yes, with -ansi" >&5
12971 echo "${ECHO_T}yes, with -ansi" >&6; }
12973 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
12974 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
12975 { (exit 1); exit 1; }; }
12978 rm -f conftest.$ac_ext
12980 { echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
12981 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
12982 cat >conftest.$ac_ext <<_ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 Does cpp preserve "whitespace"?
12990 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12991 { echo "$as_me:$LINENO: result: no" >&5
12992 echo "${ECHO_T}no" >&6; }
12994 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12995 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12996 { echo "$as_me:$LINENO: result: yes" >&5
12997 echo "${ECHO_T}yes" >&6; }
12999 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
13000 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
13001 { (exit 1); exit 1; }; }
13004 rm -f conftest.$ac_ext
13007 { echo "$as_me:$LINENO: checking host system type" >&5
13008 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
13009 if test "${ac_cv_host+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 if test "x$host_alias" = x; then
13013 ac_cv_host=$ac_cv_build
13015 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
13017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
13018 { (exit 1); exit 1; }; }
13022 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13023 echo "${ECHO_T}$ac_cv_host" >&6; }
13024 case $ac_cv_host in
13026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
13027 echo "$as_me: error: invalid value of canonical host" >&2;}
13028 { (exit 1); exit 1; }; };;
13031 ac_save_IFS=$IFS; IFS='-'
13037 # Remember, the first character of IFS is used to create $*,
13038 # except with old shells:
13041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13047 DEFAULT_XMODMAP=xmodmap
13049 DEFAULT_XCLOCK=xclock
13050 DEFAULT_XTERM=xterm
13051 # You always want to specify the full path to the X server
13052 DEFAULT_XSERVER=${bindir}/X
13053 DEFAULT_XAUTH=xauth
13054 DEFAULT_XINIT=xinit
13055 DEFAULT_XINITDIR=${libdir}/X11/xinit
13058 # Check whether --with-xrdb was given.
13059 if test "${with_xrdb+set}" = set; then
13060 withval=$with_xrdb; XRDB="$withval"
13062 XRDB="$DEFAULT_XRDB"
13067 # Check whether --with-xmodmap was given.
13068 if test "${with_xmodmap+set}" = set; then
13069 withval=$with_xmodmap; XMODMAP="$withval"
13071 XMODMAP="$DEFAULT_XMODMAP"
13076 # Check whether --with-twm was given.
13077 if test "${with_twm+set}" = set; then
13078 withval=$with_twm; TWM="$withval"
13085 # Check whether --with-xclock was given.
13086 if test "${with_xclock+set}" = set; then
13087 withval=$with_xclock; XCLOCK="$withval"
13089 XCLOCK="$DEFAULT_XCLOCK"
13094 # Check whether --with-xterm was given.
13095 if test "${with_xterm+set}" = set; then
13096 withval=$with_xterm; XTERM="$withval"
13098 XTERM="$DEFAULT_XTERM"
13103 # Check whether --with-xserver was given.
13104 if test "${with_xserver+set}" = set; then
13105 withval=$with_xserver; XSERVER="$withval"
13107 XSERVER="$DEFAULT_XSERVER"
13112 # Check whether --with-xauth was given.
13113 if test "${with_xauth+set}" = set; then
13114 withval=$with_xauth; XAUTH="$withval"
13116 XAUTH="$DEFAULT_XAUTH"
13121 # Check whether --with-xinit was given.
13122 if test "${with_xinit+set}" = set; then
13123 withval=$with_xinit; XINIT="$withval"
13125 XINIT="$DEFAULT_XINIT"
13130 # Check whether --with-xinitdir was given.
13131 if test "${with_xinitdir+set}" = set; then
13132 withval=$with_xinitdir; XINITDIR="$withval"
13134 XINITDIR="$DEFAULT_XINITDIR"
13139 # Check whether --with-launchd was given.
13140 if test "${with_launchd+set}" = set; then
13141 withval=$with_launchd; LAUNCHD=$withval
13147 # Check whether --with-launchagents-dir was given.
13148 if test "${with_launchagents_dir+set}" = set; then
13149 withval=$with_launchagents_dir; launchagentsdir="${withval}"
13151 launchagentsdir="/Library/LaunchAgents"
13155 # Check whether --with-launchagent-xserver was given.
13156 if test "${with_launchagent_xserver+set}" = set; then
13157 withval=$with_launchagent_xserver; launchagentxserver="${withval}"
13159 launchagentxserver="no"
13163 # Check whether --with-launchdaemons-dir was given.
13164 if test "${with_launchdaemons_dir+set}" = set; then
13165 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
13167 launchdaemonsdir="/Library/LaunchDaemons"
13171 # Check whether --with-launchd-id-prefix was given.
13172 if test "${with_launchd_id_prefix+set}" = set; then
13173 withval=$with_launchd_id_prefix; bundleidprefix="${withval}"
13175 bundleidprefix="org.x"
13179 # Check whether --with-bundle-id-prefix was given.
13180 if test "${with_bundle_id_prefix+set}" = set; then
13181 withval=$with_bundle_id_prefix; bundleidprefix="${withval}"
13185 if test "x$LAUNCHD" = "xauto"; then
13187 # Extract the first word of "launchd", so it can be a program name with args.
13188 set dummy launchd; ac_word=$2
13189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13191 if test "${ac_cv_prog_LAUNCHD+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 if test -n "$LAUNCHD"; then
13195 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH$PATH_SEPARATOR/sbin
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204 ac_cv_prog_LAUNCHD="yes"
13205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
13215 LAUNCHD=$ac_cv_prog_LAUNCHD
13216 if test -n "$LAUNCHD"; then
13217 { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
13218 echo "${ECHO_T}$LAUNCHD" >&6; }
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13228 if test "x$LAUNCHD" = "xyes" ; then
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_LAUNCHD 1
13239 { echo "$as_me:$LINENO: checking for dispatch_async" >&5
13240 echo $ECHO_N "checking for dispatch_async... $ECHO_C" >&6; }
13241 if test "${ac_cv_func_dispatch_async+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 /* Define dispatch_async to an innocuous variant, in case <limits.h> declares dispatch_async.
13251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13252 #define dispatch_async innocuous_dispatch_async
13254 /* System header to define __stub macros and hopefully few prototypes,
13255 which can conflict with char dispatch_async (); below.
13256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13257 <limits.h> exists even on freestanding compilers. */
13260 # include <limits.h>
13262 # include <assert.h>
13265 #undef dispatch_async
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13273 char dispatch_async ();
13274 /* The GNU C library defines this for functions which it implements
13275 to always fail with ENOSYS. Some functions are actually named
13276 something starting with __ and the normal name is an alias. */
13277 #if defined __stub_dispatch_async || defined __stub___dispatch_async
13284 return dispatch_async ();
13289 rm -f conftest.$ac_objext conftest$ac_exeext
13290 if { (ac_try="$ac_link"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_link") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest$ac_exeext &&
13306 $as_test_x conftest$ac_exeext; then
13307 ac_cv_func_dispatch_async=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_func_dispatch_async=no
13315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13316 conftest$ac_exeext conftest.$ac_ext
13318 { echo "$as_me:$LINENO: result: $ac_cv_func_dispatch_async" >&5
13319 echo "${ECHO_T}$ac_cv_func_dispatch_async" >&6; }
13320 if test $ac_cv_func_dispatch_async = yes; then
13322 cat >>confdefs.h <<\_ACEOF
13323 #define HAVE_LIBDISPATCH 1
13331 cat >>confdefs.h <<_ACEOF
13332 #define BUNDLE_ID_PREFIX "$bundleidprefix"
13339 if test "x$LAUNCHD" = "xyes"; then
13347 if test "x$TIGER_LAUNCHD" = "xyes"; then
13348 TIGER_LAUNCHD_TRUE=
13349 TIGER_LAUNCHD_FALSE='#'
13351 TIGER_LAUNCHD_TRUE='#'
13352 TIGER_LAUNCHD_FALSE=
13355 if test "x$launchagentxserver" != "xno"; then
13356 LAUNCHAGENT_XSERVER_TRUE=
13357 LAUNCHAGENT_XSERVER_FALSE='#'
13359 LAUNCHAGENT_XSERVER_TRUE='#'
13360 LAUNCHAGENT_XSERVER_FALSE=
13364 # Checks for pkg-config packages
13367 { echo "$as_me:$LINENO: checking for XINIT" >&5
13368 echo $ECHO_N "checking for XINIT... $ECHO_C" >&6; }
13370 if test -n "$XINIT_CFLAGS"; then
13371 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
13372 elif test -n "$PKG_CONFIG"; then
13373 if test -n "$PKG_CONFIG" && \
13374 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13375 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; then
13379 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
13386 if test -n "$XINIT_LIBS"; then
13387 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
13388 elif test -n "$PKG_CONFIG"; then
13389 if test -n "$PKG_CONFIG" && \
13390 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
13391 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; then
13395 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
13405 if test $pkg_failed = yes; then
13406 { echo "$as_me:$LINENO: result: no" >&5
13407 echo "${ECHO_T}no" >&6; }
13409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13410 _pkg_short_errors_supported=yes
13412 _pkg_short_errors_supported=no
13414 if test $_pkg_short_errors_supported = yes; then
13415 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
13417 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
13419 # Put the nasty error message in config.log where it belongs
13420 echo "$XINIT_PKG_ERRORS" >&5
13422 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
13426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13427 installed software in a non-standard prefix.
13429 Alternatively, you may set the environment variables XINIT_CFLAGS
13430 and XINIT_LIBS to avoid the need to call pkg-config.
13431 See the pkg-config man page for more details." >&5
13432 echo "$as_me: error: Package requirements (x11) were not met:
13436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13437 installed software in a non-standard prefix.
13439 Alternatively, you may set the environment variables XINIT_CFLAGS
13440 and XINIT_LIBS to avoid the need to call pkg-config.
13441 See the pkg-config man page for more details." >&2;}
13442 { (exit 1); exit 1; }; }
13443 elif test $pkg_failed = untried; then
13444 { echo "$as_me:$LINENO: result: no" >&5
13445 echo "${ECHO_T}no" >&6; }
13446 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13447 is in your PATH or set the PKG_CONFIG environment variable to the full
13448 path to pkg-config.
13450 Alternatively, you may set the environment variables XINIT_CFLAGS
13451 and XINIT_LIBS to avoid the need to call pkg-config.
13452 See the pkg-config man page for more details.
13454 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13457 is in your PATH or set the PKG_CONFIG environment variable to the full
13458 path to pkg-config.
13460 Alternatively, you may set the environment variables XINIT_CFLAGS
13461 and XINIT_LIBS to avoid the need to call pkg-config.
13462 See the pkg-config man page for more details.
13464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13465 See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
13468 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
13469 XINIT_LIBS=$pkg_cv_XINIT_LIBS
13470 { echo "$as_me:$LINENO: result: yes" >&5
13471 echo "${ECHO_T}yes" >&6; }
13477 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
13482 for ac_prog in mcookie
13484 # Extract the first word of "$ac_prog", so it can be a program name with args.
13485 set dummy $ac_prog; ac_word=$2
13486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13488 if test "${ac_cv_path_MCOOKIE+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
13498 for as_dir in $as_dummy
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13504 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
13505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 MCOOKIE=$ac_cv_path_MCOOKIE
13516 if test -n "$MCOOKIE"; then
13517 { echo "$as_me:$LINENO: result: $MCOOKIE" >&5
13518 echo "${ECHO_T}$MCOOKIE" >&6; }
13520 { echo "$as_me:$LINENO: result: no" >&5
13521 echo "${ECHO_T}no" >&6; }
13525 test -n "$MCOOKIE" && break
13527 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
13532 MCOOKIE='/usr/sbin/openssl rand -hex 16'
13535 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
13539 if test "x$MCOOKIE" != x ; then
13540 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
13544 # Additional substitutions in startx, xinitrc & man pages
13545 SHELL_CMD="/bin/sh"
13547 XCONFIGFILE="xorg.conf"
13548 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
13552 XCONFIGFILE="XWinrc"
13555 XSERVERNAME="Xquartz"
13556 XCONFIGFILE="defaults"
13557 XCONFIGFILEMAN='defaults (1)'
13560 SHELL_CMD="/bin/ksh"
13563 SHELL_CMD="/bin/ksh"
13583 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
13585 cat >confcache <<\_ACEOF
13586 # This file is a shell script that caches the results of configure
13587 # tests run on this system so they can be shared between configure
13588 # scripts and configure runs, see configure's option --config-cache.
13589 # It is not useful on other systems. If it contains results you don't
13590 # want to keep, you may remove or edit it.
13592 # config.status only pays attention to the cache file if you give it
13593 # the --recheck option to rerun configure.
13595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13597 # following values.
13601 # The following way of writing the cache mishandles newlines in values,
13602 # but we know of no workaround that is simple, portable, and efficient.
13603 # So, we kill variables containing newlines.
13604 # Ultrix sh set writes to stderr and can't be redirected directly,
13605 # and sets the high bit in the cache file unless we assign to the vars.
13607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13608 eval ac_val=\$$ac_var
13612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13613 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13616 _ | IFS | as_nl) ;; #(
13617 *) $as_unset $ac_var ;;
13623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624 *${as_nl}ac_space=\ *)
13625 # `set' does not quote correctly, so add quotes (double-quote
13626 # substitution turns \\\\ into \\, and sed turns \\ into \).
13629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13632 # `set' quotes correctly as required by POSIX, so do not add quotes.
13633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13647 if test -w "$cache_file"; then
13648 test "x$cache_file" != "x/dev/null" &&
13649 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13650 echo "$as_me: updating cache $cache_file" >&6;}
13651 cat confcache >$cache_file
13653 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13654 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13660 # Let make expand exec_prefix.
13661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13663 DEFS=-DHAVE_CONFIG_H
13667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13668 # 1. Remove the extension, and $U if already installed.
13669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13670 ac_i=`echo "$ac_i" | sed "$ac_script"`
13671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13672 # will be set to the directory where LIBOBJS objects are built.
13673 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13674 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13676 LIBOBJS=$ac_libobjs
13678 LTLIBOBJS=$ac_ltlibobjs
13681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13682 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13683 Usually this means the macro was only invoked conditionally." >&5
13684 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13685 Usually this means the macro was only invoked conditionally." >&2;}
13686 { (exit 1); exit 1; }; }
13688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13689 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13690 Usually this means the macro was only invoked conditionally." >&5
13691 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13692 Usually this means the macro was only invoked conditionally." >&2;}
13693 { (exit 1); exit 1; }; }
13695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13696 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13697 Usually this means the macro was only invoked conditionally." >&5
13698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13699 Usually this means the macro was only invoked conditionally." >&2;}
13700 { (exit 1); exit 1; }; }
13702 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
13703 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
13704 Usually this means the macro was only invoked conditionally." >&5
13705 echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
13706 Usually this means the macro was only invoked conditionally." >&2;}
13707 { (exit 1); exit 1; }; }
13709 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
13710 { { echo "$as_me:$LINENO: error: conditional \"TIGER_LAUNCHD\" was never defined.
13711 Usually this means the macro was only invoked conditionally." >&5
13712 echo "$as_me: error: conditional \"TIGER_LAUNCHD\" was never defined.
13713 Usually this means the macro was only invoked conditionally." >&2;}
13714 { (exit 1); exit 1; }; }
13716 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
13717 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13718 Usually this means the macro was only invoked conditionally." >&5
13719 echo "$as_me: error: conditional \"LAUNCHAGENT_XSERVER\" was never defined.
13720 Usually this means the macro was only invoked conditionally." >&2;}
13721 { (exit 1); exit 1; }; }
13724 : ${CONFIG_STATUS=./config.status}
13725 ac_clean_files_save=$ac_clean_files
13726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13727 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13728 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13729 cat >$CONFIG_STATUS <<_ACEOF
13731 # Generated by $as_me.
13732 # Run this file to recreate the current configuration.
13733 # Compiler output produced by configure, useful for debugging
13734 # configure, is in config.log if it exists.
13737 ac_cs_recheck=false
13739 SHELL=\${CONFIG_SHELL-$SHELL}
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 ## --------------------- ##
13744 ## M4sh Initialization. ##
13745 ## --------------------- ##
13747 # Be more Bourne compatible
13748 DUALCASE=1; export DUALCASE # for MKS sh
13749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13752 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13753 # is contrary to our usage. Disable this feature.
13754 alias -g '${1+"$@"}'='"$@"'
13755 setopt NO_GLOB_SUBST
13757 case `(set -o) 2>/dev/null` in
13758 *posix*) set -o posix ;;
13767 # Avoid depending upon Character Ranges.
13768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13771 as_cr_digits='0123456789'
13772 as_cr_alnum=$as_cr_Letters$as_cr_digits
13774 # The user is always right.
13775 if test "${PATH_SEPARATOR+set}" != set; then
13776 echo "#! /bin/sh" >conf$$.sh
13777 echo "exit 0" >>conf$$.sh
13779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13787 # Support unset when possible.
13788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13796 # We need space, tab and new line, in precisely that order. Quoting is
13797 # there to prevent editors from complaining about space-tab.
13798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13799 # splitting by setting IFS to empty value.)
13804 # Find who we are. Look in the path if we contain no directory separator.
13806 *[\\/]* ) as_myself=$0 ;;
13807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13811 test -z "$as_dir" && as_dir=.
13812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13818 # We did not find ourselves, most probably we were run as `sh COMMAND'
13819 # in which case we are not to be found in the path.
13820 if test "x$as_myself" = x; then
13823 if test ! -f "$as_myself"; then
13824 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13825 { (exit 1); exit 1; }
13828 # Work around bugs in pre-3.0 UWIN ksh.
13829 for as_var in ENV MAIL MAILPATH
13830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13838 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13839 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13840 LC_TELEPHONE LC_TIME
13842 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13843 eval $as_var=C; export $as_var
13845 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13849 # Required to use basename.
13850 if expr a : '\(a\)' >/dev/null 2>&1 &&
13851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13858 as_basename=basename
13864 # Name of the executable.
13865 as_me=`$as_basename -- "$0" ||
13866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13867 X"$0" : 'X\(//\)$' \| \
13868 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13870 sed '/^.*\/\([^/][^/]*\)\/*$/{
13889 as_lineno_1=$LINENO
13890 as_lineno_2=$LINENO
13891 test "x$as_lineno_1" != "x$as_lineno_2" &&
13892 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13895 # uniformly replaced by the line number. The first 'sed' inserts a
13896 # line-number line after each line using $LINENO; the second 'sed'
13897 # does the real work. The second script uses 'N' to pair each
13898 # line-number line with the line containing $LINENO, and appends
13899 # trailing '-' during substitution so that $LINENO is not a special
13900 # case at line end.
13901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13902 # scripts with optimization help from Paolo Bonzini. Blame Lee
13903 # E. McMahon (1931-1989) for sed's syntax. :-)
13915 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13918 ' >$as_me.lineno &&
13919 chmod +x "$as_me.lineno" ||
13920 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13921 { (exit 1); exit 1; }; }
13923 # Don't try to exec as it changes $[0], causing all sort of problems
13924 # (the dirname of $[0] is not the place where we might find the
13925 # original and so on. Autoconf is especially sensitive to this).
13926 . "./$as_me.lineno"
13927 # Exit status is that of the last command.
13932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13938 ECHO_C= ECHO_N= ECHO_T=
13939 case `echo -n x` in
13941 case `echo 'x\c'` in
13942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13949 if expr a : '\(a\)' >/dev/null 2>&1 &&
13950 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13956 rm -f conf$$ conf$$.exe conf$$.file
13957 if test -d conf$$.dir; then
13958 rm -f conf$$.dir/conf$$.file
13964 if ln -s conf$$.file conf$$ 2>/dev/null; then
13966 # ... but there are two gotchas:
13967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13969 # In both cases, we have to default to `cp -p'.
13970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13972 elif ln conf$$.file conf$$ 2>/dev/null; then
13977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13978 rmdir conf$$.dir 2>/dev/null
13980 if mkdir -p . 2>/dev/null; then
13983 test -d ./-p && rmdir ./-p
13987 if test -x / >/dev/null 2>&1; then
13988 as_test_x='test -x'
13990 if ls -dL / >/dev/null 2>&1; then
13997 if test -d "$1"; then
14003 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14004 ???[sx]*):;;*)false;;esac;fi
14008 as_executable_p=$as_test_x
14010 # Sed expression to map a string onto a valid CPP name.
14011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14013 # Sed expression to map a string onto a valid variable name.
14014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14019 # Save the log message, to keep $[0] and so on meaningful, and to
14020 # report actual input values of CONFIG_FILES etc. instead of their
14021 # values after options handling.
14023 This file was extended by xinit $as_me 1.3.2, which was
14024 generated by GNU Autoconf 2.61. Invocation command line was
14026 CONFIG_FILES = $CONFIG_FILES
14027 CONFIG_HEADERS = $CONFIG_HEADERS
14028 CONFIG_LINKS = $CONFIG_LINKS
14029 CONFIG_COMMANDS = $CONFIG_COMMANDS
14032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14037 cat >>$CONFIG_STATUS <<_ACEOF
14038 # Files that config.status was made for.
14039 config_files="$ac_config_files"
14040 config_headers="$ac_config_headers"
14041 config_commands="$ac_config_commands"
14045 cat >>$CONFIG_STATUS <<\_ACEOF
14047 \`$as_me' instantiates files from templates according to the
14048 current configuration.
14050 Usage: $0 [OPTIONS] [FILE]...
14052 -h, --help print this help, then exit
14053 -V, --version print version number and configuration settings, then exit
14054 -q, --quiet do not print progress messages
14055 -d, --debug don't remove temporary files
14056 --recheck update $as_me by reconfiguring in the same conditions
14057 --file=FILE[:TEMPLATE]
14058 instantiate the configuration file FILE
14059 --header=FILE[:TEMPLATE]
14060 instantiate the configuration header FILE
14062 Configuration files:
14065 Configuration headers:
14068 Configuration commands:
14071 Report bugs to <bug-autoconf@gnu.org>."
14074 cat >>$CONFIG_STATUS <<_ACEOF
14076 xinit config.status 1.3.2
14077 configured by $0, generated by GNU Autoconf 2.61,
14078 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14080 Copyright (C) 2006 Free Software Foundation, Inc.
14081 This config.status script is free software; the Free Software Foundation
14082 gives unlimited permission to copy, distribute and modify it."
14090 cat >>$CONFIG_STATUS <<\_ACEOF
14091 # If no file are specified by the user, then we need to provide default
14092 # value. By we need to know if files were specified by the user.
14098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14110 # Handling of the options.
14111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14114 echo "$ac_cs_version"; exit ;;
14115 --debug | --debu | --deb | --de | --d | -d )
14117 --file | --fil | --fi | --f )
14119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14120 ac_need_defaults=false;;
14121 --header | --heade | --head | --hea )
14123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14124 ac_need_defaults=false;;
14126 # Conflict between --help and --header
14127 { echo "$as_me: error: ambiguous option: $1
14128 Try \`$0 --help' for more information." >&2
14129 { (exit 1); exit 1; }; };;
14130 --help | --hel | -h )
14131 echo "$ac_cs_usage"; exit ;;
14132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14136 # This is an error.
14137 -*) { echo "$as_me: error: unrecognized option: $1
14138 Try \`$0 --help' for more information." >&2
14139 { (exit 1); exit 1; }; } ;;
14141 *) ac_config_targets="$ac_config_targets $1"
14142 ac_need_defaults=false ;;
14148 ac_configure_extra_args=
14150 if $ac_cs_silent; then
14152 ac_configure_extra_args="$ac_configure_extra_args --silent"
14156 cat >>$CONFIG_STATUS <<_ACEOF
14157 if \$ac_cs_recheck; then
14158 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14159 CONFIG_SHELL=$SHELL
14160 export CONFIG_SHELL
14161 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14165 cat >>$CONFIG_STATUS <<\_ACEOF
14169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14170 ## Running $as_me. ##
14176 cat >>$CONFIG_STATUS <<_ACEOF
14180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14184 cat >>$CONFIG_STATUS <<\_ACEOF
14186 # Handling of arguments.
14187 for ac_config_target in $ac_config_targets
14189 case $ac_config_target in
14190 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14191 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14193 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14194 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
14195 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
14196 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
14198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14200 { (exit 1); exit 1; }; };;
14205 # If the user did not use the arguments to specify the items to instantiate,
14206 # then the envvar interface is used. Set only those that are not.
14207 # We use the long form for the default assignment because of an extremely
14208 # bizarre bug on SunOS 4.1.3.
14209 if $ac_need_defaults; then
14210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14215 # Have a temporary directory for convenience. Make it in the build tree
14216 # simply because there is no reason against having it here, and in addition,
14217 # creating and moving files from /tmp can sometimes cause problems.
14218 # Hook for its removal unless debugging.
14219 # Note that there is a small window in which the directory will not be cleaned:
14220 # after its creation but before its name has been assigned to `$tmp'.
14224 trap 'exit_status=$?
14225 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14227 trap '{ (exit 1); exit 1; }' 1 2 13 15
14229 # Create a (secure) tmp directory for tmp files.
14232 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14233 test -n "$tmp" && test -d "$tmp"
14236 tmp=./conf$$-$RANDOM
14237 (umask 077 && mkdir "$tmp")
14240 echo "$me: cannot create a temporary directory in ." >&2
14241 { (exit 1); exit 1; }
14245 # Set up the sed scripts for CONFIG_FILES section.
14248 # No need to generate the scripts if there are no CONFIG_FILES.
14249 # This happens for instance when ./config.status config.h
14250 if test -n "$CONFIG_FILES"; then
14257 for ac_last_try in false false false false false :; do
14258 cat >conf$$subs.sed <<_ACEOF
14259 SHELL!$SHELL$ac_delim
14260 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14261 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14262 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14263 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14264 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14265 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14266 exec_prefix!$exec_prefix$ac_delim
14267 prefix!$prefix$ac_delim
14268 program_transform_name!$program_transform_name$ac_delim
14269 bindir!$bindir$ac_delim
14270 sbindir!$sbindir$ac_delim
14271 libexecdir!$libexecdir$ac_delim
14272 datarootdir!$datarootdir$ac_delim
14273 datadir!$datadir$ac_delim
14274 sysconfdir!$sysconfdir$ac_delim
14275 sharedstatedir!$sharedstatedir$ac_delim
14276 localstatedir!$localstatedir$ac_delim
14277 includedir!$includedir$ac_delim
14278 oldincludedir!$oldincludedir$ac_delim
14279 docdir!$docdir$ac_delim
14280 infodir!$infodir$ac_delim
14281 htmldir!$htmldir$ac_delim
14282 dvidir!$dvidir$ac_delim
14283 pdfdir!$pdfdir$ac_delim
14284 psdir!$psdir$ac_delim
14285 libdir!$libdir$ac_delim
14286 localedir!$localedir$ac_delim
14287 mandir!$mandir$ac_delim
14288 DEFS!$DEFS$ac_delim
14289 ECHO_C!$ECHO_C$ac_delim
14290 ECHO_N!$ECHO_N$ac_delim
14291 ECHO_T!$ECHO_T$ac_delim
14292 LIBS!$LIBS$ac_delim
14293 build_alias!$build_alias$ac_delim
14294 host_alias!$host_alias$ac_delim
14295 target_alias!$target_alias$ac_delim
14296 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14297 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14298 INSTALL_DATA!$INSTALL_DATA$ac_delim
14299 am__isrc!$am__isrc$ac_delim
14300 CYGPATH_W!$CYGPATH_W$ac_delim
14301 PACKAGE!$PACKAGE$ac_delim
14302 VERSION!$VERSION$ac_delim
14303 ACLOCAL!$ACLOCAL$ac_delim
14304 AUTOCONF!$AUTOCONF$ac_delim
14305 AUTOMAKE!$AUTOMAKE$ac_delim
14306 AUTOHEADER!$AUTOHEADER$ac_delim
14307 MAKEINFO!$MAKEINFO$ac_delim
14308 install_sh!$install_sh$ac_delim
14309 STRIP!$STRIP$ac_delim
14310 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14311 mkdir_p!$mkdir_p$ac_delim
14313 SET_MAKE!$SET_MAKE$ac_delim
14314 am__leading_dot!$am__leading_dot$ac_delim
14315 AMTAR!$AMTAR$ac_delim
14316 am__tar!$am__tar$ac_delim
14317 am__untar!$am__untar$ac_delim
14318 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14319 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14320 MAINT!$MAINT$ac_delim
14322 CFLAGS!$CFLAGS$ac_delim
14323 LDFLAGS!$LDFLAGS$ac_delim
14324 CPPFLAGS!$CPPFLAGS$ac_delim
14325 ac_ct_CC!$ac_ct_CC$ac_delim
14326 EXEEXT!$EXEEXT$ac_delim
14327 OBJEXT!$OBJEXT$ac_delim
14328 DEPDIR!$DEPDIR$ac_delim
14329 am__include!$am__include$ac_delim
14330 am__quote!$am__quote$ac_delim
14331 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14332 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14333 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14334 CCDEPMODE!$CCDEPMODE$ac_delim
14335 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14336 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14338 GREP!$GREP$ac_delim
14339 EGREP!$EGREP$ac_delim
14340 BASE_CFLAGS!$BASE_CFLAGS$ac_delim
14341 CWARNFLAGS!$CWARNFLAGS$ac_delim
14342 STRICT_CFLAGS!$STRICT_CFLAGS$ac_delim
14343 CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
14344 PKG_CONFIG!$PKG_CONFIG$ac_delim
14345 PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
14346 PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
14347 INSTALL_CMD!$INSTALL_CMD$ac_delim
14348 build!$build$ac_delim
14349 build_cpu!$build_cpu$ac_delim
14350 build_vendor!$build_vendor$ac_delim
14351 build_os!$build_os$ac_delim
14352 host!$host$ac_delim
14353 host_cpu!$host_cpu$ac_delim
14354 host_vendor!$host_vendor$ac_delim
14355 host_os!$host_os$ac_delim
14358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14360 elif $ac_last_try; then
14361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14363 { (exit 1); exit 1; }; }
14365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14369 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14370 if test -n "$ac_eof"; then
14371 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14372 ac_eof=`expr $ac_eof + 1`
14375 cat >>$CONFIG_STATUS <<_ACEOF
14376 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14381 s/^/s,@/; s/!/@,|#_!!_#|/
14384 s/'"$ac_delim"'$/,g/; t
14386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14387 ' >>$CONFIG_STATUS <conf$$subs.sed
14388 rm -f conf$$subs.sed
14389 cat >>$CONFIG_STATUS <<_ACEOF
14395 for ac_last_try in false false false false false :; do
14396 cat >conf$$subs.sed <<_ACEOF
14398 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
14399 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
14400 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
14401 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
14402 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
14403 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
14404 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
14405 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
14406 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
14407 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
14408 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
14409 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
14410 XORG_MAN_PAGE!$XORG_MAN_PAGE$ac_delim
14411 MAN_SUBSTS!$MAN_SUBSTS$ac_delim
14412 AM_DEFAULT_VERBOSITY!$AM_DEFAULT_VERBOSITY$ac_delim
14413 RAWCPP!$RAWCPP$ac_delim
14414 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
14415 LAUNCHD!$LAUNCHD$ac_delim
14416 launchagentsdir!$launchagentsdir$ac_delim
14417 launchdaemonsdir!$launchdaemonsdir$ac_delim
14418 bundleidprefix!$bundleidprefix$ac_delim
14419 launchagentxserver!$launchagentxserver$ac_delim
14420 LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
14421 LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
14422 TIGER_LAUNCHD_TRUE!$TIGER_LAUNCHD_TRUE$ac_delim
14423 TIGER_LAUNCHD_FALSE!$TIGER_LAUNCHD_FALSE$ac_delim
14424 LAUNCHAGENT_XSERVER_TRUE!$LAUNCHAGENT_XSERVER_TRUE$ac_delim
14425 LAUNCHAGENT_XSERVER_FALSE!$LAUNCHAGENT_XSERVER_FALSE$ac_delim
14426 XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
14427 XINIT_LIBS!$XINIT_LIBS$ac_delim
14428 MCOOKIE!$MCOOKIE$ac_delim
14429 STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
14430 SHELL_CMD!$SHELL_CMD$ac_delim
14431 SCOMAN!$SCOMAN$ac_delim
14432 XSERVERNAME!$XSERVERNAME$ac_delim
14433 XCONFIGFILE!$XCONFIGFILE$ac_delim
14434 XCONFIGFILEMAN!$XCONFIGFILEMAN$ac_delim
14435 XRDB!$XRDB$ac_delim
14436 XMODMAP!$XMODMAP$ac_delim
14438 XCLOCK!$XCLOCK$ac_delim
14439 XTERM!$XTERM$ac_delim
14440 XSERVER!$XSERVER$ac_delim
14441 XAUTH!$XAUTH$ac_delim
14442 XINIT!$XINIT$ac_delim
14443 XINITDIR!$XINITDIR$ac_delim
14444 LIBOBJS!$LIBOBJS$ac_delim
14445 LTLIBOBJS!$LTLIBOBJS$ac_delim
14448 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
14450 elif $ac_last_try; then
14451 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14452 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14453 { (exit 1); exit 1; }; }
14455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14459 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14460 if test -n "$ac_eof"; then
14461 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14462 ac_eof=`expr $ac_eof + 1`
14465 cat >>$CONFIG_STATUS <<_ACEOF
14466 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14470 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14471 s/^/s,@/; s/!/@,|#_!!_#|/
14474 s/'"$ac_delim"'$/,g/; t
14476 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14477 ' >>$CONFIG_STATUS <conf$$subs.sed
14478 rm -f conf$$subs.sed
14479 cat >>$CONFIG_STATUS <<_ACEOF
14486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14488 # trailing colons and then remove the whole line if VPATH becomes empty
14489 # (actually we leave an empty line to preserve line numbers).
14490 if test "x$srcdir" = x.; then
14491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14492 s/:*\$(srcdir):*/:/
14493 s/:*\${srcdir}:*/:/
14495 s/^\([^=]*=[ ]*\):*/\1/
14501 cat >>$CONFIG_STATUS <<\_ACEOF
14502 fi # test -n "$CONFIG_FILES"
14505 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14508 :[FHLC]) ac_mode=$ac_tag; continue;;
14510 case $ac_mode$ac_tag in
14512 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14513 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14514 { (exit 1); exit 1; }; };;
14515 :[FH]-) ac_tag=-:-;;
14516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14533 -) ac_f="$tmp/stdin";;
14534 *) # Look for the file first in the build tree, then in the source tree
14535 # (if the path is not absolute). The absolute path cannot be DOS-style,
14536 # because $ac_f cannot contain `:'.
14540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14542 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14543 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14544 { (exit 1); exit 1; }; };;
14546 ac_file_inputs="$ac_file_inputs $ac_f"
14549 # Let's still pretend it is `configure' which instantiates (i.e., don't
14550 # use $as_me), people would be surprised to read:
14551 # /* config.h. Generated by config.status. */
14552 configure_input="Generated from "`IFS=:
14553 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14554 if test x"$ac_file" != x-; then
14555 configure_input="$ac_file. $configure_input"
14556 { echo "$as_me:$LINENO: creating $ac_file" >&5
14557 echo "$as_me: creating $ac_file" >&6;}
14561 *:-:* | *:-) cat >"$tmp/stdin";;
14566 ac_dir=`$as_dirname -- "$ac_file" ||
14567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568 X"$ac_file" : 'X\(//\)[^/]' \| \
14569 X"$ac_file" : 'X\(//\)$' \| \
14570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14576 /^X\(\/\/\)[^/].*/{
14591 -*) as_dir=./$as_dir;;
14593 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14597 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14598 *) as_qdir=$as_dir;;
14600 as_dirs="'$as_qdir' $as_dirs"
14601 as_dir=`$as_dirname -- "$as_dir" ||
14602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603 X"$as_dir" : 'X\(//\)[^/]' \| \
14604 X"$as_dir" : 'X\(//\)$' \| \
14605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611 /^X\(\/\/\)[^/].*/{
14624 test -d "$as_dir" && break
14626 test -z "$as_dirs" || eval "mkdir $as_dirs"
14627 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14628 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14629 { (exit 1); exit 1; }; }; }
14633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14636 # A ".." for each directory in $ac_dir_suffix.
14637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14638 case $ac_top_builddir_sub in
14639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14643 ac_abs_top_builddir=$ac_pwd
14644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645 # for backward compatibility:
14646 ac_top_builddir=$ac_top_build_prefix
14649 .) # We are building in place.
14651 ac_top_srcdir=$ac_top_builddir_sub
14652 ac_abs_top_srcdir=$ac_pwd ;;
14653 [\\/]* | ?:[\\/]* ) # Absolute name.
14654 ac_srcdir=$srcdir$ac_dir_suffix;
14655 ac_top_srcdir=$srcdir
14656 ac_abs_top_srcdir=$srcdir ;;
14657 *) # Relative name.
14658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659 ac_top_srcdir=$ac_top_build_prefix$srcdir
14660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14675 ac_MKDIR_P=$MKDIR_P
14677 [\\/$]* | ?:[\\/]* ) ;;
14678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14682 cat >>$CONFIG_STATUS <<\_ACEOF
14683 # If the template does not know about datarootdir, expand it.
14684 # FIXME: This hack should be removed a few years after 2.60.
14685 ac_datarootdir_hack=; ac_datarootdir_seen=
14687 case `sed -n '/datarootdir/ {
14696 ' $ac_file_inputs` in
14697 *datarootdir*) ac_datarootdir_seen=yes;;
14698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14699 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14700 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14702 cat >>$CONFIG_STATUS <<_ACEOF
14703 ac_datarootdir_hack='
14704 s&@datadir@&$datadir&g
14705 s&@docdir@&$docdir&g
14706 s&@infodir@&$infodir&g
14707 s&@localedir@&$localedir&g
14708 s&@mandir@&$mandir&g
14709 s&\\\${datarootdir}&$datarootdir&g' ;;
14713 # Neutralize VPATH when `$srcdir' = `.'.
14714 # Shell code in configure.ac might set extrasub.
14715 # FIXME: do we really want to maintain this feature?
14716 cat >>$CONFIG_STATUS <<_ACEOF
14720 cat >>$CONFIG_STATUS <<\_ACEOF
14722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14723 s&@configure_input@&$configure_input&;t t
14724 s&@top_builddir@&$ac_top_builddir_sub&;t t
14725 s&@srcdir@&$ac_srcdir&;t t
14726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14727 s&@top_srcdir@&$ac_top_srcdir&;t t
14728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14729 s&@builddir@&$ac_builddir&;t t
14730 s&@abs_builddir@&$ac_abs_builddir&;t t
14731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14732 s&@INSTALL@&$ac_INSTALL&;t t
14733 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14734 $ac_datarootdir_hack
14735 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14740 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14741 which seems to be undefined. Please make sure it is defined." >&5
14742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14743 which seems to be undefined. Please make sure it is defined." >&2;}
14747 -) cat "$tmp/out"; rm -f "$tmp/out";;
14748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14757 # Transform confdefs.h into a sed script `conftest.defines', that
14758 # substitutes the proper values into config.h.in to produce config.h.
14759 rm -f conftest.defines conftest.tail
14760 # First, append a space to every undef/define line, to ease matching.
14761 echo 's/$/ /' >conftest.defines
14762 # Then, protect against being on the right side of a sed subst, or in
14763 # an unquoted here document, in config.status. If some macros were
14764 # called several times there might be several #defines for the same
14765 # symbol, which is useless. But do not sort them, since the last
14766 # AC_DEFINE must be honored.
14767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14770 # PARAMS is the parameter list in the macro definition--in most cases, it's
14771 # just an empty string.
14772 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14773 ac_dB='\\)[ (].*,\\1define\\2'
14781 s/^[ ]*#[ ]*define[ ][ ]*//
14786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14788 ' >>conftest.defines
14790 # Remove the space that was appended to ease matching.
14791 # Then replace #undef with comments. This is necessary, for
14792 # example, in the case of _POSIX_SOURCE, which is predefined and required
14793 # on some systems where configure will not decide to define it.
14794 # (The regexp can be short, since the line contains either #define or #undef.)
14796 s,^[ #]*u.*,/* & */,' >>conftest.defines
14798 # Break up conftest.defines:
14799 ac_max_sed_lines=50
14801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14805 ac_in='$ac_file_inputs'
14806 ac_out='"$tmp/out1"'
14807 ac_nxt='"$tmp/out2"'
14811 # Write a here document:
14812 cat >>$CONFIG_STATUS <<_ACEOF
14813 # First, check the format of the line:
14814 cat >"\$tmp/defines.sed" <<\\CEOF
14815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def
14816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14820 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14823 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14824 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14825 grep . conftest.tail >/dev/null || break
14826 rm -f conftest.defines
14827 mv conftest.tail conftest.defines
14829 rm -f conftest.defines conftest.tail
14831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14832 cat >>$CONFIG_STATUS <<\_ACEOF
14833 if test x"$ac_file" != x-; then
14834 echo "/* $configure_input */" >"$tmp/config.h"
14835 cat "$ac_result" >>"$tmp/config.h"
14836 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14838 echo "$as_me: $ac_file is unchanged" >&6;}
14841 mv "$tmp/config.h" $ac_file
14844 echo "/* $configure_input */"
14848 # Compute $ac_file's index in $config_headers.
14850 for _am_header in $config_headers :; do
14851 case $_am_header in
14852 $ac_file | $ac_file:* )
14855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14858 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14859 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14860 X$ac_file : 'X\(//\)[^/]' \| \
14861 X$ac_file : 'X\(//\)$' \| \
14862 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14868 /^X\(\/\/\)[^/].*/{
14880 s/.*/./; q'`/stamp-h$_am_stamp_count
14883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14884 echo "$as_me: executing $ac_file commands" >&6;}
14889 case $ac_file$ac_mode in
14890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14891 # Strip MF so we end up with the name of the file.
14892 mf=`echo "$mf" | sed -e 's/:.*$//'`
14893 # Check whether this is an Automake generated Makefile or not.
14894 # We used to match only the files named `Makefile.in', but
14895 # some people rename them; so instead we look at the file content.
14896 # Grep'ing the first line is not enough: some people post-process
14897 # each Makefile.in and add a new line on top of each file to say so.
14898 # Grep'ing the whole file is not good either: AIX grep has a line
14899 # limit of 2048, but all sed's we know have understand at least 4000.
14900 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14901 dirpart=`$as_dirname -- "$mf" ||
14902 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14903 X"$mf" : 'X\(//\)[^/]' \| \
14904 X"$mf" : 'X\(//\)$' \| \
14905 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14911 /^X\(\/\/\)[^/].*/{
14927 # Extract the definition of DEPDIR, am__include, and am__quote
14928 # from the Makefile without running `make'.
14929 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14930 test -z "$DEPDIR" && continue
14931 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14932 test -z "am__include" && continue
14933 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14934 # When using ansi2knr, U may be empty or an underscore; expand it
14935 U=`sed -n 's/^U = //p' < "$mf"`
14936 # Find all dependency output files, they are included files with
14937 # $(DEPDIR) in their names. We invoke sed twice because it is the
14938 # simplest approach to changing $(DEPDIR) to its actual value in the
14940 for file in `sed -n "
14941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14943 # Make sure the directory exists.
14944 test -f "$dirpart/$file" && continue
14945 fdir=`$as_dirname -- "$file" ||
14946 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$file" : 'X\(//\)[^/]' \| \
14948 X"$file" : 'X\(//\)$' \| \
14949 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14955 /^X\(\/\/\)[^/].*/{
14968 { as_dir=$dirpart/$fdir
14970 -*) as_dir=./$as_dir;;
14972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14977 *) as_qdir=$as_dir;;
14979 as_dirs="'$as_qdir' $as_dirs"
14980 as_dir=`$as_dirname -- "$as_dir" ||
14981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14982 X"$as_dir" : 'X\(//\)[^/]' \| \
14983 X"$as_dir" : 'X\(//\)$' \| \
14984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14990 /^X\(\/\/\)[^/].*/{
15003 test -d "$as_dir" && break
15005 test -z "$as_dirs" || eval "mkdir $as_dirs"
15006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15007 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15008 { (exit 1); exit 1; }; }; }
15009 # echo "creating $dirpart/$file"
15010 echo '# dummy' > "$dirpart/$file"
15019 { (exit 0); exit 0; }
15021 chmod +x $CONFIG_STATUS
15022 ac_clean_files=$ac_clean_files_save
15025 # configure is writing to config.log, and then calls config.status.
15026 # config.status does its own redirection, appending to config.log.
15027 # Unfortunately, on DOS this fails, as config.log is still kept open
15028 # by configure, so config.status won't be able to write to it; its
15029 # output is simply discarded. So we exec the FD to /dev/null,
15030 # effectively closing config.log, so it can be properly (re)opened and
15031 # appended to by config.status. When coming back to configure, we
15032 # need to make the FD available again.
15033 if test "$no_create" != yes; then
15035 ac_config_status_args=
15036 test "$silent" = yes &&
15037 ac_config_status_args="$ac_config_status_args --quiet"
15039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15042 # would make configure fail if this is the last instruction.
15043 $ac_cs_success || { (exit 1); exit 1; }