2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mkfontscale 1.1.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='mkfontscale'
563 PACKAGE_TARNAME='mkfontscale'
564 PACKAGE_VERSION='1.1.0'
565 PACKAGE_STRING='mkfontscale 1.1.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
669 MAINTAINER_MODE_FALSE
679 INSTALL_STRIP_PROGRAM
721 program_transform_name
734 enable_option_checking
735 enable_maintainer_mode
736 enable_dependency_tracking
737 enable_selective_werror
738 enable_strict_compilation
743 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
904 eval enable_$ac_useropt=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
919 -help | --help | --hel | --he | -h)
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 # Obsolete; use --without-fp.
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1068 -site=* | --site=* | --sit=*)
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval with_$ac_useropt=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=no ;;
1127 # Obsolete; use --with-x.
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error $? "missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1195 # Be sure to have absolute directory names.
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used" >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error $? "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error $? "pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1301 \`configure' configures mkfontscale 1.1.0 to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking ...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of mkfontscale 1.1.0:";;
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --disable-selective-werror
1384 Turn off selective compiler errors. (default:
1386 --enable-strict-compilation
1387 Enable all warnings from compiler and make them
1388 errors (default: disabled)
1389 --enable-silent-rules less verbose build output (undo: `make V=1')
1390 --disable-silent-rules verbose build output (undo: `make V=0')
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-bzip2 Support bzip2 compressed bitmap fonts
1396 --with-lint Use a lint-style source code checker (default:
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1408 PKG_CONFIG path to pkg-config utility
1410 C compiler flags for MKFONTSCALE, overriding pkg-config
1412 linker flags for MKFONTSCALE, overriding pkg-config
1413 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1414 X11_LIBS linker flags for X11, overriding pkg-config
1415 LINT Path to a lint-style command
1416 LINT_FLAGS Flags for the lint-style command
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1484 mkfontscale configure 1.1.0
1485 generated by GNU Autoconf 2.68
1487 Copyright (C) 2010 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1534 } # ac_fn_c_try_compile
1536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1537 # ---------------------------------------------
1538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1540 ac_fn_c_check_decl ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 as_decl_name=`echo $2|sed 's/ *(.*//'`
1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1547 if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1556 #ifndef $as_decl_name
1558 (void) $as_decl_use;
1560 (void) $as_decl_name;
1568 if ac_fn_c_try_compile "$LINENO"; then :
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1577 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 } # ac_fn_c_check_decl
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } > conftest.i && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_link"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>&5
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637 { { case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_try") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; }; }; then :
1649 $as_echo "$as_me: program exited with status $ac_status" >&5
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=$ac_status
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 $as_test_x conftest$ac_exeext
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_link
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1741 It was created by mkfontscale $as_me 1.1.0, which was
1742 generated by GNU Autoconf 2.68. Invocation command line was
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 $as_echo "PATH: $as_dir"
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_must_keep_next=false
1808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810 | -silent | --silent | --silen | --sile | --sil)
1813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1818 as_fn_append ac_configure_args1 " '$ac_arg'"
1819 if test $ac_must_keep_next = true; then
1820 ac_must_keep_next=false # Got value, back to normal.
1823 *=* | --config-cache | -C | -disable-* | --disable-* \
1824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826 | -with-* | --with-* | -without-* | --without-* | --x)
1827 case "$ac_configure_args0 " in
1828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831 -* ) ac_must_keep_next=true ;;
1834 as_fn_append ac_configure_args " '$ac_arg'"
1839 { ac_configure_args0=; unset ac_configure_args0;}
1840 { ac_configure_args1=; unset ac_configure_args1;}
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log. We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848 # Save into config.log some information that might help in debugging.
1852 $as_echo "## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##"
1856 # The following way of writing the cache mishandles newlines in values,
1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859 eval ac_val=\$$ac_var
1863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867 _ | IFS | as_nl) ;; #(
1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869 *) { eval $ac_var=; unset $ac_var;} ;;
1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875 *${as_nl}ac_space=\ *)
1877 "s/'\''/'\''\\\\'\'''\''/g;
1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888 $as_echo "## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##"
1892 for ac_var in $ac_subst_vars
1894 eval ac_val=\$$ac_var
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 $as_echo "$ac_var='\''$ac_val'\''"
1902 if test -n "$ac_subst_files"; then
1903 $as_echo "## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##"
1907 for ac_var in $ac_subst_files
1909 eval ac_val=\$$ac_var
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 $as_echo "$ac_var='\''$ac_val'\''"
1918 if test -s confdefs.h; then
1919 $as_echo "## ----------- ##
1926 test "$ac_signal" != 0 &&
1927 $as_echo "$as_me: caught signal $ac_signal"
1928 $as_echo "$as_me: exit $exit_status"
1930 rm -f core *.core core.conftest.* &&
1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934 for ac_signal in 1 2 13 15; do
1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1940 rm -f -r conftest* confdefs.h
1942 $as_echo "/* confdefs.h */" > confdefs.h
1944 # Predefined preprocessor variables.
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_STRING "$PACKAGE_STRING"
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_URL "$PACKAGE_URL"
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer an explicitly selected file to automatically selected ones.
1975 if test -n "$CONFIG_SITE"; then
1976 # We do not want a PATH search for config.site.
1977 case $CONFIG_SITE in #((
1978 -*) ac_site_file1=./$CONFIG_SITE;;
1979 */*) ac_site_file1=$CONFIG_SITE;;
1980 *) ac_site_file1=./$CONFIG_SITE;;
1982 elif test "x$prefix" != xNONE; then
1983 ac_site_file1=$prefix/share/config.site
1984 ac_site_file2=$prefix/etc/config.site
1986 ac_site_file1=$ac_default_prefix/share/config.site
1987 ac_site_file2=$ac_default_prefix/etc/config.site
1989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1991 test "x$ac_site_file" = xNONE && continue
1992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995 sed 's/^/| /' "$ac_site_file" >&5
1997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 as_fn_error $? "failed to load site script $ac_site_file
2000 See \`config.log' for more details" "$LINENO" 5; }
2004 if test -r "$cache_file"; then
2005 # Some versions of bash will fail to source /dev/null (special files
2006 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2009 $as_echo "$as_me: loading cache $cache_file" >&6;}
2011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012 *) . "./$cache_file";;
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2017 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021 # Check that the precious variables saved in the cache have kept the same
2023 ac_cache_corrupted=false
2024 for ac_var in $ac_precious_vars; do
2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026 eval ac_new_set=\$ac_env_${ac_var}_set
2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028 eval ac_new_val=\$ac_env_${ac_var}_value
2029 case $ac_old_set,$ac_new_set in
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2036 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037 ac_cache_corrupted=: ;;
2040 if test "x$ac_old_val" != "x$ac_new_val"; then
2041 # differences in whitespace do not lead to failure.
2042 ac_old_val_w=`echo x $ac_old_val`
2043 ac_new_val_w=`echo x $ac_new_val`
2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2046 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047 ac_cache_corrupted=:
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051 eval $ac_var=\$ac_old_val
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2054 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2056 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2059 # Pass precious variables to config.status.
2060 if test "$ac_new_set" = set; then
2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 *) ac_arg=$ac_var=$ac_new_val ;;
2065 case " $ac_configure_args " in
2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2067 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2071 if $ac_cache_corrupted; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2078 ## -------------------- ##
2079 ## Main body of script. ##
2080 ## -------------------- ##
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_config_headers="$ac_config_headers config.h"
2093 # Initialize Automake
2094 am__api_version='1.11'
2097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098 if test -f "$ac_dir/install-sh"; then
2100 ac_install_sh="$ac_aux_dir/install-sh -c"
2102 elif test -f "$ac_dir/install.sh"; then
2104 ac_install_sh="$ac_aux_dir/install.sh -c"
2106 elif test -f "$ac_dir/shtool"; then
2108 ac_install_sh="$ac_aux_dir/shtool install -c"
2112 if test -z "$ac_aux_dir"; then
2113 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 # Reject install programs that cannot install multiple files.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2141 if test -z "$INSTALL"; then
2142 if ${ac_cv_path_install+:} false; then :
2143 $as_echo_n "(cached) " >&6
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in #((
2152 ./ | .// | /[cC]/* | \
2153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2157 # OSF1 and SCO ODT 3.0 have their own names for install.
2158 # Don't use installbsd from OSF since it installs stuff as root
2160 for ac_prog in ginstall scoinst install; do
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163 if test $ac_prog = install &&
2164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # AIX install. It has an incompatible calling convention.
2167 elif test $ac_prog = install &&
2168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # program-specific install script used by HP pwplus--don't use.
2172 rm -rf conftest.one conftest.two conftest.dir
2173 echo one > conftest.one
2174 echo two > conftest.two
2176 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177 test -s conftest.one && test -s conftest.two &&
2178 test -s conftest.dir/conftest.one &&
2179 test -s conftest.dir/conftest.two
2181 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2194 rm -rf conftest.one conftest.two conftest.dir
2197 if test "${ac_cv_path_install+set}" = set; then
2198 INSTALL=$ac_cv_path_install
2200 # As a last resort, use the slow shell script. Don't cache a
2201 # value for INSTALL within a source directory, because that will
2202 # break other packages using the cache if that directory is
2203 # removed, or if the value is a relative name.
2204 INSTALL=$ac_install_sh
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208 $as_echo "$INSTALL" >&6; }
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219 $as_echo_n "checking whether build environment is sane... " >&6; }
2222 echo timestamp > conftest.file
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name. Accept space and tab only in the latter.
2228 *[\\\"\#\$\&\'\`$am_lf]*)
2229 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2232 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2233 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments. Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243 if test "$*" = "X"; then
2245 set X `ls -t "$srcdir/configure" conftest.file`
2248 if test "$*" != "X $srcdir/configure conftest.file" \
2249 && test "$*" != "X conftest.file $srcdir/configure"; then
2251 # If neither matched, then we have a broken ls. This can happen
2252 # if, for instance, CONFIG_SHELL is bash and it inherits a
2253 # broken ls alias from the environment. This has actually
2254 # happened. Such a system could not be considered "sane".
2255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2256 alias in your environment" "$LINENO" 5
2259 test "$2" = conftest.file
2265 as_fn_error $? "newly created file is older than distributed files!
2266 Check your system clock" "$LINENO" 5
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269 $as_echo "yes" >&6; }
2270 test "$program_prefix" != NONE &&
2271 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272 # Use a double $ so make ignores it.
2273 test "$program_suffix" != NONE &&
2274 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275 # Double any \ or $.
2276 # By default was `s,x,x', remove it if useless.
2277 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2283 if test x"${MISSING+set}" != xset; then
2286 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2288 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293 am_missing_run="$MISSING --run "
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2300 if test x"${install_sh}" != xset; then
2303 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2305 install_sh="\${SHELL} $am_aux_dir/install-sh"
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'. However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_STRIP+:} false; then :
2320 $as_echo_n "(cached) " >&6
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345 $as_echo "$STRIP" >&6; }
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2353 if test -z "$ac_cv_prog_STRIP"; then
2355 # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360 $as_echo_n "(cached) " >&6
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385 $as_echo "$ac_ct_STRIP" >&6; }
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2391 if test "x$ac_ct_STRIP" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2403 STRIP="$ac_cv_prog_STRIP"
2407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411 if test -z "$MKDIR_P"; then
2412 if ${ac_cv_path_mkdir+:} false; then :
2413 $as_echo_n "(cached) " >&6
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2419 test -z "$as_dir" && as_dir=.
2420 for ac_prog in mkdir gmkdir; do
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424 'mkdir (GNU coreutils) '* | \
2425 'mkdir (coreutils) '* | \
2426 'mkdir (fileutils) '4.1*)
2427 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 test -d ./--version && rmdir ./--version
2438 if test "${ac_cv_path_mkdir+set}" = set; then
2439 MKDIR_P="$ac_cv_path_mkdir -p"
2441 # As a last resort, use the slow shell script. Don't cache a
2442 # value for MKDIR_P within a source directory, because that will
2443 # break other packages using the cache if that directory is
2444 # removed, or if the value is a relative name.
2445 MKDIR_P="$ac_install_sh -d"
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449 $as_echo "$MKDIR_P" >&6; }
2453 [\\/$]* | ?:[\\/]*) ;;
2454 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2457 for ac_prog in gawk mawk nawk awk
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_AWK+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 if test -n "$AWK"; then
2467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_AWK="$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$AWK"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489 $as_echo "$AWK" >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2496 test -n "$AWK" && break
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504 $as_echo_n "(cached) " >&6
2506 cat >conftest.make <<\_ACEOF
2509 @echo '@@@%%%=$(MAKE)=@@@%%%'
2511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2514 eval ac_cv_prog_make_${ac_make}_set=yes;;
2516 eval ac_cv_prog_make_${ac_make}_set=no;;
2520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527 SET_MAKE="MAKE=${MAKE-make}"
2530 rm -rf .tst 2>/dev/null
2531 mkdir .tst 2>/dev/null
2532 if test -d .tst; then
2537 rmdir .tst 2>/dev/null
2539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541 # is not polluted with repeated "-I."
2542 am__isrc=' -I$(srcdir)'
2543 # test to see if srcdir already configured
2544 if test -f $srcdir/config.status; then
2545 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2549 # test whether we have cygpath
2550 if test -z "$CYGPATH_W"; then
2551 if (cygpath --version) >/dev/null 2>/dev/null; then
2552 CYGPATH_W='cygpath -w'
2559 # Define the identity of the package.
2560 PACKAGE='mkfontscale'
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE "$PACKAGE"
2569 cat >>confdefs.h <<_ACEOF
2570 #define VERSION "$VERSION"
2573 # Some tools Automake needs.
2575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2589 # We need awk for the "check" target. The system "awk" is bad on
2591 # Always define AMTAR for backward compatibility.
2593 AMTAR=${AMTAR-"${am_missing_run}tar"}
2595 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2603 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2604 # Check whether --enable-maintainer-mode was given.
2605 if test "${enable_maintainer_mode+set}" = set; then :
2606 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2608 USE_MAINTAINER_MODE=no
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2612 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2613 if test $USE_MAINTAINER_MODE = yes; then
2614 MAINTAINER_MODE_TRUE=
2615 MAINTAINER_MODE_FALSE='#'
2617 MAINTAINER_MODE_TRUE='#'
2618 MAINTAINER_MODE_FALSE=
2621 MAINT=$MAINTAINER_MODE_TRUE
2625 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2637 DEPDIR="${am__leading_dot}deps"
2639 ac_config_commands="$ac_config_commands depfiles"
2642 am_make=${MAKE-make}
2643 cat > confinc << 'END'
2645 @echo this is the am__doit target
2648 # If we don't find an include directive, just comment out the code.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2654 # First try GNU make style include.
2655 echo "include confinc" > confmf
2656 # Ignore all kinds of additional output from `make'.
2657 case `$am_make -s -f confmf 2> /dev/null` in #(
2658 *the\ am__doit\ target*)
2664 # Now try BSD make style include.
2665 if test "$am__include" = "#"; then
2666 echo '.include "confinc"' > confmf
2667 case `$am_make -s -f confmf 2> /dev/null` in #(
2668 *the\ am__doit\ target*)
2669 am__include=.include
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2678 $as_echo "$_am_result" >&6; }
2679 rm -f confinc confmf
2681 # Check whether --enable-dependency-tracking was given.
2682 if test "${enable_dependency_tracking+set}" = set; then :
2683 enableval=$enable_dependency_tracking;
2686 if test "x$enable_dependency_tracking" != xno; then
2687 am_depcomp="$ac_aux_dir/depcomp"
2690 if test "x$enable_dependency_tracking" != xno; then
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2743 if test -z "$ac_cv_prog_CC"; then
2745 # Extract the first word of "gcc", so it can be a program name with args.
2746 set dummy gcc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$ac_ct_CC"; then
2753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_CC="gcc"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2773 if test -n "$ac_ct_CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2775 $as_echo "$ac_ct_CC" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2781 if test "x$ac_ct_CC" = x; then
2784 case $cross_compiling:$ac_tool_warned in
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}cc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="${ac_tool_prefix}cc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2837 if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected=yes
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 if test $ac_prog_rejected = yes; then
2869 # We found a bogon in the path, so make sure we never use it.
2870 set dummy $ac_cv_prog_CC
2872 if test $# != 0; then
2873 # We chose a different compiler from the bogus one.
2874 # However, it has the same basename, so the bogon will be chosen
2875 # first if we set CC to just the basename; use the full file name.
2877 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 for ac_prog in cl.exe
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2934 test -n "$CC" && break
2937 if test -z "$CC"; then
2939 for ac_prog in cl.exe
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2978 test -n "$ac_ct_CC" && break
2981 if test "x$ac_ct_CC" = x; then
2984 case $cross_compiling:$ac_tool_warned in
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2997 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details" "$LINENO" 5; }
3002 # Provide some information about the compiler.
3003 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3006 for ac_option in --version -v -V -qversion; do
3007 { { ac_try="$ac_compiler $ac_option >&5"
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013 $as_echo "$ac_try_echo"; } >&5
3014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3016 if test -s conftest.err; then
3018 ... rest of stderr output deleted ...
3019 10q' conftest.err >conftest.er1
3020 cat conftest.er1 >&5
3022 rm -f conftest.er1 conftest.err
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }
3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3038 ac_clean_files_save=$ac_clean_files
3039 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3044 $as_echo_n "checking whether the C compiler works... " >&6; }
3045 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047 # The possible output files:
3048 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3051 for ac_file in $ac_files
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3060 if { { ac_try="$ac_link_default"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link_default") 2>&5
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3072 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3073 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3074 # so that the user can short-circuit this test for compilers unknown to
3076 for ac_file in $ac_files ''
3078 test -f "$ac_file" || continue
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3083 # We found the default executable, but exeext='' is most
3087 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 # We set ac_cv_exeext here because the later test for it is not
3092 # safe: cross compilers may not add the suffix if given an `-o'
3093 # argument, so we may need to know it at that point already.
3094 # Even if this section looks crufty: it has the advantage of
3101 test "$ac_cv_exeext" = no && ac_cv_exeext=
3106 if test -z "$ac_file"; then :
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error 77 "C compiler cannot create executables
3115 See \`config.log' for more details" "$LINENO" 5; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118 $as_echo "yes" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123 $as_echo "$ac_file" >&6; }
3124 ac_exeext=$ac_cv_exeext
3126 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129 $as_echo_n "checking for suffix of executables... " >&6; }
3130 if { { ac_try="$ac_link"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_link") 2>&5
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 for ac_file in conftest.exe conftest conftest.*; do
3146 test -f "$ac_file" || continue
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details" "$LINENO" 5; }
3160 rm -f conftest conftest$ac_cv_exeext
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3162 $as_echo "$ac_cv_exeext" >&6; }
3164 rm -f conftest.$ac_ext
3165 EXEEXT=$ac_cv_exeext
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3173 FILE *f = fopen ("conftest.out", "w");
3174 return ferror (f) || fclose (f) != 0;
3180 ac_clean_files="$ac_clean_files conftest.out"
3181 # Check that the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3184 $as_echo_n "checking whether we are cross compiling... " >&6; }
3185 if test "$cross_compiling" != yes; then
3186 { { ac_try="$ac_link"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 if { ac_try='./conftest$ac_cv_exeext'
3198 { { case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_try") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; }; then
3210 if test "$cross_compiling" = maybe; then
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "cannot run C compiled programs.
3216 If you meant to cross compile, use \`--host'.
3217 See \`config.log' for more details" "$LINENO" 5; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3222 $as_echo "$cross_compiling" >&6; }
3224 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3225 ac_clean_files=$ac_clean_files_save
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3227 $as_echo_n "checking for suffix of object files... " >&6; }
3228 if ${ac_cv_objext+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 rm -f conftest.o conftest.obj
3243 if { { ac_try="$ac_compile"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_compile") 2>&5
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 for ac_file in conftest.o conftest.obj conftest.*; do
3255 test -f "$ac_file" || continue;
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details" "$LINENO" 5; }
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3274 $as_echo "$ac_cv_objext" >&6; }
3275 OBJEXT=$ac_cv_objext
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3278 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3279 if ${ac_cv_c_compiler_gnu+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3296 if ac_fn_c_try_compile "$LINENO"; then :
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3306 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3307 if test $ac_compiler_gnu = yes; then
3312 ac_test_CFLAGS=${CFLAGS+set}
3313 ac_save_CFLAGS=$CFLAGS
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3315 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3316 if ${ac_cv_prog_cc_g+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 ac_save_c_werror_flag=$ac_c_werror_flag
3320 ac_c_werror_flag=yes
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 if ac_fn_c_try_compile "$LINENO"; then :
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 if ac_fn_c_try_compile "$LINENO"; then :
3352 ac_c_werror_flag=$ac_save_c_werror_flag
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_c_try_compile "$LINENO"; then :
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_c_werror_flag=$ac_save_c_werror_flag
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3376 $as_echo "$ac_cv_prog_cc_g" >&6; }
3377 if test "$ac_test_CFLAGS" = set; then
3378 CFLAGS=$ac_save_CFLAGS
3379 elif test $ac_cv_prog_cc_g = yes; then
3380 if test "$GCC" = yes; then
3386 if test "$GCC" = yes; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3394 if ${ac_cv_prog_cc_c89+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 ac_cv_prog_cc_c89=no
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3419 s = g (p, va_arg (v,int));
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3434 inside strings and character constants. */
3436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3438 int test (int i, double x);
3439 struct s1 {int (*f) (int a);};
3440 struct s2 {int (*f) (double a);};
3441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3453 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3455 CC="$ac_save_CC $ac_arg"
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_cv_prog_cc_c89=$ac_arg
3459 rm -f core conftest.err conftest.$ac_objext
3460 test "x$ac_cv_prog_cc_c89" != "xno" && break
3462 rm -f conftest.$ac_ext
3467 case "x$ac_cv_prog_cc_c89" in
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470 $as_echo "none needed" >&6; } ;;
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3473 $as_echo "unsupported" >&6; } ;;
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3479 if test "x$ac_cv_prog_cc_c89" != xno; then :
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 depcc="$CC" am_compiler_list=
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
3493 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3520 case " $depcc " in #(
3521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3524 for depmode in $am_compiler_list; do
3525 # Setup a source with many dependencies, because some compilers
3526 # like to wrap large dependency lists on column 80 (with \), and
3527 # we should not choose a depcomp mode which is confused by this.
3529 # We need to recreate these files for each test, as the compiler may
3530 # overwrite some of them when testing with obscure command lines.
3531 # This happens at least with the AIX C compiler.
3533 for i in 1 2 3 4 5 6; do
3534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536 # Solaris 8's {/usr,}/bin/sh.
3537 touch sub/conftst$i.h
3539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3542 # mode. It turns out that the SunPro C++ compiler does not properly
3543 # handle `-M -o', and we need to detect this. Also, some Intel
3544 # versions had trouble with output in subdirs
3545 am__obj=sub/conftest.${OBJEXT-o}
3546 am__minus_obj="-o $am__obj"
3549 # This depmode causes a compiler race in universal mode.
3550 test "$am__universal" = false || continue
3553 # after this tag, mechanisms are not by side-effect, so they'll
3554 # only be used when explicitly requested
3555 if test "x$enable_dependency_tracking" = xyes; then
3561 msvisualcpp | msvcmsys)
3562 # This compiler won't grok `-c -o', but also, the minuso test has
3563 # not run yet. These depmodes are late enough in the game, and
3564 # so weak that their functioning should not be impacted.
3565 am__obj=conftest.${OBJEXT-o}
3570 if depmode=$depmode \
3571 source=sub/conftest.c object=$am__obj \
3572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3574 >/dev/null 2>conftest.err &&
3575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3579 # icc doesn't choke on unknown options, it will just issue warnings
3580 # or remarks (even with -Werror). So we grep stderr for any message
3581 # that says an option was ignored or not supported.
3582 # When given -MP, icc 7.0 and 7.1 complain thusly:
3583 # icc: Command line warning: ignoring option '-M'; no argument required
3584 # The diagnosis changed in icc 8.0:
3585 # icc: Command line remark: option '-MP' not supported
3586 if (grep 'ignoring option' conftest.err ||
3587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3588 am_cv_CC_dependencies_compiler_type=$depmode
3597 am_cv_CC_dependencies_compiler_type=none
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3606 test "x$enable_dependency_tracking" != xno \
3607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3609 am__fastdepCC_FALSE='#'
3611 am__fastdepCC_TRUE='#'
3612 am__fastdepCC_FALSE=
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3618 if ${ac_cv_prog_cc_c99+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 ac_cv_prog_cc_c99=no
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3626 #include <stdbool.h>
3631 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3632 #define debug(...) fprintf (stderr, __VA_ARGS__)
3633 #define showlist(...) puts (#__VA_ARGS__)
3634 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3636 test_varargs_macros (void)
3641 debug ("X = %d\n", x);
3642 showlist (The first, second, and third items.);
3643 report (x>y, "x is %d but y is %d", x, y);
3646 // Check long long types.
3647 #define BIG64 18446744073709551615ull
3648 #define BIG32 4294967295ul
3649 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3651 your preprocessor is broken;
3655 your preprocessor is broken;
3657 static long long int bignum = -9223372036854775807LL;
3658 static unsigned long long int ubignum = BIG64;
3660 struct incomplete_array
3668 const wchar_t *name;
3672 typedef const char *ccp;
3675 test_restrict (ccp restrict text)
3677 // See if C++-style comments work.
3678 // Iterate through items via the restricted pointer.
3679 // Also check for declarations in for loops.
3680 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3685 // Check varargs and va_copy.
3687 test_varargs (const char *format, ...)
3690 va_start (args, format);
3692 va_copy (args_copy, args);
3703 str = va_arg (args_copy, const char *);
3706 number = va_arg (args_copy, int);
3709 fnumber = va_arg (args_copy, double);
3724 _Bool success = false;
3727 if (test_restrict ("String literal") == 0)
3729 char *restrict newvar = "Another string";
3732 test_varargs ("s, d' f .", "string", 65, 34.234);
3733 test_varargs_macros ();
3735 // Check flexible array members.
3736 struct incomplete_array *ia =
3737 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3739 for (int i = 0; i < ia->datasize; ++i)
3740 ia->data[i] = i * 1.234;
3742 // Check named initializers.
3743 struct named_init ni = {
3745 .name = L"Test wide string",
3746 .average = 543.34343,
3751 int dynamic_array[ni.number];
3752 dynamic_array[ni.number - 1] = 543;
3754 // work around unused variable warnings
3755 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3756 || dynamic_array[ni.number - 1] != 543);
3762 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3764 CC="$ac_save_CC $ac_arg"
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_c99=$ac_arg
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x$ac_cv_prog_cc_c99" != "xno" && break
3771 rm -f conftest.$ac_ext
3776 case "x$ac_cv_prog_cc_c99" in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;;
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3782 $as_echo "unsupported" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c99"
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3786 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3788 if test "x$ac_cv_prog_cc_c99" != xno; then :
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3801 # On Suns, sometimes $CPP names a directory.
3802 if test -n "$CPP" && test -d "$CPP"; then
3805 if test -z "$CPP"; then
3806 if ${ac_cv_prog_CPP+:} false; then :
3807 $as_echo_n "(cached) " >&6
3809 # Double quotes because CPP needs to be expanded
3810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3824 # include <limits.h>
3826 # include <assert.h>
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3833 # Broken: fails on valid input.
3836 rm -f conftest.err conftest.i conftest.$ac_ext
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3848 # Passes both tests.
3852 rm -f conftest.err conftest.i conftest.$ac_ext
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.i conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then :
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3870 $as_echo "$CPP" >&6; }
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3883 # include <limits.h>
3885 # include <assert.h>
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3892 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3907 # Passes both tests.
3911 rm -f conftest.err conftest.i conftest.$ac_ext
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.i conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3922 See \`config.log' for more details" "$LINENO" 5; }
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3933 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3934 if ${ac_cv_path_GREP+:} false; then :
3935 $as_echo_n "(cached) " >&6
3937 if test -z "$GREP"; then
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 $as_echo_n 0123456789 >"conftest.in"
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 $as_echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 as_fn_arith $ac_count + 1 && ac_count=$as_val
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977 $ac_path_GREP_found && break 3
3982 if test -z "$ac_cv_path_GREP"; then
3983 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3986 ac_cv_path_GREP=$GREP
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3991 $as_echo "$ac_cv_path_GREP" >&6; }
3992 GREP="$ac_cv_path_GREP"
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3996 $as_echo_n "checking for egrep... " >&6; }
3997 if ${ac_cv_path_EGREP+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4001 then ac_cv_path_EGREP="$GREP -E"
4003 if test -z "$EGREP"; then
4004 ac_path_EGREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in egrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4015 # Check for GNU ac_path_EGREP and select it if it is found.
4016 # Check for GNU $ac_path_EGREP
4017 case `"$ac_path_EGREP" --version 2>&1` in
4019 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4022 $as_echo_n 0123456789 >"conftest.in"
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'EGREP' >> "conftest.nl"
4029 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 as_fn_arith $ac_count + 1 && ac_count=$as_val
4032 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_EGREP="$ac_path_EGREP"
4035 ac_path_EGREP_max=$ac_count
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 $ac_path_EGREP_found && break 3
4048 if test -z "$ac_cv_path_EGREP"; then
4049 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4052 ac_cv_path_EGREP=$EGREP
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4058 $as_echo "$ac_cv_path_EGREP" >&6; }
4059 EGREP="$ac_cv_path_EGREP"
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4063 $as_echo_n "checking for ANSI C header files... " >&6; }
4064 if ${ac_cv_header_stdc+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_header_stdc=yes
4085 ac_cv_header_stdc=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev/null 2>&1; then :
4100 ac_cv_header_stdc=no
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "free" >/dev/null 2>&1; then :
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125 if test "$cross_compiling" = yes; then :
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 #if ((' ' & 0x0FF) == 0x020)
4133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4136 # define ISLOWER(c) \
4137 (('a' <= (c) && (c) <= 'i') \
4138 || ('j' <= (c) && (c) <= 'r') \
4139 || ('s' <= (c) && (c) <= 'z'))
4140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4148 for (i = 0; i < 256; i++)
4149 if (XOR (islower (i), ISLOWER (i))
4150 || toupper (i) != TOUPPER (i))
4155 if ac_fn_c_try_run "$LINENO"; then :
4158 ac_cv_header_stdc=no
4160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4161 conftest.$ac_objext conftest.beam conftest.$ac_ext
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4167 $as_echo "$ac_cv_header_stdc" >&6; }
4168 if test $ac_cv_header_stdc = yes; then
4170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4176 inttypes.h stdint.h unistd.h
4178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4182 cat >>confdefs.h <<_ACEOF
4183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4193 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4194 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4200 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4201 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4207 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4208 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4217 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4224 $as_echo_n "(cached) " >&6
4228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4250 if test -n "$PKG_CONFIG"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4252 $as_echo "$PKG_CONFIG" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 if test -z "$ac_cv_path_PKG_CONFIG"; then
4261 ac_pt_PKG_CONFIG=$PKG_CONFIG
4262 # Extract the first word of "pkg-config", so it can be a program name with args.
4263 set dummy pkg-config; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 case $ac_pt_PKG_CONFIG in
4271 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4293 if test -n "$ac_pt_PKG_CONFIG"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4295 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4301 if test "x$ac_pt_PKG_CONFIG" = x; then
4304 case $cross_compiling:$ac_tool_warned in
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4310 PKG_CONFIG=$ac_pt_PKG_CONFIG
4313 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4317 if test -n "$PKG_CONFIG"; then
4318 _pkg_min_version=0.9.0
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4320 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4321 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323 $as_echo "yes" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4331 # Make sure we can run config.sub.
4332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4336 $as_echo_n "checking build system type... " >&6; }
4337 if ${ac_cv_build+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 ac_build_alias=$build_alias
4341 test "x$ac_build_alias" = x &&
4342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4343 test "x$ac_build_alias" = x &&
4344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4350 $as_echo "$ac_cv_build" >&6; }
4351 case $ac_cv_build in
4353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4356 ac_save_IFS=$IFS; IFS='-'
4362 # Remember, the first character of IFS is used to create $*,
4363 # except with old shells:
4366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4370 $as_echo_n "checking host system type... " >&6; }
4371 if ${ac_cv_host+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 if test "x$host_alias" = x; then
4375 ac_cv_host=$ac_cv_build
4377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4383 $as_echo "$ac_cv_host" >&6; }
4386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4389 ac_save_IFS=$IFS; IFS='-'
4395 # Remember, the first character of IFS is used to create $*,
4396 # except with old shells:
4399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404 if ${ac_cv_path_SED+:} false; then :
4405 $as_echo_n "(cached) " >&6
4407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408 for ac_i in 1 2 3 4 5 6 7; do
4409 ac_script="$ac_script$as_nl$ac_script"
4411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412 { ac_script=; unset ac_script;}
4413 if test -z "$SED"; then
4414 ac_path_SED_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in sed gsed; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4425 # Check for GNU ac_path_SED and select it if it is found.
4426 # Check for GNU $ac_path_SED
4427 case `"$ac_path_SED" --version 2>&1` in
4429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4432 $as_echo_n 0123456789 >"conftest.in"
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo '' >> "conftest.nl"
4439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_SED_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_SED="$ac_path_SED"
4445 ac_path_SED_max=$ac_count
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453 $ac_path_SED_found && break 3
4458 if test -z "$ac_cv_path_SED"; then
4459 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4467 $as_echo "$ac_cv_path_SED" >&6; }
4468 SED="$ac_cv_path_SED"
4476 # Check whether --enable-selective-werror was given.
4477 if test "${enable_selective_werror+set}" = set; then :
4478 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4480 SELECTIVE_WERROR=yes
4484 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4485 if test "x$SUNCC" = "xyes"; then
4491 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4497 xorg_testset_save_CFLAGS="$CFLAGS"
4499 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 xorg_cv_cc_flag_unknown_warning_option=yes
4513 xorg_cv_cc_flag_unknown_warning_option=no
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4519 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4520 CFLAGS="$xorg_testset_save_CFLAGS"
4523 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4524 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 xorg_cv_cc_flag_unused_command_line_argument=yes
4540 xorg_cv_cc_flag_unused_command_line_argument=no
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4546 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4547 CFLAGS="$xorg_testset_save_CFLAGS"
4552 if test $found = "no" ; then
4553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4561 CFLAGS="$CFLAGS -Wall"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4564 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4565 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4566 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4567 $as_echo_n "(cached) " >&6
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4580 if ac_fn_c_try_link "$LINENO"; then :
4581 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4583 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4585 rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4590 CFLAGS="$xorg_testset_save_CFLAGS"
4592 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4594 $as_echo "$supported" >&6; }
4595 if test "$supported" = "yes" ; then
4596 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4607 xorg_testset_save_CFLAGS="$CFLAGS"
4609 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 xorg_cv_cc_flag_unknown_warning_option=yes
4623 xorg_cv_cc_flag_unknown_warning_option=no
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630 CFLAGS="$xorg_testset_save_CFLAGS"
4633 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4634 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 xorg_cv_cc_flag_unused_command_line_argument=yes
4650 xorg_cv_cc_flag_unused_command_line_argument=no
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657 CFLAGS="$xorg_testset_save_CFLAGS"
4662 if test $found = "no" ; then
4663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4671 CFLAGS="$CFLAGS -Wpointer-arith"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4674 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4675 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4676 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4677 $as_echo_n "(cached) " >&6
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_link "$LINENO"; then :
4691 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4693 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4695 rm -f core conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
4700 CFLAGS="$xorg_testset_save_CFLAGS"
4702 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704 $as_echo "$supported" >&6; }
4705 if test "$supported" = "yes" ; then
4706 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4717 xorg_testset_save_CFLAGS="$CFLAGS"
4719 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 xorg_cv_cc_flag_unknown_warning_option=yes
4733 xorg_cv_cc_flag_unknown_warning_option=no
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4739 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4740 CFLAGS="$xorg_testset_save_CFLAGS"
4743 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4744 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 xorg_cv_cc_flag_unused_command_line_argument=yes
4760 xorg_cv_cc_flag_unused_command_line_argument=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4766 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4767 CFLAGS="$xorg_testset_save_CFLAGS"
4772 if test $found = "no" ; then
4773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4781 CFLAGS="$CFLAGS -Wstrict-prototypes"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4784 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4785 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4786 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4787 $as_echo_n "(cached) " >&6
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4800 if ac_fn_c_try_link "$LINENO"; then :
4801 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4803 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4805 rm -f core conftest.err conftest.$ac_objext \
4806 conftest$ac_exeext conftest.$ac_ext
4810 CFLAGS="$xorg_testset_save_CFLAGS"
4812 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4814 $as_echo "$supported" >&6; }
4815 if test "$supported" = "yes" ; then
4816 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4827 xorg_testset_save_CFLAGS="$CFLAGS"
4829 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 xorg_cv_cc_flag_unknown_warning_option=yes
4843 xorg_cv_cc_flag_unknown_warning_option=no
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4848 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4849 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4850 CFLAGS="$xorg_testset_save_CFLAGS"
4853 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4859 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4860 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 xorg_cv_cc_flag_unused_command_line_argument=yes
4870 xorg_cv_cc_flag_unused_command_line_argument=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4875 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4876 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4877 CFLAGS="$xorg_testset_save_CFLAGS"
4882 if test $found = "no" ; then
4883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4891 CFLAGS="$CFLAGS -Wmissing-prototypes"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4894 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4895 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4896 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4897 $as_echo_n "(cached) " >&6
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4910 if ac_fn_c_try_link "$LINENO"; then :
4911 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4913 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4915 rm -f core conftest.err conftest.$ac_objext \
4916 conftest$ac_exeext conftest.$ac_ext
4920 CFLAGS="$xorg_testset_save_CFLAGS"
4922 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4924 $as_echo "$supported" >&6; }
4925 if test "$supported" = "yes" ; then
4926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4937 xorg_testset_save_CFLAGS="$CFLAGS"
4939 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 xorg_cv_cc_flag_unknown_warning_option=yes
4953 xorg_cv_cc_flag_unknown_warning_option=no
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4959 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4960 CFLAGS="$xorg_testset_save_CFLAGS"
4963 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 xorg_cv_cc_flag_unused_command_line_argument=yes
4980 xorg_cv_cc_flag_unused_command_line_argument=no
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4986 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4987 CFLAGS="$xorg_testset_save_CFLAGS"
4992 if test $found = "no" ; then
4993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001 CFLAGS="$CFLAGS -Wmissing-declarations"
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5004 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5005 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5007 $as_echo_n "(cached) " >&6
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5023 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5025 rm -f core conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5034 $as_echo "$supported" >&6; }
5035 if test "$supported" = "yes" ; then
5036 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5047 xorg_testset_save_CFLAGS="$CFLAGS"
5049 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061 xorg_cv_cc_flag_unknown_warning_option=yes
5063 xorg_cv_cc_flag_unknown_warning_option=no
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070 CFLAGS="$xorg_testset_save_CFLAGS"
5073 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5087 if ac_fn_c_try_compile "$LINENO"; then :
5088 xorg_cv_cc_flag_unused_command_line_argument=yes
5090 xorg_cv_cc_flag_unused_command_line_argument=no
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5096 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5102 if test $found = "no" ; then
5103 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5111 CFLAGS="$CFLAGS -Wnested-externs"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5114 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5115 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5116 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5117 $as_echo_n "(cached) " >&6
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5133 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5142 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144 $as_echo "$supported" >&6; }
5145 if test "$supported" = "yes" ; then
5146 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5157 xorg_testset_save_CFLAGS="$CFLAGS"
5159 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5162 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5163 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 xorg_cv_cc_flag_unknown_warning_option=yes
5173 xorg_cv_cc_flag_unknown_warning_option=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5178 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5179 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5180 CFLAGS="$xorg_testset_save_CFLAGS"
5183 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5189 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5190 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 xorg_cv_cc_flag_unused_command_line_argument=yes
5200 xorg_cv_cc_flag_unused_command_line_argument=no
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5205 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5206 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5207 CFLAGS="$xorg_testset_save_CFLAGS"
5212 if test $found = "no" ; then
5213 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5217 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5221 CFLAGS="$CFLAGS -Wbad-function-cast"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5224 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5225 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5226 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5227 $as_echo_n "(cached) " >&6
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5240 if ac_fn_c_try_link "$LINENO"; then :
5241 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5243 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5245 rm -f core conftest.err conftest.$ac_objext \
5246 conftest$ac_exeext conftest.$ac_ext
5250 CFLAGS="$xorg_testset_save_CFLAGS"
5252 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254 $as_echo "$supported" >&6; }
5255 if test "$supported" = "yes" ; then
5256 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5267 xorg_testset_save_CFLAGS="$CFLAGS"
5269 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 xorg_cv_cc_flag_unknown_warning_option=yes
5283 xorg_cv_cc_flag_unknown_warning_option=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5293 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5301 $as_echo_n "(cached) " >&6
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 xorg_cv_cc_flag_unused_command_line_argument=yes
5310 xorg_cv_cc_flag_unused_command_line_argument=no
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5316 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5317 CFLAGS="$xorg_testset_save_CFLAGS"
5322 if test $found = "no" ; then
5323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331 CFLAGS="$CFLAGS -Wformat=2"
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5334 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5335 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5336 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5337 $as_echo_n "(cached) " >&6
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5353 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5362 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 $as_echo "$supported" >&6; }
5365 if test "$supported" = "yes" ; then
5366 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5371 if test $found = "no" ; then
5372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5380 CFLAGS="$CFLAGS -Wformat"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5383 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5384 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5385 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5402 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5411 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413 $as_echo "$supported" >&6; }
5414 if test "$supported" = "yes" ; then
5415 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5426 xorg_testset_save_CFLAGS="$CFLAGS"
5428 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 xorg_cv_cc_flag_unknown_warning_option=yes
5442 xorg_cv_cc_flag_unknown_warning_option=no
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449 CFLAGS="$xorg_testset_save_CFLAGS"
5452 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5460 $as_echo_n "(cached) " >&6
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5466 if ac_fn_c_try_compile "$LINENO"; then :
5467 xorg_cv_cc_flag_unused_command_line_argument=yes
5469 xorg_cv_cc_flag_unused_command_line_argument=no
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5475 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5481 if test $found = "no" ; then
5482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490 CFLAGS="$CFLAGS -Wold-style-definition"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5493 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5494 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5495 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5496 $as_echo_n "(cached) " >&6
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5512 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5521 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523 $as_echo "$supported" >&6; }
5524 if test "$supported" = "yes" ; then
5525 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5536 xorg_testset_save_CFLAGS="$CFLAGS"
5538 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 xorg_cv_cc_flag_unknown_warning_option=yes
5552 xorg_cv_cc_flag_unknown_warning_option=no
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5558 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5559 CFLAGS="$xorg_testset_save_CFLAGS"
5562 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5570 $as_echo_n "(cached) " >&6
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 xorg_cv_cc_flag_unused_command_line_argument=yes
5579 xorg_cv_cc_flag_unused_command_line_argument=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5585 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5591 if test $found = "no" ; then
5592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5600 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5603 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5604 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5605 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5619 if ac_fn_c_try_link "$LINENO"; then :
5620 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5622 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5624 rm -f core conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5631 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5633 $as_echo "$supported" >&6; }
5634 if test "$supported" = "yes" ; then
5635 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5642 # This chunk adds additional warnings that could catch undesired effects.
5648 xorg_testset_save_CFLAGS="$CFLAGS"
5650 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5653 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5654 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5655 $as_echo_n "(cached) " >&6
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 xorg_cv_cc_flag_unknown_warning_option=yes
5664 xorg_cv_cc_flag_unknown_warning_option=no
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5669 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5670 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5674 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5680 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5681 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 xorg_cv_cc_flag_unused_command_line_argument=yes
5691 xorg_cv_cc_flag_unused_command_line_argument=no
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5696 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5697 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5698 CFLAGS="$xorg_testset_save_CFLAGS"
5703 if test $found = "no" ; then
5704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 CFLAGS="$CFLAGS -Wunused"
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5715 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5716 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5717 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5718 $as_echo_n "(cached) " >&6
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5734 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5736 rm -f core conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
5741 CFLAGS="$xorg_testset_save_CFLAGS"
5743 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5745 $as_echo "$supported" >&6; }
5746 if test "$supported" = "yes" ; then
5747 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5758 xorg_testset_save_CFLAGS="$CFLAGS"
5760 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5765 $as_echo_n "(cached) " >&6
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 xorg_cv_cc_flag_unknown_warning_option=yes
5774 xorg_cv_cc_flag_unknown_warning_option=no
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5784 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5792 $as_echo_n "(cached) " >&6
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 xorg_cv_cc_flag_unused_command_line_argument=yes
5801 xorg_cv_cc_flag_unused_command_line_argument=no
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5807 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5813 if test $found = "no" ; then
5814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822 CFLAGS="$CFLAGS -Wuninitialized"
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5825 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5826 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5827 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5828 $as_echo_n "(cached) " >&6
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5844 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5853 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5855 $as_echo "$supported" >&6; }
5856 if test "$supported" = "yes" ; then
5857 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5868 xorg_testset_save_CFLAGS="$CFLAGS"
5870 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 xorg_cv_cc_flag_unknown_warning_option=yes
5884 xorg_cv_cc_flag_unknown_warning_option=no
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5894 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5908 if ac_fn_c_try_compile "$LINENO"; then :
5909 xorg_cv_cc_flag_unused_command_line_argument=yes
5911 xorg_cv_cc_flag_unused_command_line_argument=no
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918 CFLAGS="$xorg_testset_save_CFLAGS"
5923 if test $found = "no" ; then
5924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5932 CFLAGS="$CFLAGS -Wshadow"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5935 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5936 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5937 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5938 $as_echo_n "(cached) " >&6
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5954 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5963 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965 $as_echo "$supported" >&6; }
5966 if test "$supported" = "yes" ; then
5967 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5978 xorg_testset_save_CFLAGS="$CFLAGS"
5980 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5985 $as_echo_n "(cached) " >&6
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 xorg_cv_cc_flag_unknown_warning_option=yes
5994 xorg_cv_cc_flag_unknown_warning_option=no
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6000 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6001 CFLAGS="$xorg_testset_save_CFLAGS"
6004 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6012 $as_echo_n "(cached) " >&6
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6018 if ac_fn_c_try_compile "$LINENO"; then :
6019 xorg_cv_cc_flag_unused_command_line_argument=yes
6021 xorg_cv_cc_flag_unused_command_line_argument=no
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6027 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6028 CFLAGS="$xorg_testset_save_CFLAGS"
6033 if test $found = "no" ; then
6034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6042 CFLAGS="$CFLAGS -Wcast-qual"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6045 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6046 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6047 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6048 $as_echo_n "(cached) " >&6
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6061 if ac_fn_c_try_link "$LINENO"; then :
6062 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6064 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6073 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6075 $as_echo "$supported" >&6; }
6076 if test "$supported" = "yes" ; then
6077 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6088 xorg_testset_save_CFLAGS="$CFLAGS"
6090 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6095 $as_echo_n "(cached) " >&6
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 xorg_cv_cc_flag_unknown_warning_option=yes
6104 xorg_cv_cc_flag_unknown_warning_option=no
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6114 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6115 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 xorg_cv_cc_flag_unused_command_line_argument=yes
6131 xorg_cv_cc_flag_unused_command_line_argument=no
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6137 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6143 if test $found = "no" ; then
6144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6152 CFLAGS="$CFLAGS -Wmissing-noreturn"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6155 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6156 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6157 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6158 $as_echo_n "(cached) " >&6
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6171 if ac_fn_c_try_link "$LINENO"; then :
6172 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6174 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6176 rm -f core conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6183 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185 $as_echo "$supported" >&6; }
6186 if test "$supported" = "yes" ; then
6187 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6198 xorg_testset_save_CFLAGS="$CFLAGS"
6200 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6214 xorg_cv_cc_flag_unknown_warning_option=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6224 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 xorg_cv_cc_flag_unused_command_line_argument=yes
6241 xorg_cv_cc_flag_unused_command_line_argument=no
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6253 if test $found = "no" ; then
6254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6265 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6266 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6267 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6268 $as_echo_n "(cached) " >&6
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6281 if ac_fn_c_try_link "$LINENO"; then :
6282 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6284 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6286 rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6293 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295 $as_echo "$supported" >&6; }
6296 if test "$supported" = "yes" ; then
6297 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6308 xorg_testset_save_CFLAGS="$CFLAGS"
6310 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 xorg_cv_cc_flag_unknown_warning_option=yes
6324 xorg_cv_cc_flag_unknown_warning_option=no
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6330 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6331 CFLAGS="$xorg_testset_save_CFLAGS"
6334 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 xorg_cv_cc_flag_unused_command_line_argument=yes
6351 xorg_cv_cc_flag_unused_command_line_argument=no
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6363 if test $found = "no" ; then
6364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6372 CFLAGS="$CFLAGS -Wredundant-decls"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6375 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6376 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6377 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6378 $as_echo_n "(cached) " >&6
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6394 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6401 CFLAGS="$xorg_testset_save_CFLAGS"
6403 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6405 $as_echo "$supported" >&6; }
6406 if test "$supported" = "yes" ; then
6407 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6414 # These are currently disabled because they are noisy. They will be enabled
6415 # in the future once the codebase is sufficiently modernized to silence
6416 # them. For now, I don't want them to drown out the other warnings.
6417 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6418 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6419 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6421 # Turn some warnings into errors, so we don't accidently get successful builds
6422 # when there are problems that should be fixed.
6424 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6430 xorg_testset_save_CFLAGS="$CFLAGS"
6432 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 xorg_cv_cc_flag_unknown_warning_option=yes
6446 xorg_cv_cc_flag_unknown_warning_option=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6452 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6453 CFLAGS="$xorg_testset_save_CFLAGS"
6456 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 xorg_cv_cc_flag_unused_command_line_argument=yes
6473 xorg_cv_cc_flag_unused_command_line_argument=no
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6485 if test $found = "no" ; then
6486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494 CFLAGS="$CFLAGS -Werror=implicit"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6497 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6498 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6499 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6500 $as_echo_n "(cached) " >&6
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6516 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6525 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527 $as_echo "$supported" >&6; }
6528 if test "$supported" = "yes" ; then
6529 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6534 if test $found = "no" ; then
6535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6546 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6547 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6548 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6549 $as_echo_n "(cached) " >&6
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6562 if ac_fn_c_try_link "$LINENO"; then :
6563 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6565 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6567 rm -f core conftest.err conftest.$ac_objext \
6568 conftest$ac_exeext conftest.$ac_ext
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6574 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6576 $as_echo "$supported" >&6; }
6577 if test "$supported" = "yes" ; then
6578 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6589 xorg_testset_save_CFLAGS="$CFLAGS"
6591 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6594 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6595 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 xorg_cv_cc_flag_unknown_warning_option=yes
6605 xorg_cv_cc_flag_unknown_warning_option=no
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612 CFLAGS="$xorg_testset_save_CFLAGS"
6615 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 xorg_cv_cc_flag_unused_command_line_argument=yes
6632 xorg_cv_cc_flag_unused_command_line_argument=no
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6637 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6638 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6639 CFLAGS="$xorg_testset_save_CFLAGS"
6644 if test $found = "no" ; then
6645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6653 CFLAGS="$CFLAGS -Werror=nonnull"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6656 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6657 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6658 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6659 $as_echo_n "(cached) " >&6
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6675 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6684 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6686 $as_echo "$supported" >&6; }
6687 if test "$supported" = "yes" ; then
6688 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6699 xorg_testset_save_CFLAGS="$CFLAGS"
6701 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6706 $as_echo_n "(cached) " >&6
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 xorg_cv_cc_flag_unknown_warning_option=yes
6715 xorg_cv_cc_flag_unknown_warning_option=no
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6721 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6725 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 xorg_cv_cc_flag_unused_command_line_argument=yes
6742 xorg_cv_cc_flag_unused_command_line_argument=no
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6748 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6749 CFLAGS="$xorg_testset_save_CFLAGS"
6754 if test $found = "no" ; then
6755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6763 CFLAGS="$CFLAGS -Werror=init-self"
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6766 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6767 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6768 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6769 $as_echo_n "(cached) " >&6
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6782 if ac_fn_c_try_link "$LINENO"; then :
6783 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6785 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6787 rm -f core conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6792 CFLAGS="$xorg_testset_save_CFLAGS"
6794 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6796 $as_echo "$supported" >&6; }
6797 if test "$supported" = "yes" ; then
6798 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6809 xorg_testset_save_CFLAGS="$CFLAGS"
6811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 xorg_cv_cc_flag_unknown_warning_option=yes
6825 xorg_cv_cc_flag_unknown_warning_option=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6835 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6843 $as_echo_n "(cached) " >&6
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 xorg_cv_cc_flag_unused_command_line_argument=yes
6852 xorg_cv_cc_flag_unused_command_line_argument=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6864 if test $found = "no" ; then
6865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873 CFLAGS="$CFLAGS -Werror=main"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6876 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6877 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6878 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6879 $as_echo_n "(cached) " >&6
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6895 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6904 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906 $as_echo "$supported" >&6; }
6907 if test "$supported" = "yes" ; then
6908 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6919 xorg_testset_save_CFLAGS="$CFLAGS"
6921 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6932 if ac_fn_c_try_compile "$LINENO"; then :
6933 xorg_cv_cc_flag_unknown_warning_option=yes
6935 xorg_cv_cc_flag_unknown_warning_option=no
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6941 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6945 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6953 $as_echo_n "(cached) " >&6
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 xorg_cv_cc_flag_unused_command_line_argument=yes
6962 xorg_cv_cc_flag_unused_command_line_argument=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969 CFLAGS="$xorg_testset_save_CFLAGS"
6974 if test $found = "no" ; then
6975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6983 CFLAGS="$CFLAGS -Werror=missing-braces"
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6986 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6987 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6988 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6989 $as_echo_n "(cached) " >&6
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7005 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7007 rm -f core conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7012 CFLAGS="$xorg_testset_save_CFLAGS"
7014 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7016 $as_echo "$supported" >&6; }
7017 if test "$supported" = "yes" ; then
7018 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7029 xorg_testset_save_CFLAGS="$CFLAGS"
7031 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036 $as_echo_n "(cached) " >&6
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 xorg_cv_cc_flag_unknown_warning_option=yes
7045 xorg_cv_cc_flag_unknown_warning_option=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063 $as_echo_n "(cached) " >&6
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 xorg_cv_cc_flag_unused_command_line_argument=yes
7072 xorg_cv_cc_flag_unused_command_line_argument=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
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=sequence-point"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7096 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7097 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7098 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7099 $as_echo_n "(cached) " >&6
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_link "$LINENO"; then :
7113 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7115 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7117 rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7124 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126 $as_echo "$supported" >&6; }
7127 if test "$supported" = "yes" ; then
7128 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7139 xorg_testset_save_CFLAGS="$CFLAGS"
7141 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 xorg_cv_cc_flag_unknown_warning_option=yes
7155 xorg_cv_cc_flag_unknown_warning_option=no
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7165 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7173 $as_echo_n "(cached) " >&6
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 xorg_cv_cc_flag_unused_command_line_argument=yes
7182 xorg_cv_cc_flag_unused_command_line_argument=no
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7188 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7194 if test $found = "no" ; then
7195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7203 CFLAGS="$CFLAGS -Werror=return-type"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7206 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7207 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7208 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7209 $as_echo_n "(cached) " >&6
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7225 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7232 CFLAGS="$xorg_testset_save_CFLAGS"
7234 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7236 $as_echo "$supported" >&6; }
7237 if test "$supported" = "yes" ; then
7238 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7243 if test $found = "no" ; then
7244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7252 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7255 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7256 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7257 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7258 $as_echo_n "(cached) " >&6
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7274 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7276 rm -f core conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7283 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285 $as_echo "$supported" >&6; }
7286 if test "$supported" = "yes" ; then
7287 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7298 xorg_testset_save_CFLAGS="$CFLAGS"
7300 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7314 xorg_cv_cc_flag_unknown_warning_option=no
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7324 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unused_command_line_argument=yes
7341 xorg_cv_cc_flag_unused_command_line_argument=no
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7353 if test $found = "no" ; then
7354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 CFLAGS="$CFLAGS -Werror=trigraphs"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7365 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7366 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7367 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7368 $as_echo_n "(cached) " >&6
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7384 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7393 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 $as_echo "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7408 xorg_testset_save_CFLAGS="$CFLAGS"
7410 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7413 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7414 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7421 if ac_fn_c_try_compile "$LINENO"; then :
7422 xorg_cv_cc_flag_unknown_warning_option=yes
7424 xorg_cv_cc_flag_unknown_warning_option=no
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7429 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7430 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7431 CFLAGS="$xorg_testset_save_CFLAGS"
7434 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7440 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7441 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7448 if ac_fn_c_try_compile "$LINENO"; then :
7449 xorg_cv_cc_flag_unused_command_line_argument=yes
7451 xorg_cv_cc_flag_unused_command_line_argument=no
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7456 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7457 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7458 CFLAGS="$xorg_testset_save_CFLAGS"
7463 if test $found = "no" ; then
7464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 CFLAGS="$CFLAGS -Werror=array-bounds"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7475 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7476 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7477 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7478 $as_echo_n "(cached) " >&6
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7491 if ac_fn_c_try_link "$LINENO"; then :
7492 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7494 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7496 rm -f core conftest.err conftest.$ac_objext \
7497 conftest$ac_exeext conftest.$ac_ext
7501 CFLAGS="$xorg_testset_save_CFLAGS"
7503 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7505 $as_echo "$supported" >&6; }
7506 if test "$supported" = "yes" ; then
7507 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7518 xorg_testset_save_CFLAGS="$CFLAGS"
7520 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 xorg_cv_cc_flag_unknown_warning_option=yes
7534 xorg_cv_cc_flag_unknown_warning_option=no
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7540 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7544 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 xorg_cv_cc_flag_unused_command_line_argument=yes
7561 xorg_cv_cc_flag_unused_command_line_argument=no
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7567 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7568 CFLAGS="$xorg_testset_save_CFLAGS"
7573 if test $found = "no" ; then
7574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7582 CFLAGS="$CFLAGS -Werror=write-strings"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7585 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7586 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7587 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7588 $as_echo_n "(cached) " >&6
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7604 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7613 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 $as_echo "$supported" >&6; }
7616 if test "$supported" = "yes" ; then
7617 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7628 xorg_testset_save_CFLAGS="$CFLAGS"
7630 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7633 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7634 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7635 $as_echo_n "(cached) " >&6
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7641 if ac_fn_c_try_compile "$LINENO"; then :
7642 xorg_cv_cc_flag_unknown_warning_option=yes
7644 xorg_cv_cc_flag_unknown_warning_option=no
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7649 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7650 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7651 CFLAGS="$xorg_testset_save_CFLAGS"
7654 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7660 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7661 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669 xorg_cv_cc_flag_unused_command_line_argument=yes
7671 xorg_cv_cc_flag_unused_command_line_argument=no
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7676 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7677 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7678 CFLAGS="$xorg_testset_save_CFLAGS"
7683 if test $found = "no" ; then
7684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7692 CFLAGS="$CFLAGS -Werror=address"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7695 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7696 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7697 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7698 $as_echo_n "(cached) " >&6
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7711 if ac_fn_c_try_link "$LINENO"; then :
7712 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7714 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7716 rm -f core conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7721 CFLAGS="$xorg_testset_save_CFLAGS"
7723 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7725 $as_echo "$supported" >&6; }
7726 if test "$supported" = "yes" ; then
7727 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7738 xorg_testset_save_CFLAGS="$CFLAGS"
7740 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745 $as_echo_n "(cached) " >&6
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7751 if ac_fn_c_try_compile "$LINENO"; then :
7752 xorg_cv_cc_flag_unknown_warning_option=yes
7754 xorg_cv_cc_flag_unknown_warning_option=no
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 xorg_cv_cc_flag_unused_command_line_argument=yes
7781 xorg_cv_cc_flag_unused_command_line_argument=no
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7805 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7806 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7807 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7808 $as_echo_n "(cached) " >&6
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7821 if ac_fn_c_try_link "$LINENO"; then :
7822 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7824 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7833 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835 $as_echo "$supported" >&6; }
7836 if test "$supported" = "yes" ; then
7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7842 if test $found = "no" ; then
7843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7851 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7854 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7855 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7856 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7857 $as_echo_n "(cached) " >&6
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7873 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7882 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7884 $as_echo "$supported" >&6; }
7885 if test "$supported" = "yes" ; then
7886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7897 xorg_testset_save_CFLAGS="$CFLAGS"
7899 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7904 $as_echo_n "(cached) " >&6
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7910 if ac_fn_c_try_compile "$LINENO"; then :
7911 xorg_cv_cc_flag_unknown_warning_option=yes
7913 xorg_cv_cc_flag_unknown_warning_option=no
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7919 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7920 CFLAGS="$xorg_testset_save_CFLAGS"
7923 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7924 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7940 xorg_cv_cc_flag_unused_command_line_argument=no
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947 CFLAGS="$xorg_testset_save_CFLAGS"
7952 if test $found = "no" ; then
7953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7964 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7965 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7966 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7967 $as_echo_n "(cached) " >&6
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7983 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7990 CFLAGS="$xorg_testset_save_CFLAGS"
7992 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7994 $as_echo "$supported" >&6; }
7995 if test "$supported" = "yes" ; then
7996 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8001 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8003 { $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
8004 $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;}
8010 xorg_testset_save_CFLAGS="$CFLAGS"
8012 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8015 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8016 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8017 $as_echo_n "(cached) " >&6
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024 xorg_cv_cc_flag_unknown_warning_option=yes
8026 xorg_cv_cc_flag_unknown_warning_option=no
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8031 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8032 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8033 CFLAGS="$xorg_testset_save_CFLAGS"
8036 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8042 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8043 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8044 $as_echo_n "(cached) " >&6
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 xorg_cv_cc_flag_unused_command_line_argument=yes
8053 xorg_cv_cc_flag_unused_command_line_argument=no
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8058 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8059 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8065 if test $found = "no" ; then
8066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8074 CFLAGS="$CFLAGS -Wimplicit"
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8077 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8078 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8079 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8080 $as_echo_n "(cached) " >&6
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8093 if ac_fn_c_try_link "$LINENO"; then :
8094 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8096 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8098 rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8105 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8107 $as_echo "$supported" >&6; }
8108 if test "$supported" = "yes" ; then
8109 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8120 xorg_testset_save_CFLAGS="$CFLAGS"
8122 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8125 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8126 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 xorg_cv_cc_flag_unknown_warning_option=yes
8136 xorg_cv_cc_flag_unknown_warning_option=no
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8141 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8142 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8143 CFLAGS="$xorg_testset_save_CFLAGS"
8146 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8152 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8153 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 xorg_cv_cc_flag_unused_command_line_argument=yes
8163 xorg_cv_cc_flag_unused_command_line_argument=no
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8168 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8169 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8175 if test $found = "no" ; then
8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8184 CFLAGS="$CFLAGS -Wnonnull"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8187 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8188 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8189 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8190 $as_echo_n "(cached) " >&6
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8206 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8213 CFLAGS="$xorg_testset_save_CFLAGS"
8215 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8217 $as_echo "$supported" >&6; }
8218 if test "$supported" = "yes" ; then
8219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8230 xorg_testset_save_CFLAGS="$CFLAGS"
8232 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 xorg_cv_cc_flag_unknown_warning_option=yes
8246 xorg_cv_cc_flag_unknown_warning_option=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8252 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8253 CFLAGS="$xorg_testset_save_CFLAGS"
8256 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 xorg_cv_cc_flag_unused_command_line_argument=yes
8273 xorg_cv_cc_flag_unused_command_line_argument=no
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8279 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8280 CFLAGS="$xorg_testset_save_CFLAGS"
8285 if test $found = "no" ; then
8286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8294 CFLAGS="$CFLAGS -Winit-self"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8297 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8298 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8299 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8313 if ac_fn_c_try_link "$LINENO"; then :
8314 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8316 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8318 rm -f core conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8323 CFLAGS="$xorg_testset_save_CFLAGS"
8325 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327 $as_echo "$supported" >&6; }
8328 if test "$supported" = "yes" ; then
8329 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8340 xorg_testset_save_CFLAGS="$CFLAGS"
8342 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8347 $as_echo_n "(cached) " >&6
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 xorg_cv_cc_flag_unknown_warning_option=yes
8356 xorg_cv_cc_flag_unknown_warning_option=no
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8362 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8366 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8374 $as_echo_n "(cached) " >&6
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 xorg_cv_cc_flag_unused_command_line_argument=yes
8383 xorg_cv_cc_flag_unused_command_line_argument=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8389 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8390 CFLAGS="$xorg_testset_save_CFLAGS"
8395 if test $found = "no" ; then
8396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8404 CFLAGS="$CFLAGS -Wmain"
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8407 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8408 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8409 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8410 $as_echo_n "(cached) " >&6
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8426 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8435 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437 $as_echo "$supported" >&6; }
8438 if test "$supported" = "yes" ; then
8439 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8450 xorg_testset_save_CFLAGS="$CFLAGS"
8452 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 xorg_cv_cc_flag_unknown_warning_option=yes
8466 xorg_cv_cc_flag_unknown_warning_option=no
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8472 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8476 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 xorg_cv_cc_flag_unused_command_line_argument=yes
8493 xorg_cv_cc_flag_unused_command_line_argument=no
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8499 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8505 if test $found = "no" ; then
8506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8514 CFLAGS="$CFLAGS -Wmissing-braces"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8517 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8518 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8519 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8520 $as_echo_n "(cached) " >&6
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8536 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8538 rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8543 CFLAGS="$xorg_testset_save_CFLAGS"
8545 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8547 $as_echo "$supported" >&6; }
8548 if test "$supported" = "yes" ; then
8549 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8560 xorg_testset_save_CFLAGS="$CFLAGS"
8562 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8567 $as_echo_n "(cached) " >&6
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 xorg_cv_cc_flag_unknown_warning_option=yes
8576 xorg_cv_cc_flag_unknown_warning_option=no
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8586 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8587 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8594 $as_echo_n "(cached) " >&6
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 xorg_cv_cc_flag_unused_command_line_argument=yes
8603 xorg_cv_cc_flag_unused_command_line_argument=no
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610 CFLAGS="$xorg_testset_save_CFLAGS"
8615 if test $found = "no" ; then
8616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8624 CFLAGS="$CFLAGS -Wsequence-point"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8627 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8628 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8629 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8630 $as_echo_n "(cached) " >&6
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8643 if ac_fn_c_try_link "$LINENO"; then :
8644 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8646 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8648 rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8653 CFLAGS="$xorg_testset_save_CFLAGS"
8655 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657 $as_echo "$supported" >&6; }
8658 if test "$supported" = "yes" ; then
8659 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8670 xorg_testset_save_CFLAGS="$CFLAGS"
8672 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677 $as_echo_n "(cached) " >&6
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 xorg_cv_cc_flag_unknown_warning_option=yes
8686 xorg_cv_cc_flag_unknown_warning_option=no
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8696 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704 $as_echo_n "(cached) " >&6
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unused_command_line_argument=yes
8713 xorg_cv_cc_flag_unused_command_line_argument=no
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8725 if test $found = "no" ; then
8726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8734 CFLAGS="$CFLAGS -Wreturn-type"
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8737 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8738 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8739 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8740 $as_echo_n "(cached) " >&6
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8756 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8765 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767 $as_echo "$supported" >&6; }
8768 if test "$supported" = "yes" ; then
8769 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8780 xorg_testset_save_CFLAGS="$CFLAGS"
8782 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 xorg_cv_cc_flag_unknown_warning_option=yes
8796 xorg_cv_cc_flag_unknown_warning_option=no
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8806 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8807 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8814 $as_echo_n "(cached) " >&6
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 xorg_cv_cc_flag_unused_command_line_argument=yes
8823 xorg_cv_cc_flag_unused_command_line_argument=no
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830 CFLAGS="$xorg_testset_save_CFLAGS"
8835 if test $found = "no" ; then
8836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844 CFLAGS="$CFLAGS -Wtrigraphs"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8847 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8848 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8849 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8863 if ac_fn_c_try_link "$LINENO"; then :
8864 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8866 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8873 CFLAGS="$xorg_testset_save_CFLAGS"
8875 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877 $as_echo "$supported" >&6; }
8878 if test "$supported" = "yes" ; then
8879 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8890 xorg_testset_save_CFLAGS="$CFLAGS"
8892 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8897 $as_echo_n "(cached) " >&6
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 xorg_cv_cc_flag_unknown_warning_option=yes
8906 xorg_cv_cc_flag_unknown_warning_option=no
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8912 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8913 CFLAGS="$xorg_testset_save_CFLAGS"
8916 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8917 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8930 if ac_fn_c_try_compile "$LINENO"; then :
8931 xorg_cv_cc_flag_unused_command_line_argument=yes
8933 xorg_cv_cc_flag_unused_command_line_argument=no
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8939 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8945 if test $found = "no" ; then
8946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8954 CFLAGS="$CFLAGS -Warray-bounds"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8957 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8958 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8959 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8960 $as_echo_n "(cached) " >&6
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8976 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8985 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8987 $as_echo "$supported" >&6; }
8988 if test "$supported" = "yes" ; then
8989 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9000 xorg_testset_save_CFLAGS="$CFLAGS"
9002 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9007 $as_echo_n "(cached) " >&6
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 xorg_cv_cc_flag_unknown_warning_option=yes
9016 xorg_cv_cc_flag_unknown_warning_option=no
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9022 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9026 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 xorg_cv_cc_flag_unused_command_line_argument=yes
9043 xorg_cv_cc_flag_unused_command_line_argument=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9049 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9055 if test $found = "no" ; then
9056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9060 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064 CFLAGS="$CFLAGS -Wwrite-strings"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9067 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9068 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9069 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9070 $as_echo_n "(cached) " >&6
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9086 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9093 CFLAGS="$xorg_testset_save_CFLAGS"
9095 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9097 $as_echo "$supported" >&6; }
9098 if test "$supported" = "yes" ; then
9099 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9110 xorg_testset_save_CFLAGS="$CFLAGS"
9112 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9117 $as_echo_n "(cached) " >&6
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9123 if ac_fn_c_try_compile "$LINENO"; then :
9124 xorg_cv_cc_flag_unknown_warning_option=yes
9126 xorg_cv_cc_flag_unknown_warning_option=no
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9132 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9133 CFLAGS="$xorg_testset_save_CFLAGS"
9136 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9144 $as_echo_n "(cached) " >&6
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9150 if ac_fn_c_try_compile "$LINENO"; then :
9151 xorg_cv_cc_flag_unused_command_line_argument=yes
9153 xorg_cv_cc_flag_unused_command_line_argument=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160 CFLAGS="$xorg_testset_save_CFLAGS"
9165 if test $found = "no" ; then
9166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174 CFLAGS="$CFLAGS -Waddress"
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9177 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9178 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9179 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9180 $as_echo_n "(cached) " >&6
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9193 if ac_fn_c_try_link "$LINENO"; then :
9194 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9196 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9198 rm -f core conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9205 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207 $as_echo "$supported" >&6; }
9208 if test "$supported" = "yes" ; then
9209 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9220 xorg_testset_save_CFLAGS="$CFLAGS"
9222 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9227 $as_echo_n "(cached) " >&6
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 xorg_cv_cc_flag_unknown_warning_option=yes
9236 xorg_cv_cc_flag_unknown_warning_option=no
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9242 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9243 CFLAGS="$xorg_testset_save_CFLAGS"
9246 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9254 $as_echo_n "(cached) " >&6
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9260 if ac_fn_c_try_compile "$LINENO"; then :
9261 xorg_cv_cc_flag_unused_command_line_argument=yes
9263 xorg_cv_cc_flag_unused_command_line_argument=no
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9269 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9270 CFLAGS="$xorg_testset_save_CFLAGS"
9275 if test $found = "no" ; then
9276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9284 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9287 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9288 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9289 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9290 $as_echo_n "(cached) " >&6
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9306 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9313 CFLAGS="$xorg_testset_save_CFLAGS"
9315 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9317 $as_echo "$supported" >&6; }
9318 if test "$supported" = "yes" ; then
9319 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9330 xorg_testset_save_CFLAGS="$CFLAGS"
9332 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 xorg_cv_cc_flag_unknown_warning_option=yes
9346 xorg_cv_cc_flag_unknown_warning_option=no
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9352 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9356 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9364 $as_echo_n "(cached) " >&6
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9370 if ac_fn_c_try_compile "$LINENO"; then :
9371 xorg_cv_cc_flag_unused_command_line_argument=yes
9373 xorg_cv_cc_flag_unused_command_line_argument=no
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9379 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9385 if test $found = "no" ; then
9386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9397 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9398 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9399 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9400 $as_echo_n "(cached) " >&6
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9416 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9425 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9427 $as_echo "$supported" >&6; }
9428 if test "$supported" = "yes" ; then
9429 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9442 CWARNFLAGS="$BASE_CFLAGS"
9443 if test "x$GCC" = xyes ; then
9444 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9452 # Check whether --enable-strict-compilation was given.
9453 if test "${enable_strict_compilation+set}" = set; then :
9454 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9468 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473 $as_echo_n "(cached) " >&6
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9482 xorg_cv_cc_flag_unknown_warning_option=no
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9492 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500 $as_echo_n "(cached) " >&6
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 xorg_cv_cc_flag_unused_command_line_argument=yes
9509 xorg_cv_cc_flag_unused_command_line_argument=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9521 if test $found = "no" ; then
9522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9530 CFLAGS="$CFLAGS -pedantic"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9533 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9534 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9535 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9536 $as_echo_n "(cached) " >&6
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9552 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9561 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 $as_echo "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9576 xorg_testset_save_CFLAGS="$CFLAGS"
9578 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583 $as_echo_n "(cached) " >&6
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 if ac_fn_c_try_compile "$LINENO"; then :
9590 xorg_cv_cc_flag_unknown_warning_option=yes
9592 xorg_cv_cc_flag_unknown_warning_option=no
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9602 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610 $as_echo_n "(cached) " >&6
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9616 if ac_fn_c_try_compile "$LINENO"; then :
9617 xorg_cv_cc_flag_unused_command_line_argument=yes
9619 xorg_cv_cc_flag_unused_command_line_argument=no
9621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626 CFLAGS="$xorg_testset_save_CFLAGS"
9631 if test $found = "no" ; then
9632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9640 CFLAGS="$CFLAGS -Werror"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9643 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9644 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9645 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9662 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9671 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673 $as_echo "$supported" >&6; }
9674 if test "$supported" = "yes" ; then
9675 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9680 if test $found = "no" ; then
9681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689 CFLAGS="$CFLAGS -errwarn"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9692 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9693 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9694 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9695 $as_echo_n "(cached) " >&6
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9708 if ac_fn_c_try_link "$LINENO"; then :
9709 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9711 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9720 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722 $as_echo "$supported" >&6; }
9723 if test "$supported" = "yes" ; then
9724 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9731 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9732 # activate it with -Werror, so we add it here explicitly.
9738 xorg_testset_save_CFLAGS="$CFLAGS"
9740 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745 $as_echo_n "(cached) " >&6
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9751 if ac_fn_c_try_compile "$LINENO"; then :
9752 xorg_cv_cc_flag_unknown_warning_option=yes
9754 xorg_cv_cc_flag_unknown_warning_option=no
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9765 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 xorg_cv_cc_flag_unused_command_line_argument=yes
9781 xorg_cv_cc_flag_unused_command_line_argument=no
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788 CFLAGS="$xorg_testset_save_CFLAGS"
9793 if test $found = "no" ; then
9794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802 CFLAGS="$CFLAGS -Werror=attributes"
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9805 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9806 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9807 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9808 $as_echo_n "(cached) " >&6
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9824 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9833 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 $as_echo "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9844 if test "x$STRICT_COMPILE" = "xyes"; then
9845 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9846 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9854 cat >>confdefs.h <<_ACEOF
9855 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9858 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9859 if test "x$PVM" = "x"; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define PACKAGE_VERSION_MINOR $PVM
9867 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9868 if test "x$PVP" = "x"; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9878 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9879 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9880 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9881 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9886 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9887 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9888 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9889 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9890 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9897 if test x$APP_MAN_SUFFIX = x ; then
9900 if test x$APP_MAN_DIR = x ; then
9901 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9904 if test x$LIB_MAN_SUFFIX = x ; then
9907 if test x$LIB_MAN_DIR = x ; then
9908 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9911 if test x$FILE_MAN_SUFFIX = x ; then
9913 solaris*) FILE_MAN_SUFFIX=4 ;;
9914 *) FILE_MAN_SUFFIX=5 ;;
9917 if test x$FILE_MAN_DIR = x ; then
9918 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9921 if test x$MISC_MAN_SUFFIX = x ; then
9923 solaris*) MISC_MAN_SUFFIX=5 ;;
9924 *) MISC_MAN_SUFFIX=7 ;;
9927 if test x$MISC_MAN_DIR = x ; then
9928 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9931 if test x$DRIVER_MAN_SUFFIX = x ; then
9933 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9934 *) DRIVER_MAN_SUFFIX=4 ;;
9937 if test x$DRIVER_MAN_DIR = x ; then
9938 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9941 if test x$ADMIN_MAN_SUFFIX = x ; then
9943 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9944 *) ADMIN_MAN_SUFFIX=8 ;;
9947 if test x$ADMIN_MAN_DIR = x ; then
9948 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9965 XORG_MAN_PAGE="X Version 11"
9968 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9969 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9970 -e 's|__xservername__|Xorg|g' \
9971 -e 's|__xconfigfile__|xorg.conf|g' \
9972 -e 's|__projectroot__|\$(prefix)|g' \
9973 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9974 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9975 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9976 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9977 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9978 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9979 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9983 # Check whether --enable-silent-rules was given.
9984 if test "${enable_silent_rules+set}" = set; then :
9985 enableval=$enable_silent_rules;
9988 case $enable_silent_rules in
9989 yes) AM_DEFAULT_VERBOSITY=0;;
9990 no) AM_DEFAULT_VERBOSITY=1;;
9991 *) AM_DEFAULT_VERBOSITY=0;;
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
9998 $as_echo_n "checking for gzopen in -lz... " >&6; }
9999 if ${ac_cv_lib_z_gzopen+:} false; then :
10000 $as_echo_n "(cached) " >&6
10002 ac_check_lib_save_LIBS=$LIBS
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 ac_cv_lib_z_gzopen=yes
10025 ac_cv_lib_z_gzopen=no
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
10032 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
10033 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_LIBZ 1
10041 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5
10046 # Check whether --with-bzip2 was given.
10047 if test "${with_bzip2+set}" = set; then :
10048 withval=$with_bzip2;
10053 if test "x$with_bzip2" = xyes; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
10055 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
10056 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
10057 $as_echo_n "(cached) " >&6
10059 ac_check_lib_save_LIBS=$LIBS
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10064 /* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10070 char BZ2_bzopen ();
10074 return BZ2_bzopen ();
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 ac_cv_lib_bz2_BZ2_bzopen=yes
10082 ac_cv_lib_bz2_BZ2_bzopen=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
10089 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
10090 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
10091 cat >>confdefs.h <<_ACEOF
10092 #define HAVE_LIBBZ2 1
10098 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
10102 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
10106 # Checks for pkg-config packages
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5
10110 $as_echo_n "checking for MKFONTSCALE... " >&6; }
10112 if test -n "$MKFONTSCALE_CFLAGS"; then
10113 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS"
10114 elif test -n "$PKG_CONFIG"; then
10115 if test -n "$PKG_CONFIG" && \
10116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10117 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; }; then
10121 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null`
10128 if test -n "$MKFONTSCALE_LIBS"; then
10129 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS"
10130 elif test -n "$PKG_CONFIG"; then
10131 if test -n "$PKG_CONFIG" && \
10132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5
10133 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136 test $ac_status = 0; }; then
10137 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null`
10147 if test $pkg_failed = yes; then
10149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10150 _pkg_short_errors_supported=yes
10152 _pkg_short_errors_supported=no
10154 if test $_pkg_short_errors_supported = yes; then
10155 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1`
10157 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1`
10159 # Put the nasty error message in config.log where it belongs
10160 echo "$MKFONTSCALE_PKG_ERRORS" >&5
10162 as_fn_error $? "Package requirements (fontenc freetype2) were not met:
10164 $MKFONTSCALE_PKG_ERRORS
10166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10167 installed software in a non-standard prefix.
10169 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10170 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10171 See the pkg-config man page for more details.
10173 elif test $pkg_failed = untried; then
10174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10176 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10177 is in your PATH or set the PKG_CONFIG environment variable to the full
10178 path to pkg-config.
10180 Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS
10181 and MKFONTSCALE_LIBS to avoid the need to call pkg-config.
10182 See the pkg-config man page for more details.
10184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10185 See \`config.log' for more details" "$LINENO" 5; }
10187 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS
10188 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10190 $as_echo "yes" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
10196 $as_echo_n "checking for X11... " >&6; }
10198 if test -n "$X11_CFLAGS"; then
10199 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
10200 elif test -n "$PKG_CONFIG"; then
10201 if test -n "$PKG_CONFIG" && \
10202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10203 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206 test $ac_status = 0; }; then
10207 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10214 if test -n "$X11_LIBS"; then
10215 pkg_cv_X11_LIBS="$X11_LIBS"
10216 elif test -n "$PKG_CONFIG"; then
10217 if test -n "$PKG_CONFIG" && \
10218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10219 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10222 test $ac_status = 0; }; then
10223 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10233 if test $pkg_failed = yes; then
10235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10236 _pkg_short_errors_supported=yes
10238 _pkg_short_errors_supported=no
10240 if test $_pkg_short_errors_supported = yes; then
10241 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10243 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10245 # Put the nasty error message in config.log where it belongs
10246 echo "$X11_PKG_ERRORS" >&5
10248 as_fn_error $? "Package requirements (xproto) were not met:
10252 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10253 installed software in a non-standard prefix.
10255 Alternatively, you may set the environment variables X11_CFLAGS
10256 and X11_LIBS to avoid the need to call pkg-config.
10257 See the pkg-config man page for more details.
10259 elif test $pkg_failed = untried; then
10260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10262 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10263 is in your PATH or set the PKG_CONFIG environment variable to the full
10264 path to pkg-config.
10266 Alternatively, you may set the environment variables X11_CFLAGS
10267 and X11_LIBS to avoid the need to call pkg-config.
10268 See the pkg-config man page for more details.
10270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10271 See \`config.log' for more details" "$LINENO" 5; }
10273 X11_CFLAGS=$pkg_cv_X11_CFLAGS
10274 X11_LIBS=$pkg_cv_X11_LIBS
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10276 $as_echo "yes" >&6; }
10285 # Check whether --with-lint was given.
10286 if test "${with_lint+set}" = set; then :
10287 withval=$with_lint; use_lint=$withval
10293 # Obtain platform specific info like program name and options
10294 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10296 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10298 lint_options="-badflag"
10300 *freebsd* | *netbsd*)
10302 lint_options="-u -b"
10306 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10310 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10311 if test "x$use_lint" = x"yes" ; then
10312 # Extract the first word of "$lint_name", so it can be a program name with args.
10313 set dummy $lint_name; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if ${ac_cv_path_LINT+:} false; then :
10317 $as_echo_n "(cached) " >&6
10321 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 LINT=$ac_cv_path_LINT
10343 if test -n "$LINT"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10345 $as_echo "$LINT" >&6; }
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10352 if test "x$LINT" = "x"; then
10353 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10355 elif test "x$use_lint" = x"no" ; then
10356 if test "x$LINT" != "x"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10358 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10361 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10364 # User supplied flags override default flags
10365 if test "x$LINT_FLAGS" != "x"; then
10366 lint_options=$LINT_FLAGS
10369 LINT_FLAGS=$lint_options
10371 if test "x$LINT" != x; then
10382 ac_config_files="$ac_config_files Makefile man/Makefile"
10384 cat >confcache <<\_ACEOF
10385 # This file is a shell script that caches the results of configure
10386 # tests run on this system so they can be shared between configure
10387 # scripts and configure runs, see configure's option --config-cache.
10388 # It is not useful on other systems. If it contains results you don't
10389 # want to keep, you may remove or edit it.
10391 # config.status only pays attention to the cache file if you give it
10392 # the --recheck option to rerun configure.
10394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10396 # following values.
10400 # The following way of writing the cache mishandles newlines in values,
10401 # but we know of no workaround that is simple, portable, and efficient.
10402 # So, we kill variables containing newlines.
10403 # Ultrix sh set writes to stderr and can't be redirected directly,
10404 # and sets the high bit in the cache file unless we assign to the vars.
10406 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10407 eval ac_val=\$$ac_var
10411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10415 _ | IFS | as_nl) ;; #(
10416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10417 *) { eval $ac_var=; unset $ac_var;} ;;
10423 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10424 *${as_nl}ac_space=\ *)
10425 # `set' does not quote correctly, so add quotes: double-quote
10426 # substitution turns \\\\ into \\, and sed turns \\ into \.
10429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10432 # `set' quotes correctly as required by POSIX, so do not add quotes.
10433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10444 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10446 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10447 if test -w "$cache_file"; then
10448 if test "x$cache_file" != "x/dev/null"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10450 $as_echo "$as_me: updating cache $cache_file" >&6;}
10451 if test ! -f "$cache_file" || test -h "$cache_file"; then
10452 cat confcache >"$cache_file"
10454 case $cache_file in #(
10456 mv -f confcache "$cache_file"$$ &&
10457 mv -f "$cache_file"$$ "$cache_file" ;; #(
10459 mv -f confcache "$cache_file" ;;
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10471 # Let make expand exec_prefix.
10472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10474 DEFS=-DHAVE_CONFIG_H
10479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10480 # 1. Remove the extension, and $U if already installed.
10481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10482 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10484 # will be set to the directory where LIBOBJS objects are built.
10485 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10486 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10488 LIBOBJS=$ac_libobjs
10490 LTLIBOBJS=$ac_ltlibobjs
10493 if test -n "$EXEEXT"; then
10495 am__EXEEXT_FALSE='#'
10497 am__EXEEXT_TRUE='#'
10501 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10502 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10506 as_fn_error $? "conditional \"AMDEP\" was never defined.
10507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10509 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10510 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10513 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10514 as_fn_error $? "conditional \"LINT\" was never defined.
10515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10518 : "${CONFIG_STATUS=./config.status}"
10520 ac_clean_files_save=$ac_clean_files
10521 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10523 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10525 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10527 # Generated by $as_me.
10528 # Run this file to recreate the current configuration.
10529 # Compiler output produced by configure, useful for debugging
10530 # configure, is in config.log if it exists.
10533 ac_cs_recheck=false
10536 SHELL=\${CONFIG_SHELL-$SHELL}
10539 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10540 ## -------------------- ##
10541 ## M4sh Initialization. ##
10542 ## -------------------- ##
10544 # Be more Bourne compatible
10545 DUALCASE=1; export DUALCASE # for MKS sh
10546 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10549 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10550 # is contrary to our usage. Disable this feature.
10551 alias -g '${1+"$@"}'='"$@"'
10552 setopt NO_GLOB_SUBST
10554 case `(set -o) 2>/dev/null` in #(
10566 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10567 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10570 # Prefer a ksh shell builtin over an external printf program on Solaris,
10571 # but without wasting forks for bash or zsh.
10572 if test -z "$BASH_VERSION$ZSH_VERSION" \
10573 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10574 as_echo='print -r --'
10575 as_echo_n='print -rn --'
10576 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10577 as_echo='printf %s\n'
10578 as_echo_n='printf %s'
10580 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10581 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10582 as_echo_n='/usr/ucb/echo -n'
10584 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10585 as_echo_n_body='eval
10589 expr "X$arg" : "X\\(.*\\)$as_nl";
10590 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10592 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10594 export as_echo_n_body
10595 as_echo_n='sh -c $as_echo_n_body as_echo'
10597 export as_echo_body
10598 as_echo='sh -c $as_echo_body as_echo'
10601 # The user is always right.
10602 if test "${PATH_SEPARATOR+set}" != set; then
10604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10605 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10612 # We need space, tab and new line, in precisely that order. Quoting is
10613 # there to prevent editors from complaining about space-tab.
10614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10615 # splitting by setting IFS to empty value.)
10618 # Find who we are. Look in the path if we contain no directory separator.
10621 *[\\/]* ) as_myself=$0 ;;
10622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10626 test -z "$as_dir" && as_dir=.
10627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10633 # We did not find ourselves, most probably we were run as `sh COMMAND'
10634 # in which case we are not to be found in the path.
10635 if test "x$as_myself" = x; then
10638 if test ! -f "$as_myself"; then
10639 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10643 # Unset variables that we do not need and which cause bugs (e.g. in
10644 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10645 # suppresses any "Segmentation fault" message there. '((' could
10646 # trigger a bug in pdksh 5.2.14.
10647 for as_var in BASH_ENV ENV MAIL MAILPATH
10648 do eval test x\${$as_var+set} = xset \
10649 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10662 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10665 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10666 # ----------------------------------------
10667 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10668 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10669 # script with STATUS, using 1 if that was 0.
10672 as_status=$1; test $as_status -eq 0 && as_status=1
10674 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10675 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10677 $as_echo "$as_me: error: $2" >&2
10678 as_fn_exit $as_status
10682 # as_fn_set_status STATUS
10683 # -----------------------
10684 # Set $? to STATUS, without forking.
10685 as_fn_set_status ()
10688 } # as_fn_set_status
10690 # as_fn_exit STATUS
10691 # -----------------
10692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10696 as_fn_set_status $1
10702 # Portably unset VAR.
10705 { eval $1=; unset $1;}
10707 as_unset=as_fn_unset
10708 # as_fn_append VAR VALUE
10709 # ----------------------
10710 # Append the text in VALUE to the end of the definition contained in VAR. Take
10711 # advantage of any shell optimizations that allow amortized linear growth over
10712 # repeated appends, instead of the typical quadratic growth present in naive
10714 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10715 eval 'as_fn_append ()
10726 # as_fn_arith ARG...
10727 # ------------------
10728 # Perform arithmetic evaluation on the ARGs, and store the result in the
10729 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10730 # must be portable across $(()) and expr.
10731 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10732 eval 'as_fn_arith ()
10739 as_val=`expr "$@" || test $? -eq 1`
10744 if expr a : '\(a\)' >/dev/null 2>&1 &&
10745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10752 as_basename=basename
10757 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10763 as_me=`$as_basename -- "$0" ||
10764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10765 X"$0" : 'X\(//\)$' \| \
10766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10768 sed '/^.*\/\([^/][^/]*\)\/*$/{
10782 # Avoid depending upon Character Ranges.
10783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10786 as_cr_digits='0123456789'
10787 as_cr_alnum=$as_cr_Letters$as_cr_digits
10789 ECHO_C= ECHO_N= ECHO_T=
10790 case `echo -n x` in #(((((
10792 case `echo 'xy\c'` in
10793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10795 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10802 rm -f conf$$ conf$$.exe conf$$.file
10803 if test -d conf$$.dir; then
10804 rm -f conf$$.dir/conf$$.file
10807 mkdir conf$$.dir 2>/dev/null
10809 if (echo >conf$$.file) 2>/dev/null; then
10810 if ln -s conf$$.file conf$$ 2>/dev/null; then
10812 # ... but there are two gotchas:
10813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10815 # In both cases, we have to default to `cp -p'.
10816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10818 elif ln conf$$.file conf$$ 2>/dev/null; then
10826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10827 rmdir conf$$.dir 2>/dev/null
10832 # Create "$as_dir" as a directory, including parents if necessary.
10837 -*) as_dir=./$as_dir;;
10839 test -d "$as_dir" || eval $as_mkdir_p || {
10843 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10844 *) as_qdir=$as_dir;;
10846 as_dirs="'$as_qdir' $as_dirs"
10847 as_dir=`$as_dirname -- "$as_dir" ||
10848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10849 X"$as_dir" : 'X\(//\)[^/]' \| \
10850 X"$as_dir" : 'X\(//\)$' \| \
10851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10852 $as_echo X"$as_dir" |
10853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10857 /^X\(\/\/\)[^/].*/{
10870 test -d "$as_dir" && break
10872 test -z "$as_dirs" || eval "mkdir $as_dirs"
10873 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10877 if mkdir -p . 2>/dev/null; then
10878 as_mkdir_p='mkdir -p "$as_dir"'
10880 test -d ./-p && rmdir ./-p
10884 if test -x / >/dev/null 2>&1; then
10885 as_test_x='test -x'
10887 if ls -dL / >/dev/null 2>&1; then
10894 if test -d "$1"; then
10900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10901 ???[sx]*):;;*)false;;esac;fi
10905 as_executable_p=$as_test_x
10907 # Sed expression to map a string onto a valid CPP name.
10908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10910 # Sed expression to map a string onto a valid variable name.
10911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10915 ## ----------------------------------- ##
10916 ## Main body of $CONFIG_STATUS script. ##
10917 ## ----------------------------------- ##
10919 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10922 # Save the log message, to keep $0 and so on meaningful, and to
10923 # report actual input values of CONFIG_FILES etc. instead of their
10924 # values after options handling.
10926 This file was extended by mkfontscale $as_me 1.1.0, which was
10927 generated by GNU Autoconf 2.68. Invocation command line was
10929 CONFIG_FILES = $CONFIG_FILES
10930 CONFIG_HEADERS = $CONFIG_HEADERS
10931 CONFIG_LINKS = $CONFIG_LINKS
10932 CONFIG_COMMANDS = $CONFIG_COMMANDS
10935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10940 case $ac_config_files in *"
10941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10944 case $ac_config_headers in *"
10945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10950 # Files that config.status was made for.
10951 config_files="$ac_config_files"
10952 config_headers="$ac_config_headers"
10953 config_commands="$ac_config_commands"
10957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10959 \`$as_me' instantiates files and other configuration actions
10960 from templates according to the current configuration. Unless the files
10961 and actions are specified as TAGs, all are instantiated by default.
10963 Usage: $0 [OPTION]... [TAG]...
10965 -h, --help print this help, then exit
10966 -V, --version print version number and configuration settings, then exit
10967 --config print configuration, then exit
10968 -q, --quiet, --silent
10969 do not print progress messages
10970 -d, --debug don't remove temporary files
10971 --recheck update $as_me by reconfiguring in the same conditions
10972 --file=FILE[:TEMPLATE]
10973 instantiate the configuration file FILE
10974 --header=FILE[:TEMPLATE]
10975 instantiate the configuration header FILE
10977 Configuration files:
10980 Configuration headers:
10983 Configuration commands:
10986 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10990 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10992 mkfontscale config.status 1.1.0
10993 configured by $0, generated by GNU Autoconf 2.68,
10994 with options \\"\$ac_cs_config\\"
10996 Copyright (C) 2010 Free Software Foundation, Inc.
10997 This config.status script is free software; the Free Software Foundation
10998 gives unlimited permission to copy, distribute and modify it."
11005 test -n "\$AWK" || AWK=awk
11008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11009 # The default lists apply if the user does not specify any file.
11015 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11032 # Handling of the options.
11033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11036 $as_echo "$ac_cs_version"; exit ;;
11037 --config | --confi | --conf | --con | --co | --c )
11038 $as_echo "$ac_cs_config"; exit ;;
11039 --debug | --debu | --deb | --de | --d | -d )
11041 --file | --fil | --fi | --f )
11044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11045 '') as_fn_error $? "missing file argument" ;;
11047 as_fn_append CONFIG_FILES " '$ac_optarg'"
11048 ac_need_defaults=false;;
11049 --header | --heade | --head | --hea )
11052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11054 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11055 ac_need_defaults=false;;
11057 # Conflict between --help and --header
11058 as_fn_error $? "ambiguous option: \`$1'
11059 Try \`$0 --help' for more information.";;
11060 --help | --hel | -h )
11061 $as_echo "$ac_cs_usage"; exit ;;
11062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11066 # This is an error.
11067 -*) as_fn_error $? "unrecognized option: \`$1'
11068 Try \`$0 --help' for more information." ;;
11070 *) as_fn_append ac_config_targets " $1"
11071 ac_need_defaults=false ;;
11077 ac_configure_extra_args=
11079 if $ac_cs_silent; then
11081 ac_configure_extra_args="$ac_configure_extra_args --silent"
11085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11086 if \$ac_cs_recheck; then
11087 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11089 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11090 CONFIG_SHELL='$SHELL'
11091 export CONFIG_SHELL
11096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11101 ## Running $as_me. ##
11107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11111 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11117 # Handling of arguments.
11118 for ac_config_target in $ac_config_targets
11120 case $ac_config_target in
11121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11124 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11126 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11131 # If the user did not use the arguments to specify the items to instantiate,
11132 # then the envvar interface is used. Set only those that are not.
11133 # We use the long form for the default assignment because of an extremely
11134 # bizarre bug on SunOS 4.1.3.
11135 if $ac_need_defaults; then
11136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11141 # Have a temporary directory for convenience. Make it in the build tree
11142 # simply because there is no reason against having it here, and in addition,
11143 # creating and moving files from /tmp can sometimes cause problems.
11144 # Hook for its removal unless debugging.
11145 # Note that there is a small window in which the directory will not be cleaned:
11146 # after its creation but before its name has been assigned to `$tmp'.
11150 trap 'exit_status=$?
11151 : "${ac_tmp:=$tmp}"
11152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11154 trap 'as_fn_exit 1' 1 2 13 15
11156 # Create a (secure) tmp directory for tmp files.
11159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11163 tmp=./conf$$-$RANDOM
11164 (umask 077 && mkdir "$tmp")
11165 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11168 # Set up the scripts for CONFIG_FILES section.
11169 # No need to generate them if there are no CONFIG_FILES.
11170 # This happens for instance with `./config.status config.h'.
11171 if test -n "$CONFIG_FILES"; then
11174 ac_cr=`echo X | tr X '\015'`
11175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11176 # But we know of no other shell where ac_cr would be empty at this
11177 # point, so we can use a bashism as a fallback.
11178 if test "x$ac_cr" = x; then
11179 eval ac_cr=\$\'\\r\'
11181 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11185 ac_cs_awk_cr=$ac_cr
11188 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11193 echo "cat >conf$$subs.awk <<_ACEOF" &&
11194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11196 } >conf$$subs.sh ||
11197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11200 for ac_last_try in false false false false false :; do
11201 . ./conf$$subs.sh ||
11202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11205 if test $ac_delim_n = $ac_delim_num; then
11207 elif $ac_last_try; then
11208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11213 rm -f conf$$subs.sh
11215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11220 s/^/S["/; s/!.*/"]=/
11230 s/\(.\{148\}\)..*/\1/
11232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11244 s/\(.\{148\}\)..*/\1/
11246 s/["\\]/\\&/g; s/^/"/; s/$/"/
11250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11255 ' <conf$$subs.awk | sed '
11260 ' >>$CONFIG_STATUS || ac_write_fail=1
11261 rm -f conf$$subs.awk
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11265 for (key in S) S_is_set[key] = 1
11271 nfields = split(line, field, "@")
11273 len = length(field[1])
11274 for (i = 2; i < nfields; i++) {
11276 keylen = length(key)
11277 if (S_is_set[key]) {
11279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11280 len += length(value) + length(field[++i])
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11296 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11300 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11301 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11302 # trailing colons and then remove the whole line if VPATH becomes empty
11303 # (actually we leave an empty line to preserve line numbers).
11304 if test "x$srcdir" = x.; then
11305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11324 fi # test -n "$CONFIG_FILES"
11326 # Set up the scripts for CONFIG_HEADERS section.
11327 # No need to generate them if there are no CONFIG_HEADERS.
11328 # This happens for instance with `./config.status Makefile'.
11329 if test -n "$CONFIG_HEADERS"; then
11330 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11334 # Transform confdefs.h into an awk script `defines.awk', embedded as
11335 # here-document in config.status, that substitutes the proper values into
11336 # config.h.in to produce config.h.
11338 # Create a delimiter string that does not exist in confdefs.h, to ease
11339 # handling of long lines.
11341 for ac_last_try in false false :; do
11342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11343 if test -z "$ac_tt"; then
11345 elif $ac_last_try; then
11346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11352 # For the awk script, D is an array of macro values keyed by name,
11353 # likewise P contains macro parameters if any. Preserve backslash
11354 # newline sequences.
11356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11358 s/.\{148\}/&'"$ac_delim"'/g
11361 s/^[ ]*#[ ]*define[ ][ ]*/ /
11368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11375 D["\1"]=" \3\\\\\\n"\\/p
11377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11382 s/.\{148\}/&'"$ac_delim"'/g
11387 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11390 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11392 ' <confdefs.h | sed '
11393 s/'"$ac_delim"'/"\\\
11394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 for (key in D) D_is_set[key] = 1
11400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11402 split(line, arg, " ")
11403 if (arg[1] == "#") {
11407 defundef = substr(arg[1], 2)
11410 split(mac1, mac2, "(") #)
11412 prefix = substr(line, 1, index(line, defundef) - 1)
11413 if (D_is_set[macro]) {
11414 # Preserve the white space surrounding the "#".
11415 print prefix "define", macro P[macro] D[macro]
11418 # Replace #undef with comments. This is necessary, for example,
11419 # in the case of _POSIX_SOURCE, which is predefined and required
11420 # on some systems where configure will not decide to define it.
11421 if (defundef == "undef") {
11422 print "/*", prefix defundef, macro, "*/"
11430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11432 fi # test -n "$CONFIG_HEADERS"
11435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11440 :[FHLC]) ac_mode=$ac_tag; continue;;
11442 case $ac_mode$ac_tag in
11444 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11445 :[FH]-) ac_tag=-:-;;
11446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11463 -) ac_f="$ac_tmp/stdin";;
11464 *) # Look for the file first in the build tree, then in the source tree
11465 # (if the path is not absolute). The absolute path cannot be DOS-style,
11466 # because $ac_f cannot contain `:'.
11470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11472 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11475 as_fn_append ac_file_inputs " '$ac_f'"
11478 # Let's still pretend it is `configure' which instantiates (i.e., don't
11479 # use $as_me), people would be surprised to read:
11480 # /* config.h. Generated by config.status. */
11481 configure_input='Generated from '`
11482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11484 if test x"$ac_file" != x-; then
11485 configure_input="$ac_file. $configure_input"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11487 $as_echo "$as_me: creating $ac_file" >&6;}
11489 # Neutralize special characters interpreted by sed in replacement strings.
11490 case $configure_input in #(
11491 *\&* | *\|* | *\\* )
11492 ac_sed_conf_input=`$as_echo "$configure_input" |
11493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11494 *) ac_sed_conf_input=$configure_input;;
11498 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11504 ac_dir=`$as_dirname -- "$ac_file" ||
11505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$ac_file" : 'X\(//\)[^/]' \| \
11507 X"$ac_file" : 'X\(//\)$' \| \
11508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11509 $as_echo X"$ac_file" |
11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 /^X\(\/\/\)[^/].*/{
11527 as_dir="$ac_dir"; as_fn_mkdir_p
11531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11534 # A ".." for each directory in $ac_dir_suffix.
11535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11536 case $ac_top_builddir_sub in
11537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11541 ac_abs_top_builddir=$ac_pwd
11542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11543 # for backward compatibility:
11544 ac_top_builddir=$ac_top_build_prefix
11547 .) # We are building in place.
11549 ac_top_srcdir=$ac_top_builddir_sub
11550 ac_abs_top_srcdir=$ac_pwd ;;
11551 [\\/]* | ?:[\\/]* ) # Absolute name.
11552 ac_srcdir=$srcdir$ac_dir_suffix;
11553 ac_top_srcdir=$srcdir
11554 ac_abs_top_srcdir=$srcdir ;;
11555 *) # Relative name.
11556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11557 ac_top_srcdir=$ac_top_build_prefix$srcdir
11558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11573 ac_MKDIR_P=$MKDIR_P
11575 [\\/$]* | ?:[\\/]* ) ;;
11576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11581 # If the template does not know about datarootdir, expand it.
11582 # FIXME: This hack should be removed a few years after 2.60.
11583 ac_datarootdir_hack=; ac_datarootdir_seen=
11594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11595 *datarootdir*) ac_datarootdir_seen=yes;;
11596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11598 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601 ac_datarootdir_hack='
11602 s&@datadir@&$datadir&g
11603 s&@docdir@&$docdir&g
11604 s&@infodir@&$infodir&g
11605 s&@localedir@&$localedir&g
11606 s&@mandir@&$mandir&g
11607 s&\\\${datarootdir}&$datarootdir&g' ;;
11611 # Neutralize VPATH when `$srcdir' = `.'.
11612 # Shell code in configure.ac might set extrasub.
11613 # FIXME: do we really want to maintain this feature?
11614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11615 ac_sed_extra="$ac_vpsub
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11621 s|@configure_input@|$ac_sed_conf_input|;t t
11622 s&@top_builddir@&$ac_top_builddir_sub&;t t
11623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11624 s&@srcdir@&$ac_srcdir&;t t
11625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11626 s&@top_srcdir@&$ac_top_srcdir&;t t
11627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11628 s&@builddir@&$ac_builddir&;t t
11629 s&@abs_builddir@&$ac_abs_builddir&;t t
11630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11631 s&@INSTALL@&$ac_INSTALL&;t t
11632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11633 $ac_datarootdir_hack
11635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11641 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11643 which seems to be undefined. Please make sure it is defined" >&5
11644 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11645 which seems to be undefined. Please make sure it is defined" >&2;}
11647 rm -f "$ac_tmp/stdin"
11649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11658 if test x"$ac_file" != x-; then
11660 $as_echo "/* $configure_input */" \
11661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11662 } >"$ac_tmp/config.h" \
11663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11666 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11669 mv "$ac_tmp/config.h" "$ac_file" \
11670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11673 $as_echo "/* $configure_input */" \
11674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11675 || as_fn_error $? "could not create -" "$LINENO" 5
11677 # Compute "$ac_file"'s index in $config_headers.
11680 for _am_header in $config_headers :; do
11681 case $_am_header in
11682 $_am_arg | $_am_arg:* )
11685 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11688 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11689 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11690 X"$_am_arg" : 'X\(//\)[^/]' \| \
11691 X"$_am_arg" : 'X\(//\)$' \| \
11692 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11693 $as_echo X"$_am_arg" |
11694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11698 /^X\(\/\/\)[^/].*/{
11710 s/.*/./; q'`/stamp-h$_am_stamp_count
11713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11714 $as_echo "$as_me: executing $ac_file commands" >&6;}
11719 case $ac_file$ac_mode in
11720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11721 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11722 # are listed without --file. Let's play safe and only enable the eval
11723 # if we detect the quoting.
11724 case $CONFIG_FILES in
11725 *\'*) eval set x "$CONFIG_FILES" ;;
11726 *) set x $CONFIG_FILES ;;
11731 # Strip MF so we end up with the name of the file.
11732 mf=`echo "$mf" | sed -e 's/:.*$//'`
11733 # Check whether this is an Automake generated Makefile or not.
11734 # We used to match only the files named `Makefile.in', but
11735 # some people rename them; so instead we look at the file content.
11736 # Grep'ing the first line is not enough: some people post-process
11737 # each Makefile.in and add a new line on top of each file to say so.
11738 # Grep'ing the whole file is not good either: AIX grep has a line
11739 # limit of 2048, but all sed's we know have understand at least 4000.
11740 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11741 dirpart=`$as_dirname -- "$mf" ||
11742 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11743 X"$mf" : 'X\(//\)[^/]' \| \
11744 X"$mf" : 'X\(//\)$' \| \
11745 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751 /^X\(\/\/\)[^/].*/{
11767 # Extract the definition of DEPDIR, am__include, and am__quote
11768 # from the Makefile without running `make'.
11769 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11770 test -z "$DEPDIR" && continue
11771 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11772 test -z "am__include" && continue
11773 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11774 # When using ansi2knr, U may be empty or an underscore; expand it
11775 U=`sed -n 's/^U = //p' < "$mf"`
11776 # Find all dependency output files, they are included files with
11777 # $(DEPDIR) in their names. We invoke sed twice because it is the
11778 # simplest approach to changing $(DEPDIR) to its actual value in the
11780 for file in `sed -n "
11781 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11782 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11783 # Make sure the directory exists.
11784 test -f "$dirpart/$file" && continue
11785 fdir=`$as_dirname -- "$file" ||
11786 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11787 X"$file" : 'X\(//\)[^/]' \| \
11788 X"$file" : 'X\(//\)$' \| \
11789 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11790 $as_echo X"$file" |
11791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11795 /^X\(\/\/\)[^/].*/{
11808 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11809 # echo "creating $dirpart/$file"
11810 echo '# dummy' > "$dirpart/$file"
11822 ac_clean_files=$ac_clean_files_save
11824 test $ac_write_fail = 0 ||
11825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11828 # configure is writing to config.log, and then calls config.status.
11829 # config.status does its own redirection, appending to config.log.
11830 # Unfortunately, on DOS this fails, as config.log is still kept open
11831 # by configure, so config.status won't be able to write to it; its
11832 # output is simply discarded. So we exec the FD to /dev/null,
11833 # effectively closing config.log, so it can be properly (re)opened and
11834 # appended to by config.status. When coming back to configure, we
11835 # need to make the FD available again.
11836 if test "$no_create" != yes; then
11838 ac_config_status_args=
11839 test "$silent" = yes &&
11840 ac_config_status_args="$ac_config_status_args --quiet"
11842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11845 # would make configure fail if this is the last instruction.
11846 $ac_cs_success || as_fn_exit 1
11848 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11850 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}