2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xkbcomp 1.2.4.
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 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='xkbcomp'
563 PACKAGE_TARNAME='xkbcomp'
564 PACKAGE_VERSION='1.2.4'
565 PACKAGE_STRING='xkbcomp 1.2.4'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
667 MAINTAINER_MODE_FALSE
677 INSTALL_STRIP_PROGRAM
719 program_transform_name
732 enable_option_checking
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_selective_werror
736 enable_strict_compilation
740 ac_precious_vars='build_alias
756 # Initialize some variables set by options.
758 ac_init_version=false
759 ac_unrecognized_opts=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
770 program_transform_name=s,x,x,
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
873 eval enable_$ac_useropt=no ;;
875 -docdir | --docdir | --docdi | --doc | --do)
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=\$ac_optarg ;;
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
914 -help | --help | --hel | --he | -h)
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 htmldir=$ac_optarg ;;
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
944 -libdir | --libdir | --libdi | --libd)
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
956 -localedir | --localedir | --localedi | --localed | --locale)
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 # Obsolete; use --without-fp.
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1013 -program-transform-name | --program-transform-name \
1014 | --program-transform-nam | --program-transform-na \
1015 | --program-transform-n | --program-transform- \
1016 | --program-transform | --program-transfor \
1017 | --program-transfo | --program-transf \
1018 | --program-trans | --program-tran \
1019 | --progr-tra | --program-tr | --program-t)
1020 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1035 -psdir | --psdir | --psdi | --psd | --ps)
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 sbindir=$ac_optarg ;;
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 sharedstatedir=$ac_optarg ;;
1061 -site | --site | --sit)
1063 -site=* | --site=* | --sit=*)
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid package name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1103 eval with_$ac_useropt=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=no ;;
1122 # Obsolete; use --with-x.
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error $? "missing argument to $ac_option"
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1190 # Be sure to have absolute directory names.
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1203 target=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219 test "$silent" = yes && exec 6>/dev/null
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error $? "pwd does not report name of working directory"
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1262 ac_srcdir_defaulted=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1296 \`configure' configures xkbcomp 1.2.4 to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking ...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1354 --program-prefix=PREFIX prepend PREFIX to installed program names
1355 --program-suffix=SUFFIX append SUFFIX to installed program names
1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of xkbcomp 1.2.4:";;
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
1378 --disable-selective-werror
1379 Turn off selective compiler errors. (default:
1381 --enable-strict-compilation
1382 Enable all warnings from compiler and make them
1383 errors (default: disabled)
1384 --enable-silent-rules less verbose build output (undo: `make V=1')
1385 --disable-silent-rules verbose build output (undo: `make V=0')
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-xkb-config-root=<paths>
1391 Set default XKB config root (default:
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1403 PKG_CONFIG path to pkg-config utility
1404 YACC The `Yet Another Compiler Compiler' implementation to use.
1405 Defaults to the first program found out of: `bison -y', `byacc',
1407 YFLAGS The list of arguments that will be passed by default to $YACC.
1408 This script will default YFLAGS to the empty string to avoid a
1409 default value of `-d' given by some make applications.
1411 C compiler flags for XKBCOMP, overriding pkg-config
1413 linker flags for XKBCOMP, overriding pkg-config
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1418 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1448 .) # We are building in place.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1481 xkbcomp configure 1.2.4
1482 generated by GNU Autoconf 2.68
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_c_try_compile
1533 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1534 # ---------------------------------------------
1535 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1537 ac_fn_c_check_decl ()
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 as_decl_name=`echo $2|sed 's/ *(.*//'`
1541 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1543 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1544 if eval \${$3+:} false; then :
1545 $as_echo_n "(cached) " >&6
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1553 #ifndef $as_decl_name
1555 (void) $as_decl_use;
1557 (void) $as_decl_name;
1565 if ac_fn_c_try_compile "$LINENO"; then :
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574 $as_echo "$ac_res" >&6; }
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 } # ac_fn_c_check_decl
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=$ac_status
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 $as_test_x conftest$ac_exeext
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_link
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1758 # include <limits.h>
1760 # include <assert.h>
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_func
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1805 It was created by xkbcomp $as_me 1.2.4, which was
1806 generated by GNU Autoconf 2.68. Invocation command line was
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_must_keep_next=false
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895 -* ) ac_must_keep_next=true ;;
1898 as_fn_append ac_configure_args " '$ac_arg'"
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1916 $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1920 # The following way of writing the cache mishandles newlines in values,
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1956 for ac_var in $ac_subst_vars
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1966 if test -n "$ac_subst_files"; then
1967 $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1971 for ac_var in $ac_subst_files
1973 eval ac_val=\$$ac_var
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 $as_echo "$ac_var='\''$ac_val'\''"
1982 if test -s confdefs.h; then
1983 $as_echo "## ----------- ##
1990 test "$ac_signal" != 0 &&
1991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2006 $as_echo "/* confdefs.h */" > confdefs.h
2008 # Predefined preprocessor variables.
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_NAME "$PACKAGE_NAME"
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_STRING "$PACKAGE_STRING"
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_URL "$PACKAGE_URL"
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2039 if test -n "$CONFIG_SITE"; then
2040 # We do not want a PATH search for config.site.
2041 case $CONFIG_SITE in #((
2042 -*) ac_site_file1=./$CONFIG_SITE;;
2043 */*) ac_site_file1=$CONFIG_SITE;;
2044 *) ac_site_file1=./$CONFIG_SITE;;
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_file1=$prefix/share/config.site
2048 ac_site_file2=$prefix/etc/config.site
2050 ac_site_file1=$ac_default_prefix/share/config.site
2051 ac_site_file2=$ac_default_prefix/etc/config.site
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055 test "x$ac_site_file" = xNONE && continue
2056 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2061 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085 # Check that the precious variables saved in the cache have kept the same
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 am__api_version='1.11'
2156 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157 if test -f "$ac_dir/install-sh"; then
2159 ac_install_sh="$ac_aux_dir/install-sh -c"
2161 elif test -f "$ac_dir/install.sh"; then
2163 ac_install_sh="$ac_aux_dir/install.sh -c"
2165 elif test -f "$ac_dir/shtool"; then
2167 ac_install_sh="$ac_aux_dir/shtool install -c"
2171 if test -z "$ac_aux_dir"; then
2172 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if ${ac_cv_path_install+:} false; then :
2202 $as_echo_n "(cached) " >&6
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in #((
2211 ./ | .// | /[cC]/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253 rm -rf conftest.one conftest.two conftest.dir
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2281 echo timestamp > conftest.file
2282 # Reject unsafe characters in $srcdir or the absolute working directory
2283 # name. Accept space and tab only in the latter.
2287 *[\\\"\#\$\&\'\`$am_lf]*)
2288 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2291 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2292 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2295 # Do `set' in a subshell so we don't clobber the current shell's
2296 # arguments. Must try -L first in case configure is actually a
2297 # symlink; some systems play weird games with the mod time of symlinks
2298 # (eg FreeBSD returns the mod time of the symlink's containing
2301 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2302 if test "$*" = "X"; then
2304 set X `ls -t "$srcdir/configure" conftest.file`
2307 if test "$*" != "X $srcdir/configure conftest.file" \
2308 && test "$*" != "X conftest.file $srcdir/configure"; then
2310 # If neither matched, then we have a broken ls. This can happen
2311 # if, for instance, CONFIG_SHELL is bash and it inherits a
2312 # broken ls alias from the environment. This has actually
2313 # happened. Such a system could not be considered "sane".
2314 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2315 alias in your environment" "$LINENO" 5
2318 test "$2" = conftest.file
2324 as_fn_error $? "newly created file is older than distributed files!
2325 Check your system clock" "$LINENO" 5
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2328 $as_echo "yes" >&6; }
2329 test "$program_prefix" != NONE &&
2330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2331 # Use a double $ so make ignores it.
2332 test "$program_suffix" != NONE &&
2333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334 # Double any \ or $.
2335 # By default was `s,x,x', remove it if useless.
2336 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2337 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2339 # expand $ac_aux_dir to an absolute path
2340 am_aux_dir=`cd $ac_aux_dir && pwd`
2342 if test x"${MISSING+set}" != xset; then
2345 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2347 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350 # Use eval to expand $SHELL
2351 if eval "$MISSING --run true"; then
2352 am_missing_run="$MISSING --run "
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2356 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2359 if test x"${install_sh}" != xset; then
2362 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2364 install_sh="\${SHELL} $am_aux_dir/install-sh"
2368 # Installed binaries are usually stripped using `strip' when the user
2369 # run `make install-strip'. However `strip' might not be the right
2370 # tool to use in cross-compilation environments, therefore Automake
2371 # will honor the `STRIP' environment variable to overrule this program.
2372 if test "$cross_compiling" != no; then
2373 if test -n "$ac_tool_prefix"; then
2374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2375 set dummy ${ac_tool_prefix}strip; ac_word=$2
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if ${ac_cv_prog_STRIP+:} false; then :
2379 $as_echo_n "(cached) " >&6
2381 if test -n "$STRIP"; then
2382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 STRIP=$ac_cv_prog_STRIP
2402 if test -n "$STRIP"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2404 $as_echo "$STRIP" >&6; }
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2412 if test -z "$ac_cv_prog_STRIP"; then
2414 # Extract the first word of "strip", so it can be a program name with args.
2415 set dummy strip; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 if test -n "$ac_ct_STRIP"; then
2422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_ac_ct_STRIP="strip"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2442 if test -n "$ac_ct_STRIP"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2444 $as_echo "$ac_ct_STRIP" >&6; }
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2450 if test "x$ac_ct_STRIP" = x; then
2453 case $cross_compiling:$ac_tool_warned in
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2457 ac_tool_warned=yes ;;
2462 STRIP="$ac_cv_prog_STRIP"
2466 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2469 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2470 if test -z "$MKDIR_P"; then
2471 if ${ac_cv_path_mkdir+:} false; then :
2472 $as_echo_n "(cached) " >&6
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478 test -z "$as_dir" && as_dir=.
2479 for ac_prog in mkdir gmkdir; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2482 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2483 'mkdir (GNU coreutils) '* | \
2484 'mkdir (coreutils) '* | \
2485 'mkdir (fileutils) '4.1*)
2486 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2496 test -d ./--version && rmdir ./--version
2497 if test "${ac_cv_path_mkdir+set}" = set; then
2498 MKDIR_P="$ac_cv_path_mkdir -p"
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for MKDIR_P within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 MKDIR_P="$ac_install_sh -d"
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2508 $as_echo "$MKDIR_P" >&6; }
2512 [\\/$]* | ?:[\\/]*) ;;
2513 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516 for ac_prog in gawk mawk nawk awk
2518 # Extract the first word of "$ac_prog", so it can be a program name with args.
2519 set dummy $ac_prog; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_AWK+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if test -n "$AWK"; then
2526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_AWK="$ac_prog"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$AWK"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2548 $as_echo "$AWK" >&6; }
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2555 test -n "$AWK" && break
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 cat >conftest.make <<\_ACEOF
2568 @echo '@@@%%%=$(MAKE)=@@@%%%'
2570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2573 eval ac_cv_prog_make_${ac_make}_set=yes;;
2575 eval ac_cv_prog_make_${ac_make}_set=no;;
2579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581 $as_echo "yes" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 SET_MAKE="MAKE=${MAKE-make}"
2589 rm -rf .tst 2>/dev/null
2590 mkdir .tst 2>/dev/null
2591 if test -d .tst; then
2596 rmdir .tst 2>/dev/null
2598 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2599 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2600 # is not polluted with repeated "-I."
2601 am__isrc=' -I$(srcdir)'
2602 # test to see if srcdir already configured
2603 if test -f $srcdir/config.status; then
2604 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2608 # test whether we have cygpath
2609 if test -z "$CYGPATH_W"; then
2610 if (cygpath --version) >/dev/null 2>/dev/null; then
2611 CYGPATH_W='cygpath -w'
2618 # Define the identity of the package.
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE "$PACKAGE"
2628 cat >>confdefs.h <<_ACEOF
2629 #define VERSION "$VERSION"
2632 # Some tools Automake needs.
2634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2648 # We need awk for the "check" target. The system "awk" is bad on
2650 # Always define AMTAR for backward compatibility.
2652 AMTAR=${AMTAR-"${am_missing_run}tar"}
2654 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2662 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2663 # Check whether --enable-maintainer-mode was given.
2664 if test "${enable_maintainer_mode+set}" = set; then :
2665 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2667 USE_MAINTAINER_MODE=no
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2671 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2672 if test $USE_MAINTAINER_MODE = yes; then
2673 MAINTAINER_MODE_TRUE=
2674 MAINTAINER_MODE_FALSE='#'
2676 MAINTAINER_MODE_TRUE='#'
2677 MAINTAINER_MODE_FALSE=
2680 MAINT=$MAINTAINER_MODE_TRUE
2684 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2696 DEPDIR="${am__leading_dot}deps"
2698 ac_config_commands="$ac_config_commands depfiles"
2701 am_make=${MAKE-make}
2702 cat > confinc << 'END'
2704 @echo this is the am__doit target
2707 # If we don't find an include directive, just comment out the code.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2713 # First try GNU make style include.
2714 echo "include confinc" > confmf
2715 # Ignore all kinds of additional output from `make'.
2716 case `$am_make -s -f confmf 2> /dev/null` in #(
2717 *the\ am__doit\ target*)
2723 # Now try BSD make style include.
2724 if test "$am__include" = "#"; then
2725 echo '.include "confinc"' > confmf
2726 case `$am_make -s -f confmf 2> /dev/null` in #(
2727 *the\ am__doit\ target*)
2728 am__include=.include
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2737 $as_echo "$_am_result" >&6; }
2738 rm -f confinc confmf
2740 # Check whether --enable-dependency-tracking was given.
2741 if test "${enable_dependency_tracking+set}" = set; then :
2742 enableval=$enable_dependency_tracking;
2745 if test "x$enable_dependency_tracking" != xno; then
2746 am_depcomp="$ac_aux_dir/depcomp"
2749 if test "x$enable_dependency_tracking" != xno; then
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_CC"; then
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_CC" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$CC" && break
2996 if test -z "$CC"; then
2998 for ac_prog in cl.exe
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$ac_ct_CC" && break
3040 if test "x$ac_ct_CC" = x; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details" "$LINENO" 5; }
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 for ac_option in --version -v -V -qversion; do
3066 { { ac_try="$ac_compiler $ac_option >&5"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 if test -s conftest.err; then
3077 ... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
3081 rm -f conftest.er1 conftest.err
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110 for ac_file in $ac_files
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3119 if { { ac_try="$ac_link_default"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link_default") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3135 for ac_file in $ac_files ''
3137 test -f "$ac_file" || continue
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 # We found the default executable, but exeext='' is most
3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165 if test -z "$ac_file"; then :
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error 77 "C compiler cannot create executables
3174 See \`config.log' for more details" "$LINENO" 5; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3180 $as_echo_n "checking for C compiler default output file name... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 ac_exeext=$ac_cv_exeext
3185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3186 ac_clean_files=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188 $as_echo_n "checking for suffix of executables... " >&6; }
3189 if { { ac_try="$ac_link"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3204 for ac_file in conftest.exe conftest conftest.*; do
3205 test -f "$ac_file" || continue
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details" "$LINENO" 5; }
3219 rm -f conftest conftest$ac_cv_exeext
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221 $as_echo "$ac_cv_exeext" >&6; }
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3232 FILE *f = fopen ("conftest.out", "w");
3233 return ferror (f) || fclose (f) != 0;
3239 ac_clean_files="$ac_clean_files conftest.out"
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 if test "$cross_compiling" != yes; then
3245 { { ac_try="$ac_link"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 if { ac_try='./conftest$ac_cv_exeext'
3257 { { case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3269 if test "$cross_compiling" = maybe; then
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details" "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281 $as_echo "$cross_compiling" >&6; }
3283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 $as_echo_n "checking for suffix of object files... " >&6; }
3287 if ${ac_cv_objext+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 rm -f conftest.o conftest.obj
3302 if { { ac_try="$ac_compile"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compile") 2>&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 for ac_file in conftest.o conftest.obj conftest.*; do
3314 test -f "$ac_file" || continue;
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of object files: cannot compile
3328 See \`config.log' for more details" "$LINENO" 5; }
3330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333 $as_echo "$ac_cv_objext" >&6; }
3334 OBJEXT=$ac_cv_objext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3338 if ${ac_cv_c_compiler_gnu+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3355 if ac_fn_c_try_compile "$LINENO"; then :
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3366 if test $ac_compiler_gnu = yes; then
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3375 if ${ac_cv_prog_cc_g+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3393 if ac_fn_c_try_compile "$LINENO"; then :
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3424 if ac_fn_c_try_compile "$LINENO"; then :
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3445 if test "$GCC" = yes; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if ${ac_cv_prog_cc_c89+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 ac_cv_prog_cc_c89=no
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3478 s = g (p, va_arg (v,int));
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 CC="$ac_save_CC $ac_arg"
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_c89=$ac_arg
3518 rm -f core conftest.err conftest.$ac_objext
3519 test "x$ac_cv_prog_cc_c89" != "xno" && break
3521 rm -f conftest.$ac_ext
3526 case "x$ac_cv_prog_cc_c89" in
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3529 $as_echo "none needed" >&6; } ;;
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3532 $as_echo "unsupported" >&6; } ;;
3534 CC="$CC $ac_cv_prog_cc_c89"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538 if test "x$ac_cv_prog_cc_c89" != xno; then :
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 depcc="$CC" am_compiler_list=
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3551 $as_echo_n "checking dependency style of $depcc... " >&6; }
3552 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3556 # We make a subdir and do the tests there. Otherwise we can end up
3557 # making bogus files that we don't know about and never remove. For
3558 # instance it was reported that on HP-UX the gcc test will end up
3559 # making a dummy file named `D' -- because `-MD' means `put the output
3562 # Copy depcomp to subdir because otherwise we won't find it if we're
3563 # using a relative directory.
3564 cp "$am_depcomp" conftest.dir
3566 # We will build objects and dependencies in a subdirectory because
3567 # it helps to detect inapplicable dependency modes. For instance
3568 # both Tru64's cc and ICC support -MD to output dependencies as a
3569 # side effect of compilation, but ICC will put the dependencies in
3570 # the current directory while Tru64 will put them in the object
3574 am_cv_CC_dependencies_compiler_type=none
3575 if test "$am_compiler_list" = ""; then
3576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 case " $depcc " in #(
3580 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3583 for depmode in $am_compiler_list; do
3584 # Setup a source with many dependencies, because some compilers
3585 # like to wrap large dependency lists on column 80 (with \), and
3586 # we should not choose a depcomp mode which is confused by this.
3588 # We need to recreate these files for each test, as the compiler may
3589 # overwrite some of them when testing with obscure command lines.
3590 # This happens at least with the AIX C compiler.
3592 for i in 1 2 3 4 5 6; do
3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595 # Solaris 8's {/usr,}/bin/sh.
3596 touch sub/conftst$i.h
3598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this. Also, some Intel
3603 # versions had trouble with output in subdirs
3604 am__obj=sub/conftest.${OBJEXT-o}
3605 am__minus_obj="-o $am__obj"
3608 # This depmode causes a compiler race in universal mode.
3609 test "$am__universal" = false || continue
3612 # after this tag, mechanisms are not by side-effect, so they'll
3613 # only be used when explicitly requested
3614 if test "x$enable_dependency_tracking" = xyes; then
3620 msvisualcpp | msvcmsys)
3621 # This compiler won't grok `-c -o', but also, the minuso test has
3622 # not run yet. These depmodes are late enough in the game, and
3623 # so weak that their functioning should not be impacted.
3624 am__obj=conftest.${OBJEXT-o}
3629 if depmode=$depmode \
3630 source=sub/conftest.c object=$am__obj \
3631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3633 >/dev/null 2>conftest.err &&
3634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3638 # icc doesn't choke on unknown options, it will just issue warnings
3639 # or remarks (even with -Werror). So we grep stderr for any message
3640 # that says an option was ignored or not supported.
3641 # When given -MP, icc 7.0 and 7.1 complain thusly:
3642 # icc: Command line warning: ignoring option '-M'; no argument required
3643 # The diagnosis changed in icc 8.0:
3644 # icc: Command line remark: option '-MP' not supported
3645 if (grep 'ignoring option' conftest.err ||
3646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3647 am_cv_CC_dependencies_compiler_type=$depmode
3656 am_cv_CC_dependencies_compiler_type=none
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3661 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665 test "x$enable_dependency_tracking" != xno \
3666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3668 am__fastdepCC_FALSE='#'
3670 am__fastdepCC_TRUE='#'
3671 am__fastdepCC_FALSE=
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3676 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3677 if ${ac_cv_prog_cc_c99+:} false; then :
3678 $as_echo_n "(cached) " >&6
3680 ac_cv_prog_cc_c99=no
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3685 #include <stdbool.h>
3690 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3691 #define debug(...) fprintf (stderr, __VA_ARGS__)
3692 #define showlist(...) puts (#__VA_ARGS__)
3693 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3695 test_varargs_macros (void)
3700 debug ("X = %d\n", x);
3701 showlist (The first, second, and third items.);
3702 report (x>y, "x is %d but y is %d", x, y);
3705 // Check long long types.
3706 #define BIG64 18446744073709551615ull
3707 #define BIG32 4294967295ul
3708 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3710 your preprocessor is broken;
3714 your preprocessor is broken;
3716 static long long int bignum = -9223372036854775807LL;
3717 static unsigned long long int ubignum = BIG64;
3719 struct incomplete_array
3727 const wchar_t *name;
3731 typedef const char *ccp;
3734 test_restrict (ccp restrict text)
3736 // See if C++-style comments work.
3737 // Iterate through items via the restricted pointer.
3738 // Also check for declarations in for loops.
3739 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3744 // Check varargs and va_copy.
3746 test_varargs (const char *format, ...)
3749 va_start (args, format);
3751 va_copy (args_copy, args);
3762 str = va_arg (args_copy, const char *);
3765 number = va_arg (args_copy, int);
3768 fnumber = va_arg (args_copy, double);
3783 _Bool success = false;
3786 if (test_restrict ("String literal") == 0)
3788 char *restrict newvar = "Another string";
3791 test_varargs ("s, d' f .", "string", 65, 34.234);
3792 test_varargs_macros ();
3794 // Check flexible array members.
3795 struct incomplete_array *ia =
3796 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3798 for (int i = 0; i < ia->datasize; ++i)
3799 ia->data[i] = i * 1.234;
3801 // Check named initializers.
3802 struct named_init ni = {
3804 .name = L"Test wide string",
3805 .average = 543.34343,
3810 int dynamic_array[ni.number];
3811 dynamic_array[ni.number - 1] = 543;
3813 // work around unused variable warnings
3814 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3815 || dynamic_array[ni.number - 1] != 543);
3821 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c99=$ac_arg
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c99" != "xno" && break
3830 rm -f conftest.$ac_ext
3835 case "x$ac_cv_prog_cc_c99" in
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3843 CC="$CC $ac_cv_prog_cc_c99"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3845 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3847 if test "x$ac_cv_prog_cc_c99" != xno; then :
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3864 if test -z "$CPP"; then
3865 if ${ac_cv_prog_CPP+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 # Double quotes because CPP needs to be expanded
3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3883 # include <limits.h>
3885 # include <assert.h>
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3892 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3907 # Passes both tests.
3911 rm -f conftest.err conftest.i conftest.$ac_ext
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.i conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3929 $as_echo "$CPP" >&6; }
3931 for ac_c_preproc_warn_flag in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3942 # include <limits.h>
3944 # include <assert.h>
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3951 # Broken: fails on valid input.
3954 rm -f conftest.err conftest.i conftest.$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3966 # Passes both tests.
3970 rm -f conftest.err conftest.i conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.i conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details" "$LINENO" 5; }
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3993 if ${ac_cv_path_GREP+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 if test -z "$GREP"; then
3997 ac_path_GREP_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in grep ggrep; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4008 # Check for GNU ac_path_GREP and select it if it is found.
4009 # Check for GNU $ac_path_GREP
4010 case `"$ac_path_GREP" --version 2>&1` in
4012 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4015 $as_echo_n 0123456789 >"conftest.in"
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'GREP' >> "conftest.nl"
4022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 as_fn_arith $ac_count + 1 && ac_count=$as_val
4025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_GREP="$ac_path_GREP"
4028 ac_path_GREP_max=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 $ac_path_GREP_found && break 3
4041 if test -z "$ac_cv_path_GREP"; then
4042 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045 ac_cv_path_GREP=$GREP
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4050 $as_echo "$ac_cv_path_GREP" >&6; }
4051 GREP="$ac_cv_path_GREP"
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4055 $as_echo_n "checking for egrep... " >&6; }
4056 if ${ac_cv_path_EGREP+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4060 then ac_cv_path_EGREP="$GREP -E"
4062 if test -z "$EGREP"; then
4063 ac_path_EGREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in egrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4074 # Check for GNU ac_path_EGREP and select it if it is found.
4075 # Check for GNU $ac_path_EGREP
4076 case `"$ac_path_EGREP" --version 2>&1` in
4078 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081 $as_echo_n 0123456789 >"conftest.in"
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'EGREP' >> "conftest.nl"
4088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
4091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_EGREP="$ac_path_EGREP"
4094 ac_path_EGREP_max=$ac_count
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 $ac_path_EGREP_found && break 3
4107 if test -z "$ac_cv_path_EGREP"; then
4108 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4111 ac_cv_path_EGREP=$EGREP
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4122 $as_echo_n "checking for ANSI C header files... " >&6; }
4123 if ${ac_cv_header_stdc+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_header_stdc=yes
4144 ac_cv_header_stdc=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "memchr" >/dev/null 2>&1; then :
4159 ac_cv_header_stdc=no
4165 if test $ac_cv_header_stdc = yes; then
4166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev/null 2>&1; then :
4176 ac_cv_header_stdc=no
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then :
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4214 if ac_fn_c_try_run "$LINENO"; then :
4217 ac_cv_header_stdc=no
4219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4220 conftest.$ac_objext conftest.beam conftest.$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4226 $as_echo "$ac_cv_header_stdc" >&6; }
4227 if test $ac_cv_header_stdc = yes; then
4229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4235 inttypes.h stdint.h unistd.h
4237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4241 cat >>confdefs.h <<_ACEOF
4242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4254 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4255 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4261 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4262 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4268 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4269 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4278 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4279 if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4281 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4285 $as_echo_n "(cached) " >&6
4289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4311 if test -n "$PKG_CONFIG"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4313 $as_echo "$PKG_CONFIG" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4321 if test -z "$ac_cv_path_PKG_CONFIG"; then
4322 ac_pt_PKG_CONFIG=$PKG_CONFIG
4323 # Extract the first word of "pkg-config", so it can be a program name with args.
4324 set dummy pkg-config; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 case $ac_pt_PKG_CONFIG in
4332 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4354 if test -n "$ac_pt_PKG_CONFIG"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4356 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4362 if test "x$ac_pt_PKG_CONFIG" = x; then
4365 case $cross_compiling:$ac_tool_warned in
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369 ac_tool_warned=yes ;;
4371 PKG_CONFIG=$ac_pt_PKG_CONFIG
4374 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4378 if test -n "$PKG_CONFIG"; then
4379 _pkg_min_version=0.9.0
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4381 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4382 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 # Make sure we can run config.sub.
4393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4394 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4397 $as_echo_n "checking build system type... " >&6; }
4398 if ${ac_cv_build+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 ac_build_alias=$build_alias
4402 test "x$ac_build_alias" = x &&
4403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4404 test "x$ac_build_alias" = x &&
4405 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4411 $as_echo "$ac_cv_build" >&6; }
4412 case $ac_cv_build in
4414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4417 ac_save_IFS=$IFS; IFS='-'
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4431 $as_echo_n "checking host system type... " >&6; }
4432 if ${ac_cv_host+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 if test "x$host_alias" = x; then
4436 ac_cv_host=$ac_cv_build
4438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4444 $as_echo "$ac_cv_host" >&6; }
4447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4450 ac_save_IFS=$IFS; IFS='-'
4456 # Remember, the first character of IFS is used to create $*,
4457 # except with old shells:
4460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4465 if ${ac_cv_path_SED+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4469 for ac_i in 1 2 3 4 5 6 7; do
4470 ac_script="$ac_script$as_nl$ac_script"
4472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4473 { ac_script=; unset ac_script;}
4474 if test -z "$SED"; then
4475 ac_path_SED_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in sed gsed; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4486 # Check for GNU ac_path_SED and select it if it is found.
4487 # Check for GNU $ac_path_SED
4488 case `"$ac_path_SED" --version 2>&1` in
4490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4493 $as_echo_n 0123456789 >"conftest.in"
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo '' >> "conftest.nl"
4500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 as_fn_arith $ac_count + 1 && ac_count=$as_val
4503 if test $ac_count -gt ${ac_path_SED_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_SED="$ac_path_SED"
4506 ac_path_SED_max=$ac_count
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 $ac_path_SED_found && break 3
4519 if test -z "$ac_cv_path_SED"; then
4520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4528 $as_echo "$ac_cv_path_SED" >&6; }
4529 SED="$ac_cv_path_SED"
4537 # Check whether --enable-selective-werror was given.
4538 if test "${enable_selective_werror+set}" = set; then :
4539 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4541 SELECTIVE_WERROR=yes
4548 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4549 if test "x$SUNCC" = "xyes"; then
4555 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4569 xorg_testset_save_CFLAGS="$CFLAGS"
4571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 xorg_cv_cc_flag_unknown_warning_option=yes
4585 xorg_cv_cc_flag_unknown_warning_option=no
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4592 CFLAGS="$xorg_testset_save_CFLAGS"
4595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 xorg_cv_cc_flag_unused_command_line_argument=yes
4612 xorg_cv_cc_flag_unused_command_line_argument=no
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4619 CFLAGS="$xorg_testset_save_CFLAGS"
4624 if test $found = "no" ; then
4625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4633 CFLAGS="$CFLAGS -Wall"
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4636 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4637 cacheid=xorg_cv_cc_flag__Wall
4638 if eval \${$cacheid+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4652 if ac_fn_c_try_link "$LINENO"; then :
4657 rm -f core conftest.err conftest.$ac_objext \
4658 conftest$ac_exeext conftest.$ac_ext
4662 CFLAGS="$xorg_testset_save_CFLAGS"
4664 eval supported=\$$cacheid
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4666 $as_echo "$supported" >&6; }
4667 if test "$supported" = "yes" ; then
4668 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4687 xorg_testset_save_CFLAGS="$CFLAGS"
4689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 xorg_cv_cc_flag_unknown_warning_option=yes
4703 xorg_cv_cc_flag_unknown_warning_option=no
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4710 CFLAGS="$xorg_testset_save_CFLAGS"
4713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 xorg_cv_cc_flag_unused_command_line_argument=yes
4730 xorg_cv_cc_flag_unused_command_line_argument=no
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4737 CFLAGS="$xorg_testset_save_CFLAGS"
4742 if test $found = "no" ; then
4743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4751 CFLAGS="$CFLAGS -Wpointer-arith"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4754 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4755 cacheid=xorg_cv_cc_flag__Wpointer_arith
4756 if eval \${$cacheid+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_link "$LINENO"; then :
4775 rm -f core conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
4780 CFLAGS="$xorg_testset_save_CFLAGS"
4782 eval supported=\$$cacheid
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4784 $as_echo "$supported" >&6; }
4785 if test "$supported" = "yes" ; then
4786 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4805 xorg_testset_save_CFLAGS="$CFLAGS"
4807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4812 $as_echo_n "(cached) " >&6
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 xorg_cv_cc_flag_unknown_warning_option=yes
4821 xorg_cv_cc_flag_unknown_warning_option=no
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4828 CFLAGS="$xorg_testset_save_CFLAGS"
4831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 xorg_cv_cc_flag_unused_command_line_argument=yes
4848 xorg_cv_cc_flag_unused_command_line_argument=no
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4855 CFLAGS="$xorg_testset_save_CFLAGS"
4860 if test $found = "no" ; then
4861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869 CFLAGS="$CFLAGS -Wmissing-declarations"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4872 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4873 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4874 if eval \${$cacheid+:} false; then :
4875 $as_echo_n "(cached) " >&6
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4888 if ac_fn_c_try_link "$LINENO"; then :
4893 rm -f core conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4898 CFLAGS="$xorg_testset_save_CFLAGS"
4900 eval supported=\$$cacheid
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4902 $as_echo "$supported" >&6; }
4903 if test "$supported" = "yes" ; then
4904 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4923 xorg_testset_save_CFLAGS="$CFLAGS"
4925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 xorg_cv_cc_flag_unknown_warning_option=yes
4939 xorg_cv_cc_flag_unknown_warning_option=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 xorg_cv_cc_flag_unused_command_line_argument=yes
4966 xorg_cv_cc_flag_unused_command_line_argument=no
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4973 CFLAGS="$xorg_testset_save_CFLAGS"
4978 if test $found = "no" ; then
4979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987 CFLAGS="$CFLAGS -Wformat=2"
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4990 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4991 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4992 if eval \${$cacheid+:} false; then :
4993 $as_echo_n "(cached) " >&6
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5006 if ac_fn_c_try_link "$LINENO"; then :
5011 rm -f core conftest.err conftest.$ac_objext \
5012 conftest$ac_exeext conftest.$ac_ext
5016 CFLAGS="$xorg_testset_save_CFLAGS"
5018 eval supported=\$$cacheid
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5020 $as_echo "$supported" >&6; }
5021 if test "$supported" = "yes" ; then
5022 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5027 if test $found = "no" ; then
5028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5036 CFLAGS="$CFLAGS -Wformat"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5039 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5040 cacheid=xorg_cv_cc_flag__Wformat
5041 if eval \${$cacheid+:} false; then :
5042 $as_echo_n "(cached) " >&6
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5055 if ac_fn_c_try_link "$LINENO"; then :
5060 rm -f core conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
5065 CFLAGS="$xorg_testset_save_CFLAGS"
5067 eval supported=\$$cacheid
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5069 $as_echo "$supported" >&6; }
5070 if test "$supported" = "yes" ; then
5071 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5092 xorg_testset_save_CFLAGS="$CFLAGS"
5094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 xorg_cv_cc_flag_unknown_warning_option=yes
5108 xorg_cv_cc_flag_unknown_warning_option=no
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5126 $as_echo_n "(cached) " >&6
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 xorg_cv_cc_flag_unused_command_line_argument=yes
5135 xorg_cv_cc_flag_unused_command_line_argument=no
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5142 CFLAGS="$xorg_testset_save_CFLAGS"
5147 if test $found = "no" ; then
5148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156 CFLAGS="$CFLAGS -Wstrict-prototypes"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5159 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5160 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5161 if eval \${$cacheid+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5175 if ac_fn_c_try_link "$LINENO"; then :
5180 rm -f core conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5185 CFLAGS="$xorg_testset_save_CFLAGS"
5187 eval supported=\$$cacheid
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5189 $as_echo "$supported" >&6; }
5190 if test "$supported" = "yes" ; then
5191 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5210 xorg_testset_save_CFLAGS="$CFLAGS"
5212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5215 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5216 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 xorg_cv_cc_flag_unknown_warning_option=yes
5226 xorg_cv_cc_flag_unknown_warning_option=no
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5231 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5242 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5243 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 xorg_cv_cc_flag_unused_command_line_argument=yes
5253 xorg_cv_cc_flag_unused_command_line_argument=no
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5258 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5260 CFLAGS="$xorg_testset_save_CFLAGS"
5265 if test $found = "no" ; then
5266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274 CFLAGS="$CFLAGS -Wmissing-prototypes"
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5277 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5278 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5279 if eval \${$cacheid+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5293 if ac_fn_c_try_link "$LINENO"; then :
5298 rm -f core conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5305 eval supported=\$$cacheid
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5307 $as_echo "$supported" >&6; }
5308 if test "$supported" = "yes" ; then
5309 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5328 xorg_testset_save_CFLAGS="$CFLAGS"
5330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 xorg_cv_cc_flag_unknown_warning_option=yes
5344 xorg_cv_cc_flag_unknown_warning_option=no
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5351 CFLAGS="$xorg_testset_save_CFLAGS"
5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5362 $as_echo_n "(cached) " >&6
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 xorg_cv_cc_flag_unused_command_line_argument=yes
5371 xorg_cv_cc_flag_unused_command_line_argument=no
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5378 CFLAGS="$xorg_testset_save_CFLAGS"
5383 if test $found = "no" ; then
5384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 CFLAGS="$CFLAGS -Wnested-externs"
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5395 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5396 cacheid=xorg_cv_cc_flag__Wnested_externs
5397 if eval \${$cacheid+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5411 if ac_fn_c_try_link "$LINENO"; then :
5416 rm -f core conftest.err conftest.$ac_objext \
5417 conftest$ac_exeext conftest.$ac_ext
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5423 eval supported=\$$cacheid
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5425 $as_echo "$supported" >&6; }
5426 if test "$supported" = "yes" ; then
5427 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5446 xorg_testset_save_CFLAGS="$CFLAGS"
5448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5453 $as_echo_n "(cached) " >&6
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 xorg_cv_cc_flag_unknown_warning_option=yes
5462 xorg_cv_cc_flag_unknown_warning_option=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 xorg_cv_cc_flag_unused_command_line_argument=yes
5489 xorg_cv_cc_flag_unused_command_line_argument=no
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5496 CFLAGS="$xorg_testset_save_CFLAGS"
5501 if test $found = "no" ; then
5502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510 CFLAGS="$CFLAGS -Wbad-function-cast"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5513 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5514 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5515 if eval \${$cacheid+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5529 if ac_fn_c_try_link "$LINENO"; then :
5534 rm -f core conftest.err conftest.$ac_objext \
5535 conftest$ac_exeext conftest.$ac_ext
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5541 eval supported=\$$cacheid
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5543 $as_echo "$supported" >&6; }
5544 if test "$supported" = "yes" ; then
5545 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5564 xorg_testset_save_CFLAGS="$CFLAGS"
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 xorg_cv_cc_flag_unknown_warning_option=yes
5580 xorg_cv_cc_flag_unknown_warning_option=no
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 xorg_cv_cc_flag_unused_command_line_argument=yes
5607 xorg_cv_cc_flag_unused_command_line_argument=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5619 if test $found = "no" ; then
5620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628 CFLAGS="$CFLAGS -Wold-style-definition"
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5631 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5632 cacheid=xorg_cv_cc_flag__Wold_style_definition
5633 if eval \${$cacheid+:} false; then :
5634 $as_echo_n "(cached) " >&6
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5647 if ac_fn_c_try_link "$LINENO"; then :
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5659 eval supported=\$$cacheid
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5661 $as_echo "$supported" >&6; }
5662 if test "$supported" = "yes" ; then
5663 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5682 xorg_testset_save_CFLAGS="$CFLAGS"
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 xorg_cv_cc_flag_unknown_warning_option=yes
5698 xorg_cv_cc_flag_unknown_warning_option=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5705 CFLAGS="$xorg_testset_save_CFLAGS"
5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 xorg_cv_cc_flag_unused_command_line_argument=yes
5725 xorg_cv_cc_flag_unused_command_line_argument=no
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5732 CFLAGS="$xorg_testset_save_CFLAGS"
5737 if test $found = "no" ; then
5738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5749 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5750 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5751 if eval \${$cacheid+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5765 if ac_fn_c_try_link "$LINENO"; then :
5770 rm -f core conftest.err conftest.$ac_objext \
5771 conftest$ac_exeext conftest.$ac_ext
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5777 eval supported=\$$cacheid
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5779 $as_echo "$supported" >&6; }
5780 if test "$supported" = "yes" ; then
5781 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5790 # This chunk adds additional warnings that could catch undesired effects.
5804 xorg_testset_save_CFLAGS="$CFLAGS"
5806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811 $as_echo_n "(cached) " >&6
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 xorg_cv_cc_flag_unknown_warning_option=yes
5820 xorg_cv_cc_flag_unknown_warning_option=no
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838 $as_echo_n "(cached) " >&6
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 xorg_cv_cc_flag_unused_command_line_argument=yes
5847 xorg_cv_cc_flag_unused_command_line_argument=no
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5859 if test $found = "no" ; then
5860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 CFLAGS="$CFLAGS -Wunused"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5871 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5872 cacheid=xorg_cv_cc_flag__Wunused
5873 if eval \${$cacheid+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5887 if ac_fn_c_try_link "$LINENO"; then :
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5899 eval supported=\$$cacheid
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901 $as_echo "$supported" >&6; }
5902 if test "$supported" = "yes" ; then
5903 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5922 xorg_testset_save_CFLAGS="$CFLAGS"
5924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 xorg_cv_cc_flag_unknown_warning_option=yes
5938 xorg_cv_cc_flag_unknown_warning_option=no
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5945 CFLAGS="$xorg_testset_save_CFLAGS"
5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5962 if ac_fn_c_try_compile "$LINENO"; then :
5963 xorg_cv_cc_flag_unused_command_line_argument=yes
5965 xorg_cv_cc_flag_unused_command_line_argument=no
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5977 if test $found = "no" ; then
5978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986 CFLAGS="$CFLAGS -Wuninitialized"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5989 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5990 cacheid=xorg_cv_cc_flag__Wuninitialized
5991 if eval \${$cacheid+:} false; then :
5992 $as_echo_n "(cached) " >&6
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
6005 if ac_fn_c_try_link "$LINENO"; then :
6010 rm -f core conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6017 eval supported=\$$cacheid
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6019 $as_echo "$supported" >&6; }
6020 if test "$supported" = "yes" ; then
6021 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6040 xorg_testset_save_CFLAGS="$CFLAGS"
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6047 $as_echo_n "(cached) " >&6
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6053 if ac_fn_c_try_compile "$LINENO"; then :
6054 xorg_cv_cc_flag_unknown_warning_option=yes
6056 xorg_cv_cc_flag_unknown_warning_option=no
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6063 CFLAGS="$xorg_testset_save_CFLAGS"
6066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6074 $as_echo_n "(cached) " >&6
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 xorg_cv_cc_flag_unused_command_line_argument=yes
6083 xorg_cv_cc_flag_unused_command_line_argument=no
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6090 CFLAGS="$xorg_testset_save_CFLAGS"
6095 if test $found = "no" ; then
6096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104 CFLAGS="$CFLAGS -Wshadow"
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6107 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6108 cacheid=xorg_cv_cc_flag__Wshadow
6109 if eval \${$cacheid+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6123 if ac_fn_c_try_link "$LINENO"; then :
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6133 CFLAGS="$xorg_testset_save_CFLAGS"
6135 eval supported=\$$cacheid
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6137 $as_echo "$supported" >&6; }
6138 if test "$supported" = "yes" ; then
6139 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6158 xorg_testset_save_CFLAGS="$CFLAGS"
6160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 xorg_cv_cc_flag_unknown_warning_option=yes
6174 xorg_cv_cc_flag_unknown_warning_option=no
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 xorg_cv_cc_flag_unused_command_line_argument=yes
6201 xorg_cv_cc_flag_unused_command_line_argument=no
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6213 if test $found = "no" ; then
6214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222 CFLAGS="$CFLAGS -Wcast-qual"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6225 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6226 cacheid=xorg_cv_cc_flag__Wcast_qual
6227 if eval \${$cacheid+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6241 if ac_fn_c_try_link "$LINENO"; then :
6246 rm -f core conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6251 CFLAGS="$xorg_testset_save_CFLAGS"
6253 eval supported=\$$cacheid
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6255 $as_echo "$supported" >&6; }
6256 if test "$supported" = "yes" ; then
6257 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6276 xorg_testset_save_CFLAGS="$CFLAGS"
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 xorg_cv_cc_flag_unknown_warning_option=yes
6292 xorg_cv_cc_flag_unknown_warning_option=no
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 xorg_cv_cc_flag_unused_command_line_argument=yes
6319 xorg_cv_cc_flag_unused_command_line_argument=no
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6331 if test $found = "no" ; then
6332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340 CFLAGS="$CFLAGS -Wmissing-noreturn"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6343 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6344 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6345 if eval \${$cacheid+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6359 if ac_fn_c_try_link "$LINENO"; then :
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6371 eval supported=\$$cacheid
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373 $as_echo "$supported" >&6; }
6374 if test "$supported" = "yes" ; then
6375 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6394 xorg_testset_save_CFLAGS="$CFLAGS"
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_cv_cc_flag_unknown_warning_option=yes
6410 xorg_cv_cc_flag_unknown_warning_option=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 xorg_cv_cc_flag_unused_command_line_argument=yes
6437 xorg_cv_cc_flag_unused_command_line_argument=no
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6449 if test $found = "no" ; then
6450 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6461 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6462 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6463 if eval \${$cacheid+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6477 if ac_fn_c_try_link "$LINENO"; then :
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6489 eval supported=\$$cacheid
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491 $as_echo "$supported" >&6; }
6492 if test "$supported" = "yes" ; then
6493 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6512 xorg_testset_save_CFLAGS="$CFLAGS"
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 xorg_cv_cc_flag_unknown_warning_option=yes
6528 xorg_cv_cc_flag_unknown_warning_option=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 xorg_cv_cc_flag_unused_command_line_argument=yes
6555 xorg_cv_cc_flag_unused_command_line_argument=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6562 CFLAGS="$xorg_testset_save_CFLAGS"
6567 if test $found = "no" ; then
6568 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576 CFLAGS="$CFLAGS -Wredundant-decls"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6579 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6580 cacheid=xorg_cv_cc_flag__Wredundant_decls
6581 if eval \${$cacheid+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6595 if ac_fn_c_try_link "$LINENO"; then :
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6607 eval supported=\$$cacheid
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609 $as_echo "$supported" >&6; }
6610 if test "$supported" = "yes" ; then
6611 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6618 # These are currently disabled because they are noisy. They will be enabled
6619 # in the future once the codebase is sufficiently modernized to silence
6620 # them. For now, I don't want them to drown out the other warnings.
6621 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6622 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6623 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6625 # Turn some warnings into errors, so we don't accidently get successful builds
6626 # when there are problems that should be fixed.
6628 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6642 xorg_testset_save_CFLAGS="$CFLAGS"
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649 $as_echo_n "(cached) " >&6
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 xorg_cv_cc_flag_unknown_warning_option=yes
6658 xorg_cv_cc_flag_unknown_warning_option=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676 $as_echo_n "(cached) " >&6
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 xorg_cv_cc_flag_unused_command_line_argument=yes
6685 xorg_cv_cc_flag_unused_command_line_argument=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6697 if test $found = "no" ; then
6698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 CFLAGS="$CFLAGS -Werror=implicit"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6709 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6711 if eval \${$cacheid+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6725 if ac_fn_c_try_link "$LINENO"; then :
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6737 eval supported=\$$cacheid
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739 $as_echo "$supported" >&6; }
6740 if test "$supported" = "yes" ; then
6741 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6746 if test $found = "no" ; then
6747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6755 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6758 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6759 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6760 if eval \${$cacheid+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 if ac_fn_c_try_link "$LINENO"; then :
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6784 CFLAGS="$xorg_testset_save_CFLAGS"
6786 eval supported=\$$cacheid
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788 $as_echo "$supported" >&6; }
6789 if test "$supported" = "yes" ; then
6790 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6809 xorg_testset_save_CFLAGS="$CFLAGS"
6811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 xorg_cv_cc_flag_unknown_warning_option=yes
6825 xorg_cv_cc_flag_unknown_warning_option=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6843 $as_echo_n "(cached) " >&6
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 xorg_cv_cc_flag_unused_command_line_argument=yes
6852 xorg_cv_cc_flag_unused_command_line_argument=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6864 if test $found = "no" ; then
6865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873 CFLAGS="$CFLAGS -Werror=nonnull"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6876 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6877 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6878 if eval \${$cacheid+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6892 if ac_fn_c_try_link "$LINENO"; then :
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6904 eval supported=\$$cacheid
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906 $as_echo "$supported" >&6; }
6907 if test "$supported" = "yes" ; then
6908 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6927 xorg_testset_save_CFLAGS="$CFLAGS"
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6934 $as_echo_n "(cached) " >&6
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 xorg_cv_cc_flag_unknown_warning_option=yes
6943 xorg_cv_cc_flag_unknown_warning_option=no
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 xorg_cv_cc_flag_unused_command_line_argument=yes
6970 xorg_cv_cc_flag_unused_command_line_argument=no
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6982 if test $found = "no" ; then
6983 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 CFLAGS="$CFLAGS -Werror=init-self"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6994 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6995 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6996 if eval \${$cacheid+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7010 if ac_fn_c_try_link "$LINENO"; then :
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7022 eval supported=\$$cacheid
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024 $as_echo "$supported" >&6; }
7025 if test "$supported" = "yes" ; then
7026 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7045 xorg_testset_save_CFLAGS="$CFLAGS"
7047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7052 $as_echo_n "(cached) " >&6
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059 xorg_cv_cc_flag_unknown_warning_option=yes
7061 xorg_cv_cc_flag_unknown_warning_option=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 xorg_cv_cc_flag_unused_command_line_argument=yes
7088 xorg_cv_cc_flag_unused_command_line_argument=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7095 CFLAGS="$xorg_testset_save_CFLAGS"
7100 if test $found = "no" ; then
7101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 CFLAGS="$CFLAGS -Werror=main"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7112 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7113 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7114 if eval \${$cacheid+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7128 if ac_fn_c_try_link "$LINENO"; then :
7133 rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7140 eval supported=\$$cacheid
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142 $as_echo "$supported" >&6; }
7143 if test "$supported" = "yes" ; then
7144 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7163 xorg_testset_save_CFLAGS="$CFLAGS"
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7170 $as_echo_n "(cached) " >&6
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 xorg_cv_cc_flag_unknown_warning_option=yes
7179 xorg_cv_cc_flag_unknown_warning_option=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 xorg_cv_cc_flag_unused_command_line_argument=yes
7206 xorg_cv_cc_flag_unused_command_line_argument=no
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7213 CFLAGS="$xorg_testset_save_CFLAGS"
7218 if test $found = "no" ; then
7219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227 CFLAGS="$CFLAGS -Werror=missing-braces"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7230 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7231 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7232 if eval \${$cacheid+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7246 if ac_fn_c_try_link "$LINENO"; then :
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7258 eval supported=\$$cacheid
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7260 $as_echo "$supported" >&6; }
7261 if test "$supported" = "yes" ; then
7262 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7281 xorg_testset_save_CFLAGS="$CFLAGS"
7283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 xorg_cv_cc_flag_unknown_warning_option=yes
7297 xorg_cv_cc_flag_unknown_warning_option=no
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7315 $as_echo_n "(cached) " >&6
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7321 if ac_fn_c_try_compile "$LINENO"; then :
7322 xorg_cv_cc_flag_unused_command_line_argument=yes
7324 xorg_cv_cc_flag_unused_command_line_argument=no
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7336 if test $found = "no" ; then
7337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345 CFLAGS="$CFLAGS -Werror=sequence-point"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7348 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7349 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7350 if eval \${$cacheid+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7364 if ac_fn_c_try_link "$LINENO"; then :
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7376 eval supported=\$$cacheid
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378 $as_echo "$supported" >&6; }
7379 if test "$supported" = "yes" ; then
7380 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7399 xorg_testset_save_CFLAGS="$CFLAGS"
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7415 xorg_cv_cc_flag_unknown_warning_option=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 xorg_cv_cc_flag_unused_command_line_argument=yes
7442 xorg_cv_cc_flag_unused_command_line_argument=no
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7454 if test $found = "no" ; then
7455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 CFLAGS="$CFLAGS -Werror=return-type"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7466 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7467 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7468 if eval \${$cacheid+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7482 if ac_fn_c_try_link "$LINENO"; then :
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7494 eval supported=\$$cacheid
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496 $as_echo "$supported" >&6; }
7497 if test "$supported" = "yes" ; then
7498 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7503 if test $found = "no" ; then
7504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7515 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7516 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7517 if eval \${$cacheid+:} false; then :
7518 $as_echo_n "(cached) " >&6
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7531 if ac_fn_c_try_link "$LINENO"; then :
7536 rm -f core conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7543 eval supported=\$$cacheid
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7545 $as_echo "$supported" >&6; }
7546 if test "$supported" = "yes" ; then
7547 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7566 xorg_testset_save_CFLAGS="$CFLAGS"
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 xorg_cv_cc_flag_unknown_warning_option=yes
7582 xorg_cv_cc_flag_unknown_warning_option=no
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7589 CFLAGS="$xorg_testset_save_CFLAGS"
7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 xorg_cv_cc_flag_unused_command_line_argument=yes
7609 xorg_cv_cc_flag_unused_command_line_argument=no
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7616 CFLAGS="$xorg_testset_save_CFLAGS"
7621 if test $found = "no" ; then
7622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630 CFLAGS="$CFLAGS -Werror=trigraphs"
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7633 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7634 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7635 if eval \${$cacheid+:} false; then :
7636 $as_echo_n "(cached) " >&6
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7649 if ac_fn_c_try_link "$LINENO"; then :
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7659 CFLAGS="$xorg_testset_save_CFLAGS"
7661 eval supported=\$$cacheid
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7663 $as_echo "$supported" >&6; }
7664 if test "$supported" = "yes" ; then
7665 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7684 xorg_testset_save_CFLAGS="$CFLAGS"
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7691 $as_echo_n "(cached) " >&6
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 xorg_cv_cc_flag_unknown_warning_option=yes
7700 xorg_cv_cc_flag_unknown_warning_option=no
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7707 CFLAGS="$xorg_testset_save_CFLAGS"
7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725 xorg_cv_cc_flag_unused_command_line_argument=yes
7727 xorg_cv_cc_flag_unused_command_line_argument=no
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7739 if test $found = "no" ; then
7740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748 CFLAGS="$CFLAGS -Werror=array-bounds"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7751 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7752 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7753 if eval \${$cacheid+:} false; then :
7754 $as_echo_n "(cached) " >&6
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7767 if ac_fn_c_try_link "$LINENO"; then :
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7779 eval supported=\$$cacheid
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781 $as_echo "$supported" >&6; }
7782 if test "$supported" = "yes" ; then
7783 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7802 xorg_testset_save_CFLAGS="$CFLAGS"
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 xorg_cv_cc_flag_unknown_warning_option=yes
7818 xorg_cv_cc_flag_unknown_warning_option=no
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7836 $as_echo_n "(cached) " >&6
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7842 if ac_fn_c_try_compile "$LINENO"; then :
7843 xorg_cv_cc_flag_unused_command_line_argument=yes
7845 xorg_cv_cc_flag_unused_command_line_argument=no
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7852 CFLAGS="$xorg_testset_save_CFLAGS"
7857 if test $found = "no" ; then
7858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 CFLAGS="$CFLAGS -Werror=write-strings"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7869 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7871 if eval \${$cacheid+:} false; then :
7872 $as_echo_n "(cached) " >&6
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7885 if ac_fn_c_try_link "$LINENO"; then :
7890 rm -f core conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7897 eval supported=\$$cacheid
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899 $as_echo "$supported" >&6; }
7900 if test "$supported" = "yes" ; then
7901 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 xorg_cv_cc_flag_unknown_warning_option=yes
7936 xorg_cv_cc_flag_unknown_warning_option=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 xorg_cv_cc_flag_unused_command_line_argument=yes
7963 xorg_cv_cc_flag_unused_command_line_argument=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984 CFLAGS="$CFLAGS -Werror=address"
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7987 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7988 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7989 if eval \${$cacheid+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
8003 if ac_fn_c_try_link "$LINENO"; then :
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8015 eval supported=\$$cacheid
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017 $as_echo "$supported" >&6; }
8018 if test "$supported" = "yes" ; then
8019 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8038 xorg_testset_save_CFLAGS="$CFLAGS"
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8054 xorg_cv_cc_flag_unknown_warning_option=no
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072 $as_echo_n "(cached) " >&6
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 xorg_cv_cc_flag_unused_command_line_argument=yes
8081 xorg_cv_cc_flag_unused_command_line_argument=no
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8093 if test $found = "no" ; then
8094 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8105 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8106 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8107 if eval \${$cacheid+:} false; then :
8108 $as_echo_n "(cached) " >&6
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8121 if ac_fn_c_try_link "$LINENO"; then :
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8133 eval supported=\$$cacheid
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 $as_echo "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8154 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8155 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8156 if eval \${$cacheid+:} false; then :
8157 $as_echo_n "(cached) " >&6
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8170 if ac_fn_c_try_link "$LINENO"; then :
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8182 eval supported=\$$cacheid
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8184 $as_echo "$supported" >&6; }
8185 if test "$supported" = "yes" ; then
8186 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8205 xorg_testset_save_CFLAGS="$CFLAGS"
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8212 $as_echo_n "(cached) " >&6
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 xorg_cv_cc_flag_unknown_warning_option=yes
8221 xorg_cv_cc_flag_unknown_warning_option=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8245 if ac_fn_c_try_compile "$LINENO"; then :
8246 xorg_cv_cc_flag_unused_command_line_argument=yes
8248 xorg_cv_cc_flag_unused_command_line_argument=no
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8260 if test $found = "no" ; then
8261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8272 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8273 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8274 if eval \${$cacheid+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8288 if ac_fn_c_try_link "$LINENO"; then :
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8300 eval supported=\$$cacheid
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8302 $as_echo "$supported" >&6; }
8303 if test "$supported" = "yes" ; then
8304 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8309 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8311 { $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
8312 $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;}
8326 xorg_testset_save_CFLAGS="$CFLAGS"
8328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8339 if ac_fn_c_try_compile "$LINENO"; then :
8340 xorg_cv_cc_flag_unknown_warning_option=yes
8342 xorg_cv_cc_flag_unknown_warning_option=no
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8349 CFLAGS="$xorg_testset_save_CFLAGS"
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8360 $as_echo_n "(cached) " >&6
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 xorg_cv_cc_flag_unused_command_line_argument=yes
8369 xorg_cv_cc_flag_unused_command_line_argument=no
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8381 if test $found = "no" ; then
8382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390 CFLAGS="$CFLAGS -Wimplicit"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8393 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8394 cacheid=xorg_cv_cc_flag__Wimplicit
8395 if eval \${$cacheid+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8409 if ac_fn_c_try_link "$LINENO"; then :
8414 rm -f core conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8419 CFLAGS="$xorg_testset_save_CFLAGS"
8421 eval supported=\$$cacheid
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8423 $as_echo "$supported" >&6; }
8424 if test "$supported" = "yes" ; then
8425 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8444 xorg_testset_save_CFLAGS="$CFLAGS"
8446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 xorg_cv_cc_flag_unknown_warning_option=yes
8460 xorg_cv_cc_flag_unknown_warning_option=no
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8478 $as_echo_n "(cached) " >&6
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 xorg_cv_cc_flag_unused_command_line_argument=yes
8487 xorg_cv_cc_flag_unused_command_line_argument=no
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8499 if test $found = "no" ; then
8500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508 CFLAGS="$CFLAGS -Wnonnull"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8511 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8512 cacheid=xorg_cv_cc_flag__Wnonnull
8513 if eval \${$cacheid+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8527 if ac_fn_c_try_link "$LINENO"; then :
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8537 CFLAGS="$xorg_testset_save_CFLAGS"
8539 eval supported=\$$cacheid
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8541 $as_echo "$supported" >&6; }
8542 if test "$supported" = "yes" ; then
8543 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8562 xorg_testset_save_CFLAGS="$CFLAGS"
8564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8569 $as_echo_n "(cached) " >&6
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8575 if ac_fn_c_try_compile "$LINENO"; then :
8576 xorg_cv_cc_flag_unknown_warning_option=yes
8578 xorg_cv_cc_flag_unknown_warning_option=no
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8585 CFLAGS="$xorg_testset_save_CFLAGS"
8588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8596 $as_echo_n "(cached) " >&6
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8602 if ac_fn_c_try_compile "$LINENO"; then :
8603 xorg_cv_cc_flag_unused_command_line_argument=yes
8605 xorg_cv_cc_flag_unused_command_line_argument=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8612 CFLAGS="$xorg_testset_save_CFLAGS"
8617 if test $found = "no" ; then
8618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626 CFLAGS="$CFLAGS -Winit-self"
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8629 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8630 cacheid=xorg_cv_cc_flag__Winit_self
8631 if eval \${$cacheid+:} false; then :
8632 $as_echo_n "(cached) " >&6
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8645 if ac_fn_c_try_link "$LINENO"; then :
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8657 eval supported=\$$cacheid
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8659 $as_echo "$supported" >&6; }
8660 if test "$supported" = "yes" ; then
8661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8680 xorg_testset_save_CFLAGS="$CFLAGS"
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 xorg_cv_cc_flag_unknown_warning_option=yes
8696 xorg_cv_cc_flag_unknown_warning_option=no
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 xorg_cv_cc_flag_unused_command_line_argument=yes
8723 xorg_cv_cc_flag_unused_command_line_argument=no
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8735 if test $found = "no" ; then
8736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744 CFLAGS="$CFLAGS -Wmain"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8747 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8748 cacheid=xorg_cv_cc_flag__Wmain
8749 if eval \${$cacheid+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8763 if ac_fn_c_try_link "$LINENO"; then :
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8773 CFLAGS="$xorg_testset_save_CFLAGS"
8775 eval supported=\$$cacheid
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8777 $as_echo "$supported" >&6; }
8778 if test "$supported" = "yes" ; then
8779 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8798 xorg_testset_save_CFLAGS="$CFLAGS"
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 xorg_cv_cc_flag_unknown_warning_option=yes
8814 xorg_cv_cc_flag_unknown_warning_option=no
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8832 $as_echo_n "(cached) " >&6
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 xorg_cv_cc_flag_unused_command_line_argument=yes
8841 xorg_cv_cc_flag_unused_command_line_argument=no
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8848 CFLAGS="$xorg_testset_save_CFLAGS"
8853 if test $found = "no" ; then
8854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862 CFLAGS="$CFLAGS -Wmissing-braces"
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8865 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8866 cacheid=xorg_cv_cc_flag__Wmissing_braces
8867 if eval \${$cacheid+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8881 if ac_fn_c_try_link "$LINENO"; then :
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8893 eval supported=\$$cacheid
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895 $as_echo "$supported" >&6; }
8896 if test "$supported" = "yes" ; then
8897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8916 xorg_testset_save_CFLAGS="$CFLAGS"
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8923 $as_echo_n "(cached) " >&6
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 xorg_cv_cc_flag_unknown_warning_option=yes
8932 xorg_cv_cc_flag_unknown_warning_option=no
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8950 $as_echo_n "(cached) " >&6
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 xorg_cv_cc_flag_unused_command_line_argument=yes
8959 xorg_cv_cc_flag_unused_command_line_argument=no
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8966 CFLAGS="$xorg_testset_save_CFLAGS"
8971 if test $found = "no" ; then
8972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980 CFLAGS="$CFLAGS -Wsequence-point"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8983 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8984 cacheid=xorg_cv_cc_flag__Wsequence_point
8985 if eval \${$cacheid+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8999 if ac_fn_c_try_link "$LINENO"; then :
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9011 eval supported=\$$cacheid
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9013 $as_echo "$supported" >&6; }
9014 if test "$supported" = "yes" ; then
9015 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9034 xorg_testset_save_CFLAGS="$CFLAGS"
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 xorg_cv_cc_flag_unknown_warning_option=yes
9050 xorg_cv_cc_flag_unknown_warning_option=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9074 if ac_fn_c_try_compile "$LINENO"; then :
9075 xorg_cv_cc_flag_unused_command_line_argument=yes
9077 xorg_cv_cc_flag_unused_command_line_argument=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084 CFLAGS="$xorg_testset_save_CFLAGS"
9089 if test $found = "no" ; then
9090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9098 CFLAGS="$CFLAGS -Wreturn-type"
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9101 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9102 cacheid=xorg_cv_cc_flag__Wreturn_type
9103 if eval \${$cacheid+:} false; then :
9104 $as_echo_n "(cached) " >&6
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9117 if ac_fn_c_try_link "$LINENO"; then :
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9129 eval supported=\$$cacheid
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131 $as_echo "$supported" >&6; }
9132 if test "$supported" = "yes" ; then
9133 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9152 xorg_testset_save_CFLAGS="$CFLAGS"
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 xorg_cv_cc_flag_unknown_warning_option=yes
9168 xorg_cv_cc_flag_unknown_warning_option=no
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9186 $as_echo_n "(cached) " >&6
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 xorg_cv_cc_flag_unused_command_line_argument=yes
9195 xorg_cv_cc_flag_unused_command_line_argument=no
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9207 if test $found = "no" ; then
9208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216 CFLAGS="$CFLAGS -Wtrigraphs"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9219 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9220 cacheid=xorg_cv_cc_flag__Wtrigraphs
9221 if eval \${$cacheid+:} false; then :
9222 $as_echo_n "(cached) " >&6
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9235 if ac_fn_c_try_link "$LINENO"; then :
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9247 eval supported=\$$cacheid
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249 $as_echo "$supported" >&6; }
9250 if test "$supported" = "yes" ; then
9251 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9270 xorg_testset_save_CFLAGS="$CFLAGS"
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9277 $as_echo_n "(cached) " >&6
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284 xorg_cv_cc_flag_unknown_warning_option=yes
9286 xorg_cv_cc_flag_unknown_warning_option=no
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9304 $as_echo_n "(cached) " >&6
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unused_command_line_argument=yes
9313 xorg_cv_cc_flag_unused_command_line_argument=no
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9325 if test $found = "no" ; then
9326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334 CFLAGS="$CFLAGS -Warray-bounds"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9337 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9338 cacheid=xorg_cv_cc_flag__Warray_bounds
9339 if eval \${$cacheid+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9353 if ac_fn_c_try_link "$LINENO"; then :
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9365 eval supported=\$$cacheid
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367 $as_echo "$supported" >&6; }
9368 if test "$supported" = "yes" ; then
9369 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9388 xorg_testset_save_CFLAGS="$CFLAGS"
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9395 $as_echo_n "(cached) " >&6
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402 xorg_cv_cc_flag_unknown_warning_option=yes
9404 xorg_cv_cc_flag_unknown_warning_option=no
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 xorg_cv_cc_flag_unused_command_line_argument=yes
9431 xorg_cv_cc_flag_unused_command_line_argument=no
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9438 CFLAGS="$xorg_testset_save_CFLAGS"
9443 if test $found = "no" ; then
9444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452 CFLAGS="$CFLAGS -Wwrite-strings"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9455 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9456 cacheid=xorg_cv_cc_flag__Wwrite_strings
9457 if eval \${$cacheid+:} false; then :
9458 $as_echo_n "(cached) " >&6
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9471 if ac_fn_c_try_link "$LINENO"; then :
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9483 eval supported=\$$cacheid
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485 $as_echo "$supported" >&6; }
9486 if test "$supported" = "yes" ; then
9487 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9506 xorg_testset_save_CFLAGS="$CFLAGS"
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9513 $as_echo_n "(cached) " >&6
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520 xorg_cv_cc_flag_unknown_warning_option=yes
9522 xorg_cv_cc_flag_unknown_warning_option=no
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9540 $as_echo_n "(cached) " >&6
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 xorg_cv_cc_flag_unused_command_line_argument=yes
9549 xorg_cv_cc_flag_unused_command_line_argument=no
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556 CFLAGS="$xorg_testset_save_CFLAGS"
9561 if test $found = "no" ; then
9562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570 CFLAGS="$CFLAGS -Waddress"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9573 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9574 cacheid=xorg_cv_cc_flag__Waddress
9575 if eval \${$cacheid+:} false; then :
9576 $as_echo_n "(cached) " >&6
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9589 if ac_fn_c_try_link "$LINENO"; then :
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9601 eval supported=\$$cacheid
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603 $as_echo "$supported" >&6; }
9604 if test "$supported" = "yes" ; then
9605 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9624 xorg_testset_save_CFLAGS="$CFLAGS"
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9631 $as_echo_n "(cached) " >&6
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638 xorg_cv_cc_flag_unknown_warning_option=yes
9640 xorg_cv_cc_flag_unknown_warning_option=no
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9658 $as_echo_n "(cached) " >&6
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 xorg_cv_cc_flag_unused_command_line_argument=yes
9667 xorg_cv_cc_flag_unused_command_line_argument=no
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9679 if test $found = "no" ; then
9680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9691 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9692 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9693 if eval \${$cacheid+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9707 if ac_fn_c_try_link "$LINENO"; then :
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9719 eval supported=\$$cacheid
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721 $as_echo "$supported" >&6; }
9722 if test "$supported" = "yes" ; then
9723 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9742 xorg_testset_save_CFLAGS="$CFLAGS"
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9749 $as_echo_n "(cached) " >&6
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 xorg_cv_cc_flag_unknown_warning_option=yes
9758 xorg_cv_cc_flag_unknown_warning_option=no
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9776 $as_echo_n "(cached) " >&6
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 xorg_cv_cc_flag_unused_command_line_argument=yes
9785 xorg_cv_cc_flag_unused_command_line_argument=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9797 if test $found = "no" ; then
9798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9809 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9810 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9811 if eval \${$cacheid+:} false; then :
9812 $as_echo_n "(cached) " >&6
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9825 if ac_fn_c_try_link "$LINENO"; then :
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9837 eval supported=\$$cacheid
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839 $as_echo "$supported" >&6; }
9840 if test "$supported" = "yes" ; then
9841 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9855 CWARNFLAGS="$BASE_CFLAGS"
9856 if test "x$GCC" = xyes ; then
9857 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9867 # Check whether --enable-strict-compilation was given.
9868 if test "${enable_strict_compilation+set}" = set; then :
9869 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9893 xorg_testset_save_CFLAGS="$CFLAGS"
9895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9900 $as_echo_n "(cached) " >&6
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9906 if ac_fn_c_try_compile "$LINENO"; then :
9907 xorg_cv_cc_flag_unknown_warning_option=yes
9909 xorg_cv_cc_flag_unknown_warning_option=no
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9927 $as_echo_n "(cached) " >&6
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9933 if ac_fn_c_try_compile "$LINENO"; then :
9934 xorg_cv_cc_flag_unused_command_line_argument=yes
9936 xorg_cv_cc_flag_unused_command_line_argument=no
9938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9943 CFLAGS="$xorg_testset_save_CFLAGS"
9948 if test $found = "no" ; then
9949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957 CFLAGS="$CFLAGS -pedantic"
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9960 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9961 cacheid=xorg_cv_cc_flag__pedantic
9962 if eval \${$cacheid+:} false; then :
9963 $as_echo_n "(cached) " >&6
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9976 if ac_fn_c_try_link "$LINENO"; then :
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9986 CFLAGS="$xorg_testset_save_CFLAGS"
9988 eval supported=\$$cacheid
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9990 $as_echo "$supported" >&6; }
9991 if test "$supported" = "yes" ; then
9992 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10011 xorg_testset_save_CFLAGS="$CFLAGS"
10013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10018 $as_echo_n "(cached) " >&6
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 xorg_cv_cc_flag_unknown_warning_option=yes
10027 xorg_cv_cc_flag_unknown_warning_option=no
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10034 CFLAGS="$xorg_testset_save_CFLAGS"
10037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10045 $as_echo_n "(cached) " >&6
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10051 if ac_fn_c_try_compile "$LINENO"; then :
10052 xorg_cv_cc_flag_unused_command_line_argument=yes
10054 xorg_cv_cc_flag_unused_command_line_argument=no
10056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10061 CFLAGS="$xorg_testset_save_CFLAGS"
10066 if test $found = "no" ; then
10067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075 CFLAGS="$CFLAGS -Werror"
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10078 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10079 cacheid=xorg_cv_cc_flag__Werror
10080 if eval \${$cacheid+:} false; then :
10081 $as_echo_n "(cached) " >&6
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10094 if ac_fn_c_try_link "$LINENO"; then :
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10106 eval supported=\$$cacheid
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10108 $as_echo "$supported" >&6; }
10109 if test "$supported" = "yes" ; then
10110 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10115 if test $found = "no" ; then
10116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124 CFLAGS="$CFLAGS -errwarn"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10127 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10128 cacheid=xorg_cv_cc_flag__errwarn
10129 if eval \${$cacheid+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10143 if ac_fn_c_try_link "$LINENO"; then :
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10153 CFLAGS="$xorg_testset_save_CFLAGS"
10155 eval supported=\$$cacheid
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10157 $as_echo "$supported" >&6; }
10158 if test "$supported" = "yes" ; then
10159 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10166 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10167 # activate it with -Werror, so we add it here explicitly.
10181 xorg_testset_save_CFLAGS="$CFLAGS"
10183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10188 $as_echo_n "(cached) " >&6
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10194 if ac_fn_c_try_compile "$LINENO"; then :
10195 xorg_cv_cc_flag_unknown_warning_option=yes
10197 xorg_cv_cc_flag_unknown_warning_option=no
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10204 CFLAGS="$xorg_testset_save_CFLAGS"
10207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10215 $as_echo_n "(cached) " >&6
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222 xorg_cv_cc_flag_unused_command_line_argument=yes
10224 xorg_cv_cc_flag_unused_command_line_argument=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10231 CFLAGS="$xorg_testset_save_CFLAGS"
10236 if test $found = "no" ; then
10237 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 CFLAGS="$CFLAGS -Werror=attributes"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10248 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10249 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10250 if eval \${$cacheid+:} false; then :
10251 $as_echo_n "(cached) " >&6
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10264 if ac_fn_c_try_link "$LINENO"; then :
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10276 eval supported=\$$cacheid
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10278 $as_echo "$supported" >&6; }
10279 if test "$supported" = "yes" ; then
10280 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10287 if test "x$STRICT_COMPILE" = "xyes"; then
10288 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10289 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10297 cat >>confdefs.h <<_ACEOF
10298 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10301 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10302 if test "x$PVM" = "x"; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define PACKAGE_VERSION_MINOR $PVM
10310 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10311 if test "x$PVP" = "x"; then
10315 cat >>confdefs.h <<_ACEOF
10316 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10321 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10322 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10323 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10324 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10329 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10330 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10331 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10332 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10333 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10340 if test x$APP_MAN_SUFFIX = x ; then
10343 if test x$APP_MAN_DIR = x ; then
10344 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10347 if test x$LIB_MAN_SUFFIX = x ; then
10350 if test x$LIB_MAN_DIR = x ; then
10351 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10354 if test x$FILE_MAN_SUFFIX = x ; then
10356 solaris*) FILE_MAN_SUFFIX=4 ;;
10357 *) FILE_MAN_SUFFIX=5 ;;
10360 if test x$FILE_MAN_DIR = x ; then
10361 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10364 if test x$MISC_MAN_SUFFIX = x ; then
10366 solaris*) MISC_MAN_SUFFIX=5 ;;
10367 *) MISC_MAN_SUFFIX=7 ;;
10370 if test x$MISC_MAN_DIR = x ; then
10371 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10374 if test x$DRIVER_MAN_SUFFIX = x ; then
10376 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10377 *) DRIVER_MAN_SUFFIX=4 ;;
10380 if test x$DRIVER_MAN_DIR = x ; then
10381 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10384 if test x$ADMIN_MAN_SUFFIX = x ; then
10386 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10387 *) ADMIN_MAN_SUFFIX=8 ;;
10390 if test x$ADMIN_MAN_DIR = x ; then
10391 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10408 XORG_MAN_PAGE="X Version 11"
10411 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10412 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10413 -e 's|__xservername__|Xorg|g' \
10414 -e 's|__xconfigfile__|xorg.conf|g' \
10415 -e 's|__projectroot__|\$(prefix)|g' \
10416 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10417 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10418 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10419 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10420 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10421 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10422 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10426 # Check whether --enable-silent-rules was given.
10427 if test "${enable_silent_rules+set}" = set; then :
10428 enableval=$enable_silent_rules;
10431 case $enable_silent_rules in
10432 yes) AM_DEFAULT_VERBOSITY=0;;
10433 no) AM_DEFAULT_VERBOSITY=1;;
10434 *) AM_DEFAULT_VERBOSITY=0;;
10440 ac_config_headers="$ac_config_headers config.h"
10443 # If both the C file and YACC are missing, the package cannot be build.
10444 for ac_prog in 'bison -y' byacc
10446 # Extract the first word of "$ac_prog", so it can be a program name with args.
10447 set dummy $ac_prog; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_prog_YACC+:} false; then :
10451 $as_echo_n "(cached) " >&6
10453 if test -n "$YACC"; then
10454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463 ac_cv_prog_YACC="$ac_prog"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 YACC=$ac_cv_prog_YACC
10474 if test -n "$YACC"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10476 $as_echo "$YACC" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10483 test -n "$YACC" && break
10485 test -n "$YACC" || YACC="yacc"
10487 # Extract the first word of "$YACC", so it can be a program name with args.
10488 set dummy $YACC; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_path_YACC_INST+:} false; then :
10492 $as_echo_n "(cached) " >&6
10496 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 YACC_INST=$ac_cv_path_YACC_INST
10518 if test -n "$YACC_INST"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10520 $as_echo "$YACC_INST" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10527 if test ! -f "$srcdir/xkbparse.c"; then
10528 if test -z "$YACC_INST"; then
10529 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
10533 for ac_func in strdup strcasecmp
10535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10538 cat >>confdefs.h <<_ACEOF
10539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10546 REQUIRED_MODULES="x11 xkbfile xproto >= 7.0.17"
10548 # Checks for pkg-config packages
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5
10552 $as_echo_n "checking for XKBCOMP... " >&6; }
10554 if test -n "$XKBCOMP_CFLAGS"; then
10555 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
10556 elif test -n "$PKG_CONFIG"; then
10557 if test -n "$PKG_CONFIG" && \
10558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
10559 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
10561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562 test $ac_status = 0; }; then
10563 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES" 2>/dev/null`
10570 if test -n "$XKBCOMP_LIBS"; then
10571 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
10572 elif test -n "$PKG_CONFIG"; then
10573 if test -n "$PKG_CONFIG" && \
10574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
10575 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
10577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578 test $ac_status = 0; }; then
10579 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES" 2>/dev/null`
10589 if test $pkg_failed = yes; then
10591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10592 _pkg_short_errors_supported=yes
10594 _pkg_short_errors_supported=no
10596 if test $_pkg_short_errors_supported = yes; then
10597 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES" 2>&1`
10599 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES" 2>&1`
10601 # Put the nasty error message in config.log where it belongs
10602 echo "$XKBCOMP_PKG_ERRORS" >&5
10604 as_fn_error $? "Package requirements ($REQUIRED_MODULES) were not met:
10606 $XKBCOMP_PKG_ERRORS
10608 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10609 installed software in a non-standard prefix.
10611 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
10612 and XKBCOMP_LIBS to avoid the need to call pkg-config.
10613 See the pkg-config man page for more details.
10615 elif test $pkg_failed = untried; then
10616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10618 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10619 is in your PATH or set the PKG_CONFIG environment variable to the full
10620 path to pkg-config.
10622 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
10623 and XKBCOMP_LIBS to avoid the need to call pkg-config.
10624 See the pkg-config man page for more details.
10626 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10627 See \`config.log' for more details" "$LINENO" 5; }
10629 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
10630 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; }
10638 # Check whether --with-xkb_config_root was given.
10639 if test "${with_xkb_config_root+set}" = set; then :
10640 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
10642 XKBCONFIGROOT='${datadir}/X11/xkb'
10648 ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc"
10650 cat >confcache <<\_ACEOF
10651 # This file is a shell script that caches the results of configure
10652 # tests run on this system so they can be shared between configure
10653 # scripts and configure runs, see configure's option --config-cache.
10654 # It is not useful on other systems. If it contains results you don't
10655 # want to keep, you may remove or edit it.
10657 # config.status only pays attention to the cache file if you give it
10658 # the --recheck option to rerun configure.
10660 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10661 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10662 # following values.
10666 # The following way of writing the cache mishandles newlines in values,
10667 # but we know of no workaround that is simple, portable, and efficient.
10668 # So, we kill variables containing newlines.
10669 # Ultrix sh set writes to stderr and can't be redirected directly,
10670 # and sets the high bit in the cache file unless we assign to the vars.
10672 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10673 eval ac_val=\$$ac_var
10677 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10678 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10681 _ | IFS | as_nl) ;; #(
10682 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10683 *) { eval $ac_var=; unset $ac_var;} ;;
10689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10690 *${as_nl}ac_space=\ *)
10691 # `set' does not quote correctly, so add quotes: double-quote
10692 # substitution turns \\\\ into \\, and sed turns \\ into \.
10695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10698 # `set' quotes correctly as required by POSIX, so do not add quotes.
10699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10712 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10713 if test -w "$cache_file"; then
10714 if test "x$cache_file" != "x/dev/null"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10716 $as_echo "$as_me: updating cache $cache_file" >&6;}
10717 if test ! -f "$cache_file" || test -h "$cache_file"; then
10718 cat confcache >"$cache_file"
10720 case $cache_file in #(
10722 mv -f confcache "$cache_file"$$ &&
10723 mv -f "$cache_file"$$ "$cache_file" ;; #(
10725 mv -f confcache "$cache_file" ;;
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10731 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10737 # Let make expand exec_prefix.
10738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10740 DEFS=-DHAVE_CONFIG_H
10745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10746 # 1. Remove the extension, and $U if already installed.
10747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10750 # will be set to the directory where LIBOBJS objects are built.
10751 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10752 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10754 LIBOBJS=$ac_libobjs
10756 LTLIBOBJS=$ac_ltlibobjs
10759 if test -n "$EXEEXT"; then
10761 am__EXEEXT_FALSE='#'
10763 am__EXEEXT_TRUE='#'
10767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10768 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10772 as_fn_error $? "conditional \"AMDEP\" was never defined.
10773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10780 : "${CONFIG_STATUS=./config.status}"
10782 ac_clean_files_save=$ac_clean_files
10783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10785 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10787 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10789 # Generated by $as_me.
10790 # Run this file to recreate the current configuration.
10791 # Compiler output produced by configure, useful for debugging
10792 # configure, is in config.log if it exists.
10795 ac_cs_recheck=false
10798 SHELL=\${CONFIG_SHELL-$SHELL}
10801 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10802 ## -------------------- ##
10803 ## M4sh Initialization. ##
10804 ## -------------------- ##
10806 # Be more Bourne compatible
10807 DUALCASE=1; export DUALCASE # for MKS sh
10808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10811 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10812 # is contrary to our usage. Disable this feature.
10813 alias -g '${1+"$@"}'='"$@"'
10814 setopt NO_GLOB_SUBST
10816 case `(set -o) 2>/dev/null` in #(
10828 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10829 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10832 # Prefer a ksh shell builtin over an external printf program on Solaris,
10833 # but without wasting forks for bash or zsh.
10834 if test -z "$BASH_VERSION$ZSH_VERSION" \
10835 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10836 as_echo='print -r --'
10837 as_echo_n='print -rn --'
10838 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10839 as_echo='printf %s\n'
10840 as_echo_n='printf %s'
10842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10844 as_echo_n='/usr/ucb/echo -n'
10846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10847 as_echo_n_body='eval
10851 expr "X$arg" : "X\\(.*\\)$as_nl";
10852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10856 export as_echo_n_body
10857 as_echo_n='sh -c $as_echo_n_body as_echo'
10859 export as_echo_body
10860 as_echo='sh -c $as_echo_body as_echo'
10863 # The user is always right.
10864 if test "${PATH_SEPARATOR+set}" != set; then
10866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10874 # We need space, tab and new line, in precisely that order. Quoting is
10875 # there to prevent editors from complaining about space-tab.
10876 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10877 # splitting by setting IFS to empty value.)
10880 # Find who we are. Look in the path if we contain no directory separator.
10883 *[\\/]* ) as_myself=$0 ;;
10884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10888 test -z "$as_dir" && as_dir=.
10889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10895 # We did not find ourselves, most probably we were run as `sh COMMAND'
10896 # in which case we are not to be found in the path.
10897 if test "x$as_myself" = x; then
10900 if test ! -f "$as_myself"; then
10901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10905 # Unset variables that we do not need and which cause bugs (e.g. in
10906 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10907 # suppresses any "Segmentation fault" message there. '((' could
10908 # trigger a bug in pdksh 5.2.14.
10909 for as_var in BASH_ENV ENV MAIL MAILPATH
10910 do eval test x\${$as_var+set} = xset \
10911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10928 # ----------------------------------------
10929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10931 # script with STATUS, using 1 if that was 0.
10934 as_status=$1; test $as_status -eq 0 && as_status=1
10936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10939 $as_echo "$as_me: error: $2" >&2
10940 as_fn_exit $as_status
10944 # as_fn_set_status STATUS
10945 # -----------------------
10946 # Set $? to STATUS, without forking.
10947 as_fn_set_status ()
10950 } # as_fn_set_status
10952 # as_fn_exit STATUS
10953 # -----------------
10954 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10958 as_fn_set_status $1
10964 # Portably unset VAR.
10967 { eval $1=; unset $1;}
10969 as_unset=as_fn_unset
10970 # as_fn_append VAR VALUE
10971 # ----------------------
10972 # Append the text in VALUE to the end of the definition contained in VAR. Take
10973 # advantage of any shell optimizations that allow amortized linear growth over
10974 # repeated appends, instead of the typical quadratic growth present in naive
10976 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10977 eval 'as_fn_append ()
10988 # as_fn_arith ARG...
10989 # ------------------
10990 # Perform arithmetic evaluation on the ARGs, and store the result in the
10991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10992 # must be portable across $(()) and expr.
10993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10994 eval 'as_fn_arith ()
11001 as_val=`expr "$@" || test $? -eq 1`
11006 if expr a : '\(a\)' >/dev/null 2>&1 &&
11007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11014 as_basename=basename
11019 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11025 as_me=`$as_basename -- "$0" ||
11026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11027 X"$0" : 'X\(//\)$' \| \
11028 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11030 sed '/^.*\/\([^/][^/]*\)\/*$/{
11044 # Avoid depending upon Character Ranges.
11045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11048 as_cr_digits='0123456789'
11049 as_cr_alnum=$as_cr_Letters$as_cr_digits
11051 ECHO_C= ECHO_N= ECHO_T=
11052 case `echo -n x` in #(((((
11054 case `echo 'xy\c'` in
11055 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11064 rm -f conf$$ conf$$.exe conf$$.file
11065 if test -d conf$$.dir; then
11066 rm -f conf$$.dir/conf$$.file
11069 mkdir conf$$.dir 2>/dev/null
11071 if (echo >conf$$.file) 2>/dev/null; then
11072 if ln -s conf$$.file conf$$ 2>/dev/null; then
11074 # ... but there are two gotchas:
11075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11077 # In both cases, we have to default to `cp -p'.
11078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11080 elif ln conf$$.file conf$$ 2>/dev/null; then
11088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11089 rmdir conf$$.dir 2>/dev/null
11094 # Create "$as_dir" as a directory, including parents if necessary.
11099 -*) as_dir=./$as_dir;;
11101 test -d "$as_dir" || eval $as_mkdir_p || {
11105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11106 *) as_qdir=$as_dir;;
11108 as_dirs="'$as_qdir' $as_dirs"
11109 as_dir=`$as_dirname -- "$as_dir" ||
11110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11111 X"$as_dir" : 'X\(//\)[^/]' \| \
11112 X"$as_dir" : 'X\(//\)$' \| \
11113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11114 $as_echo X"$as_dir" |
11115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11119 /^X\(\/\/\)[^/].*/{
11132 test -d "$as_dir" && break
11134 test -z "$as_dirs" || eval "mkdir $as_dirs"
11135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11139 if mkdir -p . 2>/dev/null; then
11140 as_mkdir_p='mkdir -p "$as_dir"'
11142 test -d ./-p && rmdir ./-p
11146 if test -x / >/dev/null 2>&1; then
11147 as_test_x='test -x'
11149 if ls -dL / >/dev/null 2>&1; then
11156 if test -d "$1"; then
11162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11163 ???[sx]*):;;*)false;;esac;fi
11167 as_executable_p=$as_test_x
11169 # Sed expression to map a string onto a valid CPP name.
11170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11172 # Sed expression to map a string onto a valid variable name.
11173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11177 ## ----------------------------------- ##
11178 ## Main body of $CONFIG_STATUS script. ##
11179 ## ----------------------------------- ##
11181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11184 # Save the log message, to keep $0 and so on meaningful, and to
11185 # report actual input values of CONFIG_FILES etc. instead of their
11186 # values after options handling.
11188 This file was extended by xkbcomp $as_me 1.2.4, which was
11189 generated by GNU Autoconf 2.68. Invocation command line was
11191 CONFIG_FILES = $CONFIG_FILES
11192 CONFIG_HEADERS = $CONFIG_HEADERS
11193 CONFIG_LINKS = $CONFIG_LINKS
11194 CONFIG_COMMANDS = $CONFIG_COMMANDS
11197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11202 case $ac_config_files in *"
11203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11206 case $ac_config_headers in *"
11207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11212 # Files that config.status was made for.
11213 config_files="$ac_config_files"
11214 config_headers="$ac_config_headers"
11215 config_commands="$ac_config_commands"
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11221 \`$as_me' instantiates files and other configuration actions
11222 from templates according to the current configuration. Unless the files
11223 and actions are specified as TAGs, all are instantiated by default.
11225 Usage: $0 [OPTION]... [TAG]...
11227 -h, --help print this help, then exit
11228 -V, --version print version number and configuration settings, then exit
11229 --config print configuration, then exit
11230 -q, --quiet, --silent
11231 do not print progress messages
11232 -d, --debug don't remove temporary files
11233 --recheck update $as_me by reconfiguring in the same conditions
11234 --file=FILE[:TEMPLATE]
11235 instantiate the configuration file FILE
11236 --header=FILE[:TEMPLATE]
11237 instantiate the configuration header FILE
11239 Configuration files:
11242 Configuration headers:
11245 Configuration commands:
11248 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11254 xkbcomp config.status 1.2.4
11255 configured by $0, generated by GNU Autoconf 2.68,
11256 with options \\"\$ac_cs_config\\"
11258 Copyright (C) 2010 Free Software Foundation, Inc.
11259 This config.status script is free software; the Free Software Foundation
11260 gives unlimited permission to copy, distribute and modify it."
11267 test -n "\$AWK" || AWK=awk
11270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11271 # The default lists apply if the user does not specify any file.
11277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11294 # Handling of the options.
11295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11298 $as_echo "$ac_cs_version"; exit ;;
11299 --config | --confi | --conf | --con | --co | --c )
11300 $as_echo "$ac_cs_config"; exit ;;
11301 --debug | --debu | --deb | --de | --d | -d )
11303 --file | --fil | --fi | --f )
11306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11307 '') as_fn_error $? "missing file argument" ;;
11309 as_fn_append CONFIG_FILES " '$ac_optarg'"
11310 ac_need_defaults=false;;
11311 --header | --heade | --head | --hea )
11314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11317 ac_need_defaults=false;;
11319 # Conflict between --help and --header
11320 as_fn_error $? "ambiguous option: \`$1'
11321 Try \`$0 --help' for more information.";;
11322 --help | --hel | -h )
11323 $as_echo "$ac_cs_usage"; exit ;;
11324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11328 # This is an error.
11329 -*) as_fn_error $? "unrecognized option: \`$1'
11330 Try \`$0 --help' for more information." ;;
11332 *) as_fn_append ac_config_targets " $1"
11333 ac_need_defaults=false ;;
11339 ac_configure_extra_args=
11341 if $ac_cs_silent; then
11343 ac_configure_extra_args="$ac_configure_extra_args --silent"
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11348 if \$ac_cs_recheck; then
11349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11352 CONFIG_SHELL='$SHELL'
11353 export CONFIG_SHELL
11358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11363 ## Running $as_me. ##
11369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11379 # Handling of arguments.
11380 for ac_config_target in $ac_config_targets
11382 case $ac_config_target in
11383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11384 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11386 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11387 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;;
11389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11394 # If the user did not use the arguments to specify the items to instantiate,
11395 # then the envvar interface is used. Set only those that are not.
11396 # We use the long form for the default assignment because of an extremely
11397 # bizarre bug on SunOS 4.1.3.
11398 if $ac_need_defaults; then
11399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11404 # Have a temporary directory for convenience. Make it in the build tree
11405 # simply because there is no reason against having it here, and in addition,
11406 # creating and moving files from /tmp can sometimes cause problems.
11407 # Hook for its removal unless debugging.
11408 # Note that there is a small window in which the directory will not be cleaned:
11409 # after its creation but before its name has been assigned to `$tmp'.
11413 trap 'exit_status=$?
11414 : "${ac_tmp:=$tmp}"
11415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11417 trap 'as_fn_exit 1' 1 2 13 15
11419 # Create a (secure) tmp directory for tmp files.
11422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11426 tmp=./conf$$-$RANDOM
11427 (umask 077 && mkdir "$tmp")
11428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11431 # Set up the scripts for CONFIG_FILES section.
11432 # No need to generate them if there are no CONFIG_FILES.
11433 # This happens for instance with `./config.status config.h'.
11434 if test -n "$CONFIG_FILES"; then
11437 ac_cr=`echo X | tr X '\015'`
11438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11439 # But we know of no other shell where ac_cr would be empty at this
11440 # point, so we can use a bashism as a fallback.
11441 if test "x$ac_cr" = x; then
11442 eval ac_cr=\$\'\\r\'
11444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11448 ac_cs_awk_cr=$ac_cr
11451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11456 echo "cat >conf$$subs.awk <<_ACEOF" &&
11457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11459 } >conf$$subs.sh ||
11460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11463 for ac_last_try in false false false false false :; do
11464 . ./conf$$subs.sh ||
11465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11468 if test $ac_delim_n = $ac_delim_num; then
11470 elif $ac_last_try; then
11471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11476 rm -f conf$$subs.sh
11478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11483 s/^/S["/; s/!.*/"]=/
11493 s/\(.\{148\}\)..*/\1/
11495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11507 s/\(.\{148\}\)..*/\1/
11509 s/["\\]/\\&/g; s/^/"/; s/$/"/
11513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11518 ' <conf$$subs.awk | sed '
11523 ' >>$CONFIG_STATUS || ac_write_fail=1
11524 rm -f conf$$subs.awk
11525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11528 for (key in S) S_is_set[key] = 1
11534 nfields = split(line, field, "@")
11536 len = length(field[1])
11537 for (i = 2; i < nfields; i++) {
11539 keylen = length(key)
11540 if (S_is_set[key]) {
11542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11543 len += length(value) + length(field[++i])
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11565 # trailing colons and then remove the whole line if VPATH becomes empty
11566 # (actually we leave an empty line to preserve line numbers).
11567 if test "x$srcdir" = x.; then
11568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11587 fi # test -n "$CONFIG_FILES"
11589 # Set up the scripts for CONFIG_HEADERS section.
11590 # No need to generate them if there are no CONFIG_HEADERS.
11591 # This happens for instance with `./config.status Makefile'.
11592 if test -n "$CONFIG_HEADERS"; then
11593 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11597 # Transform confdefs.h into an awk script `defines.awk', embedded as
11598 # here-document in config.status, that substitutes the proper values into
11599 # config.h.in to produce config.h.
11601 # Create a delimiter string that does not exist in confdefs.h, to ease
11602 # handling of long lines.
11604 for ac_last_try in false false :; do
11605 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11606 if test -z "$ac_tt"; then
11608 elif $ac_last_try; then
11609 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11615 # For the awk script, D is an array of macro values keyed by name,
11616 # likewise P contains macro parameters if any. Preserve backslash
11617 # newline sequences.
11619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11621 s/.\{148\}/&'"$ac_delim"'/g
11624 s/^[ ]*#[ ]*define[ ][ ]*/ /
11631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11638 D["\1"]=" \3\\\\\\n"\\/p
11640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11645 s/.\{148\}/&'"$ac_delim"'/g
11650 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11653 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11655 ' <confdefs.h | sed '
11656 s/'"$ac_delim"'/"\\\
11657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660 for (key in D) D_is_set[key] = 1
11663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11665 split(line, arg, " ")
11666 if (arg[1] == "#") {
11670 defundef = substr(arg[1], 2)
11673 split(mac1, mac2, "(") #)
11675 prefix = substr(line, 1, index(line, defundef) - 1)
11676 if (D_is_set[macro]) {
11677 # Preserve the white space surrounding the "#".
11678 print prefix "define", macro P[macro] D[macro]
11681 # Replace #undef with comments. This is necessary, for example,
11682 # in the case of _POSIX_SOURCE, which is predefined and required
11683 # on some systems where configure will not decide to define it.
11684 if (defundef == "undef") {
11685 print "/*", prefix defundef, macro, "*/"
11693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11694 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11695 fi # test -n "$CONFIG_HEADERS"
11698 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11703 :[FHLC]) ac_mode=$ac_tag; continue;;
11705 case $ac_mode$ac_tag in
11707 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11708 :[FH]-) ac_tag=-:-;;
11709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11726 -) ac_f="$ac_tmp/stdin";;
11727 *) # Look for the file first in the build tree, then in the source tree
11728 # (if the path is not absolute). The absolute path cannot be DOS-style,
11729 # because $ac_f cannot contain `:'.
11733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11735 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11738 as_fn_append ac_file_inputs " '$ac_f'"
11741 # Let's still pretend it is `configure' which instantiates (i.e., don't
11742 # use $as_me), people would be surprised to read:
11743 # /* config.h. Generated by config.status. */
11744 configure_input='Generated from '`
11745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11747 if test x"$ac_file" != x-; then
11748 configure_input="$ac_file. $configure_input"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11750 $as_echo "$as_me: creating $ac_file" >&6;}
11752 # Neutralize special characters interpreted by sed in replacement strings.
11753 case $configure_input in #(
11754 *\&* | *\|* | *\\* )
11755 ac_sed_conf_input=`$as_echo "$configure_input" |
11756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11757 *) ac_sed_conf_input=$configure_input;;
11761 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11767 ac_dir=`$as_dirname -- "$ac_file" ||
11768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11769 X"$ac_file" : 'X\(//\)[^/]' \| \
11770 X"$ac_file" : 'X\(//\)$' \| \
11771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11772 $as_echo X"$ac_file" |
11773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11777 /^X\(\/\/\)[^/].*/{
11790 as_dir="$ac_dir"; as_fn_mkdir_p
11794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11797 # A ".." for each directory in $ac_dir_suffix.
11798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11799 case $ac_top_builddir_sub in
11800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11804 ac_abs_top_builddir=$ac_pwd
11805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11806 # for backward compatibility:
11807 ac_top_builddir=$ac_top_build_prefix
11810 .) # We are building in place.
11812 ac_top_srcdir=$ac_top_builddir_sub
11813 ac_abs_top_srcdir=$ac_pwd ;;
11814 [\\/]* | ?:[\\/]* ) # Absolute name.
11815 ac_srcdir=$srcdir$ac_dir_suffix;
11816 ac_top_srcdir=$srcdir
11817 ac_abs_top_srcdir=$srcdir ;;
11818 *) # Relative name.
11819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11820 ac_top_srcdir=$ac_top_build_prefix$srcdir
11821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11836 ac_MKDIR_P=$MKDIR_P
11838 [\\/$]* | ?:[\\/]* ) ;;
11839 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11844 # If the template does not know about datarootdir, expand it.
11845 # FIXME: This hack should be removed a few years after 2.60.
11846 ac_datarootdir_hack=; ac_datarootdir_seen=
11857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11858 *datarootdir*) ac_datarootdir_seen=yes;;
11859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11864 ac_datarootdir_hack='
11865 s&@datadir@&$datadir&g
11866 s&@docdir@&$docdir&g
11867 s&@infodir@&$infodir&g
11868 s&@localedir@&$localedir&g
11869 s&@mandir@&$mandir&g
11870 s&\\\${datarootdir}&$datarootdir&g' ;;
11874 # Neutralize VPATH when `$srcdir' = `.'.
11875 # Shell code in configure.ac might set extrasub.
11876 # FIXME: do we really want to maintain this feature?
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878 ac_sed_extra="$ac_vpsub
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11884 s|@configure_input@|$ac_sed_conf_input|;t t
11885 s&@top_builddir@&$ac_top_builddir_sub&;t t
11886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11887 s&@srcdir@&$ac_srcdir&;t t
11888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11889 s&@top_srcdir@&$ac_top_srcdir&;t t
11890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11891 s&@builddir@&$ac_builddir&;t t
11892 s&@abs_builddir@&$ac_abs_builddir&;t t
11893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11894 s&@INSTALL@&$ac_INSTALL&;t t
11895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11896 $ac_datarootdir_hack
11898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11904 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11906 which seems to be undefined. Please make sure it is defined" >&5
11907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11908 which seems to be undefined. Please make sure it is defined" >&2;}
11910 rm -f "$ac_tmp/stdin"
11912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11921 if test x"$ac_file" != x-; then
11923 $as_echo "/* $configure_input */" \
11924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11925 } >"$ac_tmp/config.h" \
11926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11932 mv "$ac_tmp/config.h" "$ac_file" \
11933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11936 $as_echo "/* $configure_input */" \
11937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11938 || as_fn_error $? "could not create -" "$LINENO" 5
11940 # Compute "$ac_file"'s index in $config_headers.
11943 for _am_header in $config_headers :; do
11944 case $_am_header in
11945 $_am_arg | $_am_arg:* )
11948 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11951 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11952 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11953 X"$_am_arg" : 'X\(//\)[^/]' \| \
11954 X"$_am_arg" : 'X\(//\)$' \| \
11955 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11956 $as_echo X"$_am_arg" |
11957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11961 /^X\(\/\/\)[^/].*/{
11973 s/.*/./; q'`/stamp-h$_am_stamp_count
11976 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11977 $as_echo "$as_me: executing $ac_file commands" >&6;}
11982 case $ac_file$ac_mode in
11983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11984 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11985 # are listed without --file. Let's play safe and only enable the eval
11986 # if we detect the quoting.
11987 case $CONFIG_FILES in
11988 *\'*) eval set x "$CONFIG_FILES" ;;
11989 *) set x $CONFIG_FILES ;;
11994 # Strip MF so we end up with the name of the file.
11995 mf=`echo "$mf" | sed -e 's/:.*$//'`
11996 # Check whether this is an Automake generated Makefile or not.
11997 # We used to match only the files named `Makefile.in', but
11998 # some people rename them; so instead we look at the file content.
11999 # Grep'ing the first line is not enough: some people post-process
12000 # each Makefile.in and add a new line on top of each file to say so.
12001 # Grep'ing the whole file is not good either: AIX grep has a line
12002 # limit of 2048, but all sed's we know have understand at least 4000.
12003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12004 dirpart=`$as_dirname -- "$mf" ||
12005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$mf" : 'X\(//\)[^/]' \| \
12007 X"$mf" : 'X\(//\)$' \| \
12008 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12014 /^X\(\/\/\)[^/].*/{
12030 # Extract the definition of DEPDIR, am__include, and am__quote
12031 # from the Makefile without running `make'.
12032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12033 test -z "$DEPDIR" && continue
12034 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12035 test -z "am__include" && continue
12036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12037 # When using ansi2knr, U may be empty or an underscore; expand it
12038 U=`sed -n 's/^U = //p' < "$mf"`
12039 # Find all dependency output files, they are included files with
12040 # $(DEPDIR) in their names. We invoke sed twice because it is the
12041 # simplest approach to changing $(DEPDIR) to its actual value in the
12043 for file in `sed -n "
12044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12046 # Make sure the directory exists.
12047 test -f "$dirpart/$file" && continue
12048 fdir=`$as_dirname -- "$file" ||
12049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12050 X"$file" : 'X\(//\)[^/]' \| \
12051 X"$file" : 'X\(//\)$' \| \
12052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12053 $as_echo X"$file" |
12054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12058 /^X\(\/\/\)[^/].*/{
12071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12072 # echo "creating $dirpart/$file"
12073 echo '# dummy' > "$dirpart/$file"
12085 ac_clean_files=$ac_clean_files_save
12087 test $ac_write_fail = 0 ||
12088 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12091 # configure is writing to config.log, and then calls config.status.
12092 # config.status does its own redirection, appending to config.log.
12093 # Unfortunately, on DOS this fails, as config.log is still kept open
12094 # by configure, so config.status won't be able to write to it; its
12095 # output is simply discarded. So we exec the FD to /dev/null,
12096 # effectively closing config.log, so it can be properly (re)opened and
12097 # appended to by config.status. When coming back to configure, we
12098 # need to make the FD available again.
12099 if test "$no_create" != yes; then
12101 ac_config_status_args=
12102 test "$silent" = yes &&
12103 ac_config_status_args="$ac_config_status_args --quiet"
12105 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12107 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12108 # would make configure fail if this is the last instruction.
12109 $ac_cs_success || as_fn_exit 1
12111 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12113 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}