2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for KBProto 1.0.6.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Use only awk features that work with 7th edition Unix awk (1978).
542 # My, what an old awk you have, Mr. Solaris!
544 while (length(v1) && length(v2)) {
545 # Set d1 to be the next thing to compare from v1, and likewise for d2.
546 # Normally this is a single character, but if v1 and v2 contain digits,
547 # compare them as integers and fractions as strverscmp does.
548 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549 # Split v1 and v2 into their leading digit string components d1 and d2,
550 # and advance v1 and v2 past the leading digit strings.
551 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
557 # Compare two fractions.
558 while (d1 ~ /^0/ && d2 ~ /^0/) {
559 d1 = substr(d1, 2); len1--
560 d2 = substr(d2, 2); len2--
562 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563 # The two components differ in length, and the common prefix
564 # contains only leading zeros. Consider the longer to be less.
568 # Otherwise, compare as strings.
573 # A fraction is less than an integer.
578 # An integer is greater than a fraction.
581 # Compare two integers.
587 # The normal case, without worrying about digits.
588 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
594 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595 # which mishandles some comparisons of empty strings to integers.
596 if (length(v2)) exit 1
597 if (length(v1)) exit 2
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='KBProto'
623 PACKAGE_TARNAME='kbproto'
624 PACKAGE_VERSION='1.0.6'
625 PACKAGE_STRING='KBProto 1.0.6'
626 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
629 # Factoring default headers for most tests.
630 ac_includes_default="\
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
642 # ifdef HAVE_STDLIB_H
647 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
652 #ifdef HAVE_STRINGS_H
653 # include <strings.h>
655 #ifdef HAVE_INTTYPES_H
656 # include <inttypes.h>
665 ac_subst_vars='am__EXEEXT_FALSE
669 HAVE_STYLESHEETS_FALSE
670 HAVE_STYLESHEETS_TRUE
682 HAVE_XMLTO_TEXT_FALSE
738 MAINTAINER_MODE_FALSE
748 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
804 enable_maintainer_mode
805 enable_dependency_tracking
806 enable_selective_werror
807 enable_strict_compilation
814 ac_precious_vars='build_alias
829 # Initialize some variables set by options.
831 ac_init_version=false
832 ac_unrecognized_opts=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
987 -help | --help | --hel | --he | -h)
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1136 -site=* | --site=* | --sit=*)
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=no ;;
1195 # Obsolete; use --with-x.
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used" >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures KBProto 1.0.6 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/kbproto]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of KBProto 1.0.6:";;
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --disable-dependency-tracking speeds up one-time build
1450 --enable-dependency-tracking do not reject slow dependency extractors
1451 --disable-selective-werror
1452 Turn off selective compiler errors. (default:
1454 --enable-strict-compilation
1455 Enable all warnings from compiler and make them
1456 errors (default: disabled)
1457 --enable-silent-rules less verbose build output (undo: `make V=1')
1458 --disable-silent-rules verbose build output (undo: `make V=0')
1459 --enable-specs Enable building the specs (default: yes)
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-xmlto Use xmlto to regenerate documentation (default:
1466 --with-fop Use fop to regenerate documentation (default: auto)
1467 --with-xsltproc Use xsltproc for the transformation of XML documents
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1479 PKG_CONFIG path to pkg-config utility
1480 XMLTO Path to xmlto command
1481 FOP Path to fop command
1482 XSLTPROC Path to xsltproc command
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 KBProto configure 1.0.6
1551 generated by GNU Autoconf 2.68
1553 Copyright (C) 2010 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1603 # ---------------------------------------------
1604 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1606 ac_fn_c_check_decl ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 as_decl_name=`echo $2|sed 's/ *(.*//'`
1610 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1612 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1622 #ifndef $as_decl_name
1624 (void) $as_decl_use;
1626 (void) $as_decl_name;
1634 if ac_fn_c_try_compile "$LINENO"; then :
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 } # ac_fn_c_check_decl
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile "$LINENO"; then :
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 $as_test_x conftest$ac_exeext
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_c_try_link
1803 cat >config.log <<_ACEOF
1804 This file contains any messages produced by compilers while
1805 running configure, to aid debugging if configure makes a mistake.
1807 It was created by KBProto $as_me 1.0.6, which was
1808 generated by GNU Autoconf 2.68. Invocation command line was
1820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 $as_echo "PATH: $as_dir"
1860 # Keep a trace of the command line.
1861 # Strip out --no-create and --no-recursion so they do not pile up.
1862 # Strip out --silent because we don't want to record it for future runs.
1863 # Also quote any args containing shell meta-characters.
1864 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_must_keep_next=false
1874 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876 | -silent | --silent | --silen | --sile | --sil)
1879 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 as_fn_append ac_configure_args1 " '$ac_arg'"
1885 if test $ac_must_keep_next = true; then
1886 ac_must_keep_next=false # Got value, back to normal.
1889 *=* | --config-cache | -C | -disable-* | --disable-* \
1890 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892 | -with-* | --with-* | -without-* | --without-* | --x)
1893 case "$ac_configure_args0 " in
1894 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 -* ) ac_must_keep_next=true ;;
1900 as_fn_append ac_configure_args " '$ac_arg'"
1905 { ac_configure_args0=; unset ac_configure_args0;}
1906 { ac_configure_args1=; unset ac_configure_args1;}
1908 # When interrupted or exit'd, cleanup temporary files, and complete
1909 # config.log. We remove comments because anyway the quotes in there
1910 # would cause problems or look ugly.
1911 # WARNING: Use '\'' to represent an apostrophe within the trap.
1912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913 trap 'exit_status=$?
1914 # Save into config.log some information that might help in debugging.
1918 $as_echo "## ---------------- ##
1919 ## Cache variables. ##
1920 ## ---------------- ##"
1922 # The following way of writing the cache mishandles newlines in values,
1924 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925 eval ac_val=\$$ac_var
1929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 _ | IFS | as_nl) ;; #(
1934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935 *) { eval $ac_var=; unset $ac_var;} ;;
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954 $as_echo "## ----------------- ##
1955 ## Output variables. ##
1956 ## ----------------- ##"
1958 for ac_var in $ac_subst_vars
1960 eval ac_val=\$$ac_var
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 $as_echo "$ac_var='\''$ac_val'\''"
1968 if test -n "$ac_subst_files"; then
1969 $as_echo "## ------------------- ##
1970 ## File substitutions. ##
1971 ## ------------------- ##"
1973 for ac_var in $ac_subst_files
1975 eval ac_val=\$$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -s confdefs.h; then
1985 $as_echo "## ----------- ##
1992 test "$ac_signal" != 0 &&
1993 $as_echo "$as_me: caught signal $ac_signal"
1994 $as_echo "$as_me: exit $exit_status"
1996 rm -f core *.core core.conftest.* &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 for ac_signal in 1 2 13 15; do
2001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2006 rm -f -r conftest* confdefs.h
2008 $as_echo "/* confdefs.h */" > confdefs.h
2010 # Predefined preprocessor variables.
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_URL "$PACKAGE_URL"
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 # We do not want a PATH search for config.site.
2043 case $CONFIG_SITE in #((
2044 -*) ac_site_file1=./$CONFIG_SITE;;
2045 */*) ac_site_file1=$CONFIG_SITE;;
2046 *) ac_site_file1=./$CONFIG_SITE;;
2048 elif test "x$prefix" != xNONE; then
2049 ac_site_file1=$prefix/share/config.site
2050 ac_site_file2=$prefix/etc/config.site
2052 ac_site_file1=$ac_default_prefix/share/config.site
2053 ac_site_file2=$ac_default_prefix/etc/config.site
2055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 test "x$ac_site_file" = xNONE && continue
2058 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2061 sed 's/^/| /' "$ac_site_file" >&5
2063 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065 as_fn_error $? "failed to load site script $ac_site_file
2066 See \`config.log' for more details" "$LINENO" 5; }
2070 if test -r "$cache_file"; then
2071 # Some versions of bash will fail to source /dev/null (special files
2072 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2073 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2075 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2078 *) . "./$cache_file";;
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2083 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 # Check that the precious variables saved in the cache have kept the same
2089 ac_cache_corrupted=false
2090 for ac_var in $ac_precious_vars; do
2091 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092 eval ac_new_set=\$ac_env_${ac_var}_set
2093 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094 eval ac_new_val=\$ac_env_${ac_var}_value
2095 case $ac_old_set,$ac_new_set in
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099 ac_cache_corrupted=: ;;
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2106 if test "x$ac_old_val" != "x$ac_new_val"; then
2107 # differences in whitespace do not lead to failure.
2108 ac_old_val_w=`echo x $ac_old_val`
2109 ac_new_val_w=`echo x $ac_new_val`
2110 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2113 ac_cache_corrupted=:
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2117 eval $ac_var=\$ac_old_val
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2120 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2122 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 # Pass precious variables to config.status.
2126 if test "$ac_new_set" = set; then
2128 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 *) ac_arg=$ac_var=$ac_new_val ;;
2131 case " $ac_configure_args " in
2132 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2133 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 if $ac_cache_corrupted; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2142 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 ## -------------------- ##
2145 ## Main body of script. ##
2146 ## -------------------- ##
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155 am__api_version='1.11'
2158 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159 if test -f "$ac_dir/install-sh"; then
2161 ac_install_sh="$ac_aux_dir/install-sh -c"
2163 elif test -f "$ac_dir/install.sh"; then
2165 ac_install_sh="$ac_aux_dir/install.sh -c"
2167 elif test -f "$ac_dir/shtool"; then
2169 ac_install_sh="$ac_aux_dir/shtool install -c"
2173 if test -z "$ac_aux_dir"; then
2174 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2177 # These three variables are undocumented and unsupported,
2178 # and are intended to be withdrawn in a future Autoconf release.
2179 # They can cause serious problems if a builder's source tree is in a directory
2180 # whose full name contains unusual characters.
2181 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2182 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2183 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186 # Find a good install program. We prefer a C program (faster),
2187 # so one script is as good as another. But avoid the broken or
2188 # incompatible versions:
2189 # SysV /etc/install, /usr/sbin/install
2190 # SunOS /usr/etc/install
2191 # IRIX /sbin/install
2193 # AmigaOS /C/install, which installs bootblocks on floppy discs
2194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # OS/2's system install, which has a completely different semantic
2198 # ./install, which can be erroneously created by make from ./install.sh.
2199 # Reject install programs that cannot install multiple files.
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2202 if test -z "$INSTALL"; then
2203 if ${ac_cv_path_install+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 # Account for people who put trailing slashes in PATH elements.
2212 case $as_dir/ in #((
2213 ./ | .// | /[cC]/* | \
2214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2218 # OSF1 and SCO ODT 3.0 have their own names for install.
2219 # Don't use installbsd from OSF since it installs stuff as root
2221 for ac_prog in ginstall scoinst install; do
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224 if test $ac_prog = install &&
2225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # AIX install. It has an incompatible calling convention.
2228 elif test $ac_prog = install &&
2229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230 # program-specific install script used by HP pwplus--don't use.
2233 rm -rf conftest.one conftest.two conftest.dir
2234 echo one > conftest.one
2235 echo two > conftest.two
2237 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2238 test -s conftest.one && test -s conftest.two &&
2239 test -s conftest.dir/conftest.one &&
2240 test -s conftest.dir/conftest.two
2242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255 rm -rf conftest.one conftest.two conftest.dir
2258 if test "${ac_cv_path_install+set}" = set; then
2259 INSTALL=$ac_cv_path_install
2261 # As a last resort, use the slow shell script. Don't cache a
2262 # value for INSTALL within a source directory, because that will
2263 # break other packages using the cache if that directory is
2264 # removed, or if the value is a relative name.
2265 INSTALL=$ac_install_sh
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2269 $as_echo "$INSTALL" >&6; }
2271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2272 # It thinks the first close brace ends the variable substitution.
2273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2280 $as_echo_n "checking whether build environment is sane... " >&6; }
2283 echo timestamp > conftest.file
2284 # Reject unsafe characters in $srcdir or the absolute working directory
2285 # name. Accept space and tab only in the latter.
2289 *[\\\"\#\$\&\'\`$am_lf]*)
2290 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2293 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2294 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2297 # Do `set' in a subshell so we don't clobber the current shell's
2298 # arguments. Must try -L first in case configure is actually a
2299 # symlink; some systems play weird games with the mod time of symlinks
2300 # (eg FreeBSD returns the mod time of the symlink's containing
2303 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2304 if test "$*" = "X"; then
2306 set X `ls -t "$srcdir/configure" conftest.file`
2309 if test "$*" != "X $srcdir/configure conftest.file" \
2310 && test "$*" != "X conftest.file $srcdir/configure"; then
2312 # If neither matched, then we have a broken ls. This can happen
2313 # if, for instance, CONFIG_SHELL is bash and it inherits a
2314 # broken ls alias from the environment. This has actually
2315 # happened. Such a system could not be considered "sane".
2316 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2317 alias in your environment" "$LINENO" 5
2320 test "$2" = conftest.file
2326 as_fn_error $? "newly created file is older than distributed files!
2327 Check your system clock" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2330 $as_echo "yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.
2337 # By default was `s,x,x', remove it if useless.
2338 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2341 # expand $ac_aux_dir to an absolute path
2342 am_aux_dir=`cd $ac_aux_dir && pwd`
2344 if test x"${MISSING+set}" != xset; then
2347 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2349 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2352 # Use eval to expand $SHELL
2353 if eval "$MISSING --run true"; then
2354 am_missing_run="$MISSING --run "
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2358 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2361 if test x"${install_sh}" != xset; then
2364 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2366 install_sh="\${SHELL} $am_aux_dir/install-sh"
2370 # Installed binaries are usually stripped using `strip' when the user
2371 # run `make install-strip'. However `strip' might not be the right
2372 # tool to use in cross-compilation environments, therefore Automake
2373 # will honor the `STRIP' environment variable to overrule this program.
2374 if test "$cross_compiling" != no; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}strip; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_STRIP+:} false; then :
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$STRIP"; then
2384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 STRIP=$ac_cv_prog_STRIP
2404 if test -n "$STRIP"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406 $as_echo "$STRIP" >&6; }
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2414 if test -z "$ac_cv_prog_STRIP"; then
2416 # Extract the first word of "strip", so it can be a program name with args.
2417 set dummy strip; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421 $as_echo_n "(cached) " >&6
2423 if test -n "$ac_ct_STRIP"; then
2424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_ac_ct_STRIP="strip"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444 if test -n "$ac_ct_STRIP"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446 $as_echo "$ac_ct_STRIP" >&6; }
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2452 if test "x$ac_ct_STRIP" = x; then
2455 case $cross_compiling:$ac_tool_warned in
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2464 STRIP="$ac_cv_prog_STRIP"
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472 if test -z "$MKDIR_P"; then
2473 if ${ac_cv_path_mkdir+:} false; then :
2474 $as_echo_n "(cached) " >&6
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2480 test -z "$as_dir" && as_dir=.
2481 for ac_prog in mkdir gmkdir; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485 'mkdir (GNU coreutils) '* | \
2486 'mkdir (coreutils) '* | \
2487 'mkdir (fileutils) '4.1*)
2488 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2498 test -d ./--version && rmdir ./--version
2499 if test "${ac_cv_path_mkdir+set}" = set; then
2500 MKDIR_P="$ac_cv_path_mkdir -p"
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for MKDIR_P within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 MKDIR_P="$ac_install_sh -d"
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510 $as_echo "$MKDIR_P" >&6; }
2514 [\\/$]* | ?:[\\/]*) ;;
2515 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2518 for ac_prog in gawk mawk nawk awk
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_AWK+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$AWK"; then
2528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_AWK="$ac_prog"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$AWK"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550 $as_echo "$AWK" >&6; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2557 test -n "$AWK" && break
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2563 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565 $as_echo_n "(cached) " >&6
2567 cat >conftest.make <<\_ACEOF
2570 @echo '@@@%%%=$(MAKE)=@@@%%%'
2572 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2575 eval ac_cv_prog_make_${ac_make}_set=yes;;
2577 eval ac_cv_prog_make_${ac_make}_set=no;;
2581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 SET_MAKE="MAKE=${MAKE-make}"
2591 rm -rf .tst 2>/dev/null
2592 mkdir .tst 2>/dev/null
2593 if test -d .tst; then
2598 rmdir .tst 2>/dev/null
2600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602 # is not polluted with repeated "-I."
2603 am__isrc=' -I$(srcdir)'
2604 # test to see if srcdir already configured
2605 if test -f $srcdir/config.status; then
2606 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2610 # test whether we have cygpath
2611 if test -z "$CYGPATH_W"; then
2612 if (cygpath --version) >/dev/null 2>/dev/null; then
2613 CYGPATH_W='cygpath -w'
2620 # Define the identity of the package.
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE "$PACKAGE"
2630 cat >>confdefs.h <<_ACEOF
2631 #define VERSION "$VERSION"
2634 # Some tools Automake needs.
2636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2650 # We need awk for the "check" target. The system "awk" is bad on
2652 # Always define AMTAR for backward compatibility.
2654 AMTAR=${AMTAR-"${am_missing_run}tar"}
2656 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2664 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2665 # Check whether --enable-maintainer-mode was given.
2666 if test "${enable_maintainer_mode+set}" = set; then :
2667 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2669 USE_MAINTAINER_MODE=no
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2673 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2674 if test $USE_MAINTAINER_MODE = yes; then
2675 MAINTAINER_MODE_TRUE=
2676 MAINTAINER_MODE_FALSE='#'
2678 MAINTAINER_MODE_TRUE='#'
2679 MAINTAINER_MODE_FALSE=
2682 MAINT=$MAINTAINER_MODE_TRUE
2686 # Require xorg-macros minimum of 1.12 for DocBook external references
2698 DEPDIR="${am__leading_dot}deps"
2700 ac_config_commands="$ac_config_commands depfiles"
2703 am_make=${MAKE-make}
2704 cat > confinc << 'END'
2706 @echo this is the am__doit target
2709 # If we don't find an include directive, just comment out the code.
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2711 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2715 # First try GNU make style include.
2716 echo "include confinc" > confmf
2717 # Ignore all kinds of additional output from `make'.
2718 case `$am_make -s -f confmf 2> /dev/null` in #(
2719 *the\ am__doit\ target*)
2725 # Now try BSD make style include.
2726 if test "$am__include" = "#"; then
2727 echo '.include "confinc"' > confmf
2728 case `$am_make -s -f confmf 2> /dev/null` in #(
2729 *the\ am__doit\ target*)
2730 am__include=.include
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2739 $as_echo "$_am_result" >&6; }
2740 rm -f confinc confmf
2742 # Check whether --enable-dependency-tracking was given.
2743 if test "${enable_dependency_tracking+set}" = set; then :
2744 enableval=$enable_dependency_tracking;
2747 if test "x$enable_dependency_tracking" != xno; then
2748 am_depcomp="$ac_aux_dir/depcomp"
2751 if test "x$enable_dependency_tracking" != xno; then
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_CC"; then
2806 # Extract the first word of "gcc", so it can be a program name with args.
2807 set dummy gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_CC" = x; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2898 if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test $ac_prog_rejected = yes; then
2930 # We found a bogon in the path, so make sure we never use it.
2931 set dummy $ac_cv_prog_CC
2933 if test $# != 0; then
2934 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name.
2938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 for ac_prog in cl.exe
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$CC" && break
2998 if test -z "$CC"; then
3000 for ac_prog in cl.exe
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3039 test -n "$ac_ct_CC" && break
3042 if test "x$ac_ct_CC" = x; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3063 # Provide some information about the compiler.
3064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3067 for ac_option in --version -v -V -qversion; do
3068 { { ac_try="$ac_compiler $ac_option >&5"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077 if test -s conftest.err; then
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3083 rm -f conftest.er1 conftest.err
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { { ac_try="$ac_link_default"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3137 for ac_file in $ac_files ''
3139 test -f "$ac_file" || continue
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3144 # We found the default executable, but exeext='' is most
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3167 if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error 77 "C compiler cannot create executables
3176 See \`config.log' for more details" "$LINENO" 5; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3206 for ac_file in conftest.exe conftest conftest.*; do
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details" "$LINENO" 5; }
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3234 FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3271 if test "$cross_compiling" = maybe; then
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details" "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if ${ac_cv_objext+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details" "$LINENO" 5; }
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if ${ac_cv_c_compiler_gnu+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if ${ac_cv_prog_cc_g+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 if ac_fn_c_try_compile "$LINENO"; then :
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439 CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3447 if test "$GCC" = yes; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if ${ac_cv_prog_cc_c89+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 ac_cv_prog_cc_c89=no
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 #include <sys/types.h>
3465 #include <sys/stat.h>
3466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467 struct buf { int x; };
3468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469 static char *e (p, i)
3475 static char *f (char * (*g) (char **, int), char **p, ...)
3480 s = g (p, va_arg (v,int));
3485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3486 function prototypes and stuff, but not '\xHH' hex character constants.
3487 These don't provoke an error unfortunately, instead are silently treated
3488 as 'x'. The following induces an error, until -std is added to get
3489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3490 array size at least. It's necessary to write '\x00'==0 to get something
3491 that's true only with -std. */
3492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495 inside strings and character constants. */
3497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3499 int test (int i, double x);
3500 struct s1 {int (*f) (int a);};
3501 struct s2 {int (*f) (double a);};
3502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3516 CC="$ac_save_CC $ac_arg"
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_cv_prog_cc_c89=$ac_arg
3520 rm -f core conftest.err conftest.$ac_objext
3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
3523 rm -f conftest.$ac_ext
3528 case "x$ac_cv_prog_cc_c89" in
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531 $as_echo "none needed" >&6; } ;;
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534 $as_echo "unsupported" >&6; } ;;
3536 CC="$CC $ac_cv_prog_cc_c89"
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3540 if test "x$ac_cv_prog_cc_c89" != xno; then :
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 depcc="$CC" am_compiler_list=
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3553 $as_echo_n "checking dependency style of $depcc... " >&6; }
3554 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558 # We make a subdir and do the tests there. Otherwise we can end up
3559 # making bogus files that we don't know about and never remove. For
3560 # instance it was reported that on HP-UX the gcc test will end up
3561 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # Copy depcomp to subdir because otherwise we won't find it if we're
3565 # using a relative directory.
3566 cp "$am_depcomp" conftest.dir
3568 # We will build objects and dependencies in a subdirectory because
3569 # it helps to detect inapplicable dependency modes. For instance
3570 # both Tru64's cc and ICC support -MD to output dependencies as a
3571 # side effect of compilation, but ICC will put the dependencies in
3572 # the current directory while Tru64 will put them in the object
3576 am_cv_CC_dependencies_compiler_type=none
3577 if test "$am_compiler_list" = ""; then
3578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581 case " $depcc " in #(
3582 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3585 for depmode in $am_compiler_list; do
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3594 for i in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub/conftst$i.h
3600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this. Also, some Intel
3605 # versions had trouble with output in subdirs
3606 am__obj=sub/conftest.${OBJEXT-o}
3607 am__minus_obj="-o $am__obj"
3610 # This depmode causes a compiler race in universal mode.
3611 test "$am__universal" = false || continue
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3622 msvisualcpp | msvcmsys)
3623 # This compiler won't grok `-c -o', but also, the minuso test has
3624 # not run yet. These depmodes are late enough in the game, and
3625 # so weak that their functioning should not be impacted.
3626 am__obj=conftest.${OBJEXT-o}
3631 if depmode=$depmode \
3632 source=sub/conftest.c object=$am__obj \
3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3635 >/dev/null 2>conftest.err &&
3636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3640 # icc doesn't choke on unknown options, it will just issue warnings
3641 # or remarks (even with -Werror). So we grep stderr for any message
3642 # that says an option was ignored or not supported.
3643 # When given -MP, icc 7.0 and 7.1 complain thusly:
3644 # icc: Command line warning: ignoring option '-M'; no argument required
3645 # The diagnosis changed in icc 8.0:
3646 # icc: Command line remark: option '-MP' not supported
3647 if (grep 'ignoring option' conftest.err ||
3648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649 am_cv_CC_dependencies_compiler_type=$depmode
3658 am_cv_CC_dependencies_compiler_type=none
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3664 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3667 test "x$enable_dependency_tracking" != xno \
3668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_FALSE='#'
3672 am__fastdepCC_TRUE='#'
3673 am__fastdepCC_FALSE=
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3679 if ${ac_cv_prog_cc_c99+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 ac_cv_prog_cc_c99=no
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3687 #include <stdbool.h>
3692 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3693 #define debug(...) fprintf (stderr, __VA_ARGS__)
3694 #define showlist(...) puts (#__VA_ARGS__)
3695 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3697 test_varargs_macros (void)
3702 debug ("X = %d\n", x);
3703 showlist (The first, second, and third items.);
3704 report (x>y, "x is %d but y is %d", x, y);
3707 // Check long long types.
3708 #define BIG64 18446744073709551615ull
3709 #define BIG32 4294967295ul
3710 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3712 your preprocessor is broken;
3716 your preprocessor is broken;
3718 static long long int bignum = -9223372036854775807LL;
3719 static unsigned long long int ubignum = BIG64;
3721 struct incomplete_array
3729 const wchar_t *name;
3733 typedef const char *ccp;
3736 test_restrict (ccp restrict text)
3738 // See if C++-style comments work.
3739 // Iterate through items via the restricted pointer.
3740 // Also check for declarations in for loops.
3741 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3746 // Check varargs and va_copy.
3748 test_varargs (const char *format, ...)
3751 va_start (args, format);
3753 va_copy (args_copy, args);
3764 str = va_arg (args_copy, const char *);
3767 number = va_arg (args_copy, int);
3770 fnumber = va_arg (args_copy, double);
3785 _Bool success = false;
3788 if (test_restrict ("String literal") == 0)
3790 char *restrict newvar = "Another string";
3793 test_varargs ("s, d' f .", "string", 65, 34.234);
3794 test_varargs_macros ();
3796 // Check flexible array members.
3797 struct incomplete_array *ia =
3798 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3800 for (int i = 0; i < ia->datasize; ++i)
3801 ia->data[i] = i * 1.234;
3803 // Check named initializers.
3804 struct named_init ni = {
3806 .name = L"Test wide string",
3807 .average = 543.34343,
3812 int dynamic_array[ni.number];
3813 dynamic_array[ni.number - 1] = 543;
3815 // work around unused variable warnings
3816 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3817 || dynamic_array[ni.number - 1] != 543);
3823 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c99=$ac_arg
3829 rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c99" != "xno" && break
3832 rm -f conftest.$ac_ext
3837 case "x$ac_cv_prog_cc_c99" in
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3845 CC="$CC $ac_cv_prog_cc_c99"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3847 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3849 if test "x$ac_cv_prog_cc_c99" != xno; then :
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3861 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3862 # On Suns, sometimes $CPP names a directory.
3863 if test -n "$CPP" && test -d "$CPP"; then
3866 if test -z "$CPP"; then
3867 if ${ac_cv_prog_CPP+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 # Double quotes because CPP needs to be expanded
3871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3874 for ac_c_preproc_warn_flag in '' yes
3876 # Use a header file that comes with gcc, so configuring glibc
3877 # with a fresh cross-compiler works.
3878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 # <limits.h> exists even on freestanding compilers.
3880 # On the NeXT, cc -E runs the code through the compiler's parser,
3881 # not just through cpp. "Syntax error" is here to catch this case.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3885 # include <limits.h>
3887 # include <assert.h>
3891 if ac_fn_c_try_cpp "$LINENO"; then :
3894 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.i conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3905 if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: success on invalid input.
3909 # Passes both tests.
3913 rm -f conftest.err conftest.i conftest.$ac_ext
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.i conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3931 $as_echo "$CPP" >&6; }
3933 for ac_c_preproc_warn_flag in '' yes
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3944 # include <limits.h>
3946 # include <assert.h>
3950 if ac_fn_c_try_cpp "$LINENO"; then :
3953 # Broken: fails on valid input.
3956 rm -f conftest.err conftest.i conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether nonexistent headers
3959 # can be detected and how.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3965 # Broken: success on invalid input.
3968 # Passes both tests.
3972 rm -f conftest.err conftest.i conftest.$ac_ext
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.i conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then :
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details" "$LINENO" 5; }
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3994 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3995 if ${ac_cv_path_GREP+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -z "$GREP"; then
3999 ac_path_GREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in grep ggrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010 # Check for GNU ac_path_GREP and select it if it is found.
4011 # Check for GNU $ac_path_GREP
4012 case `"$ac_path_GREP" --version 2>&1` in
4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4017 $as_echo_n 0123456789 >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'GREP' >> "conftest.nl"
4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_GREP="$ac_path_GREP"
4030 ac_path_GREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 $ac_path_GREP_found && break 3
4043 if test -z "$ac_cv_path_GREP"; then
4044 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 ac_cv_path_GREP=$GREP
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4052 $as_echo "$ac_cv_path_GREP" >&6; }
4053 GREP="$ac_cv_path_GREP"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4057 $as_echo_n "checking for egrep... " >&6; }
4058 if ${ac_cv_path_EGREP+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062 then ac_cv_path_EGREP="$GREP -E"
4064 if test -z "$EGREP"; then
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 $as_echo_n 0123456789 >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 $as_echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 as_fn_arith $ac_count + 1 && ac_count=$as_val
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 $ac_path_EGREP_found && break 3
4109 if test -z "$ac_cv_path_EGREP"; then
4110 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4113 ac_cv_path_EGREP=$EGREP
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4119 $as_echo "$ac_cv_path_EGREP" >&6; }
4120 EGREP="$ac_cv_path_EGREP"
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4124 $as_echo_n "checking for ANSI C header files... " >&6; }
4125 if ${ac_cv_header_stdc+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_header_stdc=yes
4146 ac_cv_header_stdc=no
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 if test $ac_cv_header_stdc = yes; then
4151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then :
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "free" >/dev/null 2>&1; then :
4178 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186 if test "$cross_compiling" = yes; then :
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 if ac_fn_c_try_run "$LINENO"; then :
4219 ac_cv_header_stdc=no
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4222 conftest.$ac_objext conftest.beam conftest.$ac_ext
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4228 $as_echo "$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4243 cat >>confdefs.h <<_ACEOF
4244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4257 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4263 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4264 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4270 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4271 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4287 $as_echo_n "(cached) " >&6
4291 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4313 if test -n "$PKG_CONFIG"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4315 $as_echo "$PKG_CONFIG" >&6; }
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4323 if test -z "$ac_cv_path_PKG_CONFIG"; then
4324 ac_pt_PKG_CONFIG=$PKG_CONFIG
4325 # Extract the first word of "pkg-config", so it can be a program name with args.
4326 set dummy pkg-config; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 case $ac_pt_PKG_CONFIG in
4334 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4356 if test -n "$ac_pt_PKG_CONFIG"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4358 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4364 if test "x$ac_pt_PKG_CONFIG" = x; then
4367 case $cross_compiling:$ac_tool_warned in
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4373 PKG_CONFIG=$ac_pt_PKG_CONFIG
4376 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4380 if test -n "$PKG_CONFIG"; then
4381 _pkg_min_version=0.9.0
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4383 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4384 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4394 # Make sure we can run config.sub.
4395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4399 $as_echo_n "checking build system type... " >&6; }
4400 if ${ac_cv_build+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 ac_build_alias=$build_alias
4404 test "x$ac_build_alias" = x &&
4405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4406 test "x$ac_build_alias" = x &&
4407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4413 $as_echo "$ac_cv_build" >&6; }
4414 case $ac_cv_build in
4416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4419 ac_save_IFS=$IFS; IFS='-'
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4433 $as_echo_n "checking host system type... " >&6; }
4434 if ${ac_cv_host+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 if test "x$host_alias" = x; then
4438 ac_cv_host=$ac_cv_build
4440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4446 $as_echo "$ac_cv_host" >&6; }
4449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4452 ac_save_IFS=$IFS; IFS='-'
4458 # Remember, the first character of IFS is used to create $*,
4459 # except with old shells:
4462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467 if ${ac_cv_path_SED+:} false; then :
4468 $as_echo_n "(cached) " >&6
4470 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471 for ac_i in 1 2 3 4 5 6 7; do
4472 ac_script="$ac_script$as_nl$ac_script"
4474 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475 { ac_script=; unset ac_script;}
4476 if test -z "$SED"; then
4477 ac_path_SED_found=false
4478 # Loop through the user's path and test for each of PROGNAME-LIST
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_prog in sed gsed; do
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4488 # Check for GNU ac_path_SED and select it if it is found.
4489 # Check for GNU $ac_path_SED
4490 case `"$ac_path_SED" --version 2>&1` in
4492 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4495 $as_echo_n 0123456789 >"conftest.in"
4498 cat "conftest.in" "conftest.in" >"conftest.tmp"
4499 mv "conftest.tmp" "conftest.in"
4500 cp "conftest.in" "conftest.nl"
4501 $as_echo '' >> "conftest.nl"
4502 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504 as_fn_arith $ac_count + 1 && ac_count=$as_val
4505 if test $ac_count -gt ${ac_path_SED_max-0}; then
4506 # Best one so far, save it but keep looking for a better one
4507 ac_cv_path_SED="$ac_path_SED"
4508 ac_path_SED_max=$ac_count
4510 # 10*(2^10) chars as input seems more than enough
4511 test $ac_count -gt 10 && break
4513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4516 $ac_path_SED_found && break 3
4521 if test -z "$ac_cv_path_SED"; then
4522 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530 $as_echo "$ac_cv_path_SED" >&6; }
4531 SED="$ac_cv_path_SED"
4539 # Check whether --enable-selective-werror was given.
4540 if test "${enable_selective_werror+set}" = set; then :
4541 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4543 SELECTIVE_WERROR=yes
4550 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4551 if test "x$SUNCC" = "xyes"; then
4557 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4571 xorg_testset_save_CFLAGS="$CFLAGS"
4573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 xorg_cv_cc_flag_unknown_warning_option=yes
4587 xorg_cv_cc_flag_unknown_warning_option=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4594 CFLAGS="$xorg_testset_save_CFLAGS"
4597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 xorg_cv_cc_flag_unused_command_line_argument=yes
4614 xorg_cv_cc_flag_unused_command_line_argument=no
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4621 CFLAGS="$xorg_testset_save_CFLAGS"
4626 if test $found = "no" ; then
4627 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4631 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4635 CFLAGS="$CFLAGS -Wall"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4638 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4639 cacheid=xorg_cv_cc_flag__Wall
4640 if eval \${$cacheid+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4654 if ac_fn_c_try_link "$LINENO"; then :
4659 rm -f core conftest.err conftest.$ac_objext \
4660 conftest$ac_exeext conftest.$ac_ext
4664 CFLAGS="$xorg_testset_save_CFLAGS"
4666 eval supported=\$$cacheid
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4668 $as_echo "$supported" >&6; }
4669 if test "$supported" = "yes" ; then
4670 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4689 xorg_testset_save_CFLAGS="$CFLAGS"
4691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 xorg_cv_cc_flag_unknown_warning_option=yes
4705 xorg_cv_cc_flag_unknown_warning_option=no
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4712 CFLAGS="$xorg_testset_save_CFLAGS"
4715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 xorg_cv_cc_flag_unused_command_line_argument=yes
4732 xorg_cv_cc_flag_unused_command_line_argument=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4739 CFLAGS="$xorg_testset_save_CFLAGS"
4744 if test $found = "no" ; then
4745 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4753 CFLAGS="$CFLAGS -Wpointer-arith"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4756 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4757 cacheid=xorg_cv_cc_flag__Wpointer_arith
4758 if eval \${$cacheid+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 if ac_fn_c_try_link "$LINENO"; then :
4777 rm -f core conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
4782 CFLAGS="$xorg_testset_save_CFLAGS"
4784 eval supported=\$$cacheid
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4786 $as_echo "$supported" >&6; }
4787 if test "$supported" = "yes" ; then
4788 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4807 xorg_testset_save_CFLAGS="$CFLAGS"
4809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 xorg_cv_cc_flag_unknown_warning_option=yes
4823 xorg_cv_cc_flag_unknown_warning_option=no
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4830 CFLAGS="$xorg_testset_save_CFLAGS"
4833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4841 $as_echo_n "(cached) " >&6
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 xorg_cv_cc_flag_unused_command_line_argument=yes
4850 xorg_cv_cc_flag_unused_command_line_argument=no
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4857 CFLAGS="$xorg_testset_save_CFLAGS"
4862 if test $found = "no" ; then
4863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4871 CFLAGS="$CFLAGS -Wmissing-declarations"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4874 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4875 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4876 if eval \${$cacheid+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4890 if ac_fn_c_try_link "$LINENO"; then :
4895 rm -f core conftest.err conftest.$ac_objext \
4896 conftest$ac_exeext conftest.$ac_ext
4900 CFLAGS="$xorg_testset_save_CFLAGS"
4902 eval supported=\$$cacheid
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4904 $as_echo "$supported" >&6; }
4905 if test "$supported" = "yes" ; then
4906 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4925 xorg_testset_save_CFLAGS="$CFLAGS"
4927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 xorg_cv_cc_flag_unknown_warning_option=yes
4941 xorg_cv_cc_flag_unknown_warning_option=no
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4948 CFLAGS="$xorg_testset_save_CFLAGS"
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4965 if ac_fn_c_try_compile "$LINENO"; then :
4966 xorg_cv_cc_flag_unused_command_line_argument=yes
4968 xorg_cv_cc_flag_unused_command_line_argument=no
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4975 CFLAGS="$xorg_testset_save_CFLAGS"
4980 if test $found = "no" ; then
4981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989 CFLAGS="$CFLAGS -Wformat=2"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4992 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4993 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4994 if eval \${$cacheid+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5008 if ac_fn_c_try_link "$LINENO"; then :
5013 rm -f core conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5018 CFLAGS="$xorg_testset_save_CFLAGS"
5020 eval supported=\$$cacheid
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5022 $as_echo "$supported" >&6; }
5023 if test "$supported" = "yes" ; then
5024 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5029 if test $found = "no" ; then
5030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5038 CFLAGS="$CFLAGS -Wformat"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5041 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5042 cacheid=xorg_cv_cc_flag__Wformat
5043 if eval \${$cacheid+:} false; then :
5044 $as_echo_n "(cached) " >&6
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_link "$LINENO"; then :
5062 rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5067 CFLAGS="$xorg_testset_save_CFLAGS"
5069 eval supported=\$$cacheid
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5071 $as_echo "$supported" >&6; }
5072 if test "$supported" = "yes" ; then
5073 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5094 xorg_testset_save_CFLAGS="$CFLAGS"
5096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5100 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5101 $as_echo_n "(cached) " >&6
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 xorg_cv_cc_flag_unknown_warning_option=yes
5110 xorg_cv_cc_flag_unknown_warning_option=no
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5117 CFLAGS="$xorg_testset_save_CFLAGS"
5120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5128 $as_echo_n "(cached) " >&6
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 xorg_cv_cc_flag_unused_command_line_argument=yes
5137 xorg_cv_cc_flag_unused_command_line_argument=no
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5144 CFLAGS="$xorg_testset_save_CFLAGS"
5149 if test $found = "no" ; then
5150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5158 CFLAGS="$CFLAGS -Wstrict-prototypes"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5161 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5162 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5163 if eval \${$cacheid+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5177 if ac_fn_c_try_link "$LINENO"; then :
5182 rm -f core conftest.err conftest.$ac_objext \
5183 conftest$ac_exeext conftest.$ac_ext
5187 CFLAGS="$xorg_testset_save_CFLAGS"
5189 eval supported=\$$cacheid
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5191 $as_echo "$supported" >&6; }
5192 if test "$supported" = "yes" ; then
5193 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5212 xorg_testset_save_CFLAGS="$CFLAGS"
5214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226 xorg_cv_cc_flag_unknown_warning_option=yes
5228 xorg_cv_cc_flag_unknown_warning_option=no
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5235 CFLAGS="$xorg_testset_save_CFLAGS"
5238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 xorg_cv_cc_flag_unused_command_line_argument=yes
5255 xorg_cv_cc_flag_unused_command_line_argument=no
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5262 CFLAGS="$xorg_testset_save_CFLAGS"
5267 if test $found = "no" ; then
5268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5276 CFLAGS="$CFLAGS -Wmissing-prototypes"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5279 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5280 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5281 if eval \${$cacheid+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5295 if ac_fn_c_try_link "$LINENO"; then :
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5307 eval supported=\$$cacheid
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309 $as_echo "$supported" >&6; }
5310 if test "$supported" = "yes" ; then
5311 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5330 xorg_testset_save_CFLAGS="$CFLAGS"
5332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 xorg_cv_cc_flag_unknown_warning_option=yes
5346 xorg_cv_cc_flag_unknown_warning_option=no
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5364 $as_echo_n "(cached) " >&6
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 xorg_cv_cc_flag_unused_command_line_argument=yes
5373 xorg_cv_cc_flag_unused_command_line_argument=no
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5380 CFLAGS="$xorg_testset_save_CFLAGS"
5385 if test $found = "no" ; then
5386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5394 CFLAGS="$CFLAGS -Wnested-externs"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5397 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5398 cacheid=xorg_cv_cc_flag__Wnested_externs
5399 if eval \${$cacheid+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5413 if ac_fn_c_try_link "$LINENO"; then :
5418 rm -f core conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5425 eval supported=\$$cacheid
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427 $as_echo "$supported" >&6; }
5428 if test "$supported" = "yes" ; then
5429 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5448 xorg_testset_save_CFLAGS="$CFLAGS"
5450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 xorg_cv_cc_flag_unknown_warning_option=yes
5464 xorg_cv_cc_flag_unknown_warning_option=no
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 xorg_cv_cc_flag_unused_command_line_argument=yes
5491 xorg_cv_cc_flag_unused_command_line_argument=no
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5498 CFLAGS="$xorg_testset_save_CFLAGS"
5503 if test $found = "no" ; then
5504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512 CFLAGS="$CFLAGS -Wbad-function-cast"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5515 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5516 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5517 if eval \${$cacheid+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5531 if ac_fn_c_try_link "$LINENO"; then :
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5543 eval supported=\$$cacheid
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5545 $as_echo "$supported" >&6; }
5546 if test "$supported" = "yes" ; then
5547 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5566 xorg_testset_save_CFLAGS="$CFLAGS"
5568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 xorg_cv_cc_flag_unknown_warning_option=yes
5582 xorg_cv_cc_flag_unknown_warning_option=no
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5600 $as_echo_n "(cached) " >&6
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 xorg_cv_cc_flag_unused_command_line_argument=yes
5609 xorg_cv_cc_flag_unused_command_line_argument=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5616 CFLAGS="$xorg_testset_save_CFLAGS"
5621 if test $found = "no" ; then
5622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630 CFLAGS="$CFLAGS -Wold-style-definition"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5633 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5634 cacheid=xorg_cv_cc_flag__Wold_style_definition
5635 if eval \${$cacheid+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5649 if ac_fn_c_try_link "$LINENO"; then :
5654 rm -f core conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5661 eval supported=\$$cacheid
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663 $as_echo "$supported" >&6; }
5664 if test "$supported" = "yes" ; then
5665 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5684 xorg_testset_save_CFLAGS="$CFLAGS"
5686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 xorg_cv_cc_flag_unknown_warning_option=yes
5700 xorg_cv_cc_flag_unknown_warning_option=no
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5718 $as_echo_n "(cached) " >&6
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725 xorg_cv_cc_flag_unused_command_line_argument=yes
5727 xorg_cv_cc_flag_unused_command_line_argument=no
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734 CFLAGS="$xorg_testset_save_CFLAGS"
5739 if test $found = "no" ; then
5740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5751 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5752 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5753 if eval \${$cacheid+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5767 if ac_fn_c_try_link "$LINENO"; then :
5772 rm -f core conftest.err conftest.$ac_objext \
5773 conftest$ac_exeext conftest.$ac_ext
5777 CFLAGS="$xorg_testset_save_CFLAGS"
5779 eval supported=\$$cacheid
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5781 $as_echo "$supported" >&6; }
5782 if test "$supported" = "yes" ; then
5783 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5792 # This chunk adds additional warnings that could catch undesired effects.
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5813 $as_echo_n "(cached) " >&6
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 xorg_cv_cc_flag_unknown_warning_option=yes
5822 xorg_cv_cc_flag_unknown_warning_option=no
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5829 CFLAGS="$xorg_testset_save_CFLAGS"
5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 xorg_cv_cc_flag_unused_command_line_argument=yes
5849 xorg_cv_cc_flag_unused_command_line_argument=no
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5861 if test $found = "no" ; then
5862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5870 CFLAGS="$CFLAGS -Wunused"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5873 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5874 cacheid=xorg_cv_cc_flag__Wunused
5875 if eval \${$cacheid+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5889 if ac_fn_c_try_link "$LINENO"; then :
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5901 eval supported=\$$cacheid
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5903 $as_echo "$supported" >&6; }
5904 if test "$supported" = "yes" ; then
5905 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5924 xorg_testset_save_CFLAGS="$CFLAGS"
5926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 xorg_cv_cc_flag_unknown_warning_option=yes
5940 xorg_cv_cc_flag_unknown_warning_option=no
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5947 CFLAGS="$xorg_testset_save_CFLAGS"
5950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 if ac_fn_c_try_compile "$LINENO"; then :
5965 xorg_cv_cc_flag_unused_command_line_argument=yes
5967 xorg_cv_cc_flag_unused_command_line_argument=no
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5974 CFLAGS="$xorg_testset_save_CFLAGS"
5979 if test $found = "no" ; then
5980 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988 CFLAGS="$CFLAGS -Wuninitialized"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5991 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5992 cacheid=xorg_cv_cc_flag__Wuninitialized
5993 if eval \${$cacheid+:} false; then :
5994 $as_echo_n "(cached) " >&6
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6007 if ac_fn_c_try_link "$LINENO"; then :
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6017 CFLAGS="$xorg_testset_save_CFLAGS"
6019 eval supported=\$$cacheid
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6021 $as_echo "$supported" >&6; }
6022 if test "$supported" = "yes" ; then
6023 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6042 xorg_testset_save_CFLAGS="$CFLAGS"
6044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6049 $as_echo_n "(cached) " >&6
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 xorg_cv_cc_flag_unknown_warning_option=yes
6058 xorg_cv_cc_flag_unknown_warning_option=no
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 xorg_cv_cc_flag_unused_command_line_argument=no
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6092 CFLAGS="$xorg_testset_save_CFLAGS"
6097 if test $found = "no" ; then
6098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6106 CFLAGS="$CFLAGS -Wshadow"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6109 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6110 cacheid=xorg_cv_cc_flag__Wshadow
6111 if eval \${$cacheid+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6125 if ac_fn_c_try_link "$LINENO"; then :
6130 rm -f core conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6135 CFLAGS="$xorg_testset_save_CFLAGS"
6137 eval supported=\$$cacheid
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6139 $as_echo "$supported" >&6; }
6140 if test "$supported" = "yes" ; then
6141 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6160 xorg_testset_save_CFLAGS="$CFLAGS"
6162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 xorg_cv_cc_flag_unknown_warning_option=yes
6176 xorg_cv_cc_flag_unknown_warning_option=no
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6183 CFLAGS="$xorg_testset_save_CFLAGS"
6186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 xorg_cv_cc_flag_unused_command_line_argument=yes
6203 xorg_cv_cc_flag_unused_command_line_argument=no
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6210 CFLAGS="$xorg_testset_save_CFLAGS"
6215 if test $found = "no" ; then
6216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6224 CFLAGS="$CFLAGS -Wcast-qual"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6227 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6228 cacheid=xorg_cv_cc_flag__Wcast_qual
6229 if eval \${$cacheid+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6243 if ac_fn_c_try_link "$LINENO"; then :
6248 rm -f core conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6253 CFLAGS="$xorg_testset_save_CFLAGS"
6255 eval supported=\$$cacheid
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6257 $as_echo "$supported" >&6; }
6258 if test "$supported" = "yes" ; then
6259 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6278 xorg_testset_save_CFLAGS="$CFLAGS"
6280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 xorg_cv_cc_flag_unknown_warning_option=yes
6294 xorg_cv_cc_flag_unknown_warning_option=no
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6301 CFLAGS="$xorg_testset_save_CFLAGS"
6304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6312 $as_echo_n "(cached) " >&6
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 xorg_cv_cc_flag_unused_command_line_argument=yes
6321 xorg_cv_cc_flag_unused_command_line_argument=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6333 if test $found = "no" ; then
6334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6342 CFLAGS="$CFLAGS -Wmissing-noreturn"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6345 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6346 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6347 if eval \${$cacheid+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6361 if ac_fn_c_try_link "$LINENO"; then :
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6373 eval supported=\$$cacheid
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6375 $as_echo "$supported" >&6; }
6376 if test "$supported" = "yes" ; then
6377 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6396 xorg_testset_save_CFLAGS="$CFLAGS"
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6403 $as_echo_n "(cached) " >&6
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410 xorg_cv_cc_flag_unknown_warning_option=yes
6412 xorg_cv_cc_flag_unknown_warning_option=no
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6430 $as_echo_n "(cached) " >&6
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437 xorg_cv_cc_flag_unused_command_line_argument=yes
6439 xorg_cv_cc_flag_unused_command_line_argument=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6446 CFLAGS="$xorg_testset_save_CFLAGS"
6451 if test $found = "no" ; then
6452 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6460 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6463 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6464 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6465 if eval \${$cacheid+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6479 if ac_fn_c_try_link "$LINENO"; then :
6484 rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6491 eval supported=\$$cacheid
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6493 $as_echo "$supported" >&6; }
6494 if test "$supported" = "yes" ; then
6495 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6514 xorg_testset_save_CFLAGS="$CFLAGS"
6516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6521 $as_echo_n "(cached) " >&6
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 xorg_cv_cc_flag_unknown_warning_option=yes
6530 xorg_cv_cc_flag_unknown_warning_option=no
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 xorg_cv_cc_flag_unused_command_line_argument=yes
6557 xorg_cv_cc_flag_unused_command_line_argument=no
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6564 CFLAGS="$xorg_testset_save_CFLAGS"
6569 if test $found = "no" ; then
6570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6578 CFLAGS="$CFLAGS -Wredundant-decls"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6581 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6582 cacheid=xorg_cv_cc_flag__Wredundant_decls
6583 if eval \${$cacheid+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6597 if ac_fn_c_try_link "$LINENO"; then :
6602 rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6609 eval supported=\$$cacheid
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6611 $as_echo "$supported" >&6; }
6612 if test "$supported" = "yes" ; then
6613 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6620 # These are currently disabled because they are noisy. They will be enabled
6621 # in the future once the codebase is sufficiently modernized to silence
6622 # them. For now, I don't want them to drown out the other warnings.
6623 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6624 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6625 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6627 # Turn some warnings into errors, so we don't accidently get successful builds
6628 # when there are problems that should be fixed.
6630 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6644 xorg_testset_save_CFLAGS="$CFLAGS"
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6651 $as_echo_n "(cached) " >&6
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 xorg_cv_cc_flag_unknown_warning_option=yes
6660 xorg_cv_cc_flag_unknown_warning_option=no
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6678 $as_echo_n "(cached) " >&6
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 xorg_cv_cc_flag_unused_command_line_argument=yes
6687 xorg_cv_cc_flag_unused_command_line_argument=no
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6694 CFLAGS="$xorg_testset_save_CFLAGS"
6699 if test $found = "no" ; then
6700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708 CFLAGS="$CFLAGS -Werror=implicit"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6711 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6712 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6713 if eval \${$cacheid+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6727 if ac_fn_c_try_link "$LINENO"; then :
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6737 CFLAGS="$xorg_testset_save_CFLAGS"
6739 eval supported=\$$cacheid
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6741 $as_echo "$supported" >&6; }
6742 if test "$supported" = "yes" ; then
6743 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6748 if test $found = "no" ; then
6749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6760 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6761 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6762 if eval \${$cacheid+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6776 if ac_fn_c_try_link "$LINENO"; then :
6781 rm -f core conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6788 eval supported=\$$cacheid
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6790 $as_echo "$supported" >&6; }
6791 if test "$supported" = "yes" ; then
6792 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6811 xorg_testset_save_CFLAGS="$CFLAGS"
6813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6816 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6817 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 xorg_cv_cc_flag_unknown_warning_option=yes
6827 xorg_cv_cc_flag_unknown_warning_option=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6832 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6834 CFLAGS="$xorg_testset_save_CFLAGS"
6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6843 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6844 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 xorg_cv_cc_flag_unused_command_line_argument=yes
6854 xorg_cv_cc_flag_unused_command_line_argument=no
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6859 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6861 CFLAGS="$xorg_testset_save_CFLAGS"
6866 if test $found = "no" ; then
6867 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6875 CFLAGS="$CFLAGS -Werror=nonnull"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6878 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6879 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6880 if eval \${$cacheid+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6894 if ac_fn_c_try_link "$LINENO"; then :
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6904 CFLAGS="$xorg_testset_save_CFLAGS"
6906 eval supported=\$$cacheid
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908 $as_echo "$supported" >&6; }
6909 if test "$supported" = "yes" ; then
6910 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6929 xorg_testset_save_CFLAGS="$CFLAGS"
6931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 xorg_cv_cc_flag_unknown_warning_option=yes
6945 xorg_cv_cc_flag_unknown_warning_option=no
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6969 if ac_fn_c_try_compile "$LINENO"; then :
6970 xorg_cv_cc_flag_unused_command_line_argument=yes
6972 xorg_cv_cc_flag_unused_command_line_argument=no
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6984 if test $found = "no" ; then
6985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993 CFLAGS="$CFLAGS -Werror=init-self"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6996 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6997 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6998 if eval \${$cacheid+:} false; then :
6999 $as_echo_n "(cached) " >&6
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7012 if ac_fn_c_try_link "$LINENO"; then :
7017 rm -f core conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7022 CFLAGS="$xorg_testset_save_CFLAGS"
7024 eval supported=\$$cacheid
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7026 $as_echo "$supported" >&6; }
7027 if test "$supported" = "yes" ; then
7028 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7047 xorg_testset_save_CFLAGS="$CFLAGS"
7049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7060 if ac_fn_c_try_compile "$LINENO"; then :
7061 xorg_cv_cc_flag_unknown_warning_option=yes
7063 xorg_cv_cc_flag_unknown_warning_option=no
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7070 CFLAGS="$xorg_testset_save_CFLAGS"
7073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088 xorg_cv_cc_flag_unused_command_line_argument=yes
7090 xorg_cv_cc_flag_unused_command_line_argument=no
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7097 CFLAGS="$xorg_testset_save_CFLAGS"
7102 if test $found = "no" ; then
7103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7111 CFLAGS="$CFLAGS -Werror=main"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7114 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7115 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7116 if eval \${$cacheid+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7130 if ac_fn_c_try_link "$LINENO"; then :
7135 rm -f core conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7142 eval supported=\$$cacheid
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7144 $as_echo "$supported" >&6; }
7145 if test "$supported" = "yes" ; then
7146 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7165 xorg_testset_save_CFLAGS="$CFLAGS"
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7172 $as_echo_n "(cached) " >&6
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179 xorg_cv_cc_flag_unknown_warning_option=yes
7181 xorg_cv_cc_flag_unknown_warning_option=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7188 CFLAGS="$xorg_testset_save_CFLAGS"
7191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7205 if ac_fn_c_try_compile "$LINENO"; then :
7206 xorg_cv_cc_flag_unused_command_line_argument=yes
7208 xorg_cv_cc_flag_unused_command_line_argument=no
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7215 CFLAGS="$xorg_testset_save_CFLAGS"
7220 if test $found = "no" ; then
7221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7229 CFLAGS="$CFLAGS -Werror=missing-braces"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7232 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7233 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7234 if eval \${$cacheid+:} false; then :
7235 $as_echo_n "(cached) " >&6
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7248 if ac_fn_c_try_link "$LINENO"; then :
7253 rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7260 eval supported=\$$cacheid
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7262 $as_echo "$supported" >&6; }
7263 if test "$supported" = "yes" ; then
7264 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7283 xorg_testset_save_CFLAGS="$CFLAGS"
7285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7290 $as_echo_n "(cached) " >&6
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 xorg_cv_cc_flag_unknown_warning_option=yes
7299 xorg_cv_cc_flag_unknown_warning_option=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7306 CFLAGS="$xorg_testset_save_CFLAGS"
7309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324 xorg_cv_cc_flag_unused_command_line_argument=yes
7326 xorg_cv_cc_flag_unused_command_line_argument=no
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7333 CFLAGS="$xorg_testset_save_CFLAGS"
7338 if test $found = "no" ; then
7339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347 CFLAGS="$CFLAGS -Werror=sequence-point"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7350 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7351 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7352 if eval \${$cacheid+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7366 if ac_fn_c_try_link "$LINENO"; then :
7371 rm -f core conftest.err conftest.$ac_objext \
7372 conftest$ac_exeext conftest.$ac_ext
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7378 eval supported=\$$cacheid
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7380 $as_echo "$supported" >&6; }
7381 if test "$supported" = "yes" ; then
7382 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7401 xorg_testset_save_CFLAGS="$CFLAGS"
7403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 xorg_cv_cc_flag_unknown_warning_option=yes
7417 xorg_cv_cc_flag_unknown_warning_option=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7424 CFLAGS="$xorg_testset_save_CFLAGS"
7427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7435 $as_echo_n "(cached) " >&6
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 xorg_cv_cc_flag_unused_command_line_argument=yes
7444 xorg_cv_cc_flag_unused_command_line_argument=no
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451 CFLAGS="$xorg_testset_save_CFLAGS"
7456 if test $found = "no" ; then
7457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465 CFLAGS="$CFLAGS -Werror=return-type"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7468 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7469 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7470 if eval \${$cacheid+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7484 if ac_fn_c_try_link "$LINENO"; then :
7489 rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7494 CFLAGS="$xorg_testset_save_CFLAGS"
7496 eval supported=\$$cacheid
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7498 $as_echo "$supported" >&6; }
7499 if test "$supported" = "yes" ; then
7500 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7505 if test $found = "no" ; then
7506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7517 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7518 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7519 if eval \${$cacheid+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7533 if ac_fn_c_try_link "$LINENO"; then :
7538 rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7543 CFLAGS="$xorg_testset_save_CFLAGS"
7545 eval supported=\$$cacheid
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547 $as_echo "$supported" >&6; }
7548 if test "$supported" = "yes" ; then
7549 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7568 xorg_testset_save_CFLAGS="$CFLAGS"
7570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7575 $as_echo_n "(cached) " >&6
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 xorg_cv_cc_flag_unknown_warning_option=yes
7584 xorg_cv_cc_flag_unknown_warning_option=no
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 xorg_cv_cc_flag_unused_command_line_argument=yes
7611 xorg_cv_cc_flag_unused_command_line_argument=no
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7623 if test $found = "no" ; then
7624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7632 CFLAGS="$CFLAGS -Werror=trigraphs"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7635 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7636 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7637 if eval \${$cacheid+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7651 if ac_fn_c_try_link "$LINENO"; then :
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7661 CFLAGS="$xorg_testset_save_CFLAGS"
7663 eval supported=\$$cacheid
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665 $as_echo "$supported" >&6; }
7666 if test "$supported" = "yes" ; then
7667 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7686 xorg_testset_save_CFLAGS="$CFLAGS"
7688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7693 $as_echo_n "(cached) " >&6
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 xorg_cv_cc_flag_unknown_warning_option=yes
7702 xorg_cv_cc_flag_unknown_warning_option=no
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 xorg_cv_cc_flag_unused_command_line_argument=yes
7729 xorg_cv_cc_flag_unused_command_line_argument=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7736 CFLAGS="$xorg_testset_save_CFLAGS"
7741 if test $found = "no" ; then
7742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750 CFLAGS="$CFLAGS -Werror=array-bounds"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7753 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7754 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7755 if eval \${$cacheid+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7769 if ac_fn_c_try_link "$LINENO"; then :
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7779 CFLAGS="$xorg_testset_save_CFLAGS"
7781 eval supported=\$$cacheid
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783 $as_echo "$supported" >&6; }
7784 if test "$supported" = "yes" ; then
7785 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7804 xorg_testset_save_CFLAGS="$CFLAGS"
7806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7811 $as_echo_n "(cached) " >&6
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 xorg_cv_cc_flag_unknown_warning_option=yes
7820 xorg_cv_cc_flag_unknown_warning_option=no
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7838 $as_echo_n "(cached) " >&6
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845 xorg_cv_cc_flag_unused_command_line_argument=yes
7847 xorg_cv_cc_flag_unused_command_line_argument=no
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7854 CFLAGS="$xorg_testset_save_CFLAGS"
7859 if test $found = "no" ; then
7860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868 CFLAGS="$CFLAGS -Werror=write-strings"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7871 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7872 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7873 if eval \${$cacheid+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7887 if ac_fn_c_try_link "$LINENO"; then :
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7897 CFLAGS="$xorg_testset_save_CFLAGS"
7899 eval supported=\$$cacheid
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7901 $as_echo "$supported" >&6; }
7902 if test "$supported" = "yes" ; then
7903 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7922 xorg_testset_save_CFLAGS="$CFLAGS"
7924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936 xorg_cv_cc_flag_unknown_warning_option=yes
7938 xorg_cv_cc_flag_unknown_warning_option=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7945 CFLAGS="$xorg_testset_save_CFLAGS"
7948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7956 $as_echo_n "(cached) " >&6
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7962 if ac_fn_c_try_compile "$LINENO"; then :
7963 xorg_cv_cc_flag_unused_command_line_argument=yes
7965 xorg_cv_cc_flag_unused_command_line_argument=no
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7972 CFLAGS="$xorg_testset_save_CFLAGS"
7977 if test $found = "no" ; then
7978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7986 CFLAGS="$CFLAGS -Werror=address"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7989 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7990 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7991 if eval \${$cacheid+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8005 if ac_fn_c_try_link "$LINENO"; then :
8010 rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8017 eval supported=\$$cacheid
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8019 $as_echo "$supported" >&6; }
8020 if test "$supported" = "yes" ; then
8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8040 xorg_testset_save_CFLAGS="$CFLAGS"
8042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8047 $as_echo_n "(cached) " >&6
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 xorg_cv_cc_flag_unknown_warning_option=yes
8056 xorg_cv_cc_flag_unknown_warning_option=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8063 CFLAGS="$xorg_testset_save_CFLAGS"
8066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8074 $as_echo_n "(cached) " >&6
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081 xorg_cv_cc_flag_unused_command_line_argument=yes
8083 xorg_cv_cc_flag_unused_command_line_argument=no
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090 CFLAGS="$xorg_testset_save_CFLAGS"
8095 if test $found = "no" ; then
8096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8104 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8107 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8108 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8109 if eval \${$cacheid+:} false; then :
8110 $as_echo_n "(cached) " >&6
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8123 if ac_fn_c_try_link "$LINENO"; then :
8128 rm -f core conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8133 CFLAGS="$xorg_testset_save_CFLAGS"
8135 eval supported=\$$cacheid
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8137 $as_echo "$supported" >&6; }
8138 if test "$supported" = "yes" ; then
8139 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8144 if test $found = "no" ; then
8145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8156 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8157 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8158 if eval \${$cacheid+:} false; then :
8159 $as_echo_n "(cached) " >&6
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8172 if ac_fn_c_try_link "$LINENO"; then :
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8184 eval supported=\$$cacheid
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186 $as_echo "$supported" >&6; }
8187 if test "$supported" = "yes" ; then
8188 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8207 xorg_testset_save_CFLAGS="$CFLAGS"
8209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 xorg_cv_cc_flag_unknown_warning_option=yes
8223 xorg_cv_cc_flag_unknown_warning_option=no
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248 xorg_cv_cc_flag_unused_command_line_argument=yes
8250 xorg_cv_cc_flag_unused_command_line_argument=no
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257 CFLAGS="$xorg_testset_save_CFLAGS"
8262 if test $found = "no" ; then
8263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8271 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8274 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8275 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8276 if eval \${$cacheid+:} false; then :
8277 $as_echo_n "(cached) " >&6
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8290 if ac_fn_c_try_link "$LINENO"; then :
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8300 CFLAGS="$xorg_testset_save_CFLAGS"
8302 eval supported=\$$cacheid
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8304 $as_echo "$supported" >&6; }
8305 if test "$supported" = "yes" ; then
8306 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8311 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8314 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8328 xorg_testset_save_CFLAGS="$CFLAGS"
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8335 $as_echo_n "(cached) " >&6
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 xorg_cv_cc_flag_unknown_warning_option=yes
8344 xorg_cv_cc_flag_unknown_warning_option=no
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8351 CFLAGS="$xorg_testset_save_CFLAGS"
8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8362 $as_echo_n "(cached) " >&6
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 xorg_cv_cc_flag_unused_command_line_argument=yes
8371 xorg_cv_cc_flag_unused_command_line_argument=no
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8383 if test $found = "no" ; then
8384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8392 CFLAGS="$CFLAGS -Wimplicit"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8395 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8396 cacheid=xorg_cv_cc_flag__Wimplicit
8397 if eval \${$cacheid+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8411 if ac_fn_c_try_link "$LINENO"; then :
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8421 CFLAGS="$xorg_testset_save_CFLAGS"
8423 eval supported=\$$cacheid
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8425 $as_echo "$supported" >&6; }
8426 if test "$supported" = "yes" ; then
8427 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8446 xorg_testset_save_CFLAGS="$CFLAGS"
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8453 $as_echo_n "(cached) " >&6
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 xorg_cv_cc_flag_unknown_warning_option=yes
8462 xorg_cv_cc_flag_unknown_warning_option=no
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8469 CFLAGS="$xorg_testset_save_CFLAGS"
8472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 xorg_cv_cc_flag_unused_command_line_argument=yes
8489 xorg_cv_cc_flag_unused_command_line_argument=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8496 CFLAGS="$xorg_testset_save_CFLAGS"
8501 if test $found = "no" ; then
8502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510 CFLAGS="$CFLAGS -Wnonnull"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8513 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8514 cacheid=xorg_cv_cc_flag__Wnonnull
8515 if eval \${$cacheid+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8529 if ac_fn_c_try_link "$LINENO"; then :
8534 rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8539 CFLAGS="$xorg_testset_save_CFLAGS"
8541 eval supported=\$$cacheid
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543 $as_echo "$supported" >&6; }
8544 if test "$supported" = "yes" ; then
8545 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8564 xorg_testset_save_CFLAGS="$CFLAGS"
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8571 $as_echo_n "(cached) " >&6
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578 xorg_cv_cc_flag_unknown_warning_option=yes
8580 xorg_cv_cc_flag_unknown_warning_option=no
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8587 CFLAGS="$xorg_testset_save_CFLAGS"
8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8598 $as_echo_n "(cached) " >&6
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8604 if ac_fn_c_try_compile "$LINENO"; then :
8605 xorg_cv_cc_flag_unused_command_line_argument=yes
8607 xorg_cv_cc_flag_unused_command_line_argument=no
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8614 CFLAGS="$xorg_testset_save_CFLAGS"
8619 if test $found = "no" ; then
8620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8628 CFLAGS="$CFLAGS -Winit-self"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8631 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8632 cacheid=xorg_cv_cc_flag__Winit_self
8633 if eval \${$cacheid+:} false; then :
8634 $as_echo_n "(cached) " >&6
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8647 if ac_fn_c_try_link "$LINENO"; then :
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8659 eval supported=\$$cacheid
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8661 $as_echo "$supported" >&6; }
8662 if test "$supported" = "yes" ; then
8663 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8682 xorg_testset_save_CFLAGS="$CFLAGS"
8684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8689 $as_echo_n "(cached) " >&6
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8695 if ac_fn_c_try_compile "$LINENO"; then :
8696 xorg_cv_cc_flag_unknown_warning_option=yes
8698 xorg_cv_cc_flag_unknown_warning_option=no
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8716 $as_echo_n "(cached) " >&6
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8722 if ac_fn_c_try_compile "$LINENO"; then :
8723 xorg_cv_cc_flag_unused_command_line_argument=yes
8725 xorg_cv_cc_flag_unused_command_line_argument=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8732 CFLAGS="$xorg_testset_save_CFLAGS"
8737 if test $found = "no" ; then
8738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746 CFLAGS="$CFLAGS -Wmain"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8749 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8750 cacheid=xorg_cv_cc_flag__Wmain
8751 if eval \${$cacheid+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8765 if ac_fn_c_try_link "$LINENO"; then :
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8775 CFLAGS="$xorg_testset_save_CFLAGS"
8777 eval supported=\$$cacheid
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8779 $as_echo "$supported" >&6; }
8780 if test "$supported" = "yes" ; then
8781 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8800 xorg_testset_save_CFLAGS="$CFLAGS"
8802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8807 $as_echo_n "(cached) " >&6
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8813 if ac_fn_c_try_compile "$LINENO"; then :
8814 xorg_cv_cc_flag_unknown_warning_option=yes
8816 xorg_cv_cc_flag_unknown_warning_option=no
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8823 CFLAGS="$xorg_testset_save_CFLAGS"
8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8840 if ac_fn_c_try_compile "$LINENO"; then :
8841 xorg_cv_cc_flag_unused_command_line_argument=yes
8843 xorg_cv_cc_flag_unused_command_line_argument=no
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8850 CFLAGS="$xorg_testset_save_CFLAGS"
8855 if test $found = "no" ; then
8856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8864 CFLAGS="$CFLAGS -Wmissing-braces"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8867 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8868 cacheid=xorg_cv_cc_flag__Wmissing_braces
8869 if eval \${$cacheid+:} false; then :
8870 $as_echo_n "(cached) " >&6
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8883 if ac_fn_c_try_link "$LINENO"; then :
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8895 eval supported=\$$cacheid
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8897 $as_echo "$supported" >&6; }
8898 if test "$supported" = "yes" ; then
8899 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8918 xorg_testset_save_CFLAGS="$CFLAGS"
8920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8925 $as_echo_n "(cached) " >&6
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 xorg_cv_cc_flag_unknown_warning_option=yes
8934 xorg_cv_cc_flag_unknown_warning_option=no
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959 xorg_cv_cc_flag_unused_command_line_argument=yes
8961 xorg_cv_cc_flag_unused_command_line_argument=no
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8968 CFLAGS="$xorg_testset_save_CFLAGS"
8973 if test $found = "no" ; then
8974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8982 CFLAGS="$CFLAGS -Wsequence-point"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8985 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8986 cacheid=xorg_cv_cc_flag__Wsequence_point
8987 if eval \${$cacheid+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
9001 if ac_fn_c_try_link "$LINENO"; then :
9006 rm -f core conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9013 eval supported=\$$cacheid
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9015 $as_echo "$supported" >&6; }
9016 if test "$supported" = "yes" ; then
9017 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9036 xorg_testset_save_CFLAGS="$CFLAGS"
9038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9043 $as_echo_n "(cached) " >&6
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050 xorg_cv_cc_flag_unknown_warning_option=yes
9052 xorg_cv_cc_flag_unknown_warning_option=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9059 CFLAGS="$xorg_testset_save_CFLAGS"
9062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9070 $as_echo_n "(cached) " >&6
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077 xorg_cv_cc_flag_unused_command_line_argument=yes
9079 xorg_cv_cc_flag_unused_command_line_argument=no
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9086 CFLAGS="$xorg_testset_save_CFLAGS"
9091 if test $found = "no" ; then
9092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9100 CFLAGS="$CFLAGS -Wreturn-type"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9103 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9104 cacheid=xorg_cv_cc_flag__Wreturn_type
9105 if eval \${$cacheid+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9119 if ac_fn_c_try_link "$LINENO"; then :
9124 rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9131 eval supported=\$$cacheid
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9133 $as_echo "$supported" >&6; }
9134 if test "$supported" = "yes" ; then
9135 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9154 xorg_testset_save_CFLAGS="$CFLAGS"
9156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 xorg_cv_cc_flag_unknown_warning_option=yes
9170 xorg_cv_cc_flag_unknown_warning_option=no
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9188 $as_echo_n "(cached) " >&6
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9194 if ac_fn_c_try_compile "$LINENO"; then :
9195 xorg_cv_cc_flag_unused_command_line_argument=yes
9197 xorg_cv_cc_flag_unused_command_line_argument=no
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9204 CFLAGS="$xorg_testset_save_CFLAGS"
9209 if test $found = "no" ; then
9210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218 CFLAGS="$CFLAGS -Wtrigraphs"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9221 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9222 cacheid=xorg_cv_cc_flag__Wtrigraphs
9223 if eval \${$cacheid+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9237 if ac_fn_c_try_link "$LINENO"; then :
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9249 eval supported=\$$cacheid
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9251 $as_echo "$supported" >&6; }
9252 if test "$supported" = "yes" ; then
9253 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9272 xorg_testset_save_CFLAGS="$CFLAGS"
9274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9279 $as_echo_n "(cached) " >&6
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9285 if ac_fn_c_try_compile "$LINENO"; then :
9286 xorg_cv_cc_flag_unknown_warning_option=yes
9288 xorg_cv_cc_flag_unknown_warning_option=no
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9295 CFLAGS="$xorg_testset_save_CFLAGS"
9298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 xorg_cv_cc_flag_unused_command_line_argument=yes
9315 xorg_cv_cc_flag_unused_command_line_argument=no
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9322 CFLAGS="$xorg_testset_save_CFLAGS"
9327 if test $found = "no" ; then
9328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336 CFLAGS="$CFLAGS -Warray-bounds"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9339 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9340 cacheid=xorg_cv_cc_flag__Warray_bounds
9341 if eval \${$cacheid+:} false; then :
9342 $as_echo_n "(cached) " >&6
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9355 if ac_fn_c_try_link "$LINENO"; then :
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9367 eval supported=\$$cacheid
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9369 $as_echo "$supported" >&6; }
9370 if test "$supported" = "yes" ; then
9371 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9390 xorg_testset_save_CFLAGS="$CFLAGS"
9392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9397 $as_echo_n "(cached) " >&6
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404 xorg_cv_cc_flag_unknown_warning_option=yes
9406 xorg_cv_cc_flag_unknown_warning_option=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9413 CFLAGS="$xorg_testset_save_CFLAGS"
9416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9424 $as_echo_n "(cached) " >&6
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9430 if ac_fn_c_try_compile "$LINENO"; then :
9431 xorg_cv_cc_flag_unused_command_line_argument=yes
9433 xorg_cv_cc_flag_unused_command_line_argument=no
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9440 CFLAGS="$xorg_testset_save_CFLAGS"
9445 if test $found = "no" ; then
9446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9454 CFLAGS="$CFLAGS -Wwrite-strings"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9457 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9458 cacheid=xorg_cv_cc_flag__Wwrite_strings
9459 if eval \${$cacheid+:} false; then :
9460 $as_echo_n "(cached) " >&6
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9473 if ac_fn_c_try_link "$LINENO"; then :
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9485 eval supported=\$$cacheid
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9487 $as_echo "$supported" >&6; }
9488 if test "$supported" = "yes" ; then
9489 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9508 xorg_testset_save_CFLAGS="$CFLAGS"
9510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9515 $as_echo_n "(cached) " >&6
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522 xorg_cv_cc_flag_unknown_warning_option=yes
9524 xorg_cv_cc_flag_unknown_warning_option=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9531 CFLAGS="$xorg_testset_save_CFLAGS"
9534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9542 $as_echo_n "(cached) " >&6
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9548 if ac_fn_c_try_compile "$LINENO"; then :
9549 xorg_cv_cc_flag_unused_command_line_argument=yes
9551 xorg_cv_cc_flag_unused_command_line_argument=no
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9558 CFLAGS="$xorg_testset_save_CFLAGS"
9563 if test $found = "no" ; then
9564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9572 CFLAGS="$CFLAGS -Waddress"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9575 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9576 cacheid=xorg_cv_cc_flag__Waddress
9577 if eval \${$cacheid+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9591 if ac_fn_c_try_link "$LINENO"; then :
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9603 eval supported=\$$cacheid
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9605 $as_echo "$supported" >&6; }
9606 if test "$supported" = "yes" ; then
9607 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9626 xorg_testset_save_CFLAGS="$CFLAGS"
9628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9639 if ac_fn_c_try_compile "$LINENO"; then :
9640 xorg_cv_cc_flag_unknown_warning_option=yes
9642 xorg_cv_cc_flag_unknown_warning_option=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9649 CFLAGS="$xorg_testset_save_CFLAGS"
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9660 $as_echo_n "(cached) " >&6
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667 xorg_cv_cc_flag_unused_command_line_argument=yes
9669 xorg_cv_cc_flag_unused_command_line_argument=no
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9676 CFLAGS="$xorg_testset_save_CFLAGS"
9681 if test $found = "no" ; then
9682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9690 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9693 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9694 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9695 if eval \${$cacheid+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9709 if ac_fn_c_try_link "$LINENO"; then :
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9719 CFLAGS="$xorg_testset_save_CFLAGS"
9721 eval supported=\$$cacheid
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9723 $as_echo "$supported" >&6; }
9724 if test "$supported" = "yes" ; then
9725 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9744 xorg_testset_save_CFLAGS="$CFLAGS"
9746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9751 $as_echo_n "(cached) " >&6
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9757 if ac_fn_c_try_compile "$LINENO"; then :
9758 xorg_cv_cc_flag_unknown_warning_option=yes
9760 xorg_cv_cc_flag_unknown_warning_option=no
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9767 CFLAGS="$xorg_testset_save_CFLAGS"
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9784 if ac_fn_c_try_compile "$LINENO"; then :
9785 xorg_cv_cc_flag_unused_command_line_argument=yes
9787 xorg_cv_cc_flag_unused_command_line_argument=no
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9794 CFLAGS="$xorg_testset_save_CFLAGS"
9799 if test $found = "no" ; then
9800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9808 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9811 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9812 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9813 if eval \${$cacheid+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9827 if ac_fn_c_try_link "$LINENO"; then :
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9837 CFLAGS="$xorg_testset_save_CFLAGS"
9839 eval supported=\$$cacheid
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9841 $as_echo "$supported" >&6; }
9842 if test "$supported" = "yes" ; then
9843 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9857 CWARNFLAGS="$BASE_CFLAGS"
9858 if test "x$GCC" = xyes ; then
9859 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9869 # Check whether --enable-strict-compilation was given.
9870 if test "${enable_strict_compilation+set}" = set; then :
9871 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9895 xorg_testset_save_CFLAGS="$CFLAGS"
9897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9902 $as_echo_n "(cached) " >&6
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9908 if ac_fn_c_try_compile "$LINENO"; then :
9909 xorg_cv_cc_flag_unknown_warning_option=yes
9911 xorg_cv_cc_flag_unknown_warning_option=no
9913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9918 CFLAGS="$xorg_testset_save_CFLAGS"
9921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9929 $as_echo_n "(cached) " >&6
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9935 if ac_fn_c_try_compile "$LINENO"; then :
9936 xorg_cv_cc_flag_unused_command_line_argument=yes
9938 xorg_cv_cc_flag_unused_command_line_argument=no
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945 CFLAGS="$xorg_testset_save_CFLAGS"
9950 if test $found = "no" ; then
9951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959 CFLAGS="$CFLAGS -pedantic"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9962 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9963 cacheid=xorg_cv_cc_flag__pedantic
9964 if eval \${$cacheid+:} false; then :
9965 $as_echo_n "(cached) " >&6
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9978 if ac_fn_c_try_link "$LINENO"; then :
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9988 CFLAGS="$xorg_testset_save_CFLAGS"
9990 eval supported=\$$cacheid
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9992 $as_echo "$supported" >&6; }
9993 if test "$supported" = "yes" ; then
9994 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10013 xorg_testset_save_CFLAGS="$CFLAGS"
10015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10018 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10019 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10020 $as_echo_n "(cached) " >&6
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10026 if ac_fn_c_try_compile "$LINENO"; then :
10027 xorg_cv_cc_flag_unknown_warning_option=yes
10029 xorg_cv_cc_flag_unknown_warning_option=no
10031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10034 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10045 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10046 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10053 if ac_fn_c_try_compile "$LINENO"; then :
10054 xorg_cv_cc_flag_unused_command_line_argument=yes
10056 xorg_cv_cc_flag_unused_command_line_argument=no
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10061 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10063 CFLAGS="$xorg_testset_save_CFLAGS"
10068 if test $found = "no" ; then
10069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10077 CFLAGS="$CFLAGS -Werror"
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10080 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10081 cacheid=xorg_cv_cc_flag__Werror
10082 if eval \${$cacheid+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10096 if ac_fn_c_try_link "$LINENO"; then :
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10106 CFLAGS="$xorg_testset_save_CFLAGS"
10108 eval supported=\$$cacheid
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10110 $as_echo "$supported" >&6; }
10111 if test "$supported" = "yes" ; then
10112 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10117 if test $found = "no" ; then
10118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10126 CFLAGS="$CFLAGS -errwarn"
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10129 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10130 cacheid=xorg_cv_cc_flag__errwarn
10131 if eval \${$cacheid+:} false; then :
10132 $as_echo_n "(cached) " >&6
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10145 if ac_fn_c_try_link "$LINENO"; then :
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10155 CFLAGS="$xorg_testset_save_CFLAGS"
10157 eval supported=\$$cacheid
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10159 $as_echo "$supported" >&6; }
10160 if test "$supported" = "yes" ; then
10161 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10168 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10169 # activate it with -Werror, so we add it here explicitly.
10183 xorg_testset_save_CFLAGS="$CFLAGS"
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10190 $as_echo_n "(cached) " >&6
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10196 if ac_fn_c_try_compile "$LINENO"; then :
10197 xorg_cv_cc_flag_unknown_warning_option=yes
10199 xorg_cv_cc_flag_unknown_warning_option=no
10201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10206 CFLAGS="$xorg_testset_save_CFLAGS"
10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10217 $as_echo_n "(cached) " >&6
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10223 if ac_fn_c_try_compile "$LINENO"; then :
10224 xorg_cv_cc_flag_unused_command_line_argument=yes
10226 xorg_cv_cc_flag_unused_command_line_argument=no
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10233 CFLAGS="$xorg_testset_save_CFLAGS"
10238 if test $found = "no" ; then
10239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10247 CFLAGS="$CFLAGS -Werror=attributes"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10250 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10251 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10252 if eval \${$cacheid+:} false; then :
10253 $as_echo_n "(cached) " >&6
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10266 if ac_fn_c_try_link "$LINENO"; then :
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10276 CFLAGS="$xorg_testset_save_CFLAGS"
10278 eval supported=\$$cacheid
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10280 $as_echo "$supported" >&6; }
10281 if test "$supported" = "yes" ; then
10282 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10289 if test "x$STRICT_COMPILE" = "xyes"; then
10290 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10291 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10299 cat >>confdefs.h <<_ACEOF
10300 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10303 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10304 if test "x$PVM" = "x"; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define PACKAGE_VERSION_MINOR $PVM
10312 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10313 if test "x$PVP" = "x"; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10323 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10324 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10325 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10326 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10331 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10332 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10333 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10334 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10335 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10342 if test x$APP_MAN_SUFFIX = x ; then
10345 if test x$APP_MAN_DIR = x ; then
10346 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10349 if test x$LIB_MAN_SUFFIX = x ; then
10352 if test x$LIB_MAN_DIR = x ; then
10353 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10356 if test x$FILE_MAN_SUFFIX = x ; then
10358 solaris*) FILE_MAN_SUFFIX=4 ;;
10359 *) FILE_MAN_SUFFIX=5 ;;
10362 if test x$FILE_MAN_DIR = x ; then
10363 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10366 if test x$MISC_MAN_SUFFIX = x ; then
10368 solaris*) MISC_MAN_SUFFIX=5 ;;
10369 *) MISC_MAN_SUFFIX=7 ;;
10372 if test x$MISC_MAN_DIR = x ; then
10373 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10376 if test x$DRIVER_MAN_SUFFIX = x ; then
10378 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10379 *) DRIVER_MAN_SUFFIX=4 ;;
10382 if test x$DRIVER_MAN_DIR = x ; then
10383 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10386 if test x$ADMIN_MAN_SUFFIX = x ; then
10388 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10389 *) ADMIN_MAN_SUFFIX=8 ;;
10392 if test x$ADMIN_MAN_DIR = x ; then
10393 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10410 XORG_MAN_PAGE="X Version 11"
10413 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10414 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10415 -e 's|__xservername__|Xorg|g' \
10416 -e 's|__xconfigfile__|xorg.conf|g' \
10417 -e 's|__projectroot__|\$(prefix)|g' \
10418 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10419 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10420 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10421 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10422 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10423 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10424 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10428 # Check whether --enable-silent-rules was given.
10429 if test "${enable_silent_rules+set}" = set; then :
10430 enableval=$enable_silent_rules;
10433 case $enable_silent_rules in
10434 yes) AM_DEFAULT_VERBOSITY=0;;
10435 no) AM_DEFAULT_VERBOSITY=1;;
10436 *) AM_DEFAULT_VERBOSITY=0;;
10443 # Check whether --enable-specs was given.
10444 if test "${enable_specs+set}" = set; then :
10445 enableval=$enable_specs; build_specs=$enableval
10451 if test x$build_specs = xyes; then
10453 ENABLE_SPECS_FALSE='#'
10455 ENABLE_SPECS_TRUE='#'
10456 ENABLE_SPECS_FALSE=
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10460 $as_echo_n "checking whether to build functional specifications... " >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10462 $as_echo "$build_specs" >&6; }
10468 # Check whether --with-xmlto was given.
10469 if test "${with_xmlto+set}" = set; then :
10470 withval=$with_xmlto; use_xmlto=$withval
10477 if test "x$use_xmlto" = x"auto"; then
10478 # Extract the first word of "xmlto", so it can be a program name with args.
10479 set dummy xmlto; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_XMLTO+:} false; then :
10483 $as_echo_n "(cached) " >&6
10487 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 XMLTO=$ac_cv_path_XMLTO
10509 if test -n "$XMLTO"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10511 $as_echo "$XMLTO" >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10518 if test "x$XMLTO" = "x"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10520 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10525 elif test "x$use_xmlto" = x"yes" ; then
10526 # Extract the first word of "xmlto", so it can be a program name with args.
10527 set dummy xmlto; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_XMLTO+:} false; then :
10531 $as_echo_n "(cached) " >&6
10535 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 XMLTO=$ac_cv_path_XMLTO
10557 if test -n "$XMLTO"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10559 $as_echo "$XMLTO" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10566 if test "x$XMLTO" = "x"; then
10567 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10570 elif test "x$use_xmlto" = x"no" ; then
10571 if test "x$XMLTO" != "x"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10573 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10577 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10580 # Test for a minimum version of xmlto, if provided.
10581 if test "$have_xmlto" = yes; then
10582 # scrape the xmlto version
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10584 $as_echo_n "checking the xmlto version... " >&6; }
10585 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10587 $as_echo "$xmlto_version" >&6; }
10588 as_arg_v1=$xmlto_version
10590 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10593 if test "x$use_xmlto" = xauto; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10595 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10598 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10609 # Test for the ability of xmlto to generate a text target
10611 cat > conftest.xml << "EOF"
10613 if test "$have_xmlto" = yes; then :
10614 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10615 have_xmlto_text=yes
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10618 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10622 if test $have_xmlto_text = yes; then
10623 HAVE_XMLTO_TEXT_TRUE=
10624 HAVE_XMLTO_TEXT_FALSE='#'
10626 HAVE_XMLTO_TEXT_TRUE='#'
10627 HAVE_XMLTO_TEXT_FALSE=
10630 if test "$have_xmlto" = yes; then
10632 HAVE_XMLTO_FALSE='#'
10634 HAVE_XMLTO_TRUE='#'
10643 # Check whether --with-fop was given.
10644 if test "${with_fop+set}" = set; then :
10645 withval=$with_fop; use_fop=$withval
10652 if test "x$use_fop" = x"auto"; then
10653 # Extract the first word of "fop", so it can be a program name with args.
10654 set dummy fop; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_path_FOP+:} false; then :
10658 $as_echo_n "(cached) " >&6
10662 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 FOP=$ac_cv_path_FOP
10684 if test -n "$FOP"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10686 $as_echo "$FOP" >&6; }
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10693 if test "x$FOP" = "x"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
10695 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
10700 elif test "x$use_fop" = x"yes" ; then
10701 # Extract the first word of "fop", so it can be a program name with args.
10702 set dummy fop; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_path_FOP+:} false; then :
10706 $as_echo_n "(cached) " >&6
10710 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 FOP=$ac_cv_path_FOP
10732 if test -n "$FOP"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10734 $as_echo "$FOP" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10741 if test "x$FOP" = "x"; then
10742 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
10745 elif test "x$use_fop" = x"no" ; then
10746 if test "x$FOP" != "x"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
10748 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
10752 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
10755 # Test for a minimum version of fop, if provided.
10757 if test "$have_fop" = yes; then
10768 # Preserves the interface, should it be implemented later
10772 # Check whether --with-xsltproc was given.
10773 if test "${with_xsltproc+set}" = set; then :
10774 withval=$with_xsltproc; use_xsltproc=$withval
10781 if test "x$use_xsltproc" = x"auto"; then
10782 # Extract the first word of "xsltproc", so it can be a program name with args.
10783 set dummy xsltproc; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_path_XSLTPROC+:} false; then :
10787 $as_echo_n "(cached) " >&6
10791 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 XSLTPROC=$ac_cv_path_XSLTPROC
10813 if test -n "$XSLTPROC"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10815 $as_echo "$XSLTPROC" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10822 if test "x$XSLTPROC" = "x"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10824 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10829 elif test "x$use_xsltproc" = x"yes" ; then
10830 # Extract the first word of "xsltproc", so it can be a program name with args.
10831 set dummy xsltproc; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_XSLTPROC+:} false; then :
10835 $as_echo_n "(cached) " >&6
10839 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10849 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 XSLTPROC=$ac_cv_path_XSLTPROC
10861 if test -n "$XSLTPROC"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10863 $as_echo "$XSLTPROC" >&6; }
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10870 if test "x$XSLTPROC" = "x"; then
10871 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
10874 elif test "x$use_xsltproc" = x"no" ; then
10875 if test "x$XSLTPROC" != "x"; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
10877 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
10881 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
10884 if test "$have_xsltproc" = yes; then
10885 HAVE_XSLTPROC_TRUE=
10886 HAVE_XSLTPROC_FALSE='#'
10888 HAVE_XSLTPROC_TRUE='#'
10889 HAVE_XSLTPROC_FALSE=
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
10895 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
10897 if test -n "$PKG_CONFIG" && \
10898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
10899 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; }; then
10903 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
10909 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
10910 # the path and the name of the doc stylesheet
10911 if test "x$XORG_SGML_PATH" != "x" ; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
10913 $as_echo "$XORG_SGML_PATH" >&6; }
10914 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
10915 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10924 if test "x$XSL_STYLESHEET" != "x"; then
10925 HAVE_STYLESHEETS_TRUE=
10926 HAVE_STYLESHEETS_FALSE='#'
10928 HAVE_STYLESHEETS_TRUE='#'
10929 HAVE_STYLESHEETS_FALSE=
10934 ac_config_files="$ac_config_files Makefile specs/Makefile kbproto.pc"
10936 cat >confcache <<\_ACEOF
10937 # This file is a shell script that caches the results of configure
10938 # tests run on this system so they can be shared between configure
10939 # scripts and configure runs, see configure's option --config-cache.
10940 # It is not useful on other systems. If it contains results you don't
10941 # want to keep, you may remove or edit it.
10943 # config.status only pays attention to the cache file if you give it
10944 # the --recheck option to rerun configure.
10946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10948 # following values.
10952 # The following way of writing the cache mishandles newlines in values,
10953 # but we know of no workaround that is simple, portable, and efficient.
10954 # So, we kill variables containing newlines.
10955 # Ultrix sh set writes to stderr and can't be redirected directly,
10956 # and sets the high bit in the cache file unless we assign to the vars.
10958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10959 eval ac_val=\$$ac_var
10963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10967 _ | IFS | as_nl) ;; #(
10968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10969 *) { eval $ac_var=; unset $ac_var;} ;;
10975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10976 *${as_nl}ac_space=\ *)
10977 # `set' does not quote correctly, so add quotes: double-quote
10978 # substitution turns \\\\ into \\, and sed turns \\ into \.
10981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10984 # `set' quotes correctly as required by POSIX, so do not add quotes.
10985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10999 if test -w "$cache_file"; then
11000 if test "x$cache_file" != "x/dev/null"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11002 $as_echo "$as_me: updating cache $cache_file" >&6;}
11003 if test ! -f "$cache_file" || test -h "$cache_file"; then
11004 cat confcache >"$cache_file"
11006 case $cache_file in #(
11008 mv -f confcache "$cache_file"$$ &&
11009 mv -f "$cache_file"$$ "$cache_file" ;; #(
11011 mv -f confcache "$cache_file" ;;
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11023 # Let make expand exec_prefix.
11024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11026 # Transform confdefs.h into DEFS.
11027 # Protect against shell expansion while executing Makefile rules.
11028 # Protect against Makefile macro expansion.
11030 # If the first sed substitution is executed (which looks for macros that
11031 # take arguments), then branch to the quote section. Otherwise,
11032 # look for a macro that doesn't take arguments.
11042 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11044 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11048 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11061 DEFS=`sed -n "$ac_script" confdefs.h`
11067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11068 # 1. Remove the extension, and $U if already installed.
11069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11072 # will be set to the directory where LIBOBJS objects are built.
11073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11076 LIBOBJS=$ac_libobjs
11078 LTLIBOBJS=$ac_ltlibobjs
11081 if test -n "$EXEEXT"; then
11083 am__EXEEXT_FALSE='#'
11085 am__EXEEXT_TRUE='#'
11089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11090 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11094 as_fn_error $? "conditional \"AMDEP\" was never defined.
11095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11098 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11101 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11102 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11105 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11106 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11109 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11110 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11113 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11114 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11117 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11118 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11121 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11122 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11126 : "${CONFIG_STATUS=./config.status}"
11128 ac_clean_files_save=$ac_clean_files
11129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11135 # Generated by $as_me.
11136 # Run this file to recreate the current configuration.
11137 # Compiler output produced by configure, useful for debugging
11138 # configure, is in config.log if it exists.
11141 ac_cs_recheck=false
11144 SHELL=\${CONFIG_SHELL-$SHELL}
11147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11148 ## -------------------- ##
11149 ## M4sh Initialization. ##
11150 ## -------------------- ##
11152 # Be more Bourne compatible
11153 DUALCASE=1; export DUALCASE # for MKS sh
11154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11158 # is contrary to our usage. Disable this feature.
11159 alias -g '${1+"$@"}'='"$@"'
11160 setopt NO_GLOB_SUBST
11162 case `(set -o) 2>/dev/null` in #(
11174 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11175 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11178 # Prefer a ksh shell builtin over an external printf program on Solaris,
11179 # but without wasting forks for bash or zsh.
11180 if test -z "$BASH_VERSION$ZSH_VERSION" \
11181 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11182 as_echo='print -r --'
11183 as_echo_n='print -rn --'
11184 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11185 as_echo='printf %s\n'
11186 as_echo_n='printf %s'
11188 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11189 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11190 as_echo_n='/usr/ucb/echo -n'
11192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11193 as_echo_n_body='eval
11197 expr "X$arg" : "X\\(.*\\)$as_nl";
11198 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11200 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11202 export as_echo_n_body
11203 as_echo_n='sh -c $as_echo_n_body as_echo'
11205 export as_echo_body
11206 as_echo='sh -c $as_echo_body as_echo'
11209 # The user is always right.
11210 if test "${PATH_SEPARATOR+set}" != set; then
11212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11220 # We need space, tab and new line, in precisely that order. Quoting is
11221 # there to prevent editors from complaining about space-tab.
11222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11223 # splitting by setting IFS to empty value.)
11226 # Find who we are. Look in the path if we contain no directory separator.
11229 *[\\/]* ) as_myself=$0 ;;
11230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11234 test -z "$as_dir" && as_dir=.
11235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11241 # We did not find ourselves, most probably we were run as `sh COMMAND'
11242 # in which case we are not to be found in the path.
11243 if test "x$as_myself" = x; then
11246 if test ! -f "$as_myself"; then
11247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11251 # Unset variables that we do not need and which cause bugs (e.g. in
11252 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11253 # suppresses any "Segmentation fault" message there. '((' could
11254 # trigger a bug in pdksh 5.2.14.
11255 for as_var in BASH_ENV ENV MAIL MAILPATH
11256 do eval test x\${$as_var+set} = xset \
11257 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11270 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11273 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11274 # ----------------------------------------
11275 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11276 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11277 # script with STATUS, using 1 if that was 0.
11280 as_status=$1; test $as_status -eq 0 && as_status=1
11282 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11285 $as_echo "$as_me: error: $2" >&2
11286 as_fn_exit $as_status
11290 # as_fn_set_status STATUS
11291 # -----------------------
11292 # Set $? to STATUS, without forking.
11293 as_fn_set_status ()
11296 } # as_fn_set_status
11298 # as_fn_exit STATUS
11299 # -----------------
11300 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11304 as_fn_set_status $1
11310 # Portably unset VAR.
11313 { eval $1=; unset $1;}
11315 as_unset=as_fn_unset
11316 # as_fn_append VAR VALUE
11317 # ----------------------
11318 # Append the text in VALUE to the end of the definition contained in VAR. Take
11319 # advantage of any shell optimizations that allow amortized linear growth over
11320 # repeated appends, instead of the typical quadratic growth present in naive
11322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11323 eval 'as_fn_append ()
11334 # as_fn_arith ARG...
11335 # ------------------
11336 # Perform arithmetic evaluation on the ARGs, and store the result in the
11337 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11338 # must be portable across $(()) and expr.
11339 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11340 eval 'as_fn_arith ()
11347 as_val=`expr "$@" || test $? -eq 1`
11352 if expr a : '\(a\)' >/dev/null 2>&1 &&
11353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11360 as_basename=basename
11365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11371 as_me=`$as_basename -- "$0" ||
11372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11373 X"$0" : 'X\(//\)$' \| \
11374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11376 sed '/^.*\/\([^/][^/]*\)\/*$/{
11390 # Avoid depending upon Character Ranges.
11391 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11392 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11393 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11394 as_cr_digits='0123456789'
11395 as_cr_alnum=$as_cr_Letters$as_cr_digits
11397 ECHO_C= ECHO_N= ECHO_T=
11398 case `echo -n x` in #(((((
11400 case `echo 'xy\c'` in
11401 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11410 rm -f conf$$ conf$$.exe conf$$.file
11411 if test -d conf$$.dir; then
11412 rm -f conf$$.dir/conf$$.file
11415 mkdir conf$$.dir 2>/dev/null
11417 if (echo >conf$$.file) 2>/dev/null; then
11418 if ln -s conf$$.file conf$$ 2>/dev/null; then
11420 # ... but there are two gotchas:
11421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11423 # In both cases, we have to default to `cp -p'.
11424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11426 elif ln conf$$.file conf$$ 2>/dev/null; then
11434 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11435 rmdir conf$$.dir 2>/dev/null
11440 # Create "$as_dir" as a directory, including parents if necessary.
11445 -*) as_dir=./$as_dir;;
11447 test -d "$as_dir" || eval $as_mkdir_p || {
11451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11452 *) as_qdir=$as_dir;;
11454 as_dirs="'$as_qdir' $as_dirs"
11455 as_dir=`$as_dirname -- "$as_dir" ||
11456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11457 X"$as_dir" : 'X\(//\)[^/]' \| \
11458 X"$as_dir" : 'X\(//\)$' \| \
11459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11460 $as_echo X"$as_dir" |
11461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11465 /^X\(\/\/\)[^/].*/{
11478 test -d "$as_dir" && break
11480 test -z "$as_dirs" || eval "mkdir $as_dirs"
11481 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11485 if mkdir -p . 2>/dev/null; then
11486 as_mkdir_p='mkdir -p "$as_dir"'
11488 test -d ./-p && rmdir ./-p
11492 if test -x / >/dev/null 2>&1; then
11493 as_test_x='test -x'
11495 if ls -dL / >/dev/null 2>&1; then
11502 if test -d "$1"; then
11508 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11509 ???[sx]*):;;*)false;;esac;fi
11513 as_executable_p=$as_test_x
11515 # Sed expression to map a string onto a valid CPP name.
11516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11518 # Sed expression to map a string onto a valid variable name.
11519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11523 ## ----------------------------------- ##
11524 ## Main body of $CONFIG_STATUS script. ##
11525 ## ----------------------------------- ##
11527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 # Save the log message, to keep $0 and so on meaningful, and to
11531 # report actual input values of CONFIG_FILES etc. instead of their
11532 # values after options handling.
11534 This file was extended by KBProto $as_me 1.0.6, which was
11535 generated by GNU Autoconf 2.68. Invocation command line was
11537 CONFIG_FILES = $CONFIG_FILES
11538 CONFIG_HEADERS = $CONFIG_HEADERS
11539 CONFIG_LINKS = $CONFIG_LINKS
11540 CONFIG_COMMANDS = $CONFIG_COMMANDS
11543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11548 case $ac_config_files in *"
11549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11555 # Files that config.status was made for.
11556 config_files="$ac_config_files"
11557 config_commands="$ac_config_commands"
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11563 \`$as_me' instantiates files and other configuration actions
11564 from templates according to the current configuration. Unless the files
11565 and actions are specified as TAGs, all are instantiated by default.
11567 Usage: $0 [OPTION]... [TAG]...
11569 -h, --help print this help, then exit
11570 -V, --version print version number and configuration settings, then exit
11571 --config print configuration, then exit
11572 -q, --quiet, --silent
11573 do not print progress messages
11574 -d, --debug don't remove temporary files
11575 --recheck update $as_me by reconfiguring in the same conditions
11576 --file=FILE[:TEMPLATE]
11577 instantiate the configuration file FILE
11579 Configuration files:
11582 Configuration commands:
11585 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11591 KBProto config.status 1.0.6
11592 configured by $0, generated by GNU Autoconf 2.68,
11593 with options \\"\$ac_cs_config\\"
11595 Copyright (C) 2010 Free Software Foundation, Inc.
11596 This config.status script is free software; the Free Software Foundation
11597 gives unlimited permission to copy, distribute and modify it."
11604 test -n "\$AWK" || AWK=awk
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608 # The default lists apply if the user does not specify any file.
11614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11631 # Handling of the options.
11632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11635 $as_echo "$ac_cs_version"; exit ;;
11636 --config | --confi | --conf | --con | --co | --c )
11637 $as_echo "$ac_cs_config"; exit ;;
11638 --debug | --debu | --deb | --de | --d | -d )
11640 --file | --fil | --fi | --f )
11643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11644 '') as_fn_error $? "missing file argument" ;;
11646 as_fn_append CONFIG_FILES " '$ac_optarg'"
11647 ac_need_defaults=false;;
11648 --he | --h | --help | --hel | -h )
11649 $as_echo "$ac_cs_usage"; exit ;;
11650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11654 # This is an error.
11655 -*) as_fn_error $? "unrecognized option: \`$1'
11656 Try \`$0 --help' for more information." ;;
11658 *) as_fn_append ac_config_targets " $1"
11659 ac_need_defaults=false ;;
11665 ac_configure_extra_args=
11667 if $ac_cs_silent; then
11669 ac_configure_extra_args="$ac_configure_extra_args --silent"
11673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11674 if \$ac_cs_recheck; then
11675 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11678 CONFIG_SHELL='$SHELL'
11679 export CONFIG_SHELL
11684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11689 ## Running $as_me. ##
11695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11705 # Handling of arguments.
11706 for ac_config_target in $ac_config_targets
11708 case $ac_config_target in
11709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11711 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11712 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
11714 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11719 # If the user did not use the arguments to specify the items to instantiate,
11720 # then the envvar interface is used. Set only those that are not.
11721 # We use the long form for the default assignment because of an extremely
11722 # bizarre bug on SunOS 4.1.3.
11723 if $ac_need_defaults; then
11724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11728 # Have a temporary directory for convenience. Make it in the build tree
11729 # simply because there is no reason against having it here, and in addition,
11730 # creating and moving files from /tmp can sometimes cause problems.
11731 # Hook for its removal unless debugging.
11732 # Note that there is a small window in which the directory will not be cleaned:
11733 # after its creation but before its name has been assigned to `$tmp'.
11737 trap 'exit_status=$?
11738 : "${ac_tmp:=$tmp}"
11739 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11741 trap 'as_fn_exit 1' 1 2 13 15
11743 # Create a (secure) tmp directory for tmp files.
11746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11750 tmp=./conf$$-$RANDOM
11751 (umask 077 && mkdir "$tmp")
11752 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11755 # Set up the scripts for CONFIG_FILES section.
11756 # No need to generate them if there are no CONFIG_FILES.
11757 # This happens for instance with `./config.status config.h'.
11758 if test -n "$CONFIG_FILES"; then
11761 ac_cr=`echo X | tr X '\015'`
11762 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11763 # But we know of no other shell where ac_cr would be empty at this
11764 # point, so we can use a bashism as a fallback.
11765 if test "x$ac_cr" = x; then
11766 eval ac_cr=\$\'\\r\'
11768 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11772 ac_cs_awk_cr=$ac_cr
11775 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11780 echo "cat >conf$$subs.awk <<_ACEOF" &&
11781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11783 } >conf$$subs.sh ||
11784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11787 for ac_last_try in false false false false false :; do
11788 . ./conf$$subs.sh ||
11789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11791 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11792 if test $ac_delim_n = $ac_delim_num; then
11794 elif $ac_last_try; then
11795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11800 rm -f conf$$subs.sh
11802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11807 s/^/S["/; s/!.*/"]=/
11817 s/\(.\{148\}\)..*/\1/
11819 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11831 s/\(.\{148\}\)..*/\1/
11833 s/["\\]/\\&/g; s/^/"/; s/$/"/
11837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11842 ' <conf$$subs.awk | sed '
11847 ' >>$CONFIG_STATUS || ac_write_fail=1
11848 rm -f conf$$subs.awk
11849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11852 for (key in S) S_is_set[key] = 1
11858 nfields = split(line, field, "@")
11860 len = length(field[1])
11861 for (i = 2; i < nfields; i++) {
11863 keylen = length(key)
11864 if (S_is_set[key]) {
11866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11867 len += length(value) + length(field[++i])
11878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11879 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11883 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11884 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11887 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11888 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11889 # trailing colons and then remove the whole line if VPATH becomes empty
11890 # (actually we leave an empty line to preserve line numbers).
11891 if test "x$srcdir" = x.; then
11892 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11911 fi # test -n "$CONFIG_FILES"
11914 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11919 :[FHLC]) ac_mode=$ac_tag; continue;;
11921 case $ac_mode$ac_tag in
11923 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11924 :[FH]-) ac_tag=-:-;;
11925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11942 -) ac_f="$ac_tmp/stdin";;
11943 *) # Look for the file first in the build tree, then in the source tree
11944 # (if the path is not absolute). The absolute path cannot be DOS-style,
11945 # because $ac_f cannot contain `:'.
11949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11951 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11953 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11954 as_fn_append ac_file_inputs " '$ac_f'"
11957 # Let's still pretend it is `configure' which instantiates (i.e., don't
11958 # use $as_me), people would be surprised to read:
11959 # /* config.h. Generated by config.status. */
11960 configure_input='Generated from '`
11961 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11963 if test x"$ac_file" != x-; then
11964 configure_input="$ac_file. $configure_input"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11966 $as_echo "$as_me: creating $ac_file" >&6;}
11968 # Neutralize special characters interpreted by sed in replacement strings.
11969 case $configure_input in #(
11970 *\&* | *\|* | *\\* )
11971 ac_sed_conf_input=`$as_echo "$configure_input" |
11972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11973 *) ac_sed_conf_input=$configure_input;;
11977 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11983 ac_dir=`$as_dirname -- "$ac_file" ||
11984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985 X"$ac_file" : 'X\(//\)[^/]' \| \
11986 X"$ac_file" : 'X\(//\)$' \| \
11987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11988 $as_echo X"$ac_file" |
11989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11993 /^X\(\/\/\)[^/].*/{
12006 as_dir="$ac_dir"; as_fn_mkdir_p
12010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12012 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12013 # A ".." for each directory in $ac_dir_suffix.
12014 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12015 case $ac_top_builddir_sub in
12016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12020 ac_abs_top_builddir=$ac_pwd
12021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12022 # for backward compatibility:
12023 ac_top_builddir=$ac_top_build_prefix
12026 .) # We are building in place.
12028 ac_top_srcdir=$ac_top_builddir_sub
12029 ac_abs_top_srcdir=$ac_pwd ;;
12030 [\\/]* | ?:[\\/]* ) # Absolute name.
12031 ac_srcdir=$srcdir$ac_dir_suffix;
12032 ac_top_srcdir=$srcdir
12033 ac_abs_top_srcdir=$srcdir ;;
12034 *) # Relative name.
12035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12036 ac_top_srcdir=$ac_top_build_prefix$srcdir
12037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12052 ac_MKDIR_P=$MKDIR_P
12054 [\\/$]* | ?:[\\/]* ) ;;
12055 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12060 # If the template does not know about datarootdir, expand it.
12061 # FIXME: This hack should be removed a few years after 2.60.
12062 ac_datarootdir_hack=; ac_datarootdir_seen=
12073 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12074 *datarootdir*) ac_datarootdir_seen=yes;;
12075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12077 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12080 ac_datarootdir_hack='
12081 s&@datadir@&$datadir&g
12082 s&@docdir@&$docdir&g
12083 s&@infodir@&$infodir&g
12084 s&@localedir@&$localedir&g
12085 s&@mandir@&$mandir&g
12086 s&\\\${datarootdir}&$datarootdir&g' ;;
12090 # Neutralize VPATH when `$srcdir' = `.'.
12091 # Shell code in configure.ac might set extrasub.
12092 # FIXME: do we really want to maintain this feature?
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 ac_sed_extra="$ac_vpsub
12097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12100 s|@configure_input@|$ac_sed_conf_input|;t t
12101 s&@top_builddir@&$ac_top_builddir_sub&;t t
12102 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12103 s&@srcdir@&$ac_srcdir&;t t
12104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12105 s&@top_srcdir@&$ac_top_srcdir&;t t
12106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12107 s&@builddir@&$ac_builddir&;t t
12108 s&@abs_builddir@&$ac_abs_builddir&;t t
12109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12110 s&@INSTALL@&$ac_INSTALL&;t t
12111 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12112 $ac_datarootdir_hack
12114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12115 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12120 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12122 which seems to be undefined. Please make sure it is defined" >&5
12123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12124 which seems to be undefined. Please make sure it is defined" >&2;}
12126 rm -f "$ac_tmp/stdin"
12128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12135 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12136 $as_echo "$as_me: executing $ac_file commands" >&6;}
12141 case $ac_file$ac_mode in
12142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12143 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12144 # are listed without --file. Let's play safe and only enable the eval
12145 # if we detect the quoting.
12146 case $CONFIG_FILES in
12147 *\'*) eval set x "$CONFIG_FILES" ;;
12148 *) set x $CONFIG_FILES ;;
12153 # Strip MF so we end up with the name of the file.
12154 mf=`echo "$mf" | sed -e 's/:.*$//'`
12155 # Check whether this is an Automake generated Makefile or not.
12156 # We used to match only the files named `Makefile.in', but
12157 # some people rename them; so instead we look at the file content.
12158 # Grep'ing the first line is not enough: some people post-process
12159 # each Makefile.in and add a new line on top of each file to say so.
12160 # Grep'ing the whole file is not good either: AIX grep has a line
12161 # limit of 2048, but all sed's we know have understand at least 4000.
12162 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12163 dirpart=`$as_dirname -- "$mf" ||
12164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12165 X"$mf" : 'X\(//\)[^/]' \| \
12166 X"$mf" : 'X\(//\)$' \| \
12167 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12173 /^X\(\/\/\)[^/].*/{
12189 # Extract the definition of DEPDIR, am__include, and am__quote
12190 # from the Makefile without running `make'.
12191 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12192 test -z "$DEPDIR" && continue
12193 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12194 test -z "am__include" && continue
12195 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12196 # When using ansi2knr, U may be empty or an underscore; expand it
12197 U=`sed -n 's/^U = //p' < "$mf"`
12198 # Find all dependency output files, they are included files with
12199 # $(DEPDIR) in their names. We invoke sed twice because it is the
12200 # simplest approach to changing $(DEPDIR) to its actual value in the
12202 for file in `sed -n "
12203 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12204 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12205 # Make sure the directory exists.
12206 test -f "$dirpart/$file" && continue
12207 fdir=`$as_dirname -- "$file" ||
12208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12209 X"$file" : 'X\(//\)[^/]' \| \
12210 X"$file" : 'X\(//\)$' \| \
12211 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12212 $as_echo X"$file" |
12213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12217 /^X\(\/\/\)[^/].*/{
12230 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12231 # echo "creating $dirpart/$file"
12232 echo '# dummy' > "$dirpart/$file"
12244 ac_clean_files=$ac_clean_files_save
12246 test $ac_write_fail = 0 ||
12247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12250 # configure is writing to config.log, and then calls config.status.
12251 # config.status does its own redirection, appending to config.log.
12252 # Unfortunately, on DOS this fails, as config.log is still kept open
12253 # by configure, so config.status won't be able to write to it; its
12254 # output is simply discarded. So we exec the FD to /dev/null,
12255 # effectively closing config.log, so it can be properly (re)opened and
12256 # appended to by config.status. When coming back to configure, we
12257 # need to make the FD available again.
12258 if test "$no_create" != yes; then
12260 ac_config_status_args=
12261 test "$silent" = yes &&
12262 ac_config_status_args="$ac_config_status_args --quiet"
12264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12267 # would make configure fail if this is the last instruction.
12268 $ac_cs_success || as_fn_exit 1
12270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}