2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for setxkbmap 1.3.0.
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='setxkbmap'
563 PACKAGE_TARNAME='setxkbmap'
564 PACKAGE_VERSION='1.3.0'
565 PACKAGE_STRING='setxkbmap 1.3.0'
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
741 ac_precious_vars='build_alias
757 # Initialize some variables set by options.
759 ac_init_version=false
760 ac_unrecognized_opts=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name=s,x,x,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=no ;;
1123 # Obsolete; use --with-x.
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1191 # Be sure to have absolute directory names.
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures setxkbmap 1.3.0 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/setxkbmap]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of setxkbmap 1.3.0:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --disable-selective-werror
1380 Turn off selective compiler errors. (default:
1382 --enable-strict-compilation
1383 Enable all warnings from compiler and make them
1384 errors (default: disabled)
1385 --enable-silent-rules less verbose build output (undo: `make V=1')
1386 --disable-silent-rules verbose build output (undo: `make V=0')
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-xkb-config-root=<paths>
1392 Set default XKB config root (default:
1394 --with-lint Use a lint-style source code checker (default:
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1406 PKG_CONFIG path to pkg-config utility
1408 C compiler flags for SETXKBMAP, overriding pkg-config
1410 linker flags for SETXKBMAP, overriding pkg-config
1411 LINT Path to a lint-style command
1412 LINT_FLAGS Flags for the lint-style command
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1447 .) # We are building in place.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1480 setxkbmap configure 1.3.0
1481 generated by GNU Autoconf 2.68
1483 Copyright (C) 2010 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1530 } # ac_fn_c_try_compile
1532 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1533 # ---------------------------------------------
1534 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1536 ac_fn_c_check_decl ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 as_decl_name=`echo $2|sed 's/ *(.*//'`
1540 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1542 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1543 if eval \${$3+:} false; then :
1544 $as_echo_n "(cached) " >&6
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1552 #ifndef $as_decl_name
1554 (void) $as_decl_use;
1556 (void) $as_decl_name;
1564 if ac_fn_c_try_compile "$LINENO"; then :
1569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573 $as_echo "$ac_res" >&6; }
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 } # ac_fn_c_check_decl
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1615 # ac_fn_c_try_run LINENO
1616 # ----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618 # that executables *can* be run.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_link"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>&5
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633 { { case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_try") 2>&5
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; }; }; then :
1645 $as_echo "$as_me: program exited with status $ac_status" >&5
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=$ac_status
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_link
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by setxkbmap $as_me 1.3.0, which was
1738 generated by GNU Autoconf 2.68. Invocation command line was
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_must_keep_next=false
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1814 as_fn_append ac_configure_args1 " '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 -* ) ac_must_keep_next=true ;;
1830 as_fn_append ac_configure_args " '$ac_arg'"
1835 { ac_configure_args0=; unset ac_configure_args0;}
1836 { ac_configure_args1=; unset ac_configure_args1;}
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1848 $as_echo "## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##"
1852 # The following way of writing the cache mishandles newlines in values,
1854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1855 eval ac_val=\$$ac_var
1859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 _ | IFS | as_nl) ;; #(
1864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1865 *) { eval $ac_var=; unset $ac_var;} ;;
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884 $as_echo "## ----------------- ##
1885 ## Output variables. ##
1886 ## ----------------- ##"
1888 for ac_var in $ac_subst_vars
1890 eval ac_val=\$$ac_var
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 $as_echo "$ac_var='\''$ac_val'\''"
1898 if test -n "$ac_subst_files"; then
1899 $as_echo "## ------------------- ##
1900 ## File substitutions. ##
1901 ## ------------------- ##"
1903 for ac_var in $ac_subst_files
1905 eval ac_val=\$$ac_var
1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909 $as_echo "$ac_var='\''$ac_val'\''"
1914 if test -s confdefs.h; then
1915 $as_echo "## ----------- ##
1922 test "$ac_signal" != 0 &&
1923 $as_echo "$as_me: caught signal $ac_signal"
1924 $as_echo "$as_me: exit $exit_status"
1926 rm -f core *.core core.conftest.* &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930 for ac_signal in 1 2 13 15; do
1931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1936 rm -f -r conftest* confdefs.h
1938 $as_echo "/* confdefs.h */" > confdefs.h
1940 # Predefined preprocessor variables.
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_NAME "$PACKAGE_NAME"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_URL "$PACKAGE_URL"
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1971 if test -n "$CONFIG_SITE"; then
1972 # We do not want a PATH search for config.site.
1973 case $CONFIG_SITE in #((
1974 -*) ac_site_file1=./$CONFIG_SITE;;
1975 */*) ac_site_file1=$CONFIG_SITE;;
1976 *) ac_site_file1=./$CONFIG_SITE;;
1978 elif test "x$prefix" != xNONE; then
1979 ac_site_file1=$prefix/share/config.site
1980 ac_site_file2=$prefix/etc/config.site
1982 ac_site_file1=$ac_default_prefix/share/config.site
1983 ac_site_file2=$ac_default_prefix/etc/config.site
1985 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 test "x$ac_site_file" = xNONE && continue
1988 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1990 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1991 sed 's/^/| /' "$ac_site_file" >&5
1993 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1995 as_fn_error $? "failed to load site script $ac_site_file
1996 See \`config.log' for more details" "$LINENO" 5; }
2000 if test -r "$cache_file"; then
2001 # Some versions of bash will fail to source /dev/null (special files
2002 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2003 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2005 $as_echo "$as_me: loading cache $cache_file" >&6;}
2007 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008 *) . "./$cache_file";;
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2013 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017 # Check that the precious variables saved in the cache have kept the same
2019 ac_cache_corrupted=false
2020 for ac_var in $ac_precious_vars; do
2021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022 eval ac_new_set=\$ac_env_${ac_var}_set
2023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024 eval ac_new_val=\$ac_env_${ac_var}_value
2025 case $ac_old_set,$ac_new_set in
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029 ac_cache_corrupted=: ;;
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2036 if test "x$ac_old_val" != "x$ac_new_val"; then
2037 # differences in whitespace do not lead to failure.
2038 ac_old_val_w=`echo x $ac_old_val`
2039 ac_new_val_w=`echo x $ac_new_val`
2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043 ac_cache_corrupted=:
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047 eval $ac_var=\$ac_old_val
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2055 # Pass precious variables to config.status.
2056 if test "$ac_new_set" = set; then
2058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 *) ac_arg=$ac_var=$ac_new_val ;;
2061 case " $ac_configure_args " in
2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2063 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067 if $ac_cache_corrupted; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2074 ## -------------------- ##
2075 ## Main body of script. ##
2076 ## -------------------- ##
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085 am__api_version='1.11'
2088 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2089 if test -f "$ac_dir/install-sh"; then
2091 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 elif test -f "$ac_dir/install.sh"; then
2095 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 elif test -f "$ac_dir/shtool"; then
2099 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 if test -z "$ac_aux_dir"; then
2104 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2107 # These three variables are undocumented and unsupported,
2108 # and are intended to be withdrawn in a future Autoconf release.
2109 # They can cause serious problems if a builder's source tree is in a directory
2110 # whose full name contains unusual characters.
2111 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2112 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2113 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116 # Find a good install program. We prefer a C program (faster),
2117 # so one script is as good as another. But avoid the broken or
2118 # incompatible versions:
2119 # SysV /etc/install, /usr/sbin/install
2120 # SunOS /usr/etc/install
2121 # IRIX /sbin/install
2123 # AmigaOS /C/install, which installs bootblocks on floppy discs
2124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2127 # OS/2's system install, which has a completely different semantic
2128 # ./install, which can be erroneously created by make from ./install.sh.
2129 # Reject install programs that cannot install multiple files.
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2132 if test -z "$INSTALL"; then
2133 if ${ac_cv_path_install+:} false; then :
2134 $as_echo_n "(cached) " >&6
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 # Account for people who put trailing slashes in PATH elements.
2142 case $as_dir/ in #((
2143 ./ | .// | /[cC]/* | \
2144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2148 # OSF1 and SCO ODT 3.0 have their own names for install.
2149 # Don't use installbsd from OSF since it installs stuff as root
2151 for ac_prog in ginstall scoinst install; do
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2154 if test $ac_prog = install &&
2155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2156 # AIX install. It has an incompatible calling convention.
2158 elif test $ac_prog = install &&
2159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2160 # program-specific install script used by HP pwplus--don't use.
2163 rm -rf conftest.one conftest.two conftest.dir
2164 echo one > conftest.one
2165 echo two > conftest.two
2167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2168 test -s conftest.one && test -s conftest.two &&
2169 test -s conftest.dir/conftest.one &&
2170 test -s conftest.dir/conftest.two
2172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185 rm -rf conftest.one conftest.two conftest.dir
2188 if test "${ac_cv_path_install+set}" = set; then
2189 INSTALL=$ac_cv_path_install
2191 # As a last resort, use the slow shell script. Don't cache a
2192 # value for INSTALL within a source directory, because that will
2193 # break other packages using the cache if that directory is
2194 # removed, or if the value is a relative name.
2195 INSTALL=$ac_install_sh
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2199 $as_echo "$INSTALL" >&6; }
2201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2202 # It thinks the first close brace ends the variable substitution.
2203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2210 $as_echo_n "checking whether build environment is sane... " >&6; }
2213 echo timestamp > conftest.file
2214 # Reject unsafe characters in $srcdir or the absolute working directory
2215 # name. Accept space and tab only in the latter.
2219 *[\\\"\#\$\&\'\`$am_lf]*)
2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2224 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2227 # Do `set' in a subshell so we don't clobber the current shell's
2228 # arguments. Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2234 if test "$*" = "X"; then
2236 set X `ls -t "$srcdir/configure" conftest.file`
2239 if test "$*" != "X $srcdir/configure conftest.file" \
2240 && test "$*" != "X conftest.file $srcdir/configure"; then
2242 # If neither matched, then we have a broken ls. This can happen
2243 # if, for instance, CONFIG_SHELL is bash and it inherits a
2244 # broken ls alias from the environment. This has actually
2245 # happened. Such a system could not be considered "sane".
2246 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2247 alias in your environment" "$LINENO" 5
2250 test "$2" = conftest.file
2256 as_fn_error $? "newly created file is older than distributed files!
2257 Check your system clock" "$LINENO" 5
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2260 $as_echo "yes" >&6; }
2261 test "$program_prefix" != NONE &&
2262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263 # Use a double $ so make ignores it.
2264 test "$program_suffix" != NONE &&
2265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266 # Double any \ or $.
2267 # By default was `s,x,x', remove it if useless.
2268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2269 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2271 # expand $ac_aux_dir to an absolute path
2272 am_aux_dir=`cd $ac_aux_dir && pwd`
2274 if test x"${MISSING+set}" != xset; then
2277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2279 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284 am_missing_run="$MISSING --run "
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2288 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291 if test x"${install_sh}" != xset; then
2294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2296 install_sh="\${SHELL} $am_aux_dir/install-sh"
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'. However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if ${ac_cv_prog_STRIP+:} false; then :
2311 $as_echo_n "(cached) " >&6
2313 if test -n "$STRIP"; then
2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2336 $as_echo "$STRIP" >&6; }
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339 $as_echo "no" >&6; }
2344 if test -z "$ac_cv_prog_STRIP"; then
2346 # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349 $as_echo_n "checking for $ac_word... " >&6; }
2350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2351 $as_echo_n "(cached) " >&6
2353 if test -n "$ac_ct_STRIP"; then
2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_ac_ct_STRIP="strip"
2364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2376 $as_echo "$ac_ct_STRIP" >&6; }
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2379 $as_echo "no" >&6; }
2382 if test "x$ac_ct_STRIP" = x; then
2385 case $cross_compiling:$ac_tool_warned in
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389 ac_tool_warned=yes ;;
2394 STRIP="$ac_cv_prog_STRIP"
2398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2401 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2402 if test -z "$MKDIR_P"; then
2403 if ${ac_cv_path_mkdir+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2410 test -z "$as_dir" && as_dir=.
2411 for ac_prog in mkdir gmkdir; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2415 'mkdir (GNU coreutils) '* | \
2416 'mkdir (coreutils) '* | \
2417 'mkdir (fileutils) '4.1*)
2418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428 test -d ./--version && rmdir ./--version
2429 if test "${ac_cv_path_mkdir+set}" = set; then
2430 MKDIR_P="$ac_cv_path_mkdir -p"
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for MKDIR_P within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 MKDIR_P="$ac_install_sh -d"
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2440 $as_echo "$MKDIR_P" >&6; }
2444 [\\/$]* | ?:[\\/]*) ;;
2445 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2448 for ac_prog in gawk mawk nawk awk
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_AWK+:} false; then :
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$AWK"; then
2458 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_AWK="$ac_prog"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test -n "$AWK"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2480 $as_echo "$AWK" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2487 test -n "$AWK" && break
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2491 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2494 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 cat >conftest.make <<\_ACEOF
2500 @echo '@@@%%%=$(MAKE)=@@@%%%'
2502 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2503 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505 eval ac_cv_prog_make_${ac_make}_set=yes;;
2507 eval ac_cv_prog_make_${ac_make}_set=no;;
2511 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513 $as_echo "yes" >&6; }
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2518 SET_MAKE="MAKE=${MAKE-make}"
2521 rm -rf .tst 2>/dev/null
2522 mkdir .tst 2>/dev/null
2523 if test -d .tst; then
2528 rmdir .tst 2>/dev/null
2530 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532 # is not polluted with repeated "-I."
2533 am__isrc=' -I$(srcdir)'
2534 # test to see if srcdir already configured
2535 if test -f $srcdir/config.status; then
2536 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2540 # test whether we have cygpath
2541 if test -z "$CYGPATH_W"; then
2542 if (cygpath --version) >/dev/null 2>/dev/null; then
2543 CYGPATH_W='cygpath -w'
2550 # Define the identity of the package.
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE "$PACKAGE"
2560 cat >>confdefs.h <<_ACEOF
2561 #define VERSION "$VERSION"
2564 # Some tools Automake needs.
2566 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2569 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2572 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2575 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2578 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2580 # We need awk for the "check" target. The system "awk" is bad on
2582 # Always define AMTAR for backward compatibility.
2584 AMTAR=${AMTAR-"${am_missing_run}tar"}
2586 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2595 # Check whether --enable-maintainer-mode was given.
2596 if test "${enable_maintainer_mode+set}" = set; then :
2597 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599 USE_MAINTAINER_MODE=no
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2603 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2604 if test $USE_MAINTAINER_MODE = yes; then
2605 MAINTAINER_MODE_TRUE=
2606 MAINTAINER_MODE_FALSE='#'
2608 MAINTAINER_MODE_TRUE='#'
2609 MAINTAINER_MODE_FALSE=
2612 MAINT=$MAINTAINER_MODE_TRUE
2616 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2629 ac_config_headers="$ac_config_headers config.h"
2632 DEPDIR="${am__leading_dot}deps"
2634 ac_config_commands="$ac_config_commands depfiles"
2637 am_make=${MAKE-make}
2638 cat > confinc << 'END'
2640 @echo this is the am__doit target
2643 # If we don't find an include directive, just comment out the code.
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2645 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2649 # First try GNU make style include.
2650 echo "include confinc" > confmf
2651 # Ignore all kinds of additional output from `make'.
2652 case `$am_make -s -f confmf 2> /dev/null` in #(
2653 *the\ am__doit\ target*)
2659 # Now try BSD make style include.
2660 if test "$am__include" = "#"; then
2661 echo '.include "confinc"' > confmf
2662 case `$am_make -s -f confmf 2> /dev/null` in #(
2663 *the\ am__doit\ target*)
2664 am__include=.include
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2673 $as_echo "$_am_result" >&6; }
2674 rm -f confinc confmf
2676 # Check whether --enable-dependency-tracking was given.
2677 if test "${enable_dependency_tracking+set}" = set; then :
2678 enableval=$enable_dependency_tracking;
2681 if test "x$enable_dependency_tracking" != xno; then
2682 am_depcomp="$ac_aux_dir/depcomp"
2685 if test "x$enable_dependency_tracking" != xno; then
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2738 if test -z "$ac_cv_prog_CC"; then
2740 # Extract the first word of "gcc", so it can be a program name with args.
2741 set dummy gcc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2776 if test "x$ac_ct_CC" = x; then
2779 case $cross_compiling:$ac_tool_warned in
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned=yes ;;
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}cc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="${ac_tool_prefix}cc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2832 if test -z "$CC"; then
2833 # Extract the first word of "cc", so it can be a program name with args.
2834 set dummy cc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2852 ac_prog_rejected=yes
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test $ac_prog_rejected = yes; then
2864 # We found a bogon in the path, so make sure we never use it.
2865 set dummy $ac_cv_prog_CC
2867 if test $# != 0; then
2868 # We chose a different compiler from the bogus one.
2869 # However, it has the same basename, so the bogon will be chosen
2870 # first if we set CC to just the basename; use the full file name.
2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in cl.exe
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CC" && break
2932 if test -z "$CC"; then
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_ac_ct_CC="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966 $as_echo "$ac_ct_CC" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CC" && break
2976 if test "x$ac_ct_CC" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details" "$LINENO" 5; }
2997 # Provide some information about the compiler.
2998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3001 for ac_option in --version -v -V -qversion; do
3002 { { ac_try="$ac_compiler $ac_option >&5"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011 if test -s conftest.err; then
3013 ... rest of stderr output deleted ...
3014 10q' conftest.err >conftest.er1
3015 cat conftest.er1 >&5
3017 rm -f conftest.er1 conftest.err
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3033 ac_clean_files_save=$ac_clean_files
3034 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3035 # Try to create an executable without -o first, disregard a.out.
3036 # It will help us diagnose broken compilers, and finding out an intuition
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
3040 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042 # The possible output files:
3043 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3046 for ac_file in $ac_files
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3055 if { { ac_try="$ac_link_default"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link_default") 2>&5
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; then :
3066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3067 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3068 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3069 # so that the user can short-circuit this test for compilers unknown to
3071 for ac_file in $ac_files ''
3073 test -f "$ac_file" || continue
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3078 # We found the default executable, but exeext='' is most
3082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 # We set ac_cv_exeext here because the later test for it is not
3087 # safe: cross compilers may not add the suffix if given an `-o'
3088 # argument, so we may need to know it at that point already.
3089 # Even if this section looks crufty: it has the advantage of
3096 test "$ac_cv_exeext" = no && ac_cv_exeext=
3101 if test -z "$ac_file"; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error 77 "C compiler cannot create executables
3110 See \`config.log' for more details" "$LINENO" 5; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3116 $as_echo_n "checking for C compiler default output file name... " >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 ac_exeext=$ac_cv_exeext
3121 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124 $as_echo_n "checking for suffix of executables... " >&6; }
3125 if { { ac_try="$ac_link"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 for ac_file in conftest.exe conftest conftest.*; do
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details" "$LINENO" 5; }
3155 rm -f conftest conftest$ac_cv_exeext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157 $as_echo "$ac_cv_exeext" >&6; }
3159 rm -f conftest.$ac_ext
3160 EXEEXT=$ac_cv_exeext
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3175 ac_clean_files="$ac_clean_files conftest.out"
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 if test "$cross_compiling" != yes; then
3181 { { ac_try="$ac_link"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3205 if test "$cross_compiling" = maybe; then
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details" "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217 $as_echo "$cross_compiling" >&6; }
3219 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if ${ac_cv_objext+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error $? "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details" "$LINENO" 5; }
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274 if ${ac_cv_c_compiler_gnu+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3291 if ac_fn_c_try_compile "$LINENO"; then :
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3311 if ${ac_cv_prog_cc_g+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3344 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371 $as_echo "$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3381 if test "$GCC" = yes; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389 if ${ac_cv_prog_cc_c89+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 ac_cv_prog_cc_c89=no
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3414 s = g (p, va_arg (v,int));
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429 inside strings and character constants. */
3431 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_cv_prog_cc_c89=$ac_arg
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 rm -f conftest.$ac_ext
3462 case "x$ac_cv_prog_cc_c89" in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3465 $as_echo "none needed" >&6; } ;;
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3468 $as_echo "unsupported" >&6; } ;;
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474 if test "x$ac_cv_prog_cc_c89" != xno; then :
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 depcc="$CC" am_compiler_list=
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3487 $as_echo_n "checking dependency style of $depcc... " >&6; }
3488 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3492 # We make a subdir and do the tests there. Otherwise we can end up
3493 # making bogus files that we don't know about and never remove. For
3494 # instance it was reported that on HP-UX the gcc test will end up
3495 # making a dummy file named `D' -- because `-MD' means `put the output
3498 # Copy depcomp to subdir because otherwise we won't find it if we're
3499 # using a relative directory.
3500 cp "$am_depcomp" conftest.dir
3502 # We will build objects and dependencies in a subdirectory because
3503 # it helps to detect inapplicable dependency modes. For instance
3504 # both Tru64's cc and ICC support -MD to output dependencies as a
3505 # side effect of compilation, but ICC will put the dependencies in
3506 # the current directory while Tru64 will put them in the object
3510 am_cv_CC_dependencies_compiler_type=none
3511 if test "$am_compiler_list" = ""; then
3512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3515 case " $depcc " in #(
3516 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3519 for depmode in $am_compiler_list; do
3520 # Setup a source with many dependencies, because some compilers
3521 # like to wrap large dependency lists on column 80 (with \), and
3522 # we should not choose a depcomp mode which is confused by this.
3524 # We need to recreate these files for each test, as the compiler may
3525 # overwrite some of them when testing with obscure command lines.
3526 # This happens at least with the AIX C compiler.
3528 for i in 1 2 3 4 5 6; do
3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3531 # Solaris 8's {/usr,}/bin/sh.
3532 touch sub/conftst$i.h
3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3537 # mode. It turns out that the SunPro C++ compiler does not properly
3538 # handle `-M -o', and we need to detect this. Also, some Intel
3539 # versions had trouble with output in subdirs
3540 am__obj=sub/conftest.${OBJEXT-o}
3541 am__minus_obj="-o $am__obj"
3544 # This depmode causes a compiler race in universal mode.
3545 test "$am__universal" = false || continue
3548 # after this tag, mechanisms are not by side-effect, so they'll
3549 # only be used when explicitly requested
3550 if test "x$enable_dependency_tracking" = xyes; then
3556 msvisualcpp | msvcmsys)
3557 # This compiler won't grok `-c -o', but also, the minuso test has
3558 # not run yet. These depmodes are late enough in the game, and
3559 # so weak that their functioning should not be impacted.
3560 am__obj=conftest.${OBJEXT-o}
3565 if depmode=$depmode \
3566 source=sub/conftest.c object=$am__obj \
3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3569 >/dev/null 2>conftest.err &&
3570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3574 # icc doesn't choke on unknown options, it will just issue warnings
3575 # or remarks (even with -Werror). So we grep stderr for any message
3576 # that says an option was ignored or not supported.
3577 # When given -MP, icc 7.0 and 7.1 complain thusly:
3578 # icc: Command line warning: ignoring option '-M'; no argument required
3579 # The diagnosis changed in icc 8.0:
3580 # icc: Command line remark: option '-MP' not supported
3581 if (grep 'ignoring option' conftest.err ||
3582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3583 am_cv_CC_dependencies_compiler_type=$depmode
3592 am_cv_CC_dependencies_compiler_type=none
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3597 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3598 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3601 test "x$enable_dependency_tracking" != xno \
3602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCC_FALSE='#'
3606 am__fastdepCC_TRUE='#'
3607 am__fastdepCC_FALSE=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3612 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3613 if ${ac_cv_prog_cc_c99+:} false; then :
3614 $as_echo_n "(cached) " >&6
3616 ac_cv_prog_cc_c99=no
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3621 #include <stdbool.h>
3626 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3627 #define debug(...) fprintf (stderr, __VA_ARGS__)
3628 #define showlist(...) puts (#__VA_ARGS__)
3629 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3631 test_varargs_macros (void)
3636 debug ("X = %d\n", x);
3637 showlist (The first, second, and third items.);
3638 report (x>y, "x is %d but y is %d", x, y);
3641 // Check long long types.
3642 #define BIG64 18446744073709551615ull
3643 #define BIG32 4294967295ul
3644 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3646 your preprocessor is broken;
3650 your preprocessor is broken;
3652 static long long int bignum = -9223372036854775807LL;
3653 static unsigned long long int ubignum = BIG64;
3655 struct incomplete_array
3663 const wchar_t *name;
3667 typedef const char *ccp;
3670 test_restrict (ccp restrict text)
3672 // See if C++-style comments work.
3673 // Iterate through items via the restricted pointer.
3674 // Also check for declarations in for loops.
3675 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3680 // Check varargs and va_copy.
3682 test_varargs (const char *format, ...)
3685 va_start (args, format);
3687 va_copy (args_copy, args);
3698 str = va_arg (args_copy, const char *);
3701 number = va_arg (args_copy, int);
3704 fnumber = va_arg (args_copy, double);
3719 _Bool success = false;
3722 if (test_restrict ("String literal") == 0)
3724 char *restrict newvar = "Another string";
3727 test_varargs ("s, d' f .", "string", 65, 34.234);
3728 test_varargs_macros ();
3730 // Check flexible array members.
3731 struct incomplete_array *ia =
3732 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3734 for (int i = 0; i < ia->datasize; ++i)
3735 ia->data[i] = i * 1.234;
3737 // Check named initializers.
3738 struct named_init ni = {
3740 .name = L"Test wide string",
3741 .average = 543.34343,
3746 int dynamic_array[ni.number];
3747 dynamic_array[ni.number - 1] = 543;
3749 // work around unused variable warnings
3750 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3751 || dynamic_array[ni.number - 1] != 543);
3757 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3759 CC="$ac_save_CC $ac_arg"
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_c99=$ac_arg
3763 rm -f core conftest.err conftest.$ac_objext
3764 test "x$ac_cv_prog_cc_c99" != "xno" && break
3766 rm -f conftest.$ac_ext
3771 case "x$ac_cv_prog_cc_c99" in
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 $as_echo "none needed" >&6; } ;;
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3777 $as_echo "unsupported" >&6; } ;;
3779 CC="$CC $ac_cv_prog_cc_c99"
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3781 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3783 if test "x$ac_cv_prog_cc_c99" != xno; then :
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3800 if test -z "$CPP"; then
3801 if ${ac_cv_prog_CPP+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 # Double quotes because CPP needs to be expanded
3805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808 for ac_c_preproc_warn_flag in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3819 # include <limits.h>
3821 # include <assert.h>
3825 if ac_fn_c_try_cpp "$LINENO"; then :
3828 # Broken: fails on valid input.
3831 rm -f conftest.err conftest.i conftest.$ac_ext
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3839 if ac_fn_c_try_cpp "$LINENO"; then :
3840 # Broken: success on invalid input.
3843 # Passes both tests.
3847 rm -f conftest.err conftest.i conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.i conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then :
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3865 $as_echo "$CPP" >&6; }
3867 for ac_c_preproc_warn_flag in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 # include <limits.h>
3880 # include <assert.h>
3884 if ac_fn_c_try_cpp "$LINENO"; then :
3887 # Broken: fails on valid input.
3890 rm -f conftest.err conftest.i conftest.$ac_ext
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3898 if ac_fn_c_try_cpp "$LINENO"; then :
3899 # Broken: success on invalid input.
3902 # Passes both tests.
3906 rm -f conftest.err conftest.i conftest.$ac_ext
3909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910 rm -f conftest.i conftest.err conftest.$ac_ext
3911 if $ac_preproc_ok; then :
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3917 See \`config.log' for more details" "$LINENO" 5; }
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3928 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3929 if ${ac_cv_path_GREP+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -z "$GREP"; then
3933 ac_path_GREP_found=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939 test -z "$as_dir" && as_dir=.
3940 for ac_prog in grep ggrep; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
3945 # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951 $as_echo_n 0123456789 >"conftest.in"
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 $as_echo 'GREP' >> "conftest.nl"
3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960 as_fn_arith $ac_count + 1 && ac_count=$as_val
3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP="$ac_path_GREP"
3964 ac_path_GREP_max=$ac_count
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972 $ac_path_GREP_found && break 3
3977 if test -z "$ac_cv_path_GREP"; then
3978 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3981 ac_cv_path_GREP=$GREP
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3986 $as_echo "$ac_cv_path_GREP" >&6; }
3987 GREP="$ac_cv_path_GREP"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3991 $as_echo_n "checking for egrep... " >&6; }
3992 if ${ac_cv_path_EGREP+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996 then ac_cv_path_EGREP="$GREP -E"
3998 if test -z "$EGREP"; then
3999 ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 $as_echo_n 0123456789 >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 $ac_path_EGREP_found && break 3
4043 if test -z "$ac_cv_path_EGREP"; then
4044 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 ac_cv_path_EGREP=$EGREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4053 $as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4058 $as_echo_n "checking for ANSI C header files... " >&6; }
4059 if ${ac_cv_header_stdc+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_header_stdc=yes
4080 ac_cv_header_stdc=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "memchr" >/dev/null 2>&1; then :
4095 ac_cv_header_stdc=no
4101 if test $ac_cv_header_stdc = yes; then
4102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "free" >/dev/null 2>&1; then :
4112 ac_cv_header_stdc=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then :
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4150 if ac_fn_c_try_run "$LINENO"; then :
4153 ac_cv_header_stdc=no
4155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4156 conftest.$ac_objext conftest.beam conftest.$ac_ext
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4162 $as_echo "$ac_cv_header_stdc" >&6; }
4163 if test $ac_cv_header_stdc = yes; then
4165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4171 inttypes.h stdint.h unistd.h
4173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4177 cat >>confdefs.h <<_ACEOF
4178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4191 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4197 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4198 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4204 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4205 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4215 if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4221 $as_echo_n "(cached) " >&6
4225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4247 if test -n "$PKG_CONFIG"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4249 $as_echo "$PKG_CONFIG" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4257 if test -z "$ac_cv_path_PKG_CONFIG"; then
4258 ac_pt_PKG_CONFIG=$PKG_CONFIG
4259 # Extract the first word of "pkg-config", so it can be a program name with args.
4260 set dummy pkg-config; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 case $ac_pt_PKG_CONFIG in
4268 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4290 if test -n "$ac_pt_PKG_CONFIG"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4292 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4298 if test "x$ac_pt_PKG_CONFIG" = x; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4307 PKG_CONFIG=$ac_pt_PKG_CONFIG
4310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4314 if test -n "$PKG_CONFIG"; then
4315 _pkg_min_version=0.9.0
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4317 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320 $as_echo "yes" >&6; }
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4328 # Make sure we can run config.sub.
4329 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4330 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4333 $as_echo_n "checking build system type... " >&6; }
4334 if ${ac_cv_build+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 ac_build_alias=$build_alias
4338 test "x$ac_build_alias" = x &&
4339 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4340 test "x$ac_build_alias" = x &&
4341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4342 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4347 $as_echo "$ac_cv_build" >&6; }
4348 case $ac_cv_build in
4350 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4353 ac_save_IFS=$IFS; IFS='-'
4359 # Remember, the first character of IFS is used to create $*,
4360 # except with old shells:
4363 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4367 $as_echo_n "checking host system type... " >&6; }
4368 if ${ac_cv_host+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 if test "x$host_alias" = x; then
4372 ac_cv_host=$ac_cv_build
4374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4380 $as_echo "$ac_cv_host" >&6; }
4383 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4386 ac_save_IFS=$IFS; IFS='-'
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4400 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4401 if ${ac_cv_path_SED+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4405 for ac_i in 1 2 3 4 5 6 7; do
4406 ac_script="$ac_script$as_nl$ac_script"
4408 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4409 { ac_script=; unset ac_script;}
4410 if test -z "$SED"; then
4411 ac_path_SED_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in sed gsed; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4421 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4422 # Check for GNU ac_path_SED and select it if it is found.
4423 # Check for GNU $ac_path_SED
4424 case `"$ac_path_SED" --version 2>&1` in
4426 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4429 $as_echo_n 0123456789 >"conftest.in"
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo '' >> "conftest.nl"
4436 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_SED_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_SED="$ac_path_SED"
4442 ac_path_SED_max=$ac_count
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 $ac_path_SED_found && break 3
4455 if test -z "$ac_cv_path_SED"; then
4456 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4464 $as_echo "$ac_cv_path_SED" >&6; }
4465 SED="$ac_cv_path_SED"
4473 # Check whether --enable-selective-werror was given.
4474 if test "${enable_selective_werror+set}" = set; then :
4475 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4477 SELECTIVE_WERROR=yes
4484 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4485 if test "x$SUNCC" = "xyes"; then
4491 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4505 xorg_testset_save_CFLAGS="$CFLAGS"
4507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 xorg_cv_cc_flag_unknown_warning_option=yes
4521 xorg_cv_cc_flag_unknown_warning_option=no
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4528 CFLAGS="$xorg_testset_save_CFLAGS"
4531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 xorg_cv_cc_flag_unused_command_line_argument=yes
4548 xorg_cv_cc_flag_unused_command_line_argument=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4555 CFLAGS="$xorg_testset_save_CFLAGS"
4560 if test $found = "no" ; then
4561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4569 CFLAGS="$CFLAGS -Wall"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4572 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4573 cacheid=xorg_cv_cc_flag__Wall
4574 if eval \${$cacheid+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4588 if ac_fn_c_try_link "$LINENO"; then :
4593 rm -f core conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4598 CFLAGS="$xorg_testset_save_CFLAGS"
4600 eval supported=\$$cacheid
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4602 $as_echo "$supported" >&6; }
4603 if test "$supported" = "yes" ; then
4604 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4623 xorg_testset_save_CFLAGS="$CFLAGS"
4625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 xorg_cv_cc_flag_unknown_warning_option=yes
4639 xorg_cv_cc_flag_unknown_warning_option=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4646 CFLAGS="$xorg_testset_save_CFLAGS"
4649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 xorg_cv_cc_flag_unused_command_line_argument=yes
4666 xorg_cv_cc_flag_unused_command_line_argument=no
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4673 CFLAGS="$xorg_testset_save_CFLAGS"
4678 if test $found = "no" ; then
4679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4687 CFLAGS="$CFLAGS -Wpointer-arith"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4690 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4691 cacheid=xorg_cv_cc_flag__Wpointer_arith
4692 if eval \${$cacheid+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_c_try_link "$LINENO"; then :
4711 rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext conftest.$ac_ext
4716 CFLAGS="$xorg_testset_save_CFLAGS"
4718 eval supported=\$$cacheid
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4720 $as_echo "$supported" >&6; }
4721 if test "$supported" = "yes" ; then
4722 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4741 xorg_testset_save_CFLAGS="$CFLAGS"
4743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 xorg_cv_cc_flag_unknown_warning_option=yes
4757 xorg_cv_cc_flag_unknown_warning_option=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4764 CFLAGS="$xorg_testset_save_CFLAGS"
4767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4775 $as_echo_n "(cached) " >&6
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 xorg_cv_cc_flag_unused_command_line_argument=yes
4784 xorg_cv_cc_flag_unused_command_line_argument=no
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4791 CFLAGS="$xorg_testset_save_CFLAGS"
4796 if test $found = "no" ; then
4797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4805 CFLAGS="$CFLAGS -Wmissing-declarations"
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4808 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4809 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4810 if eval \${$cacheid+:} false; then :
4811 $as_echo_n "(cached) " >&6
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_link "$LINENO"; then :
4829 rm -f core conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4834 CFLAGS="$xorg_testset_save_CFLAGS"
4836 eval supported=\$$cacheid
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4838 $as_echo "$supported" >&6; }
4839 if test "$supported" = "yes" ; then
4840 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4859 xorg_testset_save_CFLAGS="$CFLAGS"
4861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 xorg_cv_cc_flag_unknown_warning_option=yes
4875 xorg_cv_cc_flag_unknown_warning_option=no
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4882 CFLAGS="$xorg_testset_save_CFLAGS"
4885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 xorg_cv_cc_flag_unused_command_line_argument=yes
4902 xorg_cv_cc_flag_unused_command_line_argument=no
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4909 CFLAGS="$xorg_testset_save_CFLAGS"
4914 if test $found = "no" ; then
4915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4923 CFLAGS="$CFLAGS -Wformat=2"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4926 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4927 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4928 if eval \${$cacheid+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4942 if ac_fn_c_try_link "$LINENO"; then :
4947 rm -f core conftest.err conftest.$ac_objext \
4948 conftest$ac_exeext conftest.$ac_ext
4952 CFLAGS="$xorg_testset_save_CFLAGS"
4954 eval supported=\$$cacheid
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4956 $as_echo "$supported" >&6; }
4957 if test "$supported" = "yes" ; then
4958 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4963 if test $found = "no" ; then
4964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4972 CFLAGS="$CFLAGS -Wformat"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4975 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
4976 cacheid=xorg_cv_cc_flag__Wformat
4977 if eval \${$cacheid+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4991 if ac_fn_c_try_link "$LINENO"; then :
4996 rm -f core conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
5001 CFLAGS="$xorg_testset_save_CFLAGS"
5003 eval supported=\$$cacheid
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5005 $as_echo "$supported" >&6; }
5006 if test "$supported" = "yes" ; then
5007 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5028 xorg_testset_save_CFLAGS="$CFLAGS"
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5035 $as_echo_n "(cached) " >&6
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5041 if ac_fn_c_try_compile "$LINENO"; then :
5042 xorg_cv_cc_flag_unknown_warning_option=yes
5044 xorg_cv_cc_flag_unknown_warning_option=no
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051 CFLAGS="$xorg_testset_save_CFLAGS"
5054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5062 $as_echo_n "(cached) " >&6
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5068 if ac_fn_c_try_compile "$LINENO"; then :
5069 xorg_cv_cc_flag_unused_command_line_argument=yes
5071 xorg_cv_cc_flag_unused_command_line_argument=no
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5083 if test $found = "no" ; then
5084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092 CFLAGS="$CFLAGS -Wstrict-prototypes"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5095 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5096 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5097 if eval \${$cacheid+:} false; then :
5098 $as_echo_n "(cached) " >&6
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5111 if ac_fn_c_try_link "$LINENO"; then :
5116 rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5121 CFLAGS="$xorg_testset_save_CFLAGS"
5123 eval supported=\$$cacheid
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5125 $as_echo "$supported" >&6; }
5126 if test "$supported" = "yes" ; then
5127 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5146 xorg_testset_save_CFLAGS="$CFLAGS"
5148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 xorg_cv_cc_flag_unknown_warning_option=yes
5162 xorg_cv_cc_flag_unknown_warning_option=no
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5169 CFLAGS="$xorg_testset_save_CFLAGS"
5172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 xorg_cv_cc_flag_unused_command_line_argument=yes
5189 xorg_cv_cc_flag_unused_command_line_argument=no
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5196 CFLAGS="$xorg_testset_save_CFLAGS"
5201 if test $found = "no" ; then
5202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210 CFLAGS="$CFLAGS -Wmissing-prototypes"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5213 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5214 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5215 if eval \${$cacheid+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5229 if ac_fn_c_try_link "$LINENO"; then :
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5239 CFLAGS="$xorg_testset_save_CFLAGS"
5241 eval supported=\$$cacheid
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5243 $as_echo "$supported" >&6; }
5244 if test "$supported" = "yes" ; then
5245 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5264 xorg_testset_save_CFLAGS="$CFLAGS"
5266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 xorg_cv_cc_flag_unknown_warning_option=yes
5280 xorg_cv_cc_flag_unknown_warning_option=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5287 CFLAGS="$xorg_testset_save_CFLAGS"
5290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5298 $as_echo_n "(cached) " >&6
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 xorg_cv_cc_flag_unused_command_line_argument=yes
5307 xorg_cv_cc_flag_unused_command_line_argument=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5314 CFLAGS="$xorg_testset_save_CFLAGS"
5319 if test $found = "no" ; then
5320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328 CFLAGS="$CFLAGS -Wnested-externs"
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5331 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5332 cacheid=xorg_cv_cc_flag__Wnested_externs
5333 if eval \${$cacheid+:} false; then :
5334 $as_echo_n "(cached) " >&6
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5347 if ac_fn_c_try_link "$LINENO"; then :
5352 rm -f core conftest.err conftest.$ac_objext \
5353 conftest$ac_exeext conftest.$ac_ext
5357 CFLAGS="$xorg_testset_save_CFLAGS"
5359 eval supported=\$$cacheid
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361 $as_echo "$supported" >&6; }
5362 if test "$supported" = "yes" ; then
5363 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5382 xorg_testset_save_CFLAGS="$CFLAGS"
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 xorg_cv_cc_flag_unknown_warning_option=yes
5398 xorg_cv_cc_flag_unknown_warning_option=no
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5405 CFLAGS="$xorg_testset_save_CFLAGS"
5408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5416 $as_echo_n "(cached) " >&6
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423 xorg_cv_cc_flag_unused_command_line_argument=yes
5425 xorg_cv_cc_flag_unused_command_line_argument=no
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5432 CFLAGS="$xorg_testset_save_CFLAGS"
5437 if test $found = "no" ; then
5438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5446 CFLAGS="$CFLAGS -Wbad-function-cast"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5449 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5450 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5451 if eval \${$cacheid+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5465 if ac_fn_c_try_link "$LINENO"; then :
5470 rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext conftest.$ac_ext
5475 CFLAGS="$xorg_testset_save_CFLAGS"
5477 eval supported=\$$cacheid
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5479 $as_echo "$supported" >&6; }
5480 if test "$supported" = "yes" ; then
5481 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5500 xorg_testset_save_CFLAGS="$CFLAGS"
5502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5505 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5506 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5513 if ac_fn_c_try_compile "$LINENO"; then :
5514 xorg_cv_cc_flag_unknown_warning_option=yes
5516 xorg_cv_cc_flag_unknown_warning_option=no
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5521 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5523 CFLAGS="$xorg_testset_save_CFLAGS"
5526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5532 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5533 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5534 $as_echo_n "(cached) " >&6
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 xorg_cv_cc_flag_unused_command_line_argument=yes
5543 xorg_cv_cc_flag_unused_command_line_argument=no
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5548 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5550 CFLAGS="$xorg_testset_save_CFLAGS"
5555 if test $found = "no" ; then
5556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564 CFLAGS="$CFLAGS -Wold-style-definition"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5567 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5568 cacheid=xorg_cv_cc_flag__Wold_style_definition
5569 if eval \${$cacheid+:} false; then :
5570 $as_echo_n "(cached) " >&6
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5583 if ac_fn_c_try_link "$LINENO"; then :
5588 rm -f core conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5593 CFLAGS="$xorg_testset_save_CFLAGS"
5595 eval supported=\$$cacheid
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5597 $as_echo "$supported" >&6; }
5598 if test "$supported" = "yes" ; then
5599 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5618 xorg_testset_save_CFLAGS="$CFLAGS"
5620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5623 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5624 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 xorg_cv_cc_flag_unknown_warning_option=yes
5634 xorg_cv_cc_flag_unknown_warning_option=no
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5639 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5641 CFLAGS="$xorg_testset_save_CFLAGS"
5644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5651 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5652 $as_echo_n "(cached) " >&6
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 xorg_cv_cc_flag_unused_command_line_argument=yes
5661 xorg_cv_cc_flag_unused_command_line_argument=no
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5673 if test $found = "no" ; then
5674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5685 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5686 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5687 if eval \${$cacheid+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5701 if ac_fn_c_try_link "$LINENO"; then :
5706 rm -f core conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
5711 CFLAGS="$xorg_testset_save_CFLAGS"
5713 eval supported=\$$cacheid
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5715 $as_echo "$supported" >&6; }
5716 if test "$supported" = "yes" ; then
5717 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5726 # This chunk adds additional warnings that could catch undesired effects.
5740 xorg_testset_save_CFLAGS="$CFLAGS"
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 xorg_cv_cc_flag_unknown_warning_option=yes
5756 xorg_cv_cc_flag_unknown_warning_option=no
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763 CFLAGS="$xorg_testset_save_CFLAGS"
5766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5774 $as_echo_n "(cached) " >&6
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 xorg_cv_cc_flag_unused_command_line_argument=yes
5783 xorg_cv_cc_flag_unused_command_line_argument=no
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5795 if test $found = "no" ; then
5796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804 CFLAGS="$CFLAGS -Wunused"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5807 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5808 cacheid=xorg_cv_cc_flag__Wunused
5809 if eval \${$cacheid+:} false; then :
5810 $as_echo_n "(cached) " >&6
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5823 if ac_fn_c_try_link "$LINENO"; then :
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5833 CFLAGS="$xorg_testset_save_CFLAGS"
5835 eval supported=\$$cacheid
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837 $as_echo "$supported" >&6; }
5838 if test "$supported" = "yes" ; then
5839 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5858 xorg_testset_save_CFLAGS="$CFLAGS"
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 xorg_cv_cc_flag_unknown_warning_option=yes
5874 xorg_cv_cc_flag_unknown_warning_option=no
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 xorg_cv_cc_flag_unused_command_line_argument=yes
5901 xorg_cv_cc_flag_unused_command_line_argument=no
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5906 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5913 if test $found = "no" ; then
5914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922 CFLAGS="$CFLAGS -Wuninitialized"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5925 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5926 cacheid=xorg_cv_cc_flag__Wuninitialized
5927 if eval \${$cacheid+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5941 if ac_fn_c_try_link "$LINENO"; then :
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5953 eval supported=\$$cacheid
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955 $as_echo "$supported" >&6; }
5956 if test "$supported" = "yes" ; then
5957 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5976 xorg_testset_save_CFLAGS="$CFLAGS"
5978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5981 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5982 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5983 $as_echo_n "(cached) " >&6
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 xorg_cv_cc_flag_unknown_warning_option=yes
5992 xorg_cv_cc_flag_unknown_warning_option=no
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5997 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5999 CFLAGS="$xorg_testset_save_CFLAGS"
6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6008 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6009 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6010 $as_echo_n "(cached) " >&6
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 xorg_cv_cc_flag_unused_command_line_argument=yes
6019 xorg_cv_cc_flag_unused_command_line_argument=no
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6024 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6031 if test $found = "no" ; then
6032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040 CFLAGS="$CFLAGS -Wshadow"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6043 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6044 cacheid=xorg_cv_cc_flag__Wshadow
6045 if eval \${$cacheid+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6059 if ac_fn_c_try_link "$LINENO"; then :
6064 rm -f core conftest.err conftest.$ac_objext \
6065 conftest$ac_exeext conftest.$ac_ext
6069 CFLAGS="$xorg_testset_save_CFLAGS"
6071 eval supported=\$$cacheid
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6073 $as_echo "$supported" >&6; }
6074 if test "$supported" = "yes" ; then
6075 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6094 xorg_testset_save_CFLAGS="$CFLAGS"
6096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6100 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 xorg_cv_cc_flag_unknown_warning_option=yes
6110 xorg_cv_cc_flag_unknown_warning_option=no
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6117 CFLAGS="$xorg_testset_save_CFLAGS"
6120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135 xorg_cv_cc_flag_unused_command_line_argument=yes
6137 xorg_cv_cc_flag_unused_command_line_argument=no
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6144 CFLAGS="$xorg_testset_save_CFLAGS"
6149 if test $found = "no" ; then
6150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6158 CFLAGS="$CFLAGS -Wcast-qual"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6161 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6162 cacheid=xorg_cv_cc_flag__Wcast_qual
6163 if eval \${$cacheid+:} false; then :
6164 $as_echo_n "(cached) " >&6
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6177 if ac_fn_c_try_link "$LINENO"; then :
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6187 CFLAGS="$xorg_testset_save_CFLAGS"
6189 eval supported=\$$cacheid
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6191 $as_echo "$supported" >&6; }
6192 if test "$supported" = "yes" ; then
6193 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6212 xorg_testset_save_CFLAGS="$CFLAGS"
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 xorg_cv_cc_flag_unknown_warning_option=yes
6228 xorg_cv_cc_flag_unknown_warning_option=no
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 xorg_cv_cc_flag_unused_command_line_argument=yes
6255 xorg_cv_cc_flag_unused_command_line_argument=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6262 CFLAGS="$xorg_testset_save_CFLAGS"
6267 if test $found = "no" ; then
6268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6276 CFLAGS="$CFLAGS -Wmissing-noreturn"
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6279 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6280 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6281 if eval \${$cacheid+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6295 if ac_fn_c_try_link "$LINENO"; then :
6300 rm -f core conftest.err conftest.$ac_objext \
6301 conftest$ac_exeext conftest.$ac_ext
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6307 eval supported=\$$cacheid
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6309 $as_echo "$supported" >&6; }
6310 if test "$supported" = "yes" ; then
6311 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6330 xorg_testset_save_CFLAGS="$CFLAGS"
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 xorg_cv_cc_flag_unknown_warning_option=yes
6346 xorg_cv_cc_flag_unknown_warning_option=no
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6353 CFLAGS="$xorg_testset_save_CFLAGS"
6356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371 xorg_cv_cc_flag_unused_command_line_argument=yes
6373 xorg_cv_cc_flag_unused_command_line_argument=no
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6385 if test $found = "no" ; then
6386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6397 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6398 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6399 if eval \${$cacheid+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_link "$LINENO"; then :
6418 rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6423 CFLAGS="$xorg_testset_save_CFLAGS"
6425 eval supported=\$$cacheid
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6427 $as_echo "$supported" >&6; }
6428 if test "$supported" = "yes" ; then
6429 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6448 xorg_testset_save_CFLAGS="$CFLAGS"
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 xorg_cv_cc_flag_unknown_warning_option=yes
6464 xorg_cv_cc_flag_unknown_warning_option=no
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6471 CFLAGS="$xorg_testset_save_CFLAGS"
6474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 xorg_cv_cc_flag_unused_command_line_argument=yes
6491 xorg_cv_cc_flag_unused_command_line_argument=no
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6498 CFLAGS="$xorg_testset_save_CFLAGS"
6503 if test $found = "no" ; then
6504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512 CFLAGS="$CFLAGS -Wredundant-decls"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6515 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6516 cacheid=xorg_cv_cc_flag__Wredundant_decls
6517 if eval \${$cacheid+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6531 if ac_fn_c_try_link "$LINENO"; then :
6536 rm -f core conftest.err conftest.$ac_objext \
6537 conftest$ac_exeext conftest.$ac_ext
6541 CFLAGS="$xorg_testset_save_CFLAGS"
6543 eval supported=\$$cacheid
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6545 $as_echo "$supported" >&6; }
6546 if test "$supported" = "yes" ; then
6547 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6554 # These are currently disabled because they are noisy. They will be enabled
6555 # in the future once the codebase is sufficiently modernized to silence
6556 # them. For now, I don't want them to drown out the other warnings.
6557 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6558 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6559 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6561 # Turn some warnings into errors, so we don't accidently get successful builds
6562 # when there are problems that should be fixed.
6564 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6578 xorg_testset_save_CFLAGS="$CFLAGS"
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6583 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6584 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 xorg_cv_cc_flag_unknown_warning_option=yes
6594 xorg_cv_cc_flag_unknown_warning_option=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6599 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6610 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6611 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 xorg_cv_cc_flag_unused_command_line_argument=yes
6621 xorg_cv_cc_flag_unused_command_line_argument=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6626 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6628 CFLAGS="$xorg_testset_save_CFLAGS"
6633 if test $found = "no" ; then
6634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6638 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642 CFLAGS="$CFLAGS -Werror=implicit"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6645 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6646 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6647 if eval \${$cacheid+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6661 if ac_fn_c_try_link "$LINENO"; then :
6666 rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6671 CFLAGS="$xorg_testset_save_CFLAGS"
6673 eval supported=\$$cacheid
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6675 $as_echo "$supported" >&6; }
6676 if test "$supported" = "yes" ; then
6677 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6682 if test $found = "no" ; then
6683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6694 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6695 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6696 if eval \${$cacheid+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6710 if ac_fn_c_try_link "$LINENO"; then :
6715 rm -f core conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6722 eval supported=\$$cacheid
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6724 $as_echo "$supported" >&6; }
6725 if test "$supported" = "yes" ; then
6726 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6745 xorg_testset_save_CFLAGS="$CFLAGS"
6747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759 xorg_cv_cc_flag_unknown_warning_option=yes
6761 xorg_cv_cc_flag_unknown_warning_option=no
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 xorg_cv_cc_flag_unused_command_line_argument=yes
6788 xorg_cv_cc_flag_unused_command_line_argument=no
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6795 CFLAGS="$xorg_testset_save_CFLAGS"
6800 if test $found = "no" ; then
6801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809 CFLAGS="$CFLAGS -Werror=nonnull"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6812 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6813 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6814 if eval \${$cacheid+:} false; then :
6815 $as_echo_n "(cached) " >&6
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6828 if ac_fn_c_try_link "$LINENO"; then :
6833 rm -f core conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6838 CFLAGS="$xorg_testset_save_CFLAGS"
6840 eval supported=\$$cacheid
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6842 $as_echo "$supported" >&6; }
6843 if test "$supported" = "yes" ; then
6844 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6863 xorg_testset_save_CFLAGS="$CFLAGS"
6865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877 xorg_cv_cc_flag_unknown_warning_option=yes
6879 xorg_cv_cc_flag_unknown_warning_option=no
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6886 CFLAGS="$xorg_testset_save_CFLAGS"
6889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6897 $as_echo_n "(cached) " >&6
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6903 if ac_fn_c_try_compile "$LINENO"; then :
6904 xorg_cv_cc_flag_unused_command_line_argument=yes
6906 xorg_cv_cc_flag_unused_command_line_argument=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6913 CFLAGS="$xorg_testset_save_CFLAGS"
6918 if test $found = "no" ; then
6919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927 CFLAGS="$CFLAGS -Werror=init-self"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6930 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6931 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6932 if eval \${$cacheid+:} false; then :
6933 $as_echo_n "(cached) " >&6
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6946 if ac_fn_c_try_link "$LINENO"; then :
6951 rm -f core conftest.err conftest.$ac_objext \
6952 conftest$ac_exeext conftest.$ac_ext
6956 CFLAGS="$xorg_testset_save_CFLAGS"
6958 eval supported=\$$cacheid
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6960 $as_echo "$supported" >&6; }
6961 if test "$supported" = "yes" ; then
6962 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6981 xorg_testset_save_CFLAGS="$CFLAGS"
6983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6986 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6987 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6988 $as_echo_n "(cached) " >&6
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995 xorg_cv_cc_flag_unknown_warning_option=yes
6997 xorg_cv_cc_flag_unknown_warning_option=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7002 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7013 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7014 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7021 if ac_fn_c_try_compile "$LINENO"; then :
7022 xorg_cv_cc_flag_unused_command_line_argument=yes
7024 xorg_cv_cc_flag_unused_command_line_argument=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031 CFLAGS="$xorg_testset_save_CFLAGS"
7036 if test $found = "no" ; then
7037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045 CFLAGS="$CFLAGS -Werror=main"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7048 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7049 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7050 if eval \${$cacheid+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7064 if ac_fn_c_try_link "$LINENO"; then :
7069 rm -f core conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7074 CFLAGS="$xorg_testset_save_CFLAGS"
7076 eval supported=\$$cacheid
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7078 $as_echo "$supported" >&6; }
7079 if test "$supported" = "yes" ; then
7080 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7099 xorg_testset_save_CFLAGS="$CFLAGS"
7101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7106 $as_echo_n "(cached) " >&6
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 xorg_cv_cc_flag_unknown_warning_option=yes
7115 xorg_cv_cc_flag_unknown_warning_option=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140 xorg_cv_cc_flag_unused_command_line_argument=yes
7142 xorg_cv_cc_flag_unused_command_line_argument=no
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7149 CFLAGS="$xorg_testset_save_CFLAGS"
7154 if test $found = "no" ; then
7155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163 CFLAGS="$CFLAGS -Werror=missing-braces"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7166 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7167 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7168 if eval \${$cacheid+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7182 if ac_fn_c_try_link "$LINENO"; then :
7187 rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7194 eval supported=\$$cacheid
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7196 $as_echo "$supported" >&6; }
7197 if test "$supported" = "yes" ; then
7198 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7217 xorg_testset_save_CFLAGS="$CFLAGS"
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 xorg_cv_cc_flag_unknown_warning_option=yes
7233 xorg_cv_cc_flag_unknown_warning_option=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7240 CFLAGS="$xorg_testset_save_CFLAGS"
7243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 xorg_cv_cc_flag_unused_command_line_argument=yes
7260 xorg_cv_cc_flag_unused_command_line_argument=no
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7267 CFLAGS="$xorg_testset_save_CFLAGS"
7272 if test $found = "no" ; then
7273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7281 CFLAGS="$CFLAGS -Werror=sequence-point"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7284 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7285 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7286 if eval \${$cacheid+:} false; then :
7287 $as_echo_n "(cached) " >&6
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7300 if ac_fn_c_try_link "$LINENO"; then :
7305 rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7312 eval supported=\$$cacheid
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314 $as_echo "$supported" >&6; }
7315 if test "$supported" = "yes" ; then
7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7335 xorg_testset_save_CFLAGS="$CFLAGS"
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7348 if ac_fn_c_try_compile "$LINENO"; then :
7349 xorg_cv_cc_flag_unknown_warning_option=yes
7351 xorg_cv_cc_flag_unknown_warning_option=no
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7356 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7367 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7368 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7375 if ac_fn_c_try_compile "$LINENO"; then :
7376 xorg_cv_cc_flag_unused_command_line_argument=yes
7378 xorg_cv_cc_flag_unused_command_line_argument=no
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7383 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7390 if test $found = "no" ; then
7391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399 CFLAGS="$CFLAGS -Werror=return-type"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7402 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7403 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7404 if eval \${$cacheid+:} false; then :
7405 $as_echo_n "(cached) " >&6
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7418 if ac_fn_c_try_link "$LINENO"; then :
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7428 CFLAGS="$xorg_testset_save_CFLAGS"
7430 eval supported=\$$cacheid
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432 $as_echo "$supported" >&6; }
7433 if test "$supported" = "yes" ; then
7434 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7439 if test $found = "no" ; then
7440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7451 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7452 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7453 if eval \${$cacheid+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7467 if ac_fn_c_try_link "$LINENO"; then :
7472 rm -f core conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7477 CFLAGS="$xorg_testset_save_CFLAGS"
7479 eval supported=\$$cacheid
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7481 $as_echo "$supported" >&6; }
7482 if test "$supported" = "yes" ; then
7483 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7502 xorg_testset_save_CFLAGS="$CFLAGS"
7504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 xorg_cv_cc_flag_unknown_warning_option=yes
7518 xorg_cv_cc_flag_unknown_warning_option=no
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7525 CFLAGS="$xorg_testset_save_CFLAGS"
7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7536 $as_echo_n "(cached) " >&6
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 xorg_cv_cc_flag_unused_command_line_argument=yes
7545 xorg_cv_cc_flag_unused_command_line_argument=no
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7552 CFLAGS="$xorg_testset_save_CFLAGS"
7557 if test $found = "no" ; then
7558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7566 CFLAGS="$CFLAGS -Werror=trigraphs"
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7569 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7570 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7571 if eval \${$cacheid+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7585 if ac_fn_c_try_link "$LINENO"; then :
7590 rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7595 CFLAGS="$xorg_testset_save_CFLAGS"
7597 eval supported=\$$cacheid
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7599 $as_echo "$supported" >&6; }
7600 if test "$supported" = "yes" ; then
7601 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7620 xorg_testset_save_CFLAGS="$CFLAGS"
7622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 xorg_cv_cc_flag_unknown_warning_option=yes
7636 xorg_cv_cc_flag_unknown_warning_option=no
7638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643 CFLAGS="$xorg_testset_save_CFLAGS"
7646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7660 if ac_fn_c_try_compile "$LINENO"; then :
7661 xorg_cv_cc_flag_unused_command_line_argument=yes
7663 xorg_cv_cc_flag_unused_command_line_argument=no
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7675 if test $found = "no" ; then
7676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684 CFLAGS="$CFLAGS -Werror=array-bounds"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7687 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7688 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7689 if eval \${$cacheid+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7703 if ac_fn_c_try_link "$LINENO"; then :
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7715 eval supported=\$$cacheid
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717 $as_echo "$supported" >&6; }
7718 if test "$supported" = "yes" ; then
7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7738 xorg_testset_save_CFLAGS="$CFLAGS"
7740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745 $as_echo_n "(cached) " >&6
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7751 if ac_fn_c_try_compile "$LINENO"; then :
7752 xorg_cv_cc_flag_unknown_warning_option=yes
7754 xorg_cv_cc_flag_unknown_warning_option=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 xorg_cv_cc_flag_unused_command_line_argument=yes
7781 xorg_cv_cc_flag_unused_command_line_argument=no
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 CFLAGS="$CFLAGS -Werror=write-strings"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7805 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7806 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7807 if eval \${$cacheid+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7821 if ac_fn_c_try_link "$LINENO"; then :
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7833 eval supported=\$$cacheid
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835 $as_echo "$supported" >&6; }
7836 if test "$supported" = "yes" ; then
7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7856 xorg_testset_save_CFLAGS="$CFLAGS"
7858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 xorg_cv_cc_flag_unknown_warning_option=yes
7872 xorg_cv_cc_flag_unknown_warning_option=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7879 CFLAGS="$xorg_testset_save_CFLAGS"
7882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 xorg_cv_cc_flag_unused_command_line_argument=yes
7899 xorg_cv_cc_flag_unused_command_line_argument=no
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7906 CFLAGS="$xorg_testset_save_CFLAGS"
7911 if test $found = "no" ; then
7912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920 CFLAGS="$CFLAGS -Werror=address"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7923 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7924 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7925 if eval \${$cacheid+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7939 if ac_fn_c_try_link "$LINENO"; then :
7944 rm -f core conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7951 eval supported=\$$cacheid
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953 $as_echo "$supported" >&6; }
7954 if test "$supported" = "yes" ; then
7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7974 xorg_testset_save_CFLAGS="$CFLAGS"
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7981 $as_echo_n "(cached) " >&6
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7987 if ac_fn_c_try_compile "$LINENO"; then :
7988 xorg_cv_cc_flag_unknown_warning_option=yes
7990 xorg_cv_cc_flag_unknown_warning_option=no
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7997 CFLAGS="$xorg_testset_save_CFLAGS"
8000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015 xorg_cv_cc_flag_unused_command_line_argument=yes
8017 xorg_cv_cc_flag_unused_command_line_argument=no
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8024 CFLAGS="$xorg_testset_save_CFLAGS"
8029 if test $found = "no" ; then
8030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8041 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8042 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8043 if eval \${$cacheid+:} false; then :
8044 $as_echo_n "(cached) " >&6
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8057 if ac_fn_c_try_link "$LINENO"; then :
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8069 eval supported=\$$cacheid
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8071 $as_echo "$supported" >&6; }
8072 if test "$supported" = "yes" ; then
8073 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8078 if test $found = "no" ; then
8079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8090 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8091 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8092 if eval \${$cacheid+:} false; then :
8093 $as_echo_n "(cached) " >&6
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8106 if ac_fn_c_try_link "$LINENO"; then :
8111 rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8118 eval supported=\$$cacheid
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120 $as_echo "$supported" >&6; }
8121 if test "$supported" = "yes" ; then
8122 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8141 xorg_testset_save_CFLAGS="$CFLAGS"
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155 xorg_cv_cc_flag_unknown_warning_option=yes
8157 xorg_cv_cc_flag_unknown_warning_option=no
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8164 CFLAGS="$xorg_testset_save_CFLAGS"
8167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8175 $as_echo_n "(cached) " >&6
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182 xorg_cv_cc_flag_unused_command_line_argument=yes
8184 xorg_cv_cc_flag_unused_command_line_argument=no
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8191 CFLAGS="$xorg_testset_save_CFLAGS"
8196 if test $found = "no" ; then
8197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8208 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8209 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8210 if eval \${$cacheid+:} false; then :
8211 $as_echo_n "(cached) " >&6
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8224 if ac_fn_c_try_link "$LINENO"; then :
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8234 CFLAGS="$xorg_testset_save_CFLAGS"
8236 eval supported=\$$cacheid
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8238 $as_echo "$supported" >&6; }
8239 if test "$supported" = "yes" ; then
8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8245 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8247 { $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
8248 $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;}
8262 xorg_testset_save_CFLAGS="$CFLAGS"
8264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8267 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8268 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8269 $as_echo_n "(cached) " >&6
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8275 if ac_fn_c_try_compile "$LINENO"; then :
8276 xorg_cv_cc_flag_unknown_warning_option=yes
8278 xorg_cv_cc_flag_unknown_warning_option=no
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8283 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8285 CFLAGS="$xorg_testset_save_CFLAGS"
8288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8294 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8295 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8296 $as_echo_n "(cached) " >&6
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 xorg_cv_cc_flag_unused_command_line_argument=yes
8305 xorg_cv_cc_flag_unused_command_line_argument=no
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8310 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8312 CFLAGS="$xorg_testset_save_CFLAGS"
8317 if test $found = "no" ; then
8318 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 CFLAGS="$CFLAGS -Wimplicit"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8329 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8330 cacheid=xorg_cv_cc_flag__Wimplicit
8331 if eval \${$cacheid+:} false; then :
8332 $as_echo_n "(cached) " >&6
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8345 if ac_fn_c_try_link "$LINENO"; then :
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8355 CFLAGS="$xorg_testset_save_CFLAGS"
8357 eval supported=\$$cacheid
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8359 $as_echo "$supported" >&6; }
8360 if test "$supported" = "yes" ; then
8361 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8380 xorg_testset_save_CFLAGS="$CFLAGS"
8382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8385 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8386 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8393 if ac_fn_c_try_compile "$LINENO"; then :
8394 xorg_cv_cc_flag_unknown_warning_option=yes
8396 xorg_cv_cc_flag_unknown_warning_option=no
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8401 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8412 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8413 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8414 $as_echo_n "(cached) " >&6
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421 xorg_cv_cc_flag_unused_command_line_argument=yes
8423 xorg_cv_cc_flag_unused_command_line_argument=no
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8428 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8430 CFLAGS="$xorg_testset_save_CFLAGS"
8435 if test $found = "no" ; then
8436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444 CFLAGS="$CFLAGS -Wnonnull"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8447 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8448 cacheid=xorg_cv_cc_flag__Wnonnull
8449 if eval \${$cacheid+:} false; then :
8450 $as_echo_n "(cached) " >&6
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 if ac_fn_c_try_link "$LINENO"; then :
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8475 eval supported=\$$cacheid
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477 $as_echo "$supported" >&6; }
8478 if test "$supported" = "yes" ; then
8479 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8498 xorg_testset_save_CFLAGS="$CFLAGS"
8500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8503 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8504 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8505 $as_echo_n "(cached) " >&6
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512 xorg_cv_cc_flag_unknown_warning_option=yes
8514 xorg_cv_cc_flag_unknown_warning_option=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8519 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8530 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8531 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8532 $as_echo_n "(cached) " >&6
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 xorg_cv_cc_flag_unused_command_line_argument=yes
8541 xorg_cv_cc_flag_unused_command_line_argument=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8546 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8548 CFLAGS="$xorg_testset_save_CFLAGS"
8553 if test $found = "no" ; then
8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8562 CFLAGS="$CFLAGS -Winit-self"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8565 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8566 cacheid=xorg_cv_cc_flag__Winit_self
8567 if eval \${$cacheid+:} false; then :
8568 $as_echo_n "(cached) " >&6
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8581 if ac_fn_c_try_link "$LINENO"; then :
8586 rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8591 CFLAGS="$xorg_testset_save_CFLAGS"
8593 eval supported=\$$cacheid
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595 $as_echo "$supported" >&6; }
8596 if test "$supported" = "yes" ; then
8597 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8616 xorg_testset_save_CFLAGS="$CFLAGS"
8618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8623 $as_echo_n "(cached) " >&6
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630 xorg_cv_cc_flag_unknown_warning_option=yes
8632 xorg_cv_cc_flag_unknown_warning_option=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8639 CFLAGS="$xorg_testset_save_CFLAGS"
8642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8650 $as_echo_n "(cached) " >&6
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 xorg_cv_cc_flag_unused_command_line_argument=yes
8659 xorg_cv_cc_flag_unused_command_line_argument=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666 CFLAGS="$xorg_testset_save_CFLAGS"
8671 if test $found = "no" ; then
8672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8680 CFLAGS="$CFLAGS -Wmain"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8683 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8684 cacheid=xorg_cv_cc_flag__Wmain
8685 if eval \${$cacheid+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8699 if ac_fn_c_try_link "$LINENO"; then :
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8709 CFLAGS="$xorg_testset_save_CFLAGS"
8711 eval supported=\$$cacheid
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8713 $as_echo "$supported" >&6; }
8714 if test "$supported" = "yes" ; then
8715 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8734 xorg_testset_save_CFLAGS="$CFLAGS"
8736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8741 $as_echo_n "(cached) " >&6
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8747 if ac_fn_c_try_compile "$LINENO"; then :
8748 xorg_cv_cc_flag_unknown_warning_option=yes
8750 xorg_cv_cc_flag_unknown_warning_option=no
8752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8757 CFLAGS="$xorg_testset_save_CFLAGS"
8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8768 $as_echo_n "(cached) " >&6
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 xorg_cv_cc_flag_unused_command_line_argument=yes
8777 xorg_cv_cc_flag_unused_command_line_argument=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8784 CFLAGS="$xorg_testset_save_CFLAGS"
8789 if test $found = "no" ; then
8790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8798 CFLAGS="$CFLAGS -Wmissing-braces"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8801 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8802 cacheid=xorg_cv_cc_flag__Wmissing_braces
8803 if eval \${$cacheid+:} false; then :
8804 $as_echo_n "(cached) " >&6
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8817 if ac_fn_c_try_link "$LINENO"; then :
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8827 CFLAGS="$xorg_testset_save_CFLAGS"
8829 eval supported=\$$cacheid
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831 $as_echo "$supported" >&6; }
8832 if test "$supported" = "yes" ; then
8833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8852 xorg_testset_save_CFLAGS="$CFLAGS"
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8859 $as_echo_n "(cached) " >&6
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8865 if ac_fn_c_try_compile "$LINENO"; then :
8866 xorg_cv_cc_flag_unknown_warning_option=yes
8868 xorg_cv_cc_flag_unknown_warning_option=no
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875 CFLAGS="$xorg_testset_save_CFLAGS"
8878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8886 $as_echo_n "(cached) " >&6
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8892 if ac_fn_c_try_compile "$LINENO"; then :
8893 xorg_cv_cc_flag_unused_command_line_argument=yes
8895 xorg_cv_cc_flag_unused_command_line_argument=no
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902 CFLAGS="$xorg_testset_save_CFLAGS"
8907 if test $found = "no" ; then
8908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8916 CFLAGS="$CFLAGS -Wsequence-point"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8919 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8920 cacheid=xorg_cv_cc_flag__Wsequence_point
8921 if eval \${$cacheid+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8935 if ac_fn_c_try_link "$LINENO"; then :
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8945 CFLAGS="$xorg_testset_save_CFLAGS"
8947 eval supported=\$$cacheid
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8949 $as_echo "$supported" >&6; }
8950 if test "$supported" = "yes" ; then
8951 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8970 xorg_testset_save_CFLAGS="$CFLAGS"
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8977 $as_echo_n "(cached) " >&6
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 xorg_cv_cc_flag_unknown_warning_option=yes
8986 xorg_cv_cc_flag_unknown_warning_option=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993 CFLAGS="$xorg_testset_save_CFLAGS"
8996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 xorg_cv_cc_flag_unused_command_line_argument=yes
9013 xorg_cv_cc_flag_unused_command_line_argument=no
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020 CFLAGS="$xorg_testset_save_CFLAGS"
9025 if test $found = "no" ; then
9026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 CFLAGS="$CFLAGS -Wreturn-type"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9037 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9038 cacheid=xorg_cv_cc_flag__Wreturn_type
9039 if eval \${$cacheid+:} false; then :
9040 $as_echo_n "(cached) " >&6
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9053 if ac_fn_c_try_link "$LINENO"; then :
9058 rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9063 CFLAGS="$xorg_testset_save_CFLAGS"
9065 eval supported=\$$cacheid
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067 $as_echo "$supported" >&6; }
9068 if test "$supported" = "yes" ; then
9069 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9088 xorg_testset_save_CFLAGS="$CFLAGS"
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9095 $as_echo_n "(cached) " >&6
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9101 if ac_fn_c_try_compile "$LINENO"; then :
9102 xorg_cv_cc_flag_unknown_warning_option=yes
9104 xorg_cv_cc_flag_unknown_warning_option=no
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9122 $as_echo_n "(cached) " >&6
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 xorg_cv_cc_flag_unused_command_line_argument=yes
9131 xorg_cv_cc_flag_unused_command_line_argument=no
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9143 if test $found = "no" ; then
9144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 CFLAGS="$CFLAGS -Wtrigraphs"
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9155 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9156 cacheid=xorg_cv_cc_flag__Wtrigraphs
9157 if eval \${$cacheid+:} false; then :
9158 $as_echo_n "(cached) " >&6
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9171 if ac_fn_c_try_link "$LINENO"; then :
9176 rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9183 eval supported=\$$cacheid
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185 $as_echo "$supported" >&6; }
9186 if test "$supported" = "yes" ; then
9187 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9206 xorg_testset_save_CFLAGS="$CFLAGS"
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9213 $as_echo_n "(cached) " >&6
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9219 if ac_fn_c_try_compile "$LINENO"; then :
9220 xorg_cv_cc_flag_unknown_warning_option=yes
9222 xorg_cv_cc_flag_unknown_warning_option=no
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9229 CFLAGS="$xorg_testset_save_CFLAGS"
9232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9240 $as_echo_n "(cached) " >&6
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9246 if ac_fn_c_try_compile "$LINENO"; then :
9247 xorg_cv_cc_flag_unused_command_line_argument=yes
9249 xorg_cv_cc_flag_unused_command_line_argument=no
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9261 if test $found = "no" ; then
9262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9270 CFLAGS="$CFLAGS -Warray-bounds"
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9273 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9274 cacheid=xorg_cv_cc_flag__Warray_bounds
9275 if eval \${$cacheid+:} false; then :
9276 $as_echo_n "(cached) " >&6
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9289 if ac_fn_c_try_link "$LINENO"; then :
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9301 eval supported=\$$cacheid
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303 $as_echo "$supported" >&6; }
9304 if test "$supported" = "yes" ; then
9305 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9324 xorg_testset_save_CFLAGS="$CFLAGS"
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9337 if ac_fn_c_try_compile "$LINENO"; then :
9338 xorg_cv_cc_flag_unknown_warning_option=yes
9340 xorg_cv_cc_flag_unknown_warning_option=no
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9347 CFLAGS="$xorg_testset_save_CFLAGS"
9350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9358 $as_echo_n "(cached) " >&6
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9364 if ac_fn_c_try_compile "$LINENO"; then :
9365 xorg_cv_cc_flag_unused_command_line_argument=yes
9367 xorg_cv_cc_flag_unused_command_line_argument=no
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9379 if test $found = "no" ; then
9380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9388 CFLAGS="$CFLAGS -Wwrite-strings"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9391 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9392 cacheid=xorg_cv_cc_flag__Wwrite_strings
9393 if eval \${$cacheid+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9407 if ac_fn_c_try_link "$LINENO"; then :
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9417 CFLAGS="$xorg_testset_save_CFLAGS"
9419 eval supported=\$$cacheid
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421 $as_echo "$supported" >&6; }
9422 if test "$supported" = "yes" ; then
9423 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9442 xorg_testset_save_CFLAGS="$CFLAGS"
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9449 $as_echo_n "(cached) " >&6
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456 xorg_cv_cc_flag_unknown_warning_option=yes
9458 xorg_cv_cc_flag_unknown_warning_option=no
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9465 CFLAGS="$xorg_testset_save_CFLAGS"
9468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9476 $as_echo_n "(cached) " >&6
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9482 if ac_fn_c_try_compile "$LINENO"; then :
9483 xorg_cv_cc_flag_unused_command_line_argument=yes
9485 xorg_cv_cc_flag_unused_command_line_argument=no
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9492 CFLAGS="$xorg_testset_save_CFLAGS"
9497 if test $found = "no" ; then
9498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506 CFLAGS="$CFLAGS -Waddress"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9509 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9510 cacheid=xorg_cv_cc_flag__Waddress
9511 if eval \${$cacheid+:} false; then :
9512 $as_echo_n "(cached) " >&6
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9525 if ac_fn_c_try_link "$LINENO"; then :
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9535 CFLAGS="$xorg_testset_save_CFLAGS"
9537 eval supported=\$$cacheid
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9539 $as_echo "$supported" >&6; }
9540 if test "$supported" = "yes" ; then
9541 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9560 xorg_testset_save_CFLAGS="$CFLAGS"
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 xorg_cv_cc_flag_unknown_warning_option=yes
9576 xorg_cv_cc_flag_unknown_warning_option=no
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9583 CFLAGS="$xorg_testset_save_CFLAGS"
9586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9594 $as_echo_n "(cached) " >&6
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9600 if ac_fn_c_try_compile "$LINENO"; then :
9601 xorg_cv_cc_flag_unused_command_line_argument=yes
9603 xorg_cv_cc_flag_unused_command_line_argument=no
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9610 CFLAGS="$xorg_testset_save_CFLAGS"
9615 if test $found = "no" ; then
9616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9624 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9627 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9628 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9629 if eval \${$cacheid+:} false; then :
9630 $as_echo_n "(cached) " >&6
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9643 if ac_fn_c_try_link "$LINENO"; then :
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9653 CFLAGS="$xorg_testset_save_CFLAGS"
9655 eval supported=\$$cacheid
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9657 $as_echo "$supported" >&6; }
9658 if test "$supported" = "yes" ; then
9659 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9678 xorg_testset_save_CFLAGS="$CFLAGS"
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9685 $as_echo_n "(cached) " >&6
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9691 if ac_fn_c_try_compile "$LINENO"; then :
9692 xorg_cv_cc_flag_unknown_warning_option=yes
9694 xorg_cv_cc_flag_unknown_warning_option=no
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9701 CFLAGS="$xorg_testset_save_CFLAGS"
9704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9712 $as_echo_n "(cached) " >&6
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 xorg_cv_cc_flag_unused_command_line_argument=yes
9721 xorg_cv_cc_flag_unused_command_line_argument=no
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9733 if test $found = "no" ; then
9734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9742 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9745 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9746 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9747 if eval \${$cacheid+:} false; then :
9748 $as_echo_n "(cached) " >&6
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9761 if ac_fn_c_try_link "$LINENO"; then :
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9771 CFLAGS="$xorg_testset_save_CFLAGS"
9773 eval supported=\$$cacheid
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9775 $as_echo "$supported" >&6; }
9776 if test "$supported" = "yes" ; then
9777 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9791 CWARNFLAGS="$BASE_CFLAGS"
9792 if test "x$GCC" = xyes ; then
9793 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9803 # Check whether --enable-strict-compilation was given.
9804 if test "${enable_strict_compilation+set}" = set; then :
9805 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9829 xorg_testset_save_CFLAGS="$CFLAGS"
9831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9836 $as_echo_n "(cached) " >&6
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9842 if ac_fn_c_try_compile "$LINENO"; then :
9843 xorg_cv_cc_flag_unknown_warning_option=yes
9845 xorg_cv_cc_flag_unknown_warning_option=no
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9863 $as_echo_n "(cached) " >&6
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9869 if ac_fn_c_try_compile "$LINENO"; then :
9870 xorg_cv_cc_flag_unused_command_line_argument=yes
9872 xorg_cv_cc_flag_unused_command_line_argument=no
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9884 if test $found = "no" ; then
9885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9893 CFLAGS="$CFLAGS -pedantic"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9896 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9897 cacheid=xorg_cv_cc_flag__pedantic
9898 if eval \${$cacheid+:} false; then :
9899 $as_echo_n "(cached) " >&6
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9912 if ac_fn_c_try_link "$LINENO"; then :
9917 rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9924 eval supported=\$$cacheid
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9926 $as_echo "$supported" >&6; }
9927 if test "$supported" = "yes" ; then
9928 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9947 xorg_testset_save_CFLAGS="$CFLAGS"
9949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9960 if ac_fn_c_try_compile "$LINENO"; then :
9961 xorg_cv_cc_flag_unknown_warning_option=yes
9963 xorg_cv_cc_flag_unknown_warning_option=no
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9981 $as_echo_n "(cached) " >&6
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9987 if ac_fn_c_try_compile "$LINENO"; then :
9988 xorg_cv_cc_flag_unused_command_line_argument=yes
9990 xorg_cv_cc_flag_unused_command_line_argument=no
9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9997 CFLAGS="$xorg_testset_save_CFLAGS"
10002 if test $found = "no" ; then
10003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10011 CFLAGS="$CFLAGS -Werror"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10014 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10015 cacheid=xorg_cv_cc_flag__Werror
10016 if eval \${$cacheid+:} false; then :
10017 $as_echo_n "(cached) " >&6
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10030 if ac_fn_c_try_link "$LINENO"; then :
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10042 eval supported=\$$cacheid
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10044 $as_echo "$supported" >&6; }
10045 if test "$supported" = "yes" ; then
10046 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10051 if test $found = "no" ; then
10052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10060 CFLAGS="$CFLAGS -errwarn"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10063 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10064 cacheid=xorg_cv_cc_flag__errwarn
10065 if eval \${$cacheid+:} false; then :
10066 $as_echo_n "(cached) " >&6
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10079 if ac_fn_c_try_link "$LINENO"; then :
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10089 CFLAGS="$xorg_testset_save_CFLAGS"
10091 eval supported=\$$cacheid
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10093 $as_echo "$supported" >&6; }
10094 if test "$supported" = "yes" ; then
10095 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10102 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10103 # activate it with -Werror, so we add it here explicitly.
10117 xorg_testset_save_CFLAGS="$CFLAGS"
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10122 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10123 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10124 $as_echo_n "(cached) " >&6
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131 xorg_cv_cc_flag_unknown_warning_option=yes
10133 xorg_cv_cc_flag_unknown_warning_option=no
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10138 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10140 CFLAGS="$xorg_testset_save_CFLAGS"
10143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10149 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10150 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10151 $as_echo_n "(cached) " >&6
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10157 if ac_fn_c_try_compile "$LINENO"; then :
10158 xorg_cv_cc_flag_unused_command_line_argument=yes
10160 xorg_cv_cc_flag_unused_command_line_argument=no
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10172 if test $found = "no" ; then
10173 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10181 CFLAGS="$CFLAGS -Werror=attributes"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10184 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10185 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10186 if eval \${$cacheid+:} false; then :
10187 $as_echo_n "(cached) " >&6
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10200 if ac_fn_c_try_link "$LINENO"; then :
10205 rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10212 eval supported=\$$cacheid
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10214 $as_echo "$supported" >&6; }
10215 if test "$supported" = "yes" ; then
10216 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10223 if test "x$STRICT_COMPILE" = "xyes"; then
10224 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10225 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10233 cat >>confdefs.h <<_ACEOF
10234 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10237 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10238 if test "x$PVM" = "x"; then
10242 cat >>confdefs.h <<_ACEOF
10243 #define PACKAGE_VERSION_MINOR $PVM
10246 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10247 if test "x$PVP" = "x"; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10257 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10258 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10259 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10260 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10265 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10266 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10267 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10268 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10269 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10276 if test x$APP_MAN_SUFFIX = x ; then
10279 if test x$APP_MAN_DIR = x ; then
10280 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10283 if test x$LIB_MAN_SUFFIX = x ; then
10286 if test x$LIB_MAN_DIR = x ; then
10287 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10290 if test x$FILE_MAN_SUFFIX = x ; then
10292 solaris*) FILE_MAN_SUFFIX=4 ;;
10293 *) FILE_MAN_SUFFIX=5 ;;
10296 if test x$FILE_MAN_DIR = x ; then
10297 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10300 if test x$MISC_MAN_SUFFIX = x ; then
10302 solaris*) MISC_MAN_SUFFIX=5 ;;
10303 *) MISC_MAN_SUFFIX=7 ;;
10306 if test x$MISC_MAN_DIR = x ; then
10307 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10310 if test x$DRIVER_MAN_SUFFIX = x ; then
10312 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10313 *) DRIVER_MAN_SUFFIX=4 ;;
10316 if test x$DRIVER_MAN_DIR = x ; then
10317 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10320 if test x$ADMIN_MAN_SUFFIX = x ; then
10322 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10323 *) ADMIN_MAN_SUFFIX=8 ;;
10326 if test x$ADMIN_MAN_DIR = x ; then
10327 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10344 XORG_MAN_PAGE="X Version 11"
10347 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10348 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10349 -e 's|__xservername__|Xorg|g' \
10350 -e 's|__xconfigfile__|xorg.conf|g' \
10351 -e 's|__projectroot__|\$(prefix)|g' \
10352 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10353 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10354 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10355 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10356 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10357 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10358 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10362 # Check whether --enable-silent-rules was given.
10363 if test "${enable_silent_rules+set}" = set; then :
10364 enableval=$enable_silent_rules;
10367 case $enable_silent_rules in
10368 yes) AM_DEFAULT_VERBOSITY=0;;
10369 no) AM_DEFAULT_VERBOSITY=1;;
10370 *) AM_DEFAULT_VERBOSITY=0;;
10377 # Check whether --with-xkb-config-root was given.
10378 if test "${with_xkb_config_root+set}" = set; then :
10379 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
10381 XKBCONFIGROOT=${datadir}/X11/xkb
10386 # Checks for pkg-config packages
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETXKBMAP" >&5
10390 $as_echo_n "checking for SETXKBMAP... " >&6; }
10392 if test -n "$SETXKBMAP_CFLAGS"; then
10393 pkg_cv_SETXKBMAP_CFLAGS="$SETXKBMAP_CFLAGS"
10394 elif test -n "$PKG_CONFIG"; then
10395 if test -n "$PKG_CONFIG" && \
10396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10397 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400 test $ac_status = 0; }; then
10401 pkg_cv_SETXKBMAP_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
10408 if test -n "$SETXKBMAP_LIBS"; then
10409 pkg_cv_SETXKBMAP_LIBS="$SETXKBMAP_LIBS"
10410 elif test -n "$PKG_CONFIG"; then
10411 if test -n "$PKG_CONFIG" && \
10412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10413 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10416 test $ac_status = 0; }; then
10417 pkg_cv_SETXKBMAP_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
10427 if test $pkg_failed = yes; then
10429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10430 _pkg_short_errors_supported=yes
10432 _pkg_short_errors_supported=no
10434 if test $_pkg_short_errors_supported = yes; then
10435 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1`
10437 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1`
10439 # Put the nasty error message in config.log where it belongs
10440 echo "$SETXKBMAP_PKG_ERRORS" >&5
10442 as_fn_error $? "Package requirements (xkbfile x11) were not met:
10444 $SETXKBMAP_PKG_ERRORS
10446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10447 installed software in a non-standard prefix.
10449 Alternatively, you may set the environment variables SETXKBMAP_CFLAGS
10450 and SETXKBMAP_LIBS to avoid the need to call pkg-config.
10451 See the pkg-config man page for more details.
10453 elif test $pkg_failed = untried; then
10454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10456 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10457 is in your PATH or set the PKG_CONFIG environment variable to the full
10458 path to pkg-config.
10460 Alternatively, you may set the environment variables SETXKBMAP_CFLAGS
10461 and SETXKBMAP_LIBS to avoid the need to call pkg-config.
10462 See the pkg-config man page for more details.
10464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10465 See \`config.log' for more details" "$LINENO" 5; }
10467 SETXKBMAP_CFLAGS=$pkg_cv_SETXKBMAP_CFLAGS
10468 SETXKBMAP_LIBS=$pkg_cv_SETXKBMAP_LIBS
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10470 $as_echo "yes" >&6; }
10474 # Allow checking code with lint, sparse, etc.
10480 # Check whether --with-lint was given.
10481 if test "${with_lint+set}" = set; then :
10482 withval=$with_lint; use_lint=$withval
10488 # Obtain platform specific info like program name and options
10489 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10491 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10493 lint_options="-badflag"
10495 *freebsd* | *netbsd*)
10497 lint_options="-u -b"
10501 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10505 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10506 if test "x$use_lint" = x"yes" ; then
10507 # Extract the first word of "$lint_name", so it can be a program name with args.
10508 set dummy $lint_name; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_path_LINT+:} false; then :
10512 $as_echo_n "(cached) " >&6
10516 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 LINT=$ac_cv_path_LINT
10538 if test -n "$LINT"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10540 $as_echo "$LINT" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10547 if test "x$LINT" = "x"; then
10548 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10550 elif test "x$use_lint" = x"no" ; then
10551 if test "x$LINT" != "x"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10553 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10556 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10559 # User supplied flags override default flags
10560 if test "x$LINT_FLAGS" != "x"; then
10561 lint_options=$LINT_FLAGS
10564 LINT_FLAGS=$lint_options
10566 if test "x$LINT" != x; then
10577 ac_config_files="$ac_config_files Makefile man/Makefile"
10579 cat >confcache <<\_ACEOF
10580 # This file is a shell script that caches the results of configure
10581 # tests run on this system so they can be shared between configure
10582 # scripts and configure runs, see configure's option --config-cache.
10583 # It is not useful on other systems. If it contains results you don't
10584 # want to keep, you may remove or edit it.
10586 # config.status only pays attention to the cache file if you give it
10587 # the --recheck option to rerun configure.
10589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10591 # following values.
10595 # The following way of writing the cache mishandles newlines in values,
10596 # but we know of no workaround that is simple, portable, and efficient.
10597 # So, we kill variables containing newlines.
10598 # Ultrix sh set writes to stderr and can't be redirected directly,
10599 # and sets the high bit in the cache file unless we assign to the vars.
10601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10602 eval ac_val=\$$ac_var
10606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10610 _ | IFS | as_nl) ;; #(
10611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10612 *) { eval $ac_var=; unset $ac_var;} ;;
10618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10619 *${as_nl}ac_space=\ *)
10620 # `set' does not quote correctly, so add quotes: double-quote
10621 # substitution turns \\\\ into \\, and sed turns \\ into \.
10624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10627 # `set' quotes correctly as required by POSIX, so do not add quotes.
10628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10642 if test -w "$cache_file"; then
10643 if test "x$cache_file" != "x/dev/null"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10645 $as_echo "$as_me: updating cache $cache_file" >&6;}
10646 if test ! -f "$cache_file" || test -h "$cache_file"; then
10647 cat confcache >"$cache_file"
10649 case $cache_file in #(
10651 mv -f confcache "$cache_file"$$ &&
10652 mv -f "$cache_file"$$ "$cache_file" ;; #(
10654 mv -f confcache "$cache_file" ;;
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10666 # Let make expand exec_prefix.
10667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10669 DEFS=-DHAVE_CONFIG_H
10674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10675 # 1. Remove the extension, and $U if already installed.
10676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10679 # will be set to the directory where LIBOBJS objects are built.
10680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10683 LIBOBJS=$ac_libobjs
10685 LTLIBOBJS=$ac_ltlibobjs
10688 if test -n "$EXEEXT"; then
10690 am__EXEEXT_FALSE='#'
10692 am__EXEEXT_TRUE='#'
10696 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10697 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10700 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10701 as_fn_error $? "conditional \"AMDEP\" was never defined.
10702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10708 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10709 as_fn_error $? "conditional \"LINT\" was never defined.
10710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10713 : "${CONFIG_STATUS=./config.status}"
10715 ac_clean_files_save=$ac_clean_files
10716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10722 # Generated by $as_me.
10723 # Run this file to recreate the current configuration.
10724 # Compiler output produced by configure, useful for debugging
10725 # configure, is in config.log if it exists.
10728 ac_cs_recheck=false
10731 SHELL=\${CONFIG_SHELL-$SHELL}
10734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10735 ## -------------------- ##
10736 ## M4sh Initialization. ##
10737 ## -------------------- ##
10739 # Be more Bourne compatible
10740 DUALCASE=1; export DUALCASE # for MKS sh
10741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10745 # is contrary to our usage. Disable this feature.
10746 alias -g '${1+"$@"}'='"$@"'
10747 setopt NO_GLOB_SUBST
10749 case `(set -o) 2>/dev/null` in #(
10761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10765 # Prefer a ksh shell builtin over an external printf program on Solaris,
10766 # but without wasting forks for bash or zsh.
10767 if test -z "$BASH_VERSION$ZSH_VERSION" \
10768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10769 as_echo='print -r --'
10770 as_echo_n='print -rn --'
10771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10772 as_echo='printf %s\n'
10773 as_echo_n='printf %s'
10775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10777 as_echo_n='/usr/ucb/echo -n'
10779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10780 as_echo_n_body='eval
10784 expr "X$arg" : "X\\(.*\\)$as_nl";
10785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10789 export as_echo_n_body
10790 as_echo_n='sh -c $as_echo_n_body as_echo'
10792 export as_echo_body
10793 as_echo='sh -c $as_echo_body as_echo'
10796 # The user is always right.
10797 if test "${PATH_SEPARATOR+set}" != set; then
10799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10807 # We need space, tab and new line, in precisely that order. Quoting is
10808 # there to prevent editors from complaining about space-tab.
10809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10810 # splitting by setting IFS to empty value.)
10813 # Find who we are. Look in the path if we contain no directory separator.
10816 *[\\/]* ) as_myself=$0 ;;
10817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10821 test -z "$as_dir" && as_dir=.
10822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10828 # We did not find ourselves, most probably we were run as `sh COMMAND'
10829 # in which case we are not to be found in the path.
10830 if test "x$as_myself" = x; then
10833 if test ! -f "$as_myself"; then
10834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10838 # Unset variables that we do not need and which cause bugs (e.g. in
10839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10840 # suppresses any "Segmentation fault" message there. '((' could
10841 # trigger a bug in pdksh 5.2.14.
10842 for as_var in BASH_ENV ENV MAIL MAILPATH
10843 do eval test x\${$as_var+set} = xset \
10844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10861 # ----------------------------------------
10862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10864 # script with STATUS, using 1 if that was 0.
10867 as_status=$1; test $as_status -eq 0 && as_status=1
10869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10872 $as_echo "$as_me: error: $2" >&2
10873 as_fn_exit $as_status
10877 # as_fn_set_status STATUS
10878 # -----------------------
10879 # Set $? to STATUS, without forking.
10880 as_fn_set_status ()
10883 } # as_fn_set_status
10885 # as_fn_exit STATUS
10886 # -----------------
10887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10891 as_fn_set_status $1
10897 # Portably unset VAR.
10900 { eval $1=; unset $1;}
10902 as_unset=as_fn_unset
10903 # as_fn_append VAR VALUE
10904 # ----------------------
10905 # Append the text in VALUE to the end of the definition contained in VAR. Take
10906 # advantage of any shell optimizations that allow amortized linear growth over
10907 # repeated appends, instead of the typical quadratic growth present in naive
10909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10910 eval 'as_fn_append ()
10921 # as_fn_arith ARG...
10922 # ------------------
10923 # Perform arithmetic evaluation on the ARGs, and store the result in the
10924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10925 # must be portable across $(()) and expr.
10926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10927 eval 'as_fn_arith ()
10934 as_val=`expr "$@" || test $? -eq 1`
10939 if expr a : '\(a\)' >/dev/null 2>&1 &&
10940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10947 as_basename=basename
10952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10958 as_me=`$as_basename -- "$0" ||
10959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10960 X"$0" : 'X\(//\)$' \| \
10961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10963 sed '/^.*\/\([^/][^/]*\)\/*$/{
10977 # Avoid depending upon Character Ranges.
10978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10981 as_cr_digits='0123456789'
10982 as_cr_alnum=$as_cr_Letters$as_cr_digits
10984 ECHO_C= ECHO_N= ECHO_T=
10985 case `echo -n x` in #(((((
10987 case `echo 'xy\c'` in
10988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10997 rm -f conf$$ conf$$.exe conf$$.file
10998 if test -d conf$$.dir; then
10999 rm -f conf$$.dir/conf$$.file
11002 mkdir conf$$.dir 2>/dev/null
11004 if (echo >conf$$.file) 2>/dev/null; then
11005 if ln -s conf$$.file conf$$ 2>/dev/null; then
11007 # ... but there are two gotchas:
11008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11010 # In both cases, we have to default to `cp -p'.
11011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11013 elif ln conf$$.file conf$$ 2>/dev/null; then
11021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11022 rmdir conf$$.dir 2>/dev/null
11027 # Create "$as_dir" as a directory, including parents if necessary.
11032 -*) as_dir=./$as_dir;;
11034 test -d "$as_dir" || eval $as_mkdir_p || {
11038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11039 *) as_qdir=$as_dir;;
11041 as_dirs="'$as_qdir' $as_dirs"
11042 as_dir=`$as_dirname -- "$as_dir" ||
11043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11044 X"$as_dir" : 'X\(//\)[^/]' \| \
11045 X"$as_dir" : 'X\(//\)$' \| \
11046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11047 $as_echo X"$as_dir" |
11048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11052 /^X\(\/\/\)[^/].*/{
11065 test -d "$as_dir" && break
11067 test -z "$as_dirs" || eval "mkdir $as_dirs"
11068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11072 if mkdir -p . 2>/dev/null; then
11073 as_mkdir_p='mkdir -p "$as_dir"'
11075 test -d ./-p && rmdir ./-p
11079 if test -x / >/dev/null 2>&1; then
11080 as_test_x='test -x'
11082 if ls -dL / >/dev/null 2>&1; then
11089 if test -d "$1"; then
11095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11096 ???[sx]*):;;*)false;;esac;fi
11100 as_executable_p=$as_test_x
11102 # Sed expression to map a string onto a valid CPP name.
11103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11105 # Sed expression to map a string onto a valid variable name.
11106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11110 ## ----------------------------------- ##
11111 ## Main body of $CONFIG_STATUS script. ##
11112 ## ----------------------------------- ##
11114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11117 # Save the log message, to keep $0 and so on meaningful, and to
11118 # report actual input values of CONFIG_FILES etc. instead of their
11119 # values after options handling.
11121 This file was extended by setxkbmap $as_me 1.3.0, which was
11122 generated by GNU Autoconf 2.68. Invocation command line was
11124 CONFIG_FILES = $CONFIG_FILES
11125 CONFIG_HEADERS = $CONFIG_HEADERS
11126 CONFIG_LINKS = $CONFIG_LINKS
11127 CONFIG_COMMANDS = $CONFIG_COMMANDS
11130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11135 case $ac_config_files in *"
11136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11139 case $ac_config_headers in *"
11140 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11145 # Files that config.status was made for.
11146 config_files="$ac_config_files"
11147 config_headers="$ac_config_headers"
11148 config_commands="$ac_config_commands"
11152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11154 \`$as_me' instantiates files and other configuration actions
11155 from templates according to the current configuration. Unless the files
11156 and actions are specified as TAGs, all are instantiated by default.
11158 Usage: $0 [OPTION]... [TAG]...
11160 -h, --help print this help, then exit
11161 -V, --version print version number and configuration settings, then exit
11162 --config print configuration, then exit
11163 -q, --quiet, --silent
11164 do not print progress messages
11165 -d, --debug don't remove temporary files
11166 --recheck update $as_me by reconfiguring in the same conditions
11167 --file=FILE[:TEMPLATE]
11168 instantiate the configuration file FILE
11169 --header=FILE[:TEMPLATE]
11170 instantiate the configuration header FILE
11172 Configuration files:
11175 Configuration headers:
11178 Configuration commands:
11181 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11185 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11187 setxkbmap config.status 1.3.0
11188 configured by $0, generated by GNU Autoconf 2.68,
11189 with options \\"\$ac_cs_config\\"
11191 Copyright (C) 2010 Free Software Foundation, Inc.
11192 This config.status script is free software; the Free Software Foundation
11193 gives unlimited permission to copy, distribute and modify it."
11200 test -n "\$AWK" || AWK=awk
11203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11204 # The default lists apply if the user does not specify any file.
11210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11211 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11227 # Handling of the options.
11228 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11230 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11231 $as_echo "$ac_cs_version"; exit ;;
11232 --config | --confi | --conf | --con | --co | --c )
11233 $as_echo "$ac_cs_config"; exit ;;
11234 --debug | --debu | --deb | --de | --d | -d )
11236 --file | --fil | --fi | --f )
11239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11240 '') as_fn_error $? "missing file argument" ;;
11242 as_fn_append CONFIG_FILES " '$ac_optarg'"
11243 ac_need_defaults=false;;
11244 --header | --heade | --head | --hea )
11247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11249 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11250 ac_need_defaults=false;;
11252 # Conflict between --help and --header
11253 as_fn_error $? "ambiguous option: \`$1'
11254 Try \`$0 --help' for more information.";;
11255 --help | --hel | -h )
11256 $as_echo "$ac_cs_usage"; exit ;;
11257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11261 # This is an error.
11262 -*) as_fn_error $? "unrecognized option: \`$1'
11263 Try \`$0 --help' for more information." ;;
11265 *) as_fn_append ac_config_targets " $1"
11266 ac_need_defaults=false ;;
11272 ac_configure_extra_args=
11274 if $ac_cs_silent; then
11276 ac_configure_extra_args="$ac_configure_extra_args --silent"
11280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11281 if \$ac_cs_recheck; then
11282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11285 CONFIG_SHELL='$SHELL'
11286 export CONFIG_SHELL
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11296 ## Running $as_me. ##
11302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11306 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11312 # Handling of arguments.
11313 for ac_config_target in $ac_config_targets
11315 case $ac_config_target in
11316 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11319 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11321 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11326 # If the user did not use the arguments to specify the items to instantiate,
11327 # then the envvar interface is used. Set only those that are not.
11328 # We use the long form for the default assignment because of an extremely
11329 # bizarre bug on SunOS 4.1.3.
11330 if $ac_need_defaults; then
11331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11336 # Have a temporary directory for convenience. Make it in the build tree
11337 # simply because there is no reason against having it here, and in addition,
11338 # creating and moving files from /tmp can sometimes cause problems.
11339 # Hook for its removal unless debugging.
11340 # Note that there is a small window in which the directory will not be cleaned:
11341 # after its creation but before its name has been assigned to `$tmp'.
11345 trap 'exit_status=$?
11346 : "${ac_tmp:=$tmp}"
11347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11349 trap 'as_fn_exit 1' 1 2 13 15
11351 # Create a (secure) tmp directory for tmp files.
11354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11358 tmp=./conf$$-$RANDOM
11359 (umask 077 && mkdir "$tmp")
11360 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11363 # Set up the scripts for CONFIG_FILES section.
11364 # No need to generate them if there are no CONFIG_FILES.
11365 # This happens for instance with `./config.status config.h'.
11366 if test -n "$CONFIG_FILES"; then
11369 ac_cr=`echo X | tr X '\015'`
11370 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11371 # But we know of no other shell where ac_cr would be empty at this
11372 # point, so we can use a bashism as a fallback.
11373 if test "x$ac_cr" = x; then
11374 eval ac_cr=\$\'\\r\'
11376 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11377 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11380 ac_cs_awk_cr=$ac_cr
11383 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11388 echo "cat >conf$$subs.awk <<_ACEOF" &&
11389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11391 } >conf$$subs.sh ||
11392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11395 for ac_last_try in false false false false false :; do
11396 . ./conf$$subs.sh ||
11397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11400 if test $ac_delim_n = $ac_delim_num; then
11402 elif $ac_last_try; then
11403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11408 rm -f conf$$subs.sh
11410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11415 s/^/S["/; s/!.*/"]=/
11425 s/\(.\{148\}\)..*/\1/
11427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11439 s/\(.\{148\}\)..*/\1/
11441 s/["\\]/\\&/g; s/^/"/; s/$/"/
11445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11450 ' <conf$$subs.awk | sed '
11455 ' >>$CONFIG_STATUS || ac_write_fail=1
11456 rm -f conf$$subs.awk
11457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11460 for (key in S) S_is_set[key] = 1
11466 nfields = split(line, field, "@")
11468 len = length(field[1])
11469 for (i = 2; i < nfields; i++) {
11471 keylen = length(key)
11472 if (S_is_set[key]) {
11474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11475 len += length(value) + length(field[++i])
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11491 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11495 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11496 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11497 # trailing colons and then remove the whole line if VPATH becomes empty
11498 # (actually we leave an empty line to preserve line numbers).
11499 if test "x$srcdir" = x.; then
11500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519 fi # test -n "$CONFIG_FILES"
11521 # Set up the scripts for CONFIG_HEADERS section.
11522 # No need to generate them if there are no CONFIG_HEADERS.
11523 # This happens for instance with `./config.status Makefile'.
11524 if test -n "$CONFIG_HEADERS"; then
11525 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11529 # Transform confdefs.h into an awk script `defines.awk', embedded as
11530 # here-document in config.status, that substitutes the proper values into
11531 # config.h.in to produce config.h.
11533 # Create a delimiter string that does not exist in confdefs.h, to ease
11534 # handling of long lines.
11536 for ac_last_try in false false :; do
11537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11538 if test -z "$ac_tt"; then
11540 elif $ac_last_try; then
11541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11547 # For the awk script, D is an array of macro values keyed by name,
11548 # likewise P contains macro parameters if any. Preserve backslash
11549 # newline sequences.
11551 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11553 s/.\{148\}/&'"$ac_delim"'/g
11556 s/^[ ]*#[ ]*define[ ][ ]*/ /
11563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11570 D["\1"]=" \3\\\\\\n"\\/p
11572 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11577 s/.\{148\}/&'"$ac_delim"'/g
11582 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11585 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11587 ' <confdefs.h | sed '
11588 s/'"$ac_delim"'/"\\\
11589 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11592 for (key in D) D_is_set[key] = 1
11595 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11597 split(line, arg, " ")
11598 if (arg[1] == "#") {
11602 defundef = substr(arg[1], 2)
11605 split(mac1, mac2, "(") #)
11607 prefix = substr(line, 1, index(line, defundef) - 1)
11608 if (D_is_set[macro]) {
11609 # Preserve the white space surrounding the "#".
11610 print prefix "define", macro P[macro] D[macro]
11613 # Replace #undef with comments. This is necessary, for example,
11614 # in the case of _POSIX_SOURCE, which is predefined and required
11615 # on some systems where configure will not decide to define it.
11616 if (defundef == "undef") {
11617 print "/*", prefix defundef, macro, "*/"
11625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11627 fi # test -n "$CONFIG_HEADERS"
11630 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11635 :[FHLC]) ac_mode=$ac_tag; continue;;
11637 case $ac_mode$ac_tag in
11639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11640 :[FH]-) ac_tag=-:-;;
11641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11658 -) ac_f="$ac_tmp/stdin";;
11659 *) # Look for the file first in the build tree, then in the source tree
11660 # (if the path is not absolute). The absolute path cannot be DOS-style,
11661 # because $ac_f cannot contain `:'.
11665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11670 as_fn_append ac_file_inputs " '$ac_f'"
11673 # Let's still pretend it is `configure' which instantiates (i.e., don't
11674 # use $as_me), people would be surprised to read:
11675 # /* config.h. Generated by config.status. */
11676 configure_input='Generated from '`
11677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11679 if test x"$ac_file" != x-; then
11680 configure_input="$ac_file. $configure_input"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11682 $as_echo "$as_me: creating $ac_file" >&6;}
11684 # Neutralize special characters interpreted by sed in replacement strings.
11685 case $configure_input in #(
11686 *\&* | *\|* | *\\* )
11687 ac_sed_conf_input=`$as_echo "$configure_input" |
11688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11689 *) ac_sed_conf_input=$configure_input;;
11693 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11699 ac_dir=`$as_dirname -- "$ac_file" ||
11700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11701 X"$ac_file" : 'X\(//\)[^/]' \| \
11702 X"$ac_file" : 'X\(//\)$' \| \
11703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11704 $as_echo X"$ac_file" |
11705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11709 /^X\(\/\/\)[^/].*/{
11722 as_dir="$ac_dir"; as_fn_mkdir_p
11726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11729 # A ".." for each directory in $ac_dir_suffix.
11730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11731 case $ac_top_builddir_sub in
11732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11736 ac_abs_top_builddir=$ac_pwd
11737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11738 # for backward compatibility:
11739 ac_top_builddir=$ac_top_build_prefix
11742 .) # We are building in place.
11744 ac_top_srcdir=$ac_top_builddir_sub
11745 ac_abs_top_srcdir=$ac_pwd ;;
11746 [\\/]* | ?:[\\/]* ) # Absolute name.
11747 ac_srcdir=$srcdir$ac_dir_suffix;
11748 ac_top_srcdir=$srcdir
11749 ac_abs_top_srcdir=$srcdir ;;
11750 *) # Relative name.
11751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11752 ac_top_srcdir=$ac_top_build_prefix$srcdir
11753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11768 ac_MKDIR_P=$MKDIR_P
11770 [\\/$]* | ?:[\\/]* ) ;;
11771 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11776 # If the template does not know about datarootdir, expand it.
11777 # FIXME: This hack should be removed a few years after 2.60.
11778 ac_datarootdir_hack=; ac_datarootdir_seen=
11789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11790 *datarootdir*) ac_datarootdir_seen=yes;;
11791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11796 ac_datarootdir_hack='
11797 s&@datadir@&$datadir&g
11798 s&@docdir@&$docdir&g
11799 s&@infodir@&$infodir&g
11800 s&@localedir@&$localedir&g
11801 s&@mandir@&$mandir&g
11802 s&\\\${datarootdir}&$datarootdir&g' ;;
11806 # Neutralize VPATH when `$srcdir' = `.'.
11807 # Shell code in configure.ac might set extrasub.
11808 # FIXME: do we really want to maintain this feature?
11809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11810 ac_sed_extra="$ac_vpsub
11813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11816 s|@configure_input@|$ac_sed_conf_input|;t t
11817 s&@top_builddir@&$ac_top_builddir_sub&;t t
11818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11819 s&@srcdir@&$ac_srcdir&;t t
11820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11821 s&@top_srcdir@&$ac_top_srcdir&;t t
11822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11823 s&@builddir@&$ac_builddir&;t t
11824 s&@abs_builddir@&$ac_abs_builddir&;t t
11825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11826 s&@INSTALL@&$ac_INSTALL&;t t
11827 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11828 $ac_datarootdir_hack
11830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11831 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11834 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11836 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11838 which seems to be undefined. Please make sure it is defined" >&5
11839 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11840 which seems to be undefined. Please make sure it is defined" >&2;}
11842 rm -f "$ac_tmp/stdin"
11844 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11845 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11853 if test x"$ac_file" != x-; then
11855 $as_echo "/* $configure_input */" \
11856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11857 } >"$ac_tmp/config.h" \
11858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11859 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11861 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11864 mv "$ac_tmp/config.h" "$ac_file" \
11865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11868 $as_echo "/* $configure_input */" \
11869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11870 || as_fn_error $? "could not create -" "$LINENO" 5
11872 # Compute "$ac_file"'s index in $config_headers.
11875 for _am_header in $config_headers :; do
11876 case $_am_header in
11877 $_am_arg | $_am_arg:* )
11880 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11883 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11884 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11885 X"$_am_arg" : 'X\(//\)[^/]' \| \
11886 X"$_am_arg" : 'X\(//\)$' \| \
11887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11888 $as_echo X"$_am_arg" |
11889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11893 /^X\(\/\/\)[^/].*/{
11905 s/.*/./; q'`/stamp-h$_am_stamp_count
11908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11909 $as_echo "$as_me: executing $ac_file commands" >&6;}
11914 case $ac_file$ac_mode in
11915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11916 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11917 # are listed without --file. Let's play safe and only enable the eval
11918 # if we detect the quoting.
11919 case $CONFIG_FILES in
11920 *\'*) eval set x "$CONFIG_FILES" ;;
11921 *) set x $CONFIG_FILES ;;
11926 # Strip MF so we end up with the name of the file.
11927 mf=`echo "$mf" | sed -e 's/:.*$//'`
11928 # Check whether this is an Automake generated Makefile or not.
11929 # We used to match only the files named `Makefile.in', but
11930 # some people rename them; so instead we look at the file content.
11931 # Grep'ing the first line is not enough: some people post-process
11932 # each Makefile.in and add a new line on top of each file to say so.
11933 # Grep'ing the whole file is not good either: AIX grep has a line
11934 # limit of 2048, but all sed's we know have understand at least 4000.
11935 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11936 dirpart=`$as_dirname -- "$mf" ||
11937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11938 X"$mf" : 'X\(//\)[^/]' \| \
11939 X"$mf" : 'X\(//\)$' \| \
11940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11946 /^X\(\/\/\)[^/].*/{
11962 # Extract the definition of DEPDIR, am__include, and am__quote
11963 # from the Makefile without running `make'.
11964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11965 test -z "$DEPDIR" && continue
11966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11967 test -z "am__include" && continue
11968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11969 # When using ansi2knr, U may be empty or an underscore; expand it
11970 U=`sed -n 's/^U = //p' < "$mf"`
11971 # Find all dependency output files, they are included files with
11972 # $(DEPDIR) in their names. We invoke sed twice because it is the
11973 # simplest approach to changing $(DEPDIR) to its actual value in the
11975 for file in `sed -n "
11976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11978 # Make sure the directory exists.
11979 test -f "$dirpart/$file" && continue
11980 fdir=`$as_dirname -- "$file" ||
11981 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 X"$file" : 'X\(//\)[^/]' \| \
11983 X"$file" : 'X\(//\)$' \| \
11984 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11985 $as_echo X"$file" |
11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11990 /^X\(\/\/\)[^/].*/{
12003 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12004 # echo "creating $dirpart/$file"
12005 echo '# dummy' > "$dirpart/$file"
12017 ac_clean_files=$ac_clean_files_save
12019 test $ac_write_fail = 0 ||
12020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12023 # configure is writing to config.log, and then calls config.status.
12024 # config.status does its own redirection, appending to config.log.
12025 # Unfortunately, on DOS this fails, as config.log is still kept open
12026 # by configure, so config.status won't be able to write to it; its
12027 # output is simply discarded. So we exec the FD to /dev/null,
12028 # effectively closing config.log, so it can be properly (re)opened and
12029 # appended to by config.status. When coming back to configure, we
12030 # need to make the FD available again.
12031 if test "$no_create" != yes; then
12033 ac_config_status_args=
12034 test "$silent" = yes &&
12035 ac_config_status_args="$ac_config_status_args --quiet"
12037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12040 # would make configure fail if this is the last instruction.
12041 $ac_cs_success || as_fn_exit 1
12043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12045 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}