2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xinput 1.6.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='xinput'
563 PACKAGE_TARNAME='xinput'
564 PACKAGE_VERSION='1.6.0'
565 PACKAGE_STRING='xinput 1.6.0'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
677 MAINTAINER_MODE_FALSE
687 INSTALL_STRIP_PROGRAM
729 program_transform_name
742 enable_option_checking
743 enable_maintainer_mode
744 enable_dependency_tracking
745 enable_selective_werror
746 enable_strict_compilation
749 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used" >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures xinput 1.6.0 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/xinput]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of xinput 1.6.0:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --disable-selective-werror
1394 Turn off selective compiler errors. (default:
1396 --enable-strict-compilation
1397 Enable all warnings from compiler and make them
1398 errors (default: disabled)
1399 --enable-silent-rules less verbose build output (undo: `make V=1')
1400 --disable-silent-rules verbose build output (undo: `make V=0')
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1411 PKG_CONFIG path to pkg-config utility
1413 directories to add to pkg-config's search path
1415 path overriding pkg-config's built-in search path
1417 C compiler flags for XINPUT, overriding pkg-config
1418 XINPUT_LIBS linker flags for XINPUT, overriding pkg-config
1419 XI2_CFLAGS C compiler flags for XI2, overriding pkg-config
1420 XI2_LIBS linker flags for XI2, overriding pkg-config
1421 XI21_CFLAGS C compiler flags for XI21, overriding pkg-config
1422 XI21_LIBS linker flags for XI21, overriding pkg-config
1423 XI22_CFLAGS C compiler flags for XI22, overriding pkg-config
1424 XI22_LIBS linker flags for XI22, overriding pkg-config
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1429 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1459 .) # We are building in place.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1492 xinput configure 1.6.0
1493 generated by GNU Autoconf 2.68
1495 Copyright (C) 2010 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1542 } # ac_fn_c_try_compile
1544 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1545 # ---------------------------------------------
1546 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1548 ac_fn_c_check_decl ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 as_decl_name=`echo $2|sed 's/ *(.*//'`
1552 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1554 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1555 if eval \${$3+:} false; then :
1556 $as_echo_n "(cached) " >&6
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559 /* end confdefs.h. */
1564 #ifndef $as_decl_name
1566 (void) $as_decl_use;
1568 (void) $as_decl_name;
1576 if ac_fn_c_try_compile "$LINENO"; then :
1581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 } # ac_fn_c_check_decl
1590 # ac_fn_c_try_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } > conftest.i && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1627 # ac_fn_c_try_run LINENO
1628 # ----------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1630 # that executables *can* be run.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_link"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>&5
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1645 { { case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_try") 2>&5
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; }; }; then :
1657 $as_echo "$as_me: program exited with status $ac_status" >&5
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1661 ac_retval=$ac_status
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1686 if ac_fn_c_try_compile "$LINENO"; then :
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 } # ac_fn_c_check_header_compile
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest$ac_exeext
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest$ac_exeext && {
1726 test "$cross_compiling" = yes ||
1727 $as_test_x conftest$ac_exeext
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1744 } # ac_fn_c_try_link
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1749 It was created by xinput $as_me 1.6.0, which was
1750 generated by GNU Autoconf 2.68. Invocation command line was
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_must_keep_next=false
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1826 as_fn_append ac_configure_args1 " '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839 -* ) ac_must_keep_next=true ;;
1842 as_fn_append ac_configure_args " '$ac_arg'"
1847 { ac_configure_args0=; unset ac_configure_args0;}
1848 { ac_configure_args1=; unset ac_configure_args1;}
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1860 $as_echo "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896 $as_echo "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 $as_echo "$ac_var='\''$ac_val'\''"
1910 if test -n "$ac_subst_files"; then
1911 $as_echo "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1915 for ac_var in $ac_subst_files
1917 eval ac_val=\$$ac_var
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 $as_echo "$ac_var='\''$ac_val'\''"
1926 if test -s confdefs.h; then
1927 $as_echo "## ----------- ##
1934 test "$ac_signal" != 0 &&
1935 $as_echo "$as_me: caught signal $ac_signal"
1936 $as_echo "$as_me: exit $exit_status"
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1950 $as_echo "/* confdefs.h */" > confdefs.h
1952 # Predefined preprocessor variables.
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_URL "$PACKAGE_URL"
1979 # Let the site file select an alternate cache file if it wants to.
1980 # Prefer an explicitly selected file to automatically selected ones.
1983 if test -n "$CONFIG_SITE"; then
1984 # We do not want a PATH search for config.site.
1985 case $CONFIG_SITE in #((
1986 -*) ac_site_file1=./$CONFIG_SITE;;
1987 */*) ac_site_file1=$CONFIG_SITE;;
1988 *) ac_site_file1=./$CONFIG_SITE;;
1990 elif test "x$prefix" != xNONE; then
1991 ac_site_file1=$prefix/share/config.site
1992 ac_site_file2=$prefix/etc/config.site
1994 ac_site_file1=$ac_default_prefix/share/config.site
1995 ac_site_file2=$ac_default_prefix/etc/config.site
1997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1999 test "x$ac_site_file" = xNONE && continue
2000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003 sed 's/^/| /' "$ac_site_file" >&5
2005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 as_fn_error $? "failed to load site script $ac_site_file
2008 See \`config.log' for more details" "$LINENO" 5; }
2012 if test -r "$cache_file"; then
2013 # Some versions of bash will fail to source /dev/null (special files
2014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017 $as_echo "$as_me: loading cache $cache_file" >&6;}
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029 # Check that the precious variables saved in the cache have kept the same
2031 ac_cache_corrupted=false
2032 for ac_var in $ac_precious_vars; do
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
2037 case $ac_old_set,$ac_new_set in
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2062 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2064 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2079 if $ac_cache_corrupted; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2086 ## -------------------- ##
2087 ## Main body of script. ##
2088 ## -------------------- ##
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 ac_config_headers="$ac_config_headers config.h"
2101 # Initialize Automake
2102 am__api_version='1.11'
2105 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2106 if test -f "$ac_dir/install-sh"; then
2108 ac_install_sh="$ac_aux_dir/install-sh -c"
2110 elif test -f "$ac_dir/install.sh"; then
2112 ac_install_sh="$ac_aux_dir/install.sh -c"
2114 elif test -f "$ac_dir/shtool"; then
2116 ac_install_sh="$ac_aux_dir/shtool install -c"
2120 if test -z "$ac_aux_dir"; then
2121 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2124 # These three variables are undocumented and unsupported,
2125 # and are intended to be withdrawn in a future Autoconf release.
2126 # They can cause serious problems if a builder's source tree is in a directory
2127 # whose full name contains unusual characters.
2128 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2129 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2130 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2133 # Find a good install program. We prefer a C program (faster),
2134 # so one script is as good as another. But avoid the broken or
2135 # incompatible versions:
2136 # SysV /etc/install, /usr/sbin/install
2137 # SunOS /usr/etc/install
2138 # IRIX /sbin/install
2140 # AmigaOS /C/install, which installs bootblocks on floppy discs
2141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2144 # OS/2's system install, which has a completely different semantic
2145 # ./install, which can be erroneously created by make from ./install.sh.
2146 # Reject install programs that cannot install multiple files.
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2149 if test -z "$INSTALL"; then
2150 if ${ac_cv_path_install+:} false; then :
2151 $as_echo_n "(cached) " >&6
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 # Account for people who put trailing slashes in PATH elements.
2159 case $as_dir/ in #((
2160 ./ | .// | /[cC]/* | \
2161 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2165 # OSF1 and SCO ODT 3.0 have their own names for install.
2166 # Don't use installbsd from OSF since it installs stuff as root
2168 for ac_prog in ginstall scoinst install; do
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2171 if test $ac_prog = install &&
2172 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173 # AIX install. It has an incompatible calling convention.
2175 elif test $ac_prog = install &&
2176 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177 # program-specific install script used by HP pwplus--don't use.
2180 rm -rf conftest.one conftest.two conftest.dir
2181 echo one > conftest.one
2182 echo two > conftest.two
2184 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2185 test -s conftest.one && test -s conftest.two &&
2186 test -s conftest.dir/conftest.one &&
2187 test -s conftest.dir/conftest.two
2189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2202 rm -rf conftest.one conftest.two conftest.dir
2205 if test "${ac_cv_path_install+set}" = set; then
2206 INSTALL=$ac_cv_path_install
2208 # As a last resort, use the slow shell script. Don't cache a
2209 # value for INSTALL within a source directory, because that will
2210 # break other packages using the cache if that directory is
2211 # removed, or if the value is a relative name.
2212 INSTALL=$ac_install_sh
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2216 $as_echo "$INSTALL" >&6; }
2218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2219 # It thinks the first close brace ends the variable substitution.
2220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2227 $as_echo_n "checking whether build environment is sane... " >&6; }
2230 echo timestamp > conftest.file
2231 # Reject unsafe characters in $srcdir or the absolute working directory
2232 # name. Accept space and tab only in the latter.
2236 *[\\\"\#\$\&\'\`$am_lf]*)
2237 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2241 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2244 # Do `set' in a subshell so we don't clobber the current shell's
2245 # arguments. Must try -L first in case configure is actually a
2246 # symlink; some systems play weird games with the mod time of symlinks
2247 # (eg FreeBSD returns the mod time of the symlink's containing
2250 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2251 if test "$*" = "X"; then
2253 set X `ls -t "$srcdir/configure" conftest.file`
2256 if test "$*" != "X $srcdir/configure conftest.file" \
2257 && test "$*" != "X conftest.file $srcdir/configure"; then
2259 # If neither matched, then we have a broken ls. This can happen
2260 # if, for instance, CONFIG_SHELL is bash and it inherits a
2261 # broken ls alias from the environment. This has actually
2262 # happened. Such a system could not be considered "sane".
2263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" "$LINENO" 5
2267 test "$2" = conftest.file
2273 as_fn_error $? "newly created file is older than distributed files!
2274 Check your system clock" "$LINENO" 5
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2277 $as_echo "yes" >&6; }
2278 test "$program_prefix" != NONE &&
2279 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2280 # Use a double $ so make ignores it.
2281 test "$program_suffix" != NONE &&
2282 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2283 # Double any \ or $.
2284 # By default was `s,x,x', remove it if useless.
2285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288 # expand $ac_aux_dir to an absolute path
2289 am_aux_dir=`cd $ac_aux_dir && pwd`
2291 if test x"${MISSING+set}" != xset; then
2294 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2299 # Use eval to expand $SHELL
2300 if eval "$MISSING --run true"; then
2301 am_missing_run="$MISSING --run "
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2308 if test x"${install_sh}" != xset; then
2311 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 install_sh="\${SHELL} $am_aux_dir/install-sh"
2317 # Installed binaries are usually stripped using `strip' when the user
2318 # run `make install-strip'. However `strip' might not be the right
2319 # tool to use in cross-compilation environments, therefore Automake
2320 # will honor the `STRIP' environment variable to overrule this program.
2321 if test "$cross_compiling" != no; then
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if ${ac_cv_prog_STRIP+:} false; then :
2328 $as_echo_n "(cached) " >&6
2330 if test -n "$STRIP"; then
2331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 STRIP=$ac_cv_prog_STRIP
2351 if test -n "$STRIP"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2353 $as_echo "$STRIP" >&6; }
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356 $as_echo "no" >&6; }
2361 if test -z "$ac_cv_prog_STRIP"; then
2363 # Extract the first word of "strip", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2368 $as_echo_n "(cached) " >&6
2370 if test -n "$ac_ct_STRIP"; then
2371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_STRIP="strip"
2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391 if test -n "$ac_ct_STRIP"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2393 $as_echo "$ac_ct_STRIP" >&6; }
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396 $as_echo "no" >&6; }
2399 if test "x$ac_ct_STRIP" = x; then
2402 case $cross_compiling:$ac_tool_warned in
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406 ac_tool_warned=yes ;;
2411 STRIP="$ac_cv_prog_STRIP"
2415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2419 if test -z "$MKDIR_P"; then
2420 if ${ac_cv_path_mkdir+:} false; then :
2421 $as_echo_n "(cached) " >&6
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2427 test -z "$as_dir" && as_dir=.
2428 for ac_prog in mkdir gmkdir; do
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2431 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2432 'mkdir (GNU coreutils) '* | \
2433 'mkdir (coreutils) '* | \
2434 'mkdir (fileutils) '4.1*)
2435 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445 test -d ./--version && rmdir ./--version
2446 if test "${ac_cv_path_mkdir+set}" = set; then
2447 MKDIR_P="$ac_cv_path_mkdir -p"
2449 # As a last resort, use the slow shell script. Don't cache a
2450 # value for MKDIR_P within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the value is a relative name.
2453 MKDIR_P="$ac_install_sh -d"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2457 $as_echo "$MKDIR_P" >&6; }
2461 [\\/$]* | ?:[\\/]*) ;;
2462 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2465 for ac_prog in gawk mawk nawk awk
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_AWK+:} false; then :
2472 $as_echo_n "(cached) " >&6
2474 if test -n "$AWK"; then
2475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_AWK="$ac_prog"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$AWK"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2497 $as_echo "$AWK" >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2504 test -n "$AWK" && break
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 cat >conftest.make <<\_ACEOF
2517 @echo '@@@%%%=$(MAKE)=@@@%%%'
2519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2522 eval ac_cv_prog_make_${ac_make}_set=yes;;
2524 eval ac_cv_prog_make_${ac_make}_set=no;;
2528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 SET_MAKE="MAKE=${MAKE-make}"
2538 rm -rf .tst 2>/dev/null
2539 mkdir .tst 2>/dev/null
2540 if test -d .tst; then
2545 rmdir .tst 2>/dev/null
2547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2548 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2549 # is not polluted with repeated "-I."
2550 am__isrc=' -I$(srcdir)'
2551 # test to see if srcdir already configured
2552 if test -f $srcdir/config.status; then
2553 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2557 # test whether we have cygpath
2558 if test -z "$CYGPATH_W"; then
2559 if (cygpath --version) >/dev/null 2>/dev/null; then
2560 CYGPATH_W='cygpath -w'
2567 # Define the identity of the package.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE "$PACKAGE"
2577 cat >>confdefs.h <<_ACEOF
2578 #define VERSION "$VERSION"
2581 # Some tools Automake needs.
2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597 # We need awk for the "check" target. The system "awk" is bad on
2599 # Always define AMTAR for backward compatibility. Yes, it's still used
2600 # in the wild :-( We should find a proper way to deprecate it ...
2603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2611 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2612 # Check whether --enable-maintainer-mode was given.
2613 if test "${enable_maintainer_mode+set}" = set; then :
2614 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2616 USE_MAINTAINER_MODE=no
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2620 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2621 if test $USE_MAINTAINER_MODE = yes; then
2622 MAINTAINER_MODE_TRUE=
2623 MAINTAINER_MODE_FALSE='#'
2625 MAINTAINER_MODE_TRUE='#'
2626 MAINTAINER_MODE_FALSE=
2629 MAINT=$MAINTAINER_MODE_TRUE
2633 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2645 DEPDIR="${am__leading_dot}deps"
2647 ac_config_commands="$ac_config_commands depfiles"
2650 am_make=${MAKE-make}
2651 cat > confinc << 'END'
2653 @echo this is the am__doit target
2656 # If we don't find an include directive, just comment out the code.
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2658 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2662 # First try GNU make style include.
2663 echo "include confinc" > confmf
2664 # Ignore all kinds of additional output from `make'.
2665 case `$am_make -s -f confmf 2> /dev/null` in #(
2666 *the\ am__doit\ target*)
2672 # Now try BSD make style include.
2673 if test "$am__include" = "#"; then
2674 echo '.include "confinc"' > confmf
2675 case `$am_make -s -f confmf 2> /dev/null` in #(
2676 *the\ am__doit\ target*)
2677 am__include=.include
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2686 $as_echo "$_am_result" >&6; }
2687 rm -f confinc confmf
2689 # Check whether --enable-dependency-tracking was given.
2690 if test "${enable_dependency_tracking+set}" = set; then :
2691 enableval=$enable_dependency_tracking;
2694 if test "x$enable_dependency_tracking" != xno; then
2695 am_depcomp="$ac_aux_dir/depcomp"
2699 if test "x$enable_dependency_tracking" != xno; then
2709 ac_cpp='$CPP $CPPFLAGS'
2710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2752 if test -z "$ac_cv_prog_CC"; then
2754 # Extract the first word of "gcc", so it can be a program name with args.
2755 set dummy gcc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_CC="gcc"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2784 $as_echo "$ac_ct_CC" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2790 if test "x$ac_ct_CC" = x; then
2793 case $cross_compiling:$ac_tool_warned in
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2805 if test -z "$CC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2808 set dummy ${ac_tool_prefix}cc; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="${ac_tool_prefix}cc"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2846 if test -z "$CC"; then
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_CC+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2866 ac_prog_rejected=yes
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test $ac_prog_rejected = yes; then
2878 # We found a bogon in the path, so make sure we never use it.
2879 set dummy $ac_cv_prog_CC
2881 if test $# != 0; then
2882 # We chose a different compiler from the bogus one.
2883 # However, it has the same basename, so the bogon will be chosen
2884 # first if we set CC to just the basename; use the full file name.
2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2902 if test -z "$CC"; then
2903 if test -n "$ac_tool_prefix"; then
2904 for ac_prog in cl.exe
2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2948 for ac_prog in cl.exe
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$ac_ct_CC" && break
2990 if test "x$ac_ct_CC" = x; then
2993 case $cross_compiling:$ac_tool_warned in
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
3006 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "no acceptable C compiler found in \$PATH
3009 See \`config.log' for more details" "$LINENO" 5; }
3011 # Provide some information about the compiler.
3012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3015 for ac_option in --version -v -V -qversion; do
3016 { { ac_try="$ac_compiler $ac_option >&5"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3025 if test -s conftest.err; then
3027 ... rest of stderr output deleted ...
3028 10q' conftest.err >conftest.er1
3029 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3047 ac_clean_files_save=$ac_clean_files
3048 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3049 # Try to create an executable without -o first, disregard a.out.
3050 # It will help us diagnose broken compilers, and finding out an intuition
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3053 $as_echo_n "checking whether the C compiler works... " >&6; }
3054 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3056 # The possible output files:
3057 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3060 for ac_file in $ac_files
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069 if { { ac_try="$ac_link_default"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3081 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3083 # so that the user can short-circuit this test for compilers unknown to
3085 for ac_file in $ac_files ''
3087 test -f "$ac_file" || continue
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3092 # We found the default executable, but exeext='' is most
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3110 test "$ac_cv_exeext" = no && ac_cv_exeext=
3115 if test -z "$ac_file"; then :
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 $as_echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error 77 "C compiler cannot create executables
3124 See \`config.log' for more details" "$LINENO" 5; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3130 $as_echo_n "checking for C compiler default output file name... " >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3132 $as_echo "$ac_file" >&6; }
3133 ac_exeext=$ac_cv_exeext
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3138 $as_echo_n "checking for suffix of executables... " >&6; }
3139 if { { ac_try="$ac_link"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3152 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 for ac_file in conftest.exe conftest conftest.*; do
3155 test -f "$ac_file" || continue
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 rm -f conftest conftest$ac_cv_exeext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3171 $as_echo "$ac_cv_exeext" >&6; }
3173 rm -f conftest.$ac_ext
3174 EXEEXT=$ac_cv_exeext
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3182 FILE *f = fopen ("conftest.out", "w");
3183 return ferror (f) || fclose (f) != 0;
3189 ac_clean_files="$ac_clean_files conftest.out"
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3193 $as_echo_n "checking whether we are cross compiling... " >&6; }
3194 if test "$cross_compiling" != yes; then
3195 { { ac_try="$ac_link"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3206 if { ac_try='./conftest$ac_cv_exeext'
3207 { { case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_try") 2>&5
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; }; then
3219 if test "$cross_compiling" = maybe; then
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot run C compiled programs.
3225 If you meant to cross compile, use \`--host'.
3226 See \`config.log' for more details" "$LINENO" 5; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3233 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3234 ac_clean_files=$ac_clean_files_save
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if ${ac_cv_objext+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3288 if ${ac_cv_c_compiler_gnu+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3305 if ac_fn_c_try_compile "$LINENO"; then :
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3321 ac_test_CFLAGS=${CFLAGS+set}
3322 ac_save_CFLAGS=$CFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3325 if ${ac_cv_prog_cc_g+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 ac_save_c_werror_flag=$ac_c_werror_flag
3329 ac_c_werror_flag=yes
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3343 if ac_fn_c_try_compile "$LINENO"; then :
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 if ac_fn_c_try_compile "$LINENO"; then :
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3385 $as_echo "$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3395 if test "$GCC" = yes; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3403 if ${ac_cv_prog_cc_c89+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_cv_prog_cc_c89=no
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3412 #include <sys/types.h>
3413 #include <sys/stat.h>
3414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3415 struct buf { int x; };
3416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3417 static char *e (p, i)
3423 static char *f (char * (*g) (char **, int), char **p, ...)
3428 s = g (p, va_arg (v,int));
3433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3434 function prototypes and stuff, but not '\xHH' hex character constants.
3435 These don't provoke an error unfortunately, instead are silently treated
3436 as 'x'. The following induces an error, until -std is added to get
3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3438 array size at least. It's necessary to write '\x00'==0 to get something
3439 that's true only with -std. */
3440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3443 inside strings and character constants. */
3445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3447 int test (int i, double x);
3448 struct s1 {int (*f) (int a);};
3449 struct s2 {int (*f) (double a);};
3450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464 CC="$ac_save_CC $ac_arg"
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_c89=$ac_arg
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -f conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3479 $as_echo "none needed" >&6; } ;;
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3482 $as_echo "unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3488 if test "x$ac_cv_prog_cc_c89" != xno; then :
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 depcc="$CC" am_compiler_list=
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3501 $as_echo_n "checking dependency style of $depcc... " >&6; }
3502 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506 # We make a subdir and do the tests there. Otherwise we can end up
3507 # making bogus files that we don't know about and never remove. For
3508 # instance it was reported that on HP-UX the gcc test will end up
3509 # making a dummy file named `D' -- because `-MD' means `put the output
3513 # Copy depcomp to subdir because otherwise we won't find it if we're
3514 # using a relative directory.
3515 cp "$am_depcomp" conftest.dir
3517 # We will build objects and dependencies in a subdirectory because
3518 # it helps to detect inapplicable dependency modes. For instance
3519 # both Tru64's cc and ICC support -MD to output dependencies as a
3520 # side effect of compilation, but ICC will put the dependencies in
3521 # the current directory while Tru64 will put them in the object
3525 am_cv_CC_dependencies_compiler_type=none
3526 if test "$am_compiler_list" = ""; then
3527 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3530 case " $depcc " in #(
3531 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3534 for depmode in $am_compiler_list; do
3535 # Setup a source with many dependencies, because some compilers
3536 # like to wrap large dependency lists on column 80 (with \), and
3537 # we should not choose a depcomp mode which is confused by this.
3539 # We need to recreate these files for each test, as the compiler may
3540 # overwrite some of them when testing with obscure command lines.
3541 # This happens at least with the AIX C compiler.
3543 for i in 1 2 3 4 5 6; do
3544 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3545 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3546 # Solaris 8's {/usr,}/bin/sh.
3547 touch sub/conftst$i.h
3549 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3551 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3552 # mode. It turns out that the SunPro C++ compiler does not properly
3553 # handle `-M -o', and we need to detect this. Also, some Intel
3554 # versions had trouble with output in subdirs
3555 am__obj=sub/conftest.${OBJEXT-o}
3556 am__minus_obj="-o $am__obj"
3559 # This depmode causes a compiler race in universal mode.
3560 test "$am__universal" = false || continue
3563 # after this tag, mechanisms are not by side-effect, so they'll
3564 # only be used when explicitly requested
3565 if test "x$enable_dependency_tracking" = xyes; then
3571 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3572 # This compiler won't grok `-c -o', but also, the minuso test has
3573 # not run yet. These depmodes are late enough in the game, and
3574 # so weak that their functioning should not be impacted.
3575 am__obj=conftest.${OBJEXT-o}
3580 if depmode=$depmode \
3581 source=sub/conftest.c object=$am__obj \
3582 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3583 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3584 >/dev/null 2>conftest.err &&
3585 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3587 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3588 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3589 # icc doesn't choke on unknown options, it will just issue warnings
3590 # or remarks (even with -Werror). So we grep stderr for any message
3591 # that says an option was ignored or not supported.
3592 # When given -MP, icc 7.0 and 7.1 complain thusly:
3593 # icc: Command line warning: ignoring option '-M'; no argument required
3594 # The diagnosis changed in icc 8.0:
3595 # icc: Command line remark: option '-MP' not supported
3596 if (grep 'ignoring option' conftest.err ||
3597 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3598 am_cv_CC_dependencies_compiler_type=$depmode
3607 am_cv_CC_dependencies_compiler_type=none
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3612 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3613 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3616 test "x$enable_dependency_tracking" != xno \
3617 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3619 am__fastdepCC_FALSE='#'
3621 am__fastdepCC_TRUE='#'
3622 am__fastdepCC_FALSE=
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3628 if ${ac_cv_prog_cc_c99+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 ac_cv_prog_cc_c99=no
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3636 #include <stdbool.h>
3641 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3642 #define debug(...) fprintf (stderr, __VA_ARGS__)
3643 #define showlist(...) puts (#__VA_ARGS__)
3644 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3646 test_varargs_macros (void)
3651 debug ("X = %d\n", x);
3652 showlist (The first, second, and third items.);
3653 report (x>y, "x is %d but y is %d", x, y);
3656 // Check long long types.
3657 #define BIG64 18446744073709551615ull
3658 #define BIG32 4294967295ul
3659 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3661 your preprocessor is broken;
3665 your preprocessor is broken;
3667 static long long int bignum = -9223372036854775807LL;
3668 static unsigned long long int ubignum = BIG64;
3670 struct incomplete_array
3678 const wchar_t *name;
3682 typedef const char *ccp;
3685 test_restrict (ccp restrict text)
3687 // See if C++-style comments work.
3688 // Iterate through items via the restricted pointer.
3689 // Also check for declarations in for loops.
3690 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3695 // Check varargs and va_copy.
3697 test_varargs (const char *format, ...)
3700 va_start (args, format);
3702 va_copy (args_copy, args);
3713 str = va_arg (args_copy, const char *);
3716 number = va_arg (args_copy, int);
3719 fnumber = va_arg (args_copy, double);
3734 _Bool success = false;
3737 if (test_restrict ("String literal") == 0)
3739 char *restrict newvar = "Another string";
3742 test_varargs ("s, d' f .", "string", 65, 34.234);
3743 test_varargs_macros ();
3745 // Check flexible array members.
3746 struct incomplete_array *ia =
3747 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3749 for (int i = 0; i < ia->datasize; ++i)
3750 ia->data[i] = i * 1.234;
3752 // Check named initializers.
3753 struct named_init ni = {
3755 .name = L"Test wide string",
3756 .average = 543.34343,
3761 int dynamic_array[ni.number];
3762 dynamic_array[ni.number - 1] = 543;
3764 // work around unused variable warnings
3765 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3766 || dynamic_array[ni.number - 1] != 543);
3772 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3774 CC="$ac_save_CC $ac_arg"
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_c99=$ac_arg
3778 rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c99" != "xno" && break
3781 rm -f conftest.$ac_ext
3786 case "x$ac_cv_prog_cc_c99" in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 $as_echo "none needed" >&6; } ;;
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792 $as_echo "unsupported" >&6; } ;;
3794 CC="$CC $ac_cv_prog_cc_c99"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3796 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3798 if test "x$ac_cv_prog_cc_c99" != xno; then :
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3810 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3811 # On Suns, sometimes $CPP names a directory.
3812 if test -n "$CPP" && test -d "$CPP"; then
3815 if test -z "$CPP"; then
3816 if ${ac_cv_prog_CPP+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 # Double quotes because CPP needs to be expanded
3820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823 for ac_c_preproc_warn_flag in '' yes
3825 # Use a header file that comes with gcc, so configuring glibc
3826 # with a fresh cross-compiler works.
3827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3828 # <limits.h> exists even on freestanding compilers.
3829 # On the NeXT, cc -E runs the code through the compiler's parser,
3830 # not just through cpp. "Syntax error" is here to catch this case.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3834 # include <limits.h>
3836 # include <assert.h>
3840 if ac_fn_c_try_cpp "$LINENO"; then :
3843 # Broken: fails on valid input.
3846 rm -f conftest.err conftest.i conftest.$ac_ext
3848 # OK, works on sane cases. Now check whether nonexistent headers
3849 # can be detected and how.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <ac_nonexistent.h>
3854 if ac_fn_c_try_cpp "$LINENO"; then :
3855 # Broken: success on invalid input.
3858 # Passes both tests.
3862 rm -f conftest.err conftest.i conftest.$ac_ext
3865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3866 rm -f conftest.i conftest.err conftest.$ac_ext
3867 if $ac_preproc_ok; then :
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3880 $as_echo "$CPP" >&6; }
3882 for ac_c_preproc_warn_flag in '' yes
3884 # Use a header file that comes with gcc, so configuring glibc
3885 # with a fresh cross-compiler works.
3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 # <limits.h> exists even on freestanding compilers.
3888 # On the NeXT, cc -E runs the code through the compiler's parser,
3889 # not just through cpp. "Syntax error" is here to catch this case.
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3893 # include <limits.h>
3895 # include <assert.h>
3899 if ac_fn_c_try_cpp "$LINENO"; then :
3902 # Broken: fails on valid input.
3905 rm -f conftest.err conftest.i conftest.$ac_ext
3907 # OK, works on sane cases. Now check whether nonexistent headers
3908 # can be detected and how.
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911 #include <ac_nonexistent.h>
3913 if ac_fn_c_try_cpp "$LINENO"; then :
3914 # Broken: success on invalid input.
3917 # Passes both tests.
3921 rm -f conftest.err conftest.i conftest.$ac_ext
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.i conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then :
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3932 See \`config.log' for more details" "$LINENO" 5; }
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3943 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3944 if ${ac_cv_path_GREP+:} false; then :
3945 $as_echo_n "(cached) " >&6
3947 if test -z "$GREP"; then
3948 ac_path_GREP_found=false
3949 # Loop through the user's path and test for each of PROGNAME-LIST
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954 test -z "$as_dir" && as_dir=.
3955 for ac_prog in grep ggrep; do
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3958 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3959 # Check for GNU ac_path_GREP and select it if it is found.
3960 # Check for GNU $ac_path_GREP
3961 case `"$ac_path_GREP" --version 2>&1` in
3963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3966 $as_echo_n 0123456789 >"conftest.in"
3969 cat "conftest.in" "conftest.in" >"conftest.tmp"
3970 mv "conftest.tmp" "conftest.in"
3971 cp "conftest.in" "conftest.nl"
3972 $as_echo 'GREP' >> "conftest.nl"
3973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3975 as_fn_arith $ac_count + 1 && ac_count=$as_val
3976 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3977 # Best one so far, save it but keep looking for a better one
3978 ac_cv_path_GREP="$ac_path_GREP"
3979 ac_path_GREP_max=$ac_count
3981 # 10*(2^10) chars as input seems more than enough
3982 test $ac_count -gt 10 && break
3984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987 $ac_path_GREP_found && break 3
3992 if test -z "$ac_cv_path_GREP"; then
3993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3996 ac_cv_path_GREP=$GREP
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4001 $as_echo "$ac_cv_path_GREP" >&6; }
4002 GREP="$ac_cv_path_GREP"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4006 $as_echo_n "checking for egrep... " >&6; }
4007 if ${ac_cv_path_EGREP+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4011 then ac_cv_path_EGREP="$GREP -E"
4013 if test -z "$EGREP"; then
4014 ac_path_EGREP_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 test -z "$as_dir" && as_dir=.
4021 for ac_prog in egrep; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4025 # Check for GNU ac_path_EGREP and select it if it is found.
4026 # Check for GNU $ac_path_EGREP
4027 case `"$ac_path_EGREP" --version 2>&1` in
4029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032 $as_echo_n 0123456789 >"conftest.in"
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
4038 $as_echo 'EGREP' >> "conftest.nl"
4039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041 as_fn_arith $ac_count + 1 && ac_count=$as_val
4042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_EGREP="$ac_path_EGREP"
4045 ac_path_EGREP_max=$ac_count
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 $ac_path_EGREP_found && break 3
4058 if test -z "$ac_cv_path_EGREP"; then
4059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4062 ac_cv_path_EGREP=$EGREP
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4068 $as_echo "$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4073 $as_echo_n "checking for ANSI C header files... " >&6; }
4074 if ${ac_cv_header_stdc+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093 ac_cv_header_stdc=yes
4095 ac_cv_header_stdc=no
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 if test $ac_cv_header_stdc = yes; then
4100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "memchr" >/dev/null 2>&1; then :
4110 ac_cv_header_stdc=no
4116 if test $ac_cv_header_stdc = yes; then
4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "free" >/dev/null 2>&1; then :
4127 ac_cv_header_stdc=no
4133 if test $ac_cv_header_stdc = yes; then
4134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135 if test "$cross_compiling" = yes; then :
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 #if ((' ' & 0x0FF) == 0x020)
4143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4146 # define ISLOWER(c) \
4147 (('a' <= (c) && (c) <= 'i') \
4148 || ('j' <= (c) && (c) <= 'r') \
4149 || ('s' <= (c) && (c) <= 'z'))
4150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4158 for (i = 0; i < 256; i++)
4159 if (XOR (islower (i), ISLOWER (i))
4160 || toupper (i) != TOUPPER (i))
4165 if ac_fn_c_try_run "$LINENO"; then :
4168 ac_cv_header_stdc=no
4170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4171 conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4177 $as_echo "$ac_cv_header_stdc" >&6; }
4178 if test $ac_cv_header_stdc = yes; then
4180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4186 inttypes.h stdint.h unistd.h
4188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4192 cat >>confdefs.h <<_ACEOF
4193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4204 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4210 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4211 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4217 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4218 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4231 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4238 $as_echo_n "(cached) " >&6
4242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4264 if test -n "$PKG_CONFIG"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4266 $as_echo "$PKG_CONFIG" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4274 if test -z "$ac_cv_path_PKG_CONFIG"; then
4275 ac_pt_PKG_CONFIG=$PKG_CONFIG
4276 # Extract the first word of "pkg-config", so it can be a program name with args.
4277 set dummy pkg-config; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 case $ac_pt_PKG_CONFIG in
4285 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4307 if test -n "$ac_pt_PKG_CONFIG"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4309 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4315 if test "x$ac_pt_PKG_CONFIG" = x; then
4318 case $cross_compiling:$ac_tool_warned in
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322 ac_tool_warned=yes ;;
4324 PKG_CONFIG=$ac_pt_PKG_CONFIG
4327 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4331 if test -n "$PKG_CONFIG"; then
4332 _pkg_min_version=0.9.0
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4334 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4335 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337 $as_echo "yes" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 # Make sure we can run config.sub.
4345 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4346 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4349 $as_echo_n "checking build system type... " >&6; }
4350 if ${ac_cv_build+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 ac_build_alias=$build_alias
4354 test "x$ac_build_alias" = x &&
4355 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4356 test "x$ac_build_alias" = x &&
4357 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4358 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4359 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4363 $as_echo "$ac_cv_build" >&6; }
4364 case $ac_cv_build in
4366 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4369 ac_save_IFS=$IFS; IFS='-'
4375 # Remember, the first character of IFS is used to create $*,
4376 # except with old shells:
4379 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4383 $as_echo_n "checking host system type... " >&6; }
4384 if ${ac_cv_host+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 if test "x$host_alias" = x; then
4388 ac_cv_host=$ac_cv_build
4390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4396 $as_echo "$ac_cv_host" >&6; }
4399 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4402 ac_save_IFS=$IFS; IFS='-'
4408 # Remember, the first character of IFS is used to create $*,
4409 # except with old shells:
4412 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4417 if ${ac_cv_path_SED+:} false; then :
4418 $as_echo_n "(cached) " >&6
4420 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4421 for ac_i in 1 2 3 4 5 6 7; do
4422 ac_script="$ac_script$as_nl$ac_script"
4424 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4425 { ac_script=; unset ac_script;}
4426 if test -z "$SED"; then
4427 ac_path_SED_found=false
4428 # Loop through the user's path and test for each of PROGNAME-LIST
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_prog in sed gsed; do
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4437 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4438 # Check for GNU ac_path_SED and select it if it is found.
4439 # Check for GNU $ac_path_SED
4440 case `"$ac_path_SED" --version 2>&1` in
4442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4445 $as_echo_n 0123456789 >"conftest.in"
4448 cat "conftest.in" "conftest.in" >"conftest.tmp"
4449 mv "conftest.tmp" "conftest.in"
4450 cp "conftest.in" "conftest.nl"
4451 $as_echo '' >> "conftest.nl"
4452 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4454 as_fn_arith $ac_count + 1 && ac_count=$as_val
4455 if test $ac_count -gt ${ac_path_SED_max-0}; then
4456 # Best one so far, save it but keep looking for a better one
4457 ac_cv_path_SED="$ac_path_SED"
4458 ac_path_SED_max=$ac_count
4460 # 10*(2^10) chars as input seems more than enough
4461 test $ac_count -gt 10 && break
4463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 $ac_path_SED_found && break 3
4471 if test -z "$ac_cv_path_SED"; then
4472 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4480 $as_echo "$ac_cv_path_SED" >&6; }
4481 SED="$ac_cv_path_SED"
4489 # Check whether --enable-selective-werror was given.
4490 if test "${enable_selective_werror+set}" = set; then :
4491 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4493 SELECTIVE_WERROR=yes
4497 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4498 if test "x$SUNCC" = "xyes"; then
4504 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4510 xorg_testset_save_CFLAGS="$CFLAGS"
4512 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4515 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 xorg_testset_unknown_warning_option=yes
4523 xorg_testset_unknown_warning_option=no
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4527 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4528 CFLAGS="$xorg_testset_save_CFLAGS"
4531 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4532 if test "x$xorg_testset_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 xorg_testset_unused_command_line_argument=yes
4545 xorg_testset_unused_command_line_argument=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4549 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4550 CFLAGS="$xorg_testset_save_CFLAGS"
4555 if test $found = "no" ; then
4556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4564 CFLAGS="$CFLAGS -Wall"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4567 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 if ac_fn_c_try_link "$LINENO"; then :
4584 rm -f core conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4587 $as_echo "$supported" >&6; }
4588 CFLAGS="$xorg_testset_save_CFLAGS"
4590 if test "$supported" = "yes" ; then
4591 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4602 xorg_testset_save_CFLAGS="$CFLAGS"
4604 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 xorg_testset_unknown_warning_option=yes
4615 xorg_testset_unknown_warning_option=no
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4619 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4620 CFLAGS="$xorg_testset_save_CFLAGS"
4623 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 xorg_testset_unused_command_line_argument=yes
4637 xorg_testset_unused_command_line_argument=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4641 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4642 CFLAGS="$xorg_testset_save_CFLAGS"
4647 if test $found = "no" ; then
4648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4656 CFLAGS="$CFLAGS -Wpointer-arith"
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4659 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_c_try_link "$LINENO"; then :
4676 rm -f core conftest.err conftest.$ac_objext \
4677 conftest$ac_exeext conftest.$ac_ext
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4679 $as_echo "$supported" >&6; }
4680 CFLAGS="$xorg_testset_save_CFLAGS"
4682 if test "$supported" = "yes" ; then
4683 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4694 xorg_testset_save_CFLAGS="$CFLAGS"
4696 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4699 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 xorg_testset_unknown_warning_option=yes
4707 xorg_testset_unknown_warning_option=no
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4711 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4712 CFLAGS="$xorg_testset_save_CFLAGS"
4715 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 xorg_testset_unused_command_line_argument=yes
4729 xorg_testset_unused_command_line_argument=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4733 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4739 if test $found = "no" ; then
4740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 CFLAGS="$CFLAGS -Wstrict-prototypes"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4751 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4763 if ac_fn_c_try_link "$LINENO"; then :
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4771 $as_echo "$supported" >&6; }
4772 CFLAGS="$xorg_testset_save_CFLAGS"
4774 if test "$supported" = "yes" ; then
4775 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4786 xorg_testset_save_CFLAGS="$CFLAGS"
4788 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 xorg_testset_unknown_warning_option=yes
4799 xorg_testset_unknown_warning_option=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4803 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4804 CFLAGS="$xorg_testset_save_CFLAGS"
4807 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4808 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 xorg_testset_unused_command_line_argument=yes
4821 xorg_testset_unused_command_line_argument=no
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4825 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4826 CFLAGS="$xorg_testset_save_CFLAGS"
4831 if test $found = "no" ; then
4832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840 CFLAGS="$CFLAGS -Wmissing-prototypes"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4843 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4855 if ac_fn_c_try_link "$LINENO"; then :
4860 rm -f core conftest.err conftest.$ac_objext \
4861 conftest$ac_exeext conftest.$ac_ext
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4863 $as_echo "$supported" >&6; }
4864 CFLAGS="$xorg_testset_save_CFLAGS"
4866 if test "$supported" = "yes" ; then
4867 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4878 xorg_testset_save_CFLAGS="$CFLAGS"
4880 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 xorg_testset_unknown_warning_option=yes
4891 xorg_testset_unknown_warning_option=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4895 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4896 CFLAGS="$xorg_testset_save_CFLAGS"
4899 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 xorg_testset_unused_command_line_argument=yes
4913 xorg_testset_unused_command_line_argument=no
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4917 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4918 CFLAGS="$xorg_testset_save_CFLAGS"
4923 if test $found = "no" ; then
4924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932 CFLAGS="$CFLAGS -Wmissing-declarations"
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4935 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4947 if ac_fn_c_try_link "$LINENO"; then :
4952 rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext conftest.$ac_ext
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4955 $as_echo "$supported" >&6; }
4956 CFLAGS="$xorg_testset_save_CFLAGS"
4958 if test "$supported" = "yes" ; then
4959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4970 xorg_testset_save_CFLAGS="$CFLAGS"
4972 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 xorg_testset_unknown_warning_option=yes
4983 xorg_testset_unknown_warning_option=no
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4987 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4988 CFLAGS="$xorg_testset_save_CFLAGS"
4991 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 xorg_testset_unused_command_line_argument=yes
5005 xorg_testset_unused_command_line_argument=no
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5009 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5010 CFLAGS="$xorg_testset_save_CFLAGS"
5015 if test $found = "no" ; then
5016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024 CFLAGS="$CFLAGS -Wnested-externs"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5027 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5039 if ac_fn_c_try_link "$LINENO"; then :
5044 rm -f core conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5047 $as_echo "$supported" >&6; }
5048 CFLAGS="$xorg_testset_save_CFLAGS"
5050 if test "$supported" = "yes" ; then
5051 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5062 xorg_testset_save_CFLAGS="$CFLAGS"
5064 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 xorg_testset_unknown_warning_option=yes
5075 xorg_testset_unknown_warning_option=no
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5079 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5080 CFLAGS="$xorg_testset_save_CFLAGS"
5083 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 xorg_testset_unused_command_line_argument=yes
5097 xorg_testset_unused_command_line_argument=no
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5101 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5107 if test $found = "no" ; then
5108 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116 CFLAGS="$CFLAGS -Wbad-function-cast"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5119 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5131 if ac_fn_c_try_link "$LINENO"; then :
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139 $as_echo "$supported" >&6; }
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5142 if test "$supported" = "yes" ; then
5143 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5154 xorg_testset_save_CFLAGS="$CFLAGS"
5156 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 xorg_testset_unknown_warning_option=yes
5167 xorg_testset_unknown_warning_option=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5171 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5175 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 xorg_testset_unused_command_line_argument=yes
5189 xorg_testset_unused_command_line_argument=no
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5193 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5194 CFLAGS="$xorg_testset_save_CFLAGS"
5199 if test $found = "no" ; then
5200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 CFLAGS="$CFLAGS -Wformat=2"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5211 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5223 if ac_fn_c_try_link "$LINENO"; then :
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231 $as_echo "$supported" >&6; }
5232 CFLAGS="$xorg_testset_save_CFLAGS"
5234 if test "$supported" = "yes" ; then
5235 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5240 if test $found = "no" ; then
5241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249 CFLAGS="$CFLAGS -Wformat"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5252 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 if ac_fn_c_try_link "$LINENO"; then :
5269 rm -f core conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5272 $as_echo "$supported" >&6; }
5273 CFLAGS="$xorg_testset_save_CFLAGS"
5275 if test "$supported" = "yes" ; then
5276 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5287 xorg_testset_save_CFLAGS="$CFLAGS"
5289 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 xorg_testset_unknown_warning_option=yes
5300 xorg_testset_unknown_warning_option=no
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5304 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5308 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5319 if ac_fn_c_try_compile "$LINENO"; then :
5320 xorg_testset_unused_command_line_argument=yes
5322 xorg_testset_unused_command_line_argument=no
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5326 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5327 CFLAGS="$xorg_testset_save_CFLAGS"
5332 if test $found = "no" ; then
5333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341 CFLAGS="$CFLAGS -Wold-style-definition"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5344 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5356 if ac_fn_c_try_link "$LINENO"; then :
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 $as_echo "$supported" >&6; }
5365 CFLAGS="$xorg_testset_save_CFLAGS"
5367 if test "$supported" = "yes" ; then
5368 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5379 xorg_testset_save_CFLAGS="$CFLAGS"
5381 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 xorg_testset_unknown_warning_option=yes
5392 xorg_testset_unknown_warning_option=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5396 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5397 CFLAGS="$xorg_testset_save_CFLAGS"
5400 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5401 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5406 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 xorg_testset_unused_command_line_argument=yes
5414 xorg_testset_unused_command_line_argument=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5418 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5419 CFLAGS="$xorg_testset_save_CFLAGS"
5424 if test $found = "no" ; then
5425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5436 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5448 if ac_fn_c_try_link "$LINENO"; then :
5453 rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5456 $as_echo "$supported" >&6; }
5457 CFLAGS="$xorg_testset_save_CFLAGS"
5459 if test "$supported" = "yes" ; then
5460 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5467 # This chunk adds additional warnings that could catch undesired effects.
5473 xorg_testset_save_CFLAGS="$CFLAGS"
5475 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5478 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 xorg_testset_unknown_warning_option=yes
5486 xorg_testset_unknown_warning_option=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5490 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5494 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5500 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 xorg_testset_unused_command_line_argument=yes
5508 xorg_testset_unused_command_line_argument=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5512 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5513 CFLAGS="$xorg_testset_save_CFLAGS"
5518 if test $found = "no" ; then
5519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527 CFLAGS="$CFLAGS -Wunused"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5530 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5542 if ac_fn_c_try_link "$LINENO"; then :
5547 rm -f core conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5550 $as_echo "$supported" >&6; }
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5553 if test "$supported" = "yes" ; then
5554 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5565 xorg_testset_save_CFLAGS="$CFLAGS"
5567 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576 xorg_testset_unknown_warning_option=yes
5578 xorg_testset_unknown_warning_option=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5582 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5586 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 xorg_testset_unused_command_line_argument=yes
5600 xorg_testset_unused_command_line_argument=no
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5604 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5605 CFLAGS="$xorg_testset_save_CFLAGS"
5610 if test $found = "no" ; then
5611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619 CFLAGS="$CFLAGS -Wuninitialized"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5622 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5634 if ac_fn_c_try_link "$LINENO"; then :
5639 rm -f core conftest.err conftest.$ac_objext \
5640 conftest$ac_exeext conftest.$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642 $as_echo "$supported" >&6; }
5643 CFLAGS="$xorg_testset_save_CFLAGS"
5645 if test "$supported" = "yes" ; then
5646 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5657 xorg_testset_save_CFLAGS="$CFLAGS"
5659 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 xorg_testset_unknown_warning_option=yes
5670 xorg_testset_unknown_warning_option=no
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5674 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5678 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5684 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 xorg_testset_unused_command_line_argument=yes
5692 xorg_testset_unused_command_line_argument=no
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5696 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5697 CFLAGS="$xorg_testset_save_CFLAGS"
5702 if test $found = "no" ; then
5703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 CFLAGS="$CFLAGS -Wshadow"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5714 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5726 if ac_fn_c_try_link "$LINENO"; then :
5731 rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5734 $as_echo "$supported" >&6; }
5735 CFLAGS="$xorg_testset_save_CFLAGS"
5737 if test "$supported" = "yes" ; then
5738 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5749 xorg_testset_save_CFLAGS="$CFLAGS"
5751 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 xorg_testset_unknown_warning_option=yes
5762 xorg_testset_unknown_warning_option=no
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5766 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5767 CFLAGS="$xorg_testset_save_CFLAGS"
5770 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_testset_unused_command_line_argument=yes
5784 xorg_testset_unused_command_line_argument=no
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5788 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5794 if test $found = "no" ; then
5795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803 CFLAGS="$CFLAGS -Wcast-qual"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5806 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5818 if ac_fn_c_try_link "$LINENO"; then :
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5826 $as_echo "$supported" >&6; }
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5829 if test "$supported" = "yes" ; then
5830 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5841 xorg_testset_save_CFLAGS="$CFLAGS"
5843 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5851 if ac_fn_c_try_compile "$LINENO"; then :
5852 xorg_testset_unknown_warning_option=yes
5854 xorg_testset_unknown_warning_option=no
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5858 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5859 CFLAGS="$xorg_testset_save_CFLAGS"
5862 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5863 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 xorg_testset_unused_command_line_argument=yes
5876 xorg_testset_unused_command_line_argument=no
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5880 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5886 if test $found = "no" ; then
5887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895 CFLAGS="$CFLAGS -Wmissing-noreturn"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5898 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5910 if ac_fn_c_try_link "$LINENO"; then :
5915 rm -f core conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5918 $as_echo "$supported" >&6; }
5919 CFLAGS="$xorg_testset_save_CFLAGS"
5921 if test "$supported" = "yes" ; then
5922 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5933 xorg_testset_save_CFLAGS="$CFLAGS"
5935 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 xorg_testset_unknown_warning_option=yes
5946 xorg_testset_unknown_warning_option=no
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5950 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5954 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5955 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 xorg_testset_unused_command_line_argument=yes
5968 xorg_testset_unused_command_line_argument=no
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5972 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5973 CFLAGS="$xorg_testset_save_CFLAGS"
5978 if test $found = "no" ; then
5979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 CFLAGS="$CFLAGS -Wmissing-format-attribute"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5990 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
6002 if ac_fn_c_try_link "$LINENO"; then :
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010 $as_echo "$supported" >&6; }
6011 CFLAGS="$xorg_testset_save_CFLAGS"
6013 if test "$supported" = "yes" ; then
6014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6025 xorg_testset_save_CFLAGS="$CFLAGS"
6027 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 xorg_testset_unknown_warning_option=yes
6038 xorg_testset_unknown_warning_option=no
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6042 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6043 CFLAGS="$xorg_testset_save_CFLAGS"
6046 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6047 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6052 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 xorg_testset_unused_command_line_argument=yes
6060 xorg_testset_unused_command_line_argument=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6064 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6070 if test $found = "no" ; then
6071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079 CFLAGS="$CFLAGS -Wredundant-decls"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6082 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6094 if ac_fn_c_try_link "$LINENO"; then :
6099 rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102 $as_echo "$supported" >&6; }
6103 CFLAGS="$xorg_testset_save_CFLAGS"
6105 if test "$supported" = "yes" ; then
6106 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6113 # These are currently disabled because they are noisy. They will be enabled
6114 # in the future once the codebase is sufficiently modernized to silence
6115 # them. For now, I don't want them to drown out the other warnings.
6116 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6117 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6118 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6120 # Turn some warnings into errors, so we don't accidently get successful builds
6121 # when there are problems that should be fixed.
6123 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6129 xorg_testset_save_CFLAGS="$CFLAGS"
6131 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 xorg_testset_unknown_warning_option=yes
6142 xorg_testset_unknown_warning_option=no
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6146 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6161 if ac_fn_c_try_compile "$LINENO"; then :
6162 xorg_testset_unused_command_line_argument=yes
6164 xorg_testset_unused_command_line_argument=no
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6168 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6169 CFLAGS="$xorg_testset_save_CFLAGS"
6174 if test $found = "no" ; then
6175 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6183 CFLAGS="$CFLAGS -Werror=implicit"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6186 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6198 if ac_fn_c_try_link "$LINENO"; then :
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6206 $as_echo "$supported" >&6; }
6207 CFLAGS="$xorg_testset_save_CFLAGS"
6209 if test "$supported" = "yes" ; then
6210 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6215 if test $found = "no" ; then
6216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6224 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6227 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6239 if ac_fn_c_try_link "$LINENO"; then :
6244 rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6247 $as_echo "$supported" >&6; }
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6250 if test "$supported" = "yes" ; then
6251 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6262 xorg_testset_save_CFLAGS="$CFLAGS"
6264 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6267 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6272 if ac_fn_c_try_compile "$LINENO"; then :
6273 xorg_testset_unknown_warning_option=yes
6275 xorg_testset_unknown_warning_option=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6279 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6283 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 xorg_testset_unused_command_line_argument=yes
6297 xorg_testset_unused_command_line_argument=no
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6301 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6302 CFLAGS="$xorg_testset_save_CFLAGS"
6307 if test $found = "no" ; then
6308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316 CFLAGS="$CFLAGS -Werror=nonnull"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6319 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_c_try_link "$LINENO"; then :
6336 rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6339 $as_echo "$supported" >&6; }
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6342 if test "$supported" = "yes" ; then
6343 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6354 xorg_testset_save_CFLAGS="$CFLAGS"
6356 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365 xorg_testset_unknown_warning_option=yes
6367 xorg_testset_unknown_warning_option=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6371 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6372 CFLAGS="$xorg_testset_save_CFLAGS"
6375 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 xorg_testset_unused_command_line_argument=yes
6389 xorg_testset_unused_command_line_argument=no
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6393 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6394 CFLAGS="$xorg_testset_save_CFLAGS"
6399 if test $found = "no" ; then
6400 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408 CFLAGS="$CFLAGS -Werror=init-self"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6411 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_link "$LINENO"; then :
6428 rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431 $as_echo "$supported" >&6; }
6432 CFLAGS="$xorg_testset_save_CFLAGS"
6434 if test "$supported" = "yes" ; then
6435 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6446 xorg_testset_save_CFLAGS="$CFLAGS"
6448 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 xorg_testset_unknown_warning_option=yes
6459 xorg_testset_unknown_warning_option=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6463 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6464 CFLAGS="$xorg_testset_save_CFLAGS"
6467 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 xorg_testset_unused_command_line_argument=yes
6481 xorg_testset_unused_command_line_argument=no
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6485 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6486 CFLAGS="$xorg_testset_save_CFLAGS"
6491 if test $found = "no" ; then
6492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500 CFLAGS="$CFLAGS -Werror=main"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6503 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_c_try_link "$LINENO"; then :
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6523 $as_echo "$supported" >&6; }
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6526 if test "$supported" = "yes" ; then
6527 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6538 xorg_testset_save_CFLAGS="$CFLAGS"
6540 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 xorg_testset_unknown_warning_option=yes
6551 xorg_testset_unknown_warning_option=no
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6555 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6559 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6565 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 xorg_testset_unused_command_line_argument=yes
6573 xorg_testset_unused_command_line_argument=no
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6577 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6578 CFLAGS="$xorg_testset_save_CFLAGS"
6583 if test $found = "no" ; then
6584 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592 CFLAGS="$CFLAGS -Werror=missing-braces"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6595 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6607 if ac_fn_c_try_link "$LINENO"; then :
6612 rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615 $as_echo "$supported" >&6; }
6616 CFLAGS="$xorg_testset_save_CFLAGS"
6618 if test "$supported" = "yes" ; then
6619 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6630 xorg_testset_save_CFLAGS="$CFLAGS"
6632 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 if ac_fn_c_try_compile "$LINENO"; then :
6641 xorg_testset_unknown_warning_option=yes
6643 xorg_testset_unknown_warning_option=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6647 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6651 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6652 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 xorg_testset_unused_command_line_argument=yes
6665 xorg_testset_unused_command_line_argument=no
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6669 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6675 if test $found = "no" ; then
6676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6684 CFLAGS="$CFLAGS -Werror=sequence-point"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6687 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6699 if ac_fn_c_try_link "$LINENO"; then :
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6707 $as_echo "$supported" >&6; }
6708 CFLAGS="$xorg_testset_save_CFLAGS"
6710 if test "$supported" = "yes" ; then
6711 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6722 xorg_testset_save_CFLAGS="$CFLAGS"
6724 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 xorg_testset_unknown_warning_option=yes
6735 xorg_testset_unknown_warning_option=no
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6739 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6743 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6754 if ac_fn_c_try_compile "$LINENO"; then :
6755 xorg_testset_unused_command_line_argument=yes
6757 xorg_testset_unused_command_line_argument=no
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6761 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6767 if test $found = "no" ; then
6768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776 CFLAGS="$CFLAGS -Werror=return-type"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6779 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6791 if ac_fn_c_try_link "$LINENO"; then :
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6799 $as_echo "$supported" >&6; }
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6802 if test "$supported" = "yes" ; then
6803 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6808 if test $found = "no" ; then
6809 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6820 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6832 if ac_fn_c_try_link "$LINENO"; then :
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6840 $as_echo "$supported" >&6; }
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6843 if test "$supported" = "yes" ; then
6844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6855 xorg_testset_save_CFLAGS="$CFLAGS"
6857 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6865 if ac_fn_c_try_compile "$LINENO"; then :
6866 xorg_testset_unknown_warning_option=yes
6868 xorg_testset_unknown_warning_option=no
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6872 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6873 CFLAGS="$xorg_testset_save_CFLAGS"
6876 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 xorg_testset_unused_command_line_argument=yes
6890 xorg_testset_unused_command_line_argument=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6894 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6900 if test $found = "no" ; then
6901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909 CFLAGS="$CFLAGS -Werror=trigraphs"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
6912 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6924 if ac_fn_c_try_link "$LINENO"; then :
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6932 $as_echo "$supported" >&6; }
6933 CFLAGS="$xorg_testset_save_CFLAGS"
6935 if test "$supported" = "yes" ; then
6936 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
6947 xorg_testset_save_CFLAGS="$CFLAGS"
6949 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 xorg_testset_unknown_warning_option=yes
6960 xorg_testset_unknown_warning_option=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6964 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6965 CFLAGS="$xorg_testset_save_CFLAGS"
6968 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6969 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6979 if ac_fn_c_try_compile "$LINENO"; then :
6980 xorg_testset_unused_command_line_argument=yes
6982 xorg_testset_unused_command_line_argument=no
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6986 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6992 if test $found = "no" ; then
6993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001 CFLAGS="$CFLAGS -Werror=array-bounds"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7004 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7016 if ac_fn_c_try_link "$LINENO"; then :
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024 $as_echo "$supported" >&6; }
7025 CFLAGS="$xorg_testset_save_CFLAGS"
7027 if test "$supported" = "yes" ; then
7028 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7039 xorg_testset_save_CFLAGS="$CFLAGS"
7041 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7044 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7049 if ac_fn_c_try_compile "$LINENO"; then :
7050 xorg_testset_unknown_warning_option=yes
7052 xorg_testset_unknown_warning_option=no
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7056 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7060 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 if ac_fn_c_try_compile "$LINENO"; then :
7072 xorg_testset_unused_command_line_argument=yes
7074 xorg_testset_unused_command_line_argument=no
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7078 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7084 if test $found = "no" ; then
7085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093 CFLAGS="$CFLAGS -Werror=write-strings"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7096 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7108 if ac_fn_c_try_link "$LINENO"; then :
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7116 $as_echo "$supported" >&6; }
7117 CFLAGS="$xorg_testset_save_CFLAGS"
7119 if test "$supported" = "yes" ; then
7120 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7131 xorg_testset_save_CFLAGS="$CFLAGS"
7133 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 xorg_testset_unknown_warning_option=yes
7144 xorg_testset_unknown_warning_option=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7148 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7149 CFLAGS="$xorg_testset_save_CFLAGS"
7152 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 xorg_testset_unused_command_line_argument=yes
7166 xorg_testset_unused_command_line_argument=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7170 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7171 CFLAGS="$xorg_testset_save_CFLAGS"
7176 if test $found = "no" ; then
7177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185 CFLAGS="$CFLAGS -Werror=address"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7188 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7200 if ac_fn_c_try_link "$LINENO"; then :
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208 $as_echo "$supported" >&6; }
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7211 if test "$supported" = "yes" ; then
7212 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7223 xorg_testset_save_CFLAGS="$CFLAGS"
7225 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7233 if ac_fn_c_try_compile "$LINENO"; then :
7234 xorg_testset_unknown_warning_option=yes
7236 xorg_testset_unknown_warning_option=no
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7240 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7241 CFLAGS="$xorg_testset_save_CFLAGS"
7244 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7255 if ac_fn_c_try_compile "$LINENO"; then :
7256 xorg_testset_unused_command_line_argument=yes
7258 xorg_testset_unused_command_line_argument=no
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7262 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7268 if test $found = "no" ; then
7269 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7280 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7292 if ac_fn_c_try_link "$LINENO"; then :
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300 $as_echo "$supported" >&6; }
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7303 if test "$supported" = "yes" ; then
7304 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7309 if test $found = "no" ; then
7310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7321 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7333 if ac_fn_c_try_link "$LINENO"; then :
7338 rm -f core conftest.err conftest.$ac_objext \
7339 conftest$ac_exeext conftest.$ac_ext
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341 $as_echo "$supported" >&6; }
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7344 if test "$supported" = "yes" ; then
7345 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7356 xorg_testset_save_CFLAGS="$CFLAGS"
7358 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 xorg_testset_unknown_warning_option=yes
7369 xorg_testset_unknown_warning_option=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7373 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7377 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 xorg_testset_unused_command_line_argument=yes
7391 xorg_testset_unused_command_line_argument=no
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7395 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7396 CFLAGS="$xorg_testset_save_CFLAGS"
7401 if test $found = "no" ; then
7402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7410 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7413 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7425 if ac_fn_c_try_link "$LINENO"; then :
7430 rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7433 $as_echo "$supported" >&6; }
7434 CFLAGS="$xorg_testset_save_CFLAGS"
7436 if test "$supported" = "yes" ; then
7437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7444 { $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
7445 $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;}
7451 xorg_testset_save_CFLAGS="$CFLAGS"
7453 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 xorg_testset_unknown_warning_option=yes
7464 xorg_testset_unknown_warning_option=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7468 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7469 CFLAGS="$xorg_testset_save_CFLAGS"
7472 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 xorg_testset_unused_command_line_argument=yes
7486 xorg_testset_unused_command_line_argument=no
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7490 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7496 if test $found = "no" ; then
7497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7505 CFLAGS="$CFLAGS -Wimplicit"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7508 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7520 if ac_fn_c_try_link "$LINENO"; then :
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7528 $as_echo "$supported" >&6; }
7529 CFLAGS="$xorg_testset_save_CFLAGS"
7531 if test "$supported" = "yes" ; then
7532 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7543 xorg_testset_save_CFLAGS="$CFLAGS"
7545 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 xorg_testset_unknown_warning_option=yes
7556 xorg_testset_unknown_warning_option=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7560 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7561 CFLAGS="$xorg_testset_save_CFLAGS"
7564 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 xorg_testset_unused_command_line_argument=yes
7578 xorg_testset_unused_command_line_argument=no
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7582 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7583 CFLAGS="$xorg_testset_save_CFLAGS"
7588 if test $found = "no" ; then
7589 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597 CFLAGS="$CFLAGS -Wnonnull"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7600 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7612 if ac_fn_c_try_link "$LINENO"; then :
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7620 $as_echo "$supported" >&6; }
7621 CFLAGS="$xorg_testset_save_CFLAGS"
7623 if test "$supported" = "yes" ; then
7624 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7635 xorg_testset_save_CFLAGS="$CFLAGS"
7637 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7645 if ac_fn_c_try_compile "$LINENO"; then :
7646 xorg_testset_unknown_warning_option=yes
7648 xorg_testset_unknown_warning_option=no
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7652 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7656 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 xorg_testset_unused_command_line_argument=yes
7670 xorg_testset_unused_command_line_argument=no
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7674 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7680 if test $found = "no" ; then
7681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 CFLAGS="$CFLAGS -Winit-self"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7692 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7704 if ac_fn_c_try_link "$LINENO"; then :
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7712 $as_echo "$supported" >&6; }
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7715 if test "$supported" = "yes" ; then
7716 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7727 xorg_testset_save_CFLAGS="$CFLAGS"
7729 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 xorg_testset_unknown_warning_option=yes
7740 xorg_testset_unknown_warning_option=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7744 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7748 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7759 if ac_fn_c_try_compile "$LINENO"; then :
7760 xorg_testset_unused_command_line_argument=yes
7762 xorg_testset_unused_command_line_argument=no
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7766 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7772 if test $found = "no" ; then
7773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7781 CFLAGS="$CFLAGS -Wmain"
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7784 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7796 if ac_fn_c_try_link "$LINENO"; then :
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804 $as_echo "$supported" >&6; }
7805 CFLAGS="$xorg_testset_save_CFLAGS"
7807 if test "$supported" = "yes" ; then
7808 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7819 xorg_testset_save_CFLAGS="$CFLAGS"
7821 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7829 if ac_fn_c_try_compile "$LINENO"; then :
7830 xorg_testset_unknown_warning_option=yes
7832 xorg_testset_unknown_warning_option=no
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7836 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7837 CFLAGS="$xorg_testset_save_CFLAGS"
7840 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7846 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852 xorg_testset_unused_command_line_argument=yes
7854 xorg_testset_unused_command_line_argument=no
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7858 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7859 CFLAGS="$xorg_testset_save_CFLAGS"
7864 if test $found = "no" ; then
7865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873 CFLAGS="$CFLAGS -Wmissing-braces"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7876 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7888 if ac_fn_c_try_link "$LINENO"; then :
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7896 $as_echo "$supported" >&6; }
7897 CFLAGS="$xorg_testset_save_CFLAGS"
7899 if test "$supported" = "yes" ; then
7900 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
7911 xorg_testset_save_CFLAGS="$CFLAGS"
7913 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922 xorg_testset_unknown_warning_option=yes
7924 xorg_testset_unknown_warning_option=no
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7928 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7929 CFLAGS="$xorg_testset_save_CFLAGS"
7932 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944 xorg_testset_unused_command_line_argument=yes
7946 xorg_testset_unused_command_line_argument=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7950 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7956 if test $found = "no" ; then
7957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7965 CFLAGS="$CFLAGS -Wsequence-point"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
7968 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7980 if ac_fn_c_try_link "$LINENO"; then :
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988 $as_echo "$supported" >&6; }
7989 CFLAGS="$xorg_testset_save_CFLAGS"
7991 if test "$supported" = "yes" ; then
7992 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8003 xorg_testset_save_CFLAGS="$CFLAGS"
8005 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 xorg_testset_unknown_warning_option=yes
8016 xorg_testset_unknown_warning_option=no
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8020 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8024 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8035 if ac_fn_c_try_compile "$LINENO"; then :
8036 xorg_testset_unused_command_line_argument=yes
8038 xorg_testset_unused_command_line_argument=no
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8042 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8048 if test $found = "no" ; then
8049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057 CFLAGS="$CFLAGS -Wreturn-type"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8060 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8072 if ac_fn_c_try_link "$LINENO"; then :
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080 $as_echo "$supported" >&6; }
8081 CFLAGS="$xorg_testset_save_CFLAGS"
8083 if test "$supported" = "yes" ; then
8084 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8095 xorg_testset_save_CFLAGS="$CFLAGS"
8097 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8100 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106 xorg_testset_unknown_warning_option=yes
8108 xorg_testset_unknown_warning_option=no
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8112 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8113 CFLAGS="$xorg_testset_save_CFLAGS"
8116 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8117 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8122 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 xorg_testset_unused_command_line_argument=yes
8130 xorg_testset_unused_command_line_argument=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8134 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8135 CFLAGS="$xorg_testset_save_CFLAGS"
8140 if test $found = "no" ; then
8141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149 CFLAGS="$CFLAGS -Wtrigraphs"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8152 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8164 if ac_fn_c_try_link "$LINENO"; then :
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172 $as_echo "$supported" >&6; }
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8175 if test "$supported" = "yes" ; then
8176 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8187 xorg_testset_save_CFLAGS="$CFLAGS"
8189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 xorg_testset_unknown_warning_option=yes
8200 xorg_testset_unknown_warning_option=no
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8204 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8205 CFLAGS="$xorg_testset_save_CFLAGS"
8208 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8214 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8219 if ac_fn_c_try_compile "$LINENO"; then :
8220 xorg_testset_unused_command_line_argument=yes
8222 xorg_testset_unused_command_line_argument=no
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8226 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8227 CFLAGS="$xorg_testset_save_CFLAGS"
8232 if test $found = "no" ; then
8233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241 CFLAGS="$CFLAGS -Warray-bounds"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8244 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8256 if ac_fn_c_try_link "$LINENO"; then :
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264 $as_echo "$supported" >&6; }
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8267 if test "$supported" = "yes" ; then
8268 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8279 xorg_testset_save_CFLAGS="$CFLAGS"
8281 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8284 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 xorg_testset_unknown_warning_option=yes
8292 xorg_testset_unknown_warning_option=no
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8296 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8300 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 xorg_testset_unused_command_line_argument=yes
8314 xorg_testset_unused_command_line_argument=no
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8318 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8324 if test $found = "no" ; then
8325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333 CFLAGS="$CFLAGS -Wwrite-strings"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8336 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8348 if ac_fn_c_try_link "$LINENO"; then :
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8356 $as_echo "$supported" >&6; }
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8359 if test "$supported" = "yes" ; then
8360 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8371 xorg_testset_save_CFLAGS="$CFLAGS"
8373 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8376 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 xorg_testset_unknown_warning_option=yes
8384 xorg_testset_unknown_warning_option=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8388 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8392 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8393 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 xorg_testset_unused_command_line_argument=yes
8406 xorg_testset_unused_command_line_argument=no
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8410 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8416 if test $found = "no" ; then
8417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 CFLAGS="$CFLAGS -Waddress"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8428 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8440 if ac_fn_c_try_link "$LINENO"; then :
8445 rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8448 $as_echo "$supported" >&6; }
8449 CFLAGS="$xorg_testset_save_CFLAGS"
8451 if test "$supported" = "yes" ; then
8452 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8463 xorg_testset_save_CFLAGS="$CFLAGS"
8465 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 xorg_testset_unknown_warning_option=yes
8476 xorg_testset_unknown_warning_option=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8480 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8481 CFLAGS="$xorg_testset_save_CFLAGS"
8484 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8490 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 xorg_testset_unused_command_line_argument=yes
8498 xorg_testset_unused_command_line_argument=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8502 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8508 if test $found = "no" ; then
8509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8520 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8532 if ac_fn_c_try_link "$LINENO"; then :
8537 rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8540 $as_echo "$supported" >&6; }
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8543 if test "$supported" = "yes" ; then
8544 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8555 xorg_testset_save_CFLAGS="$CFLAGS"
8557 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8565 if ac_fn_c_try_compile "$LINENO"; then :
8566 xorg_testset_unknown_warning_option=yes
8568 xorg_testset_unknown_warning_option=no
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8572 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8576 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8587 if ac_fn_c_try_compile "$LINENO"; then :
8588 xorg_testset_unused_command_line_argument=yes
8590 xorg_testset_unused_command_line_argument=no
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8594 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8595 CFLAGS="$xorg_testset_save_CFLAGS"
8600 if test $found = "no" ; then
8601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8609 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8612 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8624 if ac_fn_c_try_link "$LINENO"; then :
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632 $as_echo "$supported" >&6; }
8633 CFLAGS="$xorg_testset_save_CFLAGS"
8635 if test "$supported" = "yes" ; then
8636 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8649 CWARNFLAGS="$BASE_CFLAGS"
8650 if test "x$GCC" = xyes ; then
8651 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
8659 # Check whether --enable-strict-compilation was given.
8660 if test "${enable_strict_compilation+set}" = set; then :
8661 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
8673 xorg_testset_save_CFLAGS="$CFLAGS"
8675 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 xorg_testset_unknown_warning_option=yes
8686 xorg_testset_unknown_warning_option=no
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8690 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8691 CFLAGS="$xorg_testset_save_CFLAGS"
8694 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8705 if ac_fn_c_try_compile "$LINENO"; then :
8706 xorg_testset_unused_command_line_argument=yes
8708 xorg_testset_unused_command_line_argument=no
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8712 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8718 if test $found = "no" ; then
8719 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727 CFLAGS="$CFLAGS -pedantic"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
8730 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8742 if ac_fn_c_try_link "$LINENO"; then :
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750 $as_echo "$supported" >&6; }
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8753 if test "$supported" = "yes" ; then
8754 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
8765 xorg_testset_save_CFLAGS="$CFLAGS"
8767 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8770 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8775 if ac_fn_c_try_compile "$LINENO"; then :
8776 xorg_testset_unknown_warning_option=yes
8778 xorg_testset_unknown_warning_option=no
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8782 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8783 CFLAGS="$xorg_testset_save_CFLAGS"
8786 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8787 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8792 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798 xorg_testset_unused_command_line_argument=yes
8800 xorg_testset_unused_command_line_argument=no
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8804 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8805 CFLAGS="$xorg_testset_save_CFLAGS"
8810 if test $found = "no" ; then
8811 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8819 CFLAGS="$CFLAGS -Werror"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
8822 $as_echo_n "checking if $CC supports -Werror... " >&6; }
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8834 if ac_fn_c_try_link "$LINENO"; then :
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842 $as_echo "$supported" >&6; }
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8845 if test "$supported" = "yes" ; then
8846 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
8851 if test $found = "no" ; then
8852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860 CFLAGS="$CFLAGS -errwarn"
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
8863 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8875 if ac_fn_c_try_link "$LINENO"; then :
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8883 $as_echo "$supported" >&6; }
8884 CFLAGS="$xorg_testset_save_CFLAGS"
8886 if test "$supported" = "yes" ; then
8887 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
8894 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
8895 # activate it with -Werror, so we add it here explicitly.
8901 xorg_testset_save_CFLAGS="$CFLAGS"
8903 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 xorg_testset_unknown_warning_option=yes
8914 xorg_testset_unknown_warning_option=no
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8918 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8919 CFLAGS="$xorg_testset_save_CFLAGS"
8922 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8923 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 if ac_fn_c_try_compile "$LINENO"; then :
8934 xorg_testset_unused_command_line_argument=yes
8936 xorg_testset_unused_command_line_argument=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8940 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8946 if test $found = "no" ; then
8947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8955 CFLAGS="$CFLAGS -Werror=attributes"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
8958 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8970 if ac_fn_c_try_link "$LINENO"; then :
8975 rm -f core conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8978 $as_echo "$supported" >&6; }
8979 CFLAGS="$xorg_testset_save_CFLAGS"
8981 if test "$supported" = "yes" ; then
8982 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
8989 if test "x$STRICT_COMPILE" = "xyes"; then
8990 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
8991 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
8999 cat >>confdefs.h <<_ACEOF
9000 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9003 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9004 if test "x$PVM" = "x"; then
9008 cat >>confdefs.h <<_ACEOF
9009 #define PACKAGE_VERSION_MINOR $PVM
9012 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9013 if test "x$PVP" = "x"; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9023 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9024 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9025 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9026 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9031 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9032 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9033 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9034 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9035 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9042 if test x$APP_MAN_SUFFIX = x ; then
9045 if test x$APP_MAN_DIR = x ; then
9046 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9049 if test x$LIB_MAN_SUFFIX = x ; then
9052 if test x$LIB_MAN_DIR = x ; then
9053 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9056 if test x$FILE_MAN_SUFFIX = x ; then
9058 solaris*) FILE_MAN_SUFFIX=4 ;;
9059 *) FILE_MAN_SUFFIX=5 ;;
9062 if test x$FILE_MAN_DIR = x ; then
9063 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9066 if test x$MISC_MAN_SUFFIX = x ; then
9068 solaris*) MISC_MAN_SUFFIX=5 ;;
9069 *) MISC_MAN_SUFFIX=7 ;;
9072 if test x$MISC_MAN_DIR = x ; then
9073 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9076 if test x$DRIVER_MAN_SUFFIX = x ; then
9078 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9079 *) DRIVER_MAN_SUFFIX=4 ;;
9082 if test x$DRIVER_MAN_DIR = x ; then
9083 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9086 if test x$ADMIN_MAN_SUFFIX = x ; then
9088 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9089 *) ADMIN_MAN_SUFFIX=8 ;;
9092 if test x$ADMIN_MAN_DIR = x ; then
9093 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9110 XORG_MAN_PAGE="X Version 11"
9113 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9114 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9115 -e 's|__xservername__|Xorg|g' \
9116 -e 's|__xconfigfile__|xorg.conf|g' \
9117 -e 's|__projectroot__|\$(prefix)|g' \
9118 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9119 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9120 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9121 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9122 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9123 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9124 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9128 # Check whether --enable-silent-rules was given.
9129 if test "${enable_silent_rules+set}" = set; then :
9130 enableval=$enable_silent_rules;
9133 case $enable_silent_rules in
9134 yes) AM_DEFAULT_VERBOSITY=0;;
9135 no) AM_DEFAULT_VERBOSITY=1;;
9136 *) AM_DEFAULT_VERBOSITY=0;;
9138 am_make=${MAKE-make}
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
9140 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
9141 if ${am_cv_make_support_nested_variables+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 if $as_echo 'TRUE=$(BAR$(V))
9150 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
9151 am_cv_make_support_nested_variables=yes
9153 am_cv_make_support_nested_variables=no
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
9157 $as_echo "$am_cv_make_support_nested_variables" >&6; }
9158 if test $am_cv_make_support_nested_variables = yes; then
9160 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9162 AM_V=$AM_DEFAULT_VERBOSITY
9163 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9169 # Obtain compiler/linker options for dependencies
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5
9173 $as_echo_n "checking for XINPUT... " >&6; }
9175 if test -n "$XINPUT_CFLAGS"; then
9176 pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS"
9177 elif test -n "$PKG_CONFIG"; then
9178 if test -n "$PKG_CONFIG" && \
9179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
9180 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
9182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9183 test $ac_status = 0; }; then
9184 pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
9191 if test -n "$XINPUT_LIBS"; then
9192 pkg_cv_XINPUT_LIBS="$XINPUT_LIBS"
9193 elif test -n "$PKG_CONFIG"; then
9194 if test -n "$PKG_CONFIG" && \
9195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5
9196 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5
9198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9199 test $ac_status = 0; }; then
9200 pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null`
9210 if test $pkg_failed = yes; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9215 _pkg_short_errors_supported=yes
9217 _pkg_short_errors_supported=no
9219 if test $_pkg_short_errors_supported = yes; then
9220 XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
9222 XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1`
9224 # Put the nasty error message in config.log where it belongs
9225 echo "$XINPUT_PKG_ERRORS" >&5
9227 as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama) were not met:
9231 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9232 installed software in a non-standard prefix.
9234 Alternatively, you may set the environment variables XINPUT_CFLAGS
9235 and XINPUT_LIBS to avoid the need to call pkg-config.
9236 See the pkg-config man page for more details." "$LINENO" 5
9238 elif test $pkg_failed = untried; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9243 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9244 is in your PATH or set the PKG_CONFIG environment variable to the full
9247 Alternatively, you may set the environment variables XINPUT_CFLAGS
9248 and XINPUT_LIBS to avoid the need to call pkg-config.
9249 See the pkg-config man page for more details.
9251 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9252 See \`config.log' for more details" "$LINENO" 5; }
9255 XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS
9256 XINPUT_LIBS=$pkg_cv_XINPUT_LIBS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9258 $as_echo "yes" >&6; }
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5
9266 $as_echo_n "checking for XI2... " >&6; }
9268 if test -n "$XI2_CFLAGS"; then
9269 pkg_cv_XI2_CFLAGS="$XI2_CFLAGS"
9270 elif test -n "$PKG_CONFIG"; then
9271 if test -n "$PKG_CONFIG" && \
9272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
9273 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
9275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9276 test $ac_status = 0; }; then
9277 pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
9284 if test -n "$XI2_LIBS"; then
9285 pkg_cv_XI2_LIBS="$XI2_LIBS"
9286 elif test -n "$PKG_CONFIG"; then
9287 if test -n "$PKG_CONFIG" && \
9288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5
9289 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5
9291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9292 test $ac_status = 0; }; then
9293 pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null`
9303 if test $pkg_failed = yes; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9308 _pkg_short_errors_supported=yes
9310 _pkg_short_errors_supported=no
9312 if test $_pkg_short_errors_supported = yes; then
9313 XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
9315 XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1`
9317 # Put the nasty error message in config.log where it belongs
9318 echo "$XI2_PKG_ERRORS" >&5
9321 elif test $pkg_failed = untried; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9326 XI2_CFLAGS=$pkg_cv_XI2_CFLAGS
9327 XI2_LIBS=$pkg_cv_XI2_LIBS
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9329 $as_echo "yes" >&6; }
9331 $as_echo "#define HAVE_XI2 1" >>confdefs.h
9334 if test "$HAVE_XI2" = "yes" ; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI21" >&5
9348 $as_echo_n "checking for XI21... " >&6; }
9350 if test -n "$XI21_CFLAGS"; then
9351 pkg_cv_XI21_CFLAGS="$XI21_CFLAGS"
9352 elif test -n "$PKG_CONFIG"; then
9353 if test -n "$PKG_CONFIG" && \
9354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
9355 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
9357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9358 test $ac_status = 0; }; then
9359 pkg_cv_XI21_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
9366 if test -n "$XI21_LIBS"; then
9367 pkg_cv_XI21_LIBS="$XI21_LIBS"
9368 elif test -n "$PKG_CONFIG"; then
9369 if test -n "$PKG_CONFIG" && \
9370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5
9371 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5
9373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9374 test $ac_status = 0; }; then
9375 pkg_cv_XI21_LIBS=`$PKG_CONFIG --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null`
9385 if test $pkg_failed = yes; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9389 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9390 _pkg_short_errors_supported=yes
9392 _pkg_short_errors_supported=no
9394 if test $_pkg_short_errors_supported = yes; then
9395 XI21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
9397 XI21_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1`
9399 # Put the nasty error message in config.log where it belongs
9400 echo "$XI21_PKG_ERRORS" >&5
9402 as_fn_error $? "Package requirements (xi >= 1.4.99.1 inputproto >= 2.0.99.1) were not met:
9406 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9407 installed software in a non-standard prefix.
9409 Alternatively, you may set the environment variables XI21_CFLAGS
9410 and XI21_LIBS to avoid the need to call pkg-config.
9411 See the pkg-config man page for more details." "$LINENO" 5
9413 elif test $pkg_failed = untried; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9418 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9419 is in your PATH or set the PKG_CONFIG environment variable to the full
9422 Alternatively, you may set the environment variables XI21_CFLAGS
9423 and XI21_LIBS to avoid the need to call pkg-config.
9424 See the pkg-config man page for more details.
9426 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9427 See \`config.log' for more details" "$LINENO" 5; }
9430 XI21_CFLAGS=$pkg_cv_XI21_CFLAGS
9431 XI21_LIBS=$pkg_cv_XI21_LIBS
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9433 $as_echo "yes" >&6; }
9435 $as_echo "#define HAVE_XI21 1" >>confdefs.h
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI22" >&5
9442 $as_echo_n "checking for XI22... " >&6; }
9444 if test -n "$XI22_CFLAGS"; then
9445 pkg_cv_XI22_CFLAGS="$XI22_CFLAGS"
9446 elif test -n "$PKG_CONFIG"; then
9447 if test -n "$PKG_CONFIG" && \
9448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
9449 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
9451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9452 test $ac_status = 0; }; then
9453 pkg_cv_XI22_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
9460 if test -n "$XI22_LIBS"; then
9461 pkg_cv_XI22_LIBS="$XI22_LIBS"
9462 elif test -n "$PKG_CONFIG"; then
9463 if test -n "$PKG_CONFIG" && \
9464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5
9465 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; }; then
9469 pkg_cv_XI22_LIBS=`$PKG_CONFIG --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null`
9479 if test $pkg_failed = yes; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9484 _pkg_short_errors_supported=yes
9486 _pkg_short_errors_supported=no
9488 if test $_pkg_short_errors_supported = yes; then
9489 XI22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
9491 XI22_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1`
9493 # Put the nasty error message in config.log where it belongs
9494 echo "$XI22_PKG_ERRORS" >&5
9496 as_fn_error $? "Package requirements (xi >= 1.5.99.1 inputproto >= 2.1.99.1) were not met:
9500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9501 installed software in a non-standard prefix.
9503 Alternatively, you may set the environment variables XI22_CFLAGS
9504 and XI22_LIBS to avoid the need to call pkg-config.
9505 See the pkg-config man page for more details." "$LINENO" 5
9507 elif test $pkg_failed = untried; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9512 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9513 is in your PATH or set the PKG_CONFIG environment variable to the full
9516 Alternatively, you may set the environment variables XI22_CFLAGS
9517 and XI22_LIBS to avoid the need to call pkg-config.
9518 See the pkg-config man page for more details.
9520 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9521 See \`config.log' for more details" "$LINENO" 5; }
9524 XI22_CFLAGS=$pkg_cv_XI22_CFLAGS
9525 XI22_LIBS=$pkg_cv_XI22_LIBS
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9527 $as_echo "yes" >&6; }
9529 $as_echo "#define HAVE_XI22 1" >>confdefs.h
9533 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
9535 cat >confcache <<\_ACEOF
9536 # This file is a shell script that caches the results of configure
9537 # tests run on this system so they can be shared between configure
9538 # scripts and configure runs, see configure's option --config-cache.
9539 # It is not useful on other systems. If it contains results you don't
9540 # want to keep, you may remove or edit it.
9542 # config.status only pays attention to the cache file if you give it
9543 # the --recheck option to rerun configure.
9545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9551 # The following way of writing the cache mishandles newlines in values,
9552 # but we know of no workaround that is simple, portable, and efficient.
9553 # So, we kill variables containing newlines.
9554 # Ultrix sh set writes to stderr and can't be redirected directly,
9555 # and sets the high bit in the cache file unless we assign to the vars.
9557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9558 eval ac_val=\$$ac_var
9562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9566 _ | IFS | as_nl) ;; #(
9567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9568 *) { eval $ac_var=; unset $ac_var;} ;;
9574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9575 *${as_nl}ac_space=\ *)
9576 # `set' does not quote correctly, so add quotes: double-quote
9577 # substitution turns \\\\ into \\, and sed turns \\ into \.
9580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9583 # `set' quotes correctly as required by POSIX, so do not add quotes.
9584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9598 if test -w "$cache_file"; then
9599 if test "x$cache_file" != "x/dev/null"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9601 $as_echo "$as_me: updating cache $cache_file" >&6;}
9602 if test ! -f "$cache_file" || test -h "$cache_file"; then
9603 cat confcache >"$cache_file"
9605 case $cache_file in #(
9607 mv -f confcache "$cache_file"$$ &&
9608 mv -f "$cache_file"$$ "$cache_file" ;; #(
9610 mv -f confcache "$cache_file" ;;
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9622 # Let make expand exec_prefix.
9623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9625 DEFS=-DHAVE_CONFIG_H
9630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9631 # 1. Remove the extension, and $U if already installed.
9632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9633 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9635 # will be set to the directory where LIBOBJS objects are built.
9636 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9637 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9641 LTLIBOBJS=$ac_ltlibobjs
9644 if test -n "$EXEEXT"; then
9646 am__EXEEXT_FALSE='#'
9652 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9653 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9656 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9657 as_fn_error $? "conditional \"AMDEP\" was never defined.
9658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9664 if test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then
9665 as_fn_error $? "conditional \"HAVE_XI2\" was never defined.
9666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9669 : "${CONFIG_STATUS=./config.status}"
9671 ac_clean_files_save=$ac_clean_files
9672 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9674 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9676 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9678 # Generated by $as_me.
9679 # Run this file to recreate the current configuration.
9680 # Compiler output produced by configure, useful for debugging
9681 # configure, is in config.log if it exists.
9687 SHELL=\${CONFIG_SHELL-$SHELL}
9690 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9691 ## -------------------- ##
9692 ## M4sh Initialization. ##
9693 ## -------------------- ##
9695 # Be more Bourne compatible
9696 DUALCASE=1; export DUALCASE # for MKS sh
9697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9700 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9701 # is contrary to our usage. Disable this feature.
9702 alias -g '${1+"$@"}'='"$@"'
9703 setopt NO_GLOB_SUBST
9705 case `(set -o) 2>/dev/null` in #(
9717 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9718 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9721 # Prefer a ksh shell builtin over an external printf program on Solaris,
9722 # but without wasting forks for bash or zsh.
9723 if test -z "$BASH_VERSION$ZSH_VERSION" \
9724 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9725 as_echo='print -r --'
9726 as_echo_n='print -rn --'
9727 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9728 as_echo='printf %s\n'
9729 as_echo_n='printf %s'
9731 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9732 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9733 as_echo_n='/usr/ucb/echo -n'
9735 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9736 as_echo_n_body='eval
9740 expr "X$arg" : "X\\(.*\\)$as_nl";
9741 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9743 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9745 export as_echo_n_body
9746 as_echo_n='sh -c $as_echo_n_body as_echo'
9749 as_echo='sh -c $as_echo_body as_echo'
9752 # The user is always right.
9753 if test "${PATH_SEPARATOR+set}" != set; then
9755 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9756 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9763 # We need space, tab and new line, in precisely that order. Quoting is
9764 # there to prevent editors from complaining about space-tab.
9765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9766 # splitting by setting IFS to empty value.)
9769 # Find who we are. Look in the path if we contain no directory separator.
9772 *[\\/]* ) as_myself=$0 ;;
9773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 test -z "$as_dir" && as_dir=.
9778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9784 # We did not find ourselves, most probably we were run as `sh COMMAND'
9785 # in which case we are not to be found in the path.
9786 if test "x$as_myself" = x; then
9789 if test ! -f "$as_myself"; then
9790 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9794 # Unset variables that we do not need and which cause bugs (e.g. in
9795 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9796 # suppresses any "Segmentation fault" message there. '((' could
9797 # trigger a bug in pdksh 5.2.14.
9798 for as_var in BASH_ENV ENV MAIL MAILPATH
9799 do eval test x\${$as_var+set} = xset \
9800 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9816 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9817 # ----------------------------------------
9818 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9819 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9820 # script with STATUS, using 1 if that was 0.
9823 as_status=$1; test $as_status -eq 0 && as_status=1
9825 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9826 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9828 $as_echo "$as_me: error: $2" >&2
9829 as_fn_exit $as_status
9833 # as_fn_set_status STATUS
9834 # -----------------------
9835 # Set $? to STATUS, without forking.
9839 } # as_fn_set_status
9843 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9853 # Portably unset VAR.
9856 { eval $1=; unset $1;}
9858 as_unset=as_fn_unset
9859 # as_fn_append VAR VALUE
9860 # ----------------------
9861 # Append the text in VALUE to the end of the definition contained in VAR. Take
9862 # advantage of any shell optimizations that allow amortized linear growth over
9863 # repeated appends, instead of the typical quadratic growth present in naive
9865 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9866 eval 'as_fn_append ()
9877 # as_fn_arith ARG...
9878 # ------------------
9879 # Perform arithmetic evaluation on the ARGs, and store the result in the
9880 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9881 # must be portable across $(()) and expr.
9882 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9883 eval 'as_fn_arith ()
9890 as_val=`expr "$@" || test $? -eq 1`
9895 if expr a : '\(a\)' >/dev/null 2>&1 &&
9896 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9903 as_basename=basename
9908 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9914 as_me=`$as_basename -- "$0" ||
9915 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9916 X"$0" : 'X\(//\)$' \| \
9917 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9919 sed '/^.*\/\([^/][^/]*\)\/*$/{
9933 # Avoid depending upon Character Ranges.
9934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9937 as_cr_digits='0123456789'
9938 as_cr_alnum=$as_cr_Letters$as_cr_digits
9940 ECHO_C= ECHO_N= ECHO_T=
9941 case `echo -n x` in #(((((
9943 case `echo 'xy\c'` in
9944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9946 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9953 rm -f conf$$ conf$$.exe conf$$.file
9954 if test -d conf$$.dir; then
9955 rm -f conf$$.dir/conf$$.file
9958 mkdir conf$$.dir 2>/dev/null
9960 if (echo >conf$$.file) 2>/dev/null; then
9961 if ln -s conf$$.file conf$$ 2>/dev/null; then
9963 # ... but there are two gotchas:
9964 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9965 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9966 # In both cases, we have to default to `cp -p'.
9967 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9969 elif ln conf$$.file conf$$ 2>/dev/null; then
9977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9978 rmdir conf$$.dir 2>/dev/null
9983 # Create "$as_dir" as a directory, including parents if necessary.
9988 -*) as_dir=./$as_dir;;
9990 test -d "$as_dir" || eval $as_mkdir_p || {
9994 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9995 *) as_qdir=$as_dir;;
9997 as_dirs="'$as_qdir' $as_dirs"
9998 as_dir=`$as_dirname -- "$as_dir" ||
9999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10000 X"$as_dir" : 'X\(//\)[^/]' \| \
10001 X"$as_dir" : 'X\(//\)$' \| \
10002 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10003 $as_echo X"$as_dir" |
10004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10008 /^X\(\/\/\)[^/].*/{
10021 test -d "$as_dir" && break
10023 test -z "$as_dirs" || eval "mkdir $as_dirs"
10024 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10028 if mkdir -p . 2>/dev/null; then
10029 as_mkdir_p='mkdir -p "$as_dir"'
10031 test -d ./-p && rmdir ./-p
10035 if test -x / >/dev/null 2>&1; then
10036 as_test_x='test -x'
10038 if ls -dL / >/dev/null 2>&1; then
10045 if test -d "$1"; then
10051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10052 ???[sx]*):;;*)false;;esac;fi
10056 as_executable_p=$as_test_x
10058 # Sed expression to map a string onto a valid CPP name.
10059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10061 # Sed expression to map a string onto a valid variable name.
10062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10066 ## ----------------------------------- ##
10067 ## Main body of $CONFIG_STATUS script. ##
10068 ## ----------------------------------- ##
10070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 # Save the log message, to keep $0 and so on meaningful, and to
10074 # report actual input values of CONFIG_FILES etc. instead of their
10075 # values after options handling.
10077 This file was extended by xinput $as_me 1.6.0, which was
10078 generated by GNU Autoconf 2.68. Invocation command line was
10080 CONFIG_FILES = $CONFIG_FILES
10081 CONFIG_HEADERS = $CONFIG_HEADERS
10082 CONFIG_LINKS = $CONFIG_LINKS
10083 CONFIG_COMMANDS = $CONFIG_COMMANDS
10086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10091 case $ac_config_files in *"
10092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10095 case $ac_config_headers in *"
10096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10101 # Files that config.status was made for.
10102 config_files="$ac_config_files"
10103 config_headers="$ac_config_headers"
10104 config_commands="$ac_config_commands"
10108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10110 \`$as_me' instantiates files and other configuration actions
10111 from templates according to the current configuration. Unless the files
10112 and actions are specified as TAGs, all are instantiated by default.
10114 Usage: $0 [OPTION]... [TAG]...
10116 -h, --help print this help, then exit
10117 -V, --version print version number and configuration settings, then exit
10118 --config print configuration, then exit
10119 -q, --quiet, --silent
10120 do not print progress messages
10121 -d, --debug don't remove temporary files
10122 --recheck update $as_me by reconfiguring in the same conditions
10123 --file=FILE[:TEMPLATE]
10124 instantiate the configuration file FILE
10125 --header=FILE[:TEMPLATE]
10126 instantiate the configuration header FILE
10128 Configuration files:
10131 Configuration headers:
10134 Configuration commands:
10137 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10141 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10143 xinput config.status 1.6.0
10144 configured by $0, generated by GNU Autoconf 2.68,
10145 with options \\"\$ac_cs_config\\"
10147 Copyright (C) 2010 Free Software Foundation, Inc.
10148 This config.status script is free software; the Free Software Foundation
10149 gives unlimited permission to copy, distribute and modify it."
10156 test -n "\$AWK" || AWK=awk
10159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10160 # The default lists apply if the user does not specify any file.
10166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10183 # Handling of the options.
10184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10187 $as_echo "$ac_cs_version"; exit ;;
10188 --config | --confi | --conf | --con | --co | --c )
10189 $as_echo "$ac_cs_config"; exit ;;
10190 --debug | --debu | --deb | --de | --d | -d )
10192 --file | --fil | --fi | --f )
10195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10196 '') as_fn_error $? "missing file argument" ;;
10198 as_fn_append CONFIG_FILES " '$ac_optarg'"
10199 ac_need_defaults=false;;
10200 --header | --heade | --head | --hea )
10203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10206 ac_need_defaults=false;;
10208 # Conflict between --help and --header
10209 as_fn_error $? "ambiguous option: \`$1'
10210 Try \`$0 --help' for more information.";;
10211 --help | --hel | -h )
10212 $as_echo "$ac_cs_usage"; exit ;;
10213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10217 # This is an error.
10218 -*) as_fn_error $? "unrecognized option: \`$1'
10219 Try \`$0 --help' for more information." ;;
10221 *) as_fn_append ac_config_targets " $1"
10222 ac_need_defaults=false ;;
10228 ac_configure_extra_args=
10230 if $ac_cs_silent; then
10232 ac_configure_extra_args="$ac_configure_extra_args --silent"
10236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10237 if \$ac_cs_recheck; then
10238 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10241 CONFIG_SHELL='$SHELL'
10242 export CONFIG_SHELL
10247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10252 ## Running $as_me. ##
10258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10262 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10268 # Handling of arguments.
10269 for ac_config_target in $ac_config_targets
10271 case $ac_config_target in
10272 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10274 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10275 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10276 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10278 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10283 # If the user did not use the arguments to specify the items to instantiate,
10284 # then the envvar interface is used. Set only those that are not.
10285 # We use the long form for the default assignment because of an extremely
10286 # bizarre bug on SunOS 4.1.3.
10287 if $ac_need_defaults; then
10288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10293 # Have a temporary directory for convenience. Make it in the build tree
10294 # simply because there is no reason against having it here, and in addition,
10295 # creating and moving files from /tmp can sometimes cause problems.
10296 # Hook for its removal unless debugging.
10297 # Note that there is a small window in which the directory will not be cleaned:
10298 # after its creation but before its name has been assigned to `$tmp'.
10302 trap 'exit_status=$?
10303 : "${ac_tmp:=$tmp}"
10304 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10306 trap 'as_fn_exit 1' 1 2 13 15
10308 # Create a (secure) tmp directory for tmp files.
10311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10315 tmp=./conf$$-$RANDOM
10316 (umask 077 && mkdir "$tmp")
10317 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10320 # Set up the scripts for CONFIG_FILES section.
10321 # No need to generate them if there are no CONFIG_FILES.
10322 # This happens for instance with `./config.status config.h'.
10323 if test -n "$CONFIG_FILES"; then
10326 ac_cr=`echo X | tr X '\015'`
10327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10328 # But we know of no other shell where ac_cr would be empty at this
10329 # point, so we can use a bashism as a fallback.
10330 if test "x$ac_cr" = x; then
10331 eval ac_cr=\$\'\\r\'
10333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10337 ac_cs_awk_cr=$ac_cr
10340 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10345 echo "cat >conf$$subs.awk <<_ACEOF" &&
10346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10348 } >conf$$subs.sh ||
10349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10352 for ac_last_try in false false false false false :; do
10353 . ./conf$$subs.sh ||
10354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10357 if test $ac_delim_n = $ac_delim_num; then
10359 elif $ac_last_try; then
10360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10365 rm -f conf$$subs.sh
10367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10368 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10372 s/^/S["/; s/!.*/"]=/
10382 s/\(.\{148\}\)..*/\1/
10384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10396 s/\(.\{148\}\)..*/\1/
10398 s/["\\]/\\&/g; s/^/"/; s/$/"/
10402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10407 ' <conf$$subs.awk | sed '
10412 ' >>$CONFIG_STATUS || ac_write_fail=1
10413 rm -f conf$$subs.awk
10414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10416 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10417 for (key in S) S_is_set[key] = 1
10423 nfields = split(line, field, "@")
10425 len = length(field[1])
10426 for (i = 2; i < nfields; i++) {
10428 keylen = length(key)
10429 if (S_is_set[key]) {
10431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10432 len += length(value) + length(field[++i])
10443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10444 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10445 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10448 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10449 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10452 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10453 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10454 # trailing colons and then remove the whole line if VPATH becomes empty
10455 # (actually we leave an empty line to preserve line numbers).
10456 if test "x$srcdir" = x.; then
10457 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10476 fi # test -n "$CONFIG_FILES"
10478 # Set up the scripts for CONFIG_HEADERS section.
10479 # No need to generate them if there are no CONFIG_HEADERS.
10480 # This happens for instance with `./config.status Makefile'.
10481 if test -n "$CONFIG_HEADERS"; then
10482 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10486 # Transform confdefs.h into an awk script `defines.awk', embedded as
10487 # here-document in config.status, that substitutes the proper values into
10488 # config.h.in to produce config.h.
10490 # Create a delimiter string that does not exist in confdefs.h, to ease
10491 # handling of long lines.
10493 for ac_last_try in false false :; do
10494 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10495 if test -z "$ac_tt"; then
10497 elif $ac_last_try; then
10498 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10504 # For the awk script, D is an array of macro values keyed by name,
10505 # likewise P contains macro parameters if any. Preserve backslash
10506 # newline sequences.
10508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10510 s/.\{148\}/&'"$ac_delim"'/g
10513 s/^[ ]*#[ ]*define[ ][ ]*/ /
10520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10526 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10527 D["\1"]=" \3\\\\\\n"\\/p
10529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10534 s/.\{148\}/&'"$ac_delim"'/g
10539 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10542 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10544 ' <confdefs.h | sed '
10545 s/'"$ac_delim"'/"\\\
10546 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10549 for (key in D) D_is_set[key] = 1
10552 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10554 split(line, arg, " ")
10555 if (arg[1] == "#") {
10559 defundef = substr(arg[1], 2)
10562 split(mac1, mac2, "(") #)
10564 prefix = substr(line, 1, index(line, defundef) - 1)
10565 if (D_is_set[macro]) {
10566 # Preserve the white space surrounding the "#".
10567 print prefix "define", macro P[macro] D[macro]
10570 # Replace #undef with comments. This is necessary, for example,
10571 # in the case of _POSIX_SOURCE, which is predefined and required
10572 # on some systems where configure will not decide to define it.
10573 if (defundef == "undef") {
10574 print "/*", prefix defundef, macro, "*/"
10582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10583 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10584 fi # test -n "$CONFIG_HEADERS"
10587 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10592 :[FHLC]) ac_mode=$ac_tag; continue;;
10594 case $ac_mode$ac_tag in
10596 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10597 :[FH]-) ac_tag=-:-;;
10598 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10615 -) ac_f="$ac_tmp/stdin";;
10616 *) # Look for the file first in the build tree, then in the source tree
10617 # (if the path is not absolute). The absolute path cannot be DOS-style,
10618 # because $ac_f cannot contain `:'.
10622 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10624 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10626 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10627 as_fn_append ac_file_inputs " '$ac_f'"
10630 # Let's still pretend it is `configure' which instantiates (i.e., don't
10631 # use $as_me), people would be surprised to read:
10632 # /* config.h. Generated by config.status. */
10633 configure_input='Generated from '`
10634 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10636 if test x"$ac_file" != x-; then
10637 configure_input="$ac_file. $configure_input"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10639 $as_echo "$as_me: creating $ac_file" >&6;}
10641 # Neutralize special characters interpreted by sed in replacement strings.
10642 case $configure_input in #(
10643 *\&* | *\|* | *\\* )
10644 ac_sed_conf_input=`$as_echo "$configure_input" |
10645 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10646 *) ac_sed_conf_input=$configure_input;;
10650 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10656 ac_dir=`$as_dirname -- "$ac_file" ||
10657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10658 X"$ac_file" : 'X\(//\)[^/]' \| \
10659 X"$ac_file" : 'X\(//\)$' \| \
10660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10661 $as_echo X"$ac_file" |
10662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10666 /^X\(\/\/\)[^/].*/{
10679 as_dir="$ac_dir"; as_fn_mkdir_p
10683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10686 # A ".." for each directory in $ac_dir_suffix.
10687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10688 case $ac_top_builddir_sub in
10689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10693 ac_abs_top_builddir=$ac_pwd
10694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10695 # for backward compatibility:
10696 ac_top_builddir=$ac_top_build_prefix
10699 .) # We are building in place.
10701 ac_top_srcdir=$ac_top_builddir_sub
10702 ac_abs_top_srcdir=$ac_pwd ;;
10703 [\\/]* | ?:[\\/]* ) # Absolute name.
10704 ac_srcdir=$srcdir$ac_dir_suffix;
10705 ac_top_srcdir=$srcdir
10706 ac_abs_top_srcdir=$srcdir ;;
10707 *) # Relative name.
10708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10709 ac_top_srcdir=$ac_top_build_prefix$srcdir
10710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10725 ac_MKDIR_P=$MKDIR_P
10727 [\\/$]* | ?:[\\/]* ) ;;
10728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10733 # If the template does not know about datarootdir, expand it.
10734 # FIXME: This hack should be removed a few years after 2.60.
10735 ac_datarootdir_hack=; ac_datarootdir_seen=
10746 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10747 *datarootdir*) ac_datarootdir_seen=yes;;
10748 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10750 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10753 ac_datarootdir_hack='
10754 s&@datadir@&$datadir&g
10755 s&@docdir@&$docdir&g
10756 s&@infodir@&$infodir&g
10757 s&@localedir@&$localedir&g
10758 s&@mandir@&$mandir&g
10759 s&\\\${datarootdir}&$datarootdir&g' ;;
10763 # Neutralize VPATH when `$srcdir' = `.'.
10764 # Shell code in configure.ac might set extrasub.
10765 # FIXME: do we really want to maintain this feature?
10766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10767 ac_sed_extra="$ac_vpsub
10770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10773 s|@configure_input@|$ac_sed_conf_input|;t t
10774 s&@top_builddir@&$ac_top_builddir_sub&;t t
10775 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10776 s&@srcdir@&$ac_srcdir&;t t
10777 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10778 s&@top_srcdir@&$ac_top_srcdir&;t t
10779 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10780 s&@builddir@&$ac_builddir&;t t
10781 s&@abs_builddir@&$ac_abs_builddir&;t t
10782 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10783 s&@INSTALL@&$ac_INSTALL&;t t
10784 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10785 $ac_datarootdir_hack
10787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10788 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10791 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10793 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10795 which seems to be undefined. Please make sure it is defined" >&5
10796 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10797 which seems to be undefined. Please make sure it is defined" >&2;}
10799 rm -f "$ac_tmp/stdin"
10801 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10802 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10810 if test x"$ac_file" != x-; then
10812 $as_echo "/* $configure_input */" \
10813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10814 } >"$ac_tmp/config.h" \
10815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10816 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10818 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10821 mv "$ac_tmp/config.h" "$ac_file" \
10822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10825 $as_echo "/* $configure_input */" \
10826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10827 || as_fn_error $? "could not create -" "$LINENO" 5
10829 # Compute "$ac_file"'s index in $config_headers.
10832 for _am_header in $config_headers :; do
10833 case $_am_header in
10834 $_am_arg | $_am_arg:* )
10837 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10840 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10841 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10842 X"$_am_arg" : 'X\(//\)[^/]' \| \
10843 X"$_am_arg" : 'X\(//\)$' \| \
10844 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10845 $as_echo X"$_am_arg" |
10846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10850 /^X\(\/\/\)[^/].*/{
10862 s/.*/./; q'`/stamp-h$_am_stamp_count
10865 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10866 $as_echo "$as_me: executing $ac_file commands" >&6;}
10871 case $ac_file$ac_mode in
10872 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10873 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10874 # are listed without --file. Let's play safe and only enable the eval
10875 # if we detect the quoting.
10876 case $CONFIG_FILES in
10877 *\'*) eval set x "$CONFIG_FILES" ;;
10878 *) set x $CONFIG_FILES ;;
10883 # Strip MF so we end up with the name of the file.
10884 mf=`echo "$mf" | sed -e 's/:.*$//'`
10885 # Check whether this is an Automake generated Makefile or not.
10886 # We used to match only the files named `Makefile.in', but
10887 # some people rename them; so instead we look at the file content.
10888 # Grep'ing the first line is not enough: some people post-process
10889 # each Makefile.in and add a new line on top of each file to say so.
10890 # Grep'ing the whole file is not good either: AIX grep has a line
10891 # limit of 2048, but all sed's we know have understand at least 4000.
10892 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10893 dirpart=`$as_dirname -- "$mf" ||
10894 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10895 X"$mf" : 'X\(//\)[^/]' \| \
10896 X"$mf" : 'X\(//\)$' \| \
10897 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10903 /^X\(\/\/\)[^/].*/{
10919 # Extract the definition of DEPDIR, am__include, and am__quote
10920 # from the Makefile without running `make'.
10921 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10922 test -z "$DEPDIR" && continue
10923 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10924 test -z "am__include" && continue
10925 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10926 # When using ansi2knr, U may be empty or an underscore; expand it
10927 U=`sed -n 's/^U = //p' < "$mf"`
10928 # Find all dependency output files, they are included files with
10929 # $(DEPDIR) in their names. We invoke sed twice because it is the
10930 # simplest approach to changing $(DEPDIR) to its actual value in the
10932 for file in `sed -n "
10933 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10934 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10935 # Make sure the directory exists.
10936 test -f "$dirpart/$file" && continue
10937 fdir=`$as_dirname -- "$file" ||
10938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10939 X"$file" : 'X\(//\)[^/]' \| \
10940 X"$file" : 'X\(//\)$' \| \
10941 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10942 $as_echo X"$file" |
10943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10947 /^X\(\/\/\)[^/].*/{
10960 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10961 # echo "creating $dirpart/$file"
10962 echo '# dummy' > "$dirpart/$file"
10974 ac_clean_files=$ac_clean_files_save
10976 test $ac_write_fail = 0 ||
10977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10980 # configure is writing to config.log, and then calls config.status.
10981 # config.status does its own redirection, appending to config.log.
10982 # Unfortunately, on DOS this fails, as config.log is still kept open
10983 # by configure, so config.status won't be able to write to it; its
10984 # output is simply discarded. So we exec the FD to /dev/null,
10985 # effectively closing config.log, so it can be properly (re)opened and
10986 # appended to by config.status. When coming back to configure, we
10987 # need to make the FD available again.
10988 if test "$no_create" != yes; then
10990 ac_config_status_args=
10991 test "$silent" = yes &&
10992 ac_config_status_args="$ac_config_status_args --quiet"
10994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10997 # would make configure fail if this is the last instruction.
10998 $ac_cs_success || as_fn_exit 1
11000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}