configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xorgproto 2021.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560 as_awk_strverscmp='
561 # Use only awk features that work with 7th edition Unix awk (1978).
562 # My, what an old awk you have, Mr. Solaris!
563 END {
564 while (length(v1) && length(v2)) {
565 # Set d1 to be the next thing to compare from v1, and likewise for d2.
566 # Normally this is a single character, but if v1 and v2 contain digits,
567 # compare them as integers and fractions as strverscmp does.
568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569 # Split v1 and v2 into their leading digit string components d1 and d2,
570 # and advance v1 and v2 past the leading digit strings.
571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575 if (d1 ~ /^0/) {
576 if (d2 ~ /^0/) {
577 # Compare two fractions.
578 while (d1 ~ /^0/ && d2 ~ /^0/) {
579 d1 = substr(d1, 2); len1--
580 d2 = substr(d2, 2); len2--
581 }
582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583 # The two components differ in length, and the common prefix
584 # contains only leading zeros. Consider the longer to be less.
585 d1 = -len1
586 d2 = -len2
587 } else {
588 # Otherwise, compare as strings.
589 d1 = "x" d1
590 d2 = "x" d2
591 }
592 } else {
593 # A fraction is less than an integer.
594 exit 1
595 }
596 } else {
597 if (d2 ~ /^0/) {
598 # An integer is greater than a fraction.
599 exit 2
600 } else {
601 # Compare two integers.
602 d1 += 0
603 d2 += 0
604 }
605 }
606 } else {
607 # The normal case, without worrying about digits.
608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610 }
611 if (d1 < d2) exit 1
612 if (d1 > d2) exit 2
613 }
614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615 # which mishandles some comparisons of empty strings to integers.
616 if (length(v2)) exit 1
617 if (length(v1)) exit 2
618 }
619 '
620
621 test -n "$DJDIR" || exec 7<&0 </dev/null
622 exec 6>&1
623
624 # Name of the host.
625 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626 # so uname gets run too.
627 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629 #
630 # Initializations.
631 #
632 ac_default_prefix=/usr/local
633 ac_clean_files=
634 ac_config_libobj_dir=.
635 LIBOBJS=
636 cross_compiling=no
637 subdirs=
638 MFLAGS=
639 MAKEFLAGS=
640
641 # Identity of this package.
642 PACKAGE_NAME='xorgproto'
643 PACKAGE_TARNAME='xorgproto'
644 PACKAGE_VERSION='2021.5'
645 PACKAGE_STRING='xorgproto 2021.5'
646 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues'
647 PACKAGE_URL=''
648
649 # Factoring default headers for most tests.
650 ac_includes_default="\
651 #include <stdio.h>
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef STDC_HEADERS
659 # include <stdlib.h>
660 # include <stddef.h>
661 #else
662 # ifdef HAVE_STDLIB_H
663 # include <stdlib.h>
664 # endif
665 #endif
666 #ifdef HAVE_STRING_H
667 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
668 # include <memory.h>
669 # endif
670 # include <string.h>
671 #endif
672 #ifdef HAVE_STRINGS_H
673 # include <strings.h>
674 #endif
675 #ifdef HAVE_INTTYPES_H
676 # include <inttypes.h>
677 #endif
678 #ifdef HAVE_STDINT_H
679 # include <stdint.h>
680 #endif
681 #ifdef HAVE_UNISTD_H
682 # include <unistd.h>
683 #endif"
684
685 ac_subst_vars='am__EXEEXT_FALSE
686 am__EXEEXT_TRUE
687 LTLIBOBJS
688 LIBOBJS
689 USE_FDS_BITS
690 LEGACY_FALSE
691 LEGACY_TRUE
692 HAVE_PYTHON_FALSE
693 HAVE_PYTHON_TRUE
694 pkgpyexecdir
695 pyexecdir
696 pkgpythondir
697 pythondir
698 PYTHON_PLATFORM
699 PYTHON_EXEC_PREFIX
700 PYTHON_PREFIX
701 PYTHON_VERSION
702 PYTHON
703 HAVE_STYLESHEETS_FALSE
704 HAVE_STYLESHEETS_TRUE
705 XSL_STYLESHEET
706 STYLESHEET_SRCDIR
707 XORG_SGML_PATH
708 HAVE_XSLTPROC_FALSE
709 HAVE_XSLTPROC_TRUE
710 XSLTPROC
711 HAVE_FOP_FALSE
712 HAVE_FOP_TRUE
713 FOP
714 HAVE_XMLTO_FALSE
715 HAVE_XMLTO_TRUE
716 HAVE_XMLTO_TEXT_FALSE
717 HAVE_XMLTO_TEXT_TRUE
718 XMLTO
719 ENABLE_SPECS_FALSE
720 ENABLE_SPECS_TRUE
721 MAN_SUBSTS
722 XORG_MAN_PAGE
723 ADMIN_MAN_DIR
724 DRIVER_MAN_DIR
725 MISC_MAN_DIR
726 FILE_MAN_DIR
727 LIB_MAN_DIR
728 APP_MAN_DIR
729 ADMIN_MAN_SUFFIX
730 DRIVER_MAN_SUFFIX
731 MISC_MAN_SUFFIX
732 FILE_MAN_SUFFIX
733 LIB_MAN_SUFFIX
734 APP_MAN_SUFFIX
735 SED
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 INSTALL_CMD
745 PKG_CONFIG_LIBDIR
746 PKG_CONFIG_PATH
747 PKG_CONFIG
748 CHANGELOG_CMD
749 STRICT_CFLAGS
750 CWARNFLAGS
751 BASE_CFLAGS
752 EGREP
753 GREP
754 CPP
755 am__fastdepCC_FALSE
756 am__fastdepCC_TRUE
757 CCDEPMODE
758 am__nodep
759 AMDEPBACKSLASH
760 AMDEP_FALSE
761 AMDEP_TRUE
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 runstatedir
818 localstatedir
819 sharedstatedir
820 sysconfdir
821 datadir
822 datarootdir
823 libexecdir
824 sbindir
825 bindir
826 program_transform_name
827 prefix
828 exec_prefix
829 PACKAGE_URL
830 PACKAGE_BUGREPORT
831 PACKAGE_STRING
832 PACKAGE_VERSION
833 PACKAGE_TARNAME
834 PACKAGE_NAME
835 PATH_SEPARATOR
836 SHELL
837 am__quote'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_silent_rules
842 enable_dependency_tracking
843 enable_selective_werror
844 enable_strict_compilation
845 enable_specs
846 with_xmlto
847 with_fop
848 with_xsltproc
849 enable_legacy
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 PKG_CONFIG
861 PKG_CONFIG_PATH
862 PKG_CONFIG_LIBDIR
863 XMLTO
864 FOP
865 XSLTPROC
866 PYTHON'
867
868
869 # Initialize some variables set by options.
870 ac_init_help=
871 ac_init_version=false
872 ac_unrecognized_opts=
873 ac_unrecognized_sep=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
890
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 runstatedir='${localstatedir}/run'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
927 fi
928
929 case $ac_option in
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *=) ac_optarg= ;;
932 *) ac_optarg=yes ;;
933 esac
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
945
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
950
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
960
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
965
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
998
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -runstatedir | --runstatedir | --runstatedi | --runstated \
1159 | --runstate | --runstat | --runsta | --runst | --runs \
1160 | --run | --ru | --r)
1161 ac_prev=runstatedir ;;
1162 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1163 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1164 | --run=* | --ru=* | --r=*)
1165 runstatedir=$ac_optarg ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir runstatedir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures xorgproto 2021.5 to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of xorgproto 2021.5:";;
1489 esac
1490 cat <<\_ACEOF
1491
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --disable-selective-werror
1503 Turn off selective compiler errors. (default:
1504 enabled)
1505 --enable-strict-compilation
1506 Enable all warnings from compiler and make them
1507 errors (default: disabled)
1508 --enable-specs Enable building the specs (default: yes)
1509 --enable-legacy Install legacy protocol headers (default: false)
1510
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-xmlto Use xmlto to regenerate documentation (default:
1515 auto)
1516 --with-fop Use fop to regenerate documentation (default: auto)
1517 --with-xsltproc Use xsltproc for the transformation of XML documents
1518 (default: auto)
1519
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 XMLTO Path to xmlto command
1535 FOP Path to fop command
1536 XSLTPROC Path to xsltproc command
1537 PYTHON the Python interpreter
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 xorgproto configure 2021.5
1606 generated by GNU Autoconf 2.69
1607
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1658 # ---------------------------------------------
1659 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1660 # accordingly.
1661 ac_fn_c_check_decl ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 as_decl_name=`echo $2|sed 's/ *(.*//'`
1665 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1667 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 $4
1674 int
1675 main ()
1676 {
1677 #ifndef $as_decl_name
1678 #ifdef __cplusplus
1679 (void) $as_decl_use;
1680 #else
1681 (void) $as_decl_name;
1682 #endif
1683 #endif
1684
1685 ;
1686 return 0;
1687 }
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_decl
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists and can be compiled using the include files in
1785 # INCLUDES, setting the cache variable VAR accordingly.
1786 ac_fn_c_check_header_compile ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 eval "$3=yes"
1801 else
1802 eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_header_compile
1812
1813 # ac_fn_c_try_link LINENO
1814 # -----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_link ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext conftest$ac_exeext
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest$ac_exeext && {
1839 test "$cross_compiling" = yes ||
1840 test -x conftest$ac_exeext
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851 # interfere with the next link command; also delete a directory that is
1852 # left behind by Apple's compiler. We do this before executing the actions.
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_link
1858
1859 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862 # the include files in INCLUDES and setting the cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_header_mongrel ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if eval \${$3+:} false; then :
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 else
1877 # Is the header compilable?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879 $as_echo_n "checking $2 usability... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_header_compiler=yes
1887 else
1888 ac_header_compiler=no
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892 $as_echo "$ac_header_compiler" >&6; }
1893
1894 # Is the header present?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896 $as_echo_n "checking $2 presence... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_cpp "$LINENO"; then :
1902 ac_header_preproc=yes
1903 else
1904 ac_header_preproc=no
1905 fi
1906 rm -f conftest.err conftest.i conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908 $as_echo "$ac_header_preproc" >&6; }
1909
1910 # So? What about this header?
1911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 yes:no: )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ;;
1918 no:yes:* )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1922 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1926 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 ( $as_echo "## ------------------------------------------------------------------------- ##
1930 ## Report this to https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues ##
1931 ## ------------------------------------------------------------------------- ##"
1932 ) | sed "s/^/$as_me: WARNING: /" >&2
1933 ;;
1934 esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=\$ac_header_compiler"
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 fi
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_mongrel
1949
1950 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1951 # ----------------------------------------------------
1952 # Tries to find if the field MEMBER exists in type AGGR, after including
1953 # INCLUDES, setting cache variable VAR accordingly.
1954 ac_fn_c_check_member ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1958 $as_echo_n "checking for $2.$3... " >&6; }
1959 if eval \${$4+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $5
1965 int
1966 main ()
1967 {
1968 static $2 ac_aggr;
1969 if (ac_aggr.$3)
1970 return 0;
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 eval "$4=yes"
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $5
1981 int
1982 main ()
1983 {
1984 static $2 ac_aggr;
1985 if (sizeof ac_aggr.$3)
1986 return 0;
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$4=yes"
1993 else
1994 eval "$4=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$4
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_member
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2009
2010 It was created by xorgproto $as_me 2021.5, which was
2011 generated by GNU Autoconf 2.69. Invocation command line was
2012
2013 $ $0 $@
2014
2015 _ACEOF
2016 exec 5>>config.log
2017 {
2018 cat <<_ASUNAME
2019 ## --------- ##
2020 ## Platform. ##
2021 ## --------- ##
2022
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040 _ASUNAME
2041
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 $as_echo "PATH: $as_dir"
2048 done
2049 IFS=$as_save_IFS
2050
2051 } >&5
2052
2053 cat >&5 <<_ACEOF
2054
2055
2056 ## ----------- ##
2057 ## Core tests. ##
2058 ## ----------- ##
2059
2060 _ACEOF
2061
2062
2063 # Keep a trace of the command line.
2064 # Strip out --no-create and --no-recursion so they do not pile up.
2065 # Strip out --silent because we don't want to record it for future runs.
2066 # Also quote any args containing shell meta-characters.
2067 # Make two passes to allow for proper duplicate-argument suppression.
2068 ac_configure_args=
2069 ac_configure_args0=
2070 ac_configure_args1=
2071 ac_must_keep_next=false
2072 for ac_pass in 1 2
2073 do
2074 for ac_arg
2075 do
2076 case $ac_arg in
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2080 continue ;;
2081 *\'*)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 esac
2084 case $ac_pass in
2085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086 2)
2087 as_fn_append ac_configure_args1 " '$ac_arg'"
2088 if test $ac_must_keep_next = true; then
2089 ac_must_keep_next=false # Got value, back to normal.
2090 else
2091 case $ac_arg in
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 esac
2099 ;;
2100 -* ) ac_must_keep_next=true ;;
2101 esac
2102 fi
2103 as_fn_append ac_configure_args " '$ac_arg'"
2104 ;;
2105 esac
2106 done
2107 done
2108 { ac_configure_args0=; unset ac_configure_args0;}
2109 { ac_configure_args1=; unset ac_configure_args1;}
2110
2111 # When interrupted or exit'd, cleanup temporary files, and complete
2112 # config.log. We remove comments because anyway the quotes in there
2113 # would cause problems or look ugly.
2114 # WARNING: Use '\'' to represent an apostrophe within the trap.
2115 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116 trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
2121 $as_echo "## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##"
2124 echo
2125 # The following way of writing the cache mishandles newlines in values,
2126 (
2127 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in #(
2130 *${as_nl}*)
2131 case $ac_var in #(
2132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 esac
2135 case $ac_var in #(
2136 _ | IFS | as_nl) ;; #(
2137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138 *) { eval $ac_var=; unset $ac_var;} ;;
2139 esac ;;
2140 esac
2141 done
2142 (set) 2>&1 |
2143 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144 *${as_nl}ac_space=\ *)
2145 sed -n \
2146 "s/'\''/'\''\\\\'\'''\''/g;
2147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 ;; #(
2149 *)
2150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151 ;;
2152 esac |
2153 sort
2154 )
2155 echo
2156
2157 $as_echo "## ----------------- ##
2158 ## Output variables. ##
2159 ## ----------------- ##"
2160 echo
2161 for ac_var in $ac_subst_vars
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170
2171 if test -n "$ac_subst_files"; then
2172 $as_echo "## ------------------- ##
2173 ## File substitutions. ##
2174 ## ------------------- ##"
2175 echo
2176 for ac_var in $ac_subst_files
2177 do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 esac
2182 $as_echo "$ac_var='\''$ac_val'\''"
2183 done | sort
2184 echo
2185 fi
2186
2187 if test -s confdefs.h; then
2188 $as_echo "## ----------- ##
2189 ## confdefs.h. ##
2190 ## ----------- ##"
2191 echo
2192 cat confdefs.h
2193 echo
2194 fi
2195 test "$ac_signal" != 0 &&
2196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
2198 } >&5
2199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 exit $exit_status
2202 ' 0
2203 for ac_signal in 1 2 13 15; do
2204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205 done
2206 ac_signal=0
2207
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2210
2211 $as_echo "/* confdefs.h */" > confdefs.h
2212
2213 # Predefined preprocessor variables.
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2237 _ACEOF
2238
2239
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2242 ac_site_file1=NONE
2243 ac_site_file2=NONE
2244 if test -n "$CONFIG_SITE"; then
2245 # We do not want a PATH search for config.site.
2246 case $CONFIG_SITE in #((
2247 -*) ac_site_file1=./$CONFIG_SITE;;
2248 */*) ac_site_file1=$CONFIG_SITE;;
2249 *) ac_site_file1=./$CONFIG_SITE;;
2250 esac
2251 elif test "x$prefix" != xNONE; then
2252 ac_site_file1=$prefix/share/config.site
2253 ac_site_file2=$prefix/etc/config.site
2254 else
2255 ac_site_file1=$ac_default_prefix/share/config.site
2256 ac_site_file2=$ac_default_prefix/etc/config.site
2257 fi
2258 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259 do
2260 test "x$ac_site_file" = xNONE && continue
2261 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264 sed 's/^/| /' "$ac_site_file" >&5
2265 . "$ac_site_file" \
2266 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 as_fn_error $? "failed to load site script $ac_site_file
2269 See \`config.log' for more details" "$LINENO" 5; }
2270 fi
2271 done
2272
2273 if test -r "$cache_file"; then
2274 # Some versions of bash will fail to source /dev/null (special files
2275 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2276 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278 $as_echo "$as_me: loading cache $cache_file" >&6;}
2279 case $cache_file in
2280 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281 *) . "./$cache_file";;
2282 esac
2283 fi
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286 $as_echo "$as_me: creating cache $cache_file" >&6;}
2287 >$cache_file
2288 fi
2289
2290 # Check that the precious variables saved in the cache have kept the same
2291 # value.
2292 ac_cache_corrupted=false
2293 for ac_var in $ac_precious_vars; do
2294 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295 eval ac_new_set=\$ac_env_${ac_var}_set
2296 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297 eval ac_new_val=\$ac_env_${ac_var}_value
2298 case $ac_old_set,$ac_new_set in
2299 set,)
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2302 ac_cache_corrupted=: ;;
2303 ,set)
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2307 ,);;
2308 *)
2309 if test "x$ac_old_val" != "x$ac_new_val"; then
2310 # differences in whitespace do not lead to failure.
2311 ac_old_val_w=`echo x $ac_old_val`
2312 ac_new_val_w=`echo x $ac_new_val`
2313 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316 ac_cache_corrupted=:
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320 eval $ac_var=\$ac_old_val
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326 fi;;
2327 esac
2328 # Pass precious variables to config.status.
2329 if test "$ac_new_set" = set; then
2330 case $ac_new_val in
2331 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 *) ac_arg=$ac_var=$ac_new_val ;;
2333 esac
2334 case " $ac_configure_args " in
2335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2336 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2337 esac
2338 fi
2339 done
2340 if $ac_cache_corrupted; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2346 fi
2347 ## -------------------- ##
2348 ## Main body of script. ##
2349 ## -------------------- ##
2350
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
2358 am__api_version='1.16'
2359
2360 ac_aux_dir=
2361 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2362 if test -f "$ac_dir/install-sh"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/install-sh -c"
2365 break
2366 elif test -f "$ac_dir/install.sh"; then
2367 ac_aux_dir=$ac_dir
2368 ac_install_sh="$ac_aux_dir/install.sh -c"
2369 break
2370 elif test -f "$ac_dir/shtool"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/shtool install -c"
2373 break
2374 fi
2375 done
2376 if test -z "$ac_aux_dir"; then
2377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2378 fi
2379
2380 # These three variables are undocumented and unsupported,
2381 # and are intended to be withdrawn in a future Autoconf release.
2382 # They can cause serious problems if a builder's source tree is in a directory
2383 # whose full name contains unusual characters.
2384 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2385 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2386 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2387
2388
2389 # Find a good install program. We prefer a C program (faster),
2390 # so one script is as good as another. But avoid the broken or
2391 # incompatible versions:
2392 # SysV /etc/install, /usr/sbin/install
2393 # SunOS /usr/etc/install
2394 # IRIX /sbin/install
2395 # AIX /bin/install
2396 # AmigaOS /C/install, which installs bootblocks on floppy discs
2397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400 # OS/2's system install, which has a completely different semantic
2401 # ./install, which can be erroneously created by make from ./install.sh.
2402 # Reject install programs that cannot install multiple files.
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2404 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2405 if test -z "$INSTALL"; then
2406 if ${ac_cv_path_install+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 # Account for people who put trailing slashes in PATH elements.
2415 case $as_dir/ in #((
2416 ./ | .// | /[cC]/* | \
2417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2419 /usr/ucb/* ) ;;
2420 *)
2421 # OSF1 and SCO ODT 3.0 have their own names for install.
2422 # Don't use installbsd from OSF since it installs stuff as root
2423 # by default.
2424 for ac_prog in ginstall scoinst install; do
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2427 if test $ac_prog = install &&
2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429 # AIX install. It has an incompatible calling convention.
2430 :
2431 elif test $ac_prog = install &&
2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # program-specific install script used by HP pwplus--don't use.
2434 :
2435 else
2436 rm -rf conftest.one conftest.two conftest.dir
2437 echo one > conftest.one
2438 echo two > conftest.two
2439 mkdir conftest.dir
2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2441 test -s conftest.one && test -s conftest.two &&
2442 test -s conftest.dir/conftest.one &&
2443 test -s conftest.dir/conftest.two
2444 then
2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446 break 3
2447 fi
2448 fi
2449 fi
2450 done
2451 done
2452 ;;
2453 esac
2454
2455 done
2456 IFS=$as_save_IFS
2457
2458 rm -rf conftest.one conftest.two conftest.dir
2459
2460 fi
2461 if test "${ac_cv_path_install+set}" = set; then
2462 INSTALL=$ac_cv_path_install
2463 else
2464 # As a last resort, use the slow shell script. Don't cache a
2465 # value for INSTALL within a source directory, because that will
2466 # break other packages using the cache if that directory is
2467 # removed, or if the value is a relative name.
2468 INSTALL=$ac_install_sh
2469 fi
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2472 $as_echo "$INSTALL" >&6; }
2473
2474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475 # It thinks the first close brace ends the variable substitution.
2476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2483 $as_echo_n "checking whether build environment is sane... " >&6; }
2484 # Reject unsafe characters in $srcdir or the absolute working directory
2485 # name. Accept space and tab only in the latter.
2486 am_lf='
2487 '
2488 case `pwd` in
2489 *[\\\"\#\$\&\'\`$am_lf]*)
2490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2491 esac
2492 case $srcdir in
2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2495 esac
2496
2497 # Do 'set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503 am_has_slept=no
2504 for am_try in 1 2; do
2505 echo "timestamp, slept: $am_has_slept" > conftest.file
2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2507 if test "$*" = "X"; then
2508 # -L didn't work.
2509 set X `ls -t "$srcdir/configure" conftest.file`
2510 fi
2511 if test "$*" != "X $srcdir/configure conftest.file" \
2512 && test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514 # If neither matched, then we have a broken ls. This can happen
2515 # if, for instance, CONFIG_SHELL is bash and it inherits a
2516 # broken ls alias from the environment. This has actually
2517 # happened. Such a system could not be considered "sane".
2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2519 alias in your environment" "$LINENO" 5
2520 fi
2521 if test "$2" = conftest.file || test $am_try -eq 2; then
2522 break
2523 fi
2524 # Just in case.
2525 sleep 1
2526 am_has_slept=yes
2527 done
2528 test "$2" = conftest.file
2529 )
2530 then
2531 # Ok.
2532 :
2533 else
2534 as_fn_error $? "newly created file is older than distributed files!
2535 Check your system clock" "$LINENO" 5
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 # If we didn't sleep, we still need to ensure time stamps of config.status and
2540 # generated files are strictly newer.
2541 am_sleep_pid=
2542 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2543 ( sleep 1 ) &
2544 am_sleep_pid=$!
2545 fi
2546
2547 rm -f conftest.file
2548
2549 test "$program_prefix" != NONE &&
2550 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551 # Use a double $ so make ignores it.
2552 test "$program_suffix" != NONE &&
2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554 # Double any \ or $.
2555 # By default was `s,x,x', remove it if useless.
2556 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
2559 # Expand $ac_aux_dir to an absolute path.
2560 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2561
2562 if test x"${MISSING+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566 *)
2567 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568 esac
2569 fi
2570 # Use eval to expand $SHELL
2571 if eval "$MISSING --is-lightweight"; then
2572 am_missing_run="$MISSING "
2573 else
2574 am_missing_run=
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2576 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2577 fi
2578
2579 if test x"${install_sh+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583 *)
2584 install_sh="\${SHELL} $am_aux_dir/install-sh"
2585 esac
2586 fi
2587
2588 # Installed binaries are usually stripped using 'strip' when the user
2589 # run "make install-strip". However 'strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the 'STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_STRIP+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_STRIP"; then
2633 ac_ct_STRIP=$STRIP
2634 # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_STRIP="strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670 if test "x$ac_ct_STRIP" = x; then
2671 STRIP=":"
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 STRIP=$ac_ct_STRIP
2680 fi
2681 else
2682 STRIP="$ac_cv_prog_STRIP"
2683 fi
2684
2685 fi
2686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690 if test -z "$MKDIR_P"; then
2691 if ${ac_cv_path_mkdir+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_prog in mkdir gmkdir; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703 'mkdir (GNU coreutils) '* | \
2704 'mkdir (coreutils) '* | \
2705 'mkdir (fileutils) '4.1*)
2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707 break 3;;
2708 esac
2709 done
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715
2716 test -d ./--version && rmdir ./--version
2717 if test "${ac_cv_path_mkdir+set}" = set; then
2718 MKDIR_P="$ac_cv_path_mkdir -p"
2719 else
2720 # As a last resort, use the slow shell script. Don't cache a
2721 # value for MKDIR_P within a source directory, because that will
2722 # break other packages using the cache if that directory is
2723 # removed, or if the value is a relative name.
2724 MKDIR_P="$ac_install_sh -d"
2725 fi
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728 $as_echo "$MKDIR_P" >&6; }
2729
2730 for ac_prog in gawk mawk nawk awk
2731 do
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$AWK"; then
2740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_AWK="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 AWK=$ac_cv_prog_AWK
2760 if test -n "$AWK"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 test -n "$AWK" && break
2770 done
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774 set x ${MAKE-make}
2775 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat >conftest.make <<\_ACEOF
2780 SHELL = /bin/sh
2781 all:
2782 @echo '@@@%%%=$(MAKE)=@@@%%%'
2783 _ACEOF
2784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2785 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786 *@@@%%%=?*=@@@%%%*)
2787 eval ac_cv_prog_make_${ac_make}_set=yes;;
2788 *)
2789 eval ac_cv_prog_make_${ac_make}_set=no;;
2790 esac
2791 rm -f conftest.make
2792 fi
2793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 SET_MAKE=
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 SET_MAKE="MAKE=${MAKE-make}"
2801 fi
2802
2803 rm -rf .tst 2>/dev/null
2804 mkdir .tst 2>/dev/null
2805 if test -d .tst; then
2806 am__leading_dot=.
2807 else
2808 am__leading_dot=_
2809 fi
2810 rmdir .tst 2>/dev/null
2811
2812 # Check whether --enable-silent-rules was given.
2813 if test "${enable_silent_rules+set}" = set; then :
2814 enableval=$enable_silent_rules;
2815 fi
2816
2817 case $enable_silent_rules in # (((
2818 yes) AM_DEFAULT_VERBOSITY=0;;
2819 no) AM_DEFAULT_VERBOSITY=1;;
2820 *) AM_DEFAULT_VERBOSITY=1;;
2821 esac
2822 am_make=${MAKE-make}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2824 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2825 if ${am_cv_make_support_nested_variables+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if $as_echo 'TRUE=$(BAR$(V))
2829 BAR0=false
2830 BAR1=true
2831 V=1
2832 am__doit:
2833 @$(TRUE)
2834 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2835 am_cv_make_support_nested_variables=yes
2836 else
2837 am_cv_make_support_nested_variables=no
2838 fi
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2841 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2842 if test $am_cv_make_support_nested_variables = yes; then
2843 AM_V='$(V)'
2844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2845 else
2846 AM_V=$AM_DEFAULT_VERBOSITY
2847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2848 fi
2849 AM_BACKSLASH='\'
2850
2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853 # is not polluted with repeated "-I."
2854 am__isrc=' -I$(srcdir)'
2855 # test to see if srcdir already configured
2856 if test -f $srcdir/config.status; then
2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2858 fi
2859 fi
2860
2861 # test whether we have cygpath
2862 if test -z "$CYGPATH_W"; then
2863 if (cygpath --version) >/dev/null 2>/dev/null; then
2864 CYGPATH_W='cygpath -w'
2865 else
2866 CYGPATH_W=echo
2867 fi
2868 fi
2869
2870
2871 # Define the identity of the package.
2872 PACKAGE='xorgproto'
2873 VERSION='2021.5'
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE "$PACKAGE"
2878 _ACEOF
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define VERSION "$VERSION"
2883 _ACEOF
2884
2885 # Some tools Automake needs.
2886
2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901 # For better backward compatibility. To be removed once Automake 1.9.x
2902 # dies out for good. For more background, see:
2903 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2904 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2905 mkdir_p='$(MKDIR_P)'
2906
2907 # We need awk for the "check" target (and possibly the TAP driver). The
2908 # system "awk" is bad on some platforms.
2909 # Always define AMTAR for backward compatibility. Yes, it's still used
2910 # in the wild :-( We should find a proper way to deprecate it ...
2911 AMTAR='$${TAR-tar}'
2912
2913
2914 # We'll loop over all known methods to create a tar archive until one works.
2915 _am_tools='gnutar pax cpio none'
2916
2917 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2918
2919
2920
2921
2922
2923
2924 # POSIX will say in a future version that running "rm -f" with no argument
2925 # is OK; and we want to be able to make that assumption in our Makefile
2926 # recipes. So use an aggressive probe to check that the usage we want is
2927 # actually supported "in the wild" to an acceptable degree.
2928 # See automake bug#10828.
2929 # To make any issue more visible, cause the running configure to be aborted
2930 # by default if the 'rm' program in use doesn't match our expectations; the
2931 # user can still override this though.
2932 if rm -f && rm -fr && rm -rf; then : OK; else
2933 cat >&2 <<'END'
2934 Oops!
2935
2936 Your 'rm' program seems unable to run without file operands specified
2937 on the command line, even when the '-f' option is present. This is contrary
2938 to the behaviour of most rm programs out there, and not conforming with
2939 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2940
2941 Please tell bug-automake@gnu.org about your system, including the value
2942 of your $PATH and any error possibly output before this message. This
2943 can help us improve future automake versions.
2944
2945 END
2946 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2947 echo 'Configuration will proceed anyway, since you have set the' >&2
2948 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2949 echo >&2
2950 else
2951 cat >&2 <<'END'
2952 Aborting the configuration process, to ensure you take notice of the issue.
2953
2954 You can download and install GNU coreutils to get an 'rm' implementation
2955 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2956
2957 If you want to complete the configuration process using your problematic
2958 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2959 to "yes", and re-run configure.
2960
2961 END
2962 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2963 fi
2964 fi
2965
2966
2967 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979 DEPDIR="${am__leading_dot}deps"
2980
2981 ac_config_commands="$ac_config_commands depfiles"
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2984 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2985 cat > confinc.mk << 'END'
2986 am__doit:
2987 @echo this is the am__doit target >confinc.out
2988 .PHONY: am__doit
2989 END
2990 am__include="#"
2991 am__quote=
2992 # BSD make does it like this.
2993 echo '.include "confinc.mk" # ignored' > confmf.BSD
2994 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2995 echo 'include confinc.mk # ignored' > confmf.GNU
2996 _am_result=no
2997 for s in GNU BSD; do
2998 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2999 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 case $?:`cat confinc.out 2>/dev/null` in #(
3004 '0:this is the am__doit target') :
3005 case $s in #(
3006 BSD) :
3007 am__include='.include' am__quote='"' ;; #(
3008 *) :
3009 am__include='include' am__quote='' ;;
3010 esac ;; #(
3011 *) :
3012 ;;
3013 esac
3014 if test "$am__include" != "#"; then
3015 _am_result="yes ($s style)"
3016 break
3017 fi
3018 done
3019 rm -f confinc.* confmf.*
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3021 $as_echo "${_am_result}" >&6; }
3022
3023 # Check whether --enable-dependency-tracking was given.
3024 if test "${enable_dependency_tracking+set}" = set; then :
3025 enableval=$enable_dependency_tracking;
3026 fi
3027
3028 if test "x$enable_dependency_tracking" != xno; then
3029 am_depcomp="$ac_aux_dir/depcomp"
3030 AMDEPBACKSLASH='\'
3031 am__nodep='_no'
3032 fi
3033 if test "x$enable_dependency_tracking" != xno; then
3034 AMDEP_TRUE=
3035 AMDEP_FALSE='#'
3036 else
3037 AMDEP_TRUE='#'
3038 AMDEP_FALSE=
3039 fi
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 if test -z "$ac_cv_prog_CC"; then
3087 ac_ct_CC=$CC
3088 # Extract the first word of "gcc", so it can be a program name with args.
3089 set dummy gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="gcc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 CC=$ac_ct_CC
3134 fi
3135 else
3136 CC="$ac_cv_prog_CC"
3137 fi
3138
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="${ac_tool_prefix}cc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 fi
3180 if test -z "$CC"; then
3181 # Extract the first word of "cc", so it can be a program name with args.
3182 set dummy cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 ac_prog_rejected=no
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200 ac_prog_rejected=yes
3201 continue
3202 fi
3203 ac_cv_prog_CC="cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 if test $ac_prog_rejected = yes; then
3212 # We found a bogon in the path, so make sure we never use it.
3213 set dummy $ac_cv_prog_CC
3214 shift
3215 if test $# != 0; then
3216 # We chose a different compiler from the bogus one.
3217 # However, it has the same basename, so the bogon will be chosen
3218 # first if we set CC to just the basename; use the full file name.
3219 shift
3220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221 fi
3222 fi
3223 fi
3224 fi
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 fi
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 for ac_prog in cl.exe
3239 do
3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 test -n "$CC" && break
3278 done
3279 fi
3280 if test -z "$CC"; then
3281 ac_ct_CC=$CC
3282 for ac_prog in cl.exe
3283 do
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_CC="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 $as_echo "$ac_ct_CC" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 test -n "$ac_ct_CC" && break
3322 done
3323
3324 if test "x$ac_ct_CC" = x; then
3325 CC=""
3326 else
3327 case $cross_compiling:$ac_tool_warned in
3328 yes:)
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3334 fi
3335 fi
3336
3337 fi
3338
3339
3340 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details" "$LINENO" 5; }
3344
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347 set X $ac_compile
3348 ac_compiler=$2
3349 for ac_option in --version -v -V -qversion; do
3350 { { ac_try="$ac_compiler $ac_option >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3358 ac_status=$?
3359 if test -s conftest.err; then
3360 sed '10a\
3361 ... rest of stderr output deleted ...
3362 10q' conftest.err >conftest.er1
3363 cat conftest.er1 >&5
3364 fi
3365 rm -f conftest.er1 conftest.err
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 done
3369
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393 ac_rmfiles=
3394 for ac_file in $ac_files
3395 do
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 esac
3400 done
3401 rm -f $ac_rmfiles
3402
3403 if { { ac_try="$ac_link_default"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link_default") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf.
3419 for ac_file in $ac_files ''
3420 do
3421 test -f "$ac_file" || continue
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424 ;;
3425 [ab].out )
3426 # We found the default executable, but exeext='' is most
3427 # certainly right.
3428 break;;
3429 *.* )
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 then :; else
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 fi
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3438 # actually working.
3439 break;;
3440 * )
3441 break;;
3442 esac
3443 done
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446 else
3447 ac_file=''
3448 fi
3449 if test -z "$ac_file"; then :
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error 77 "C compiler cannot create executables
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461 $as_echo "yes" >&6; }
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3464 $as_echo_n "checking for C compiler default output file name... " >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 ac_exeext=$ac_cv_exeext
3468
3469 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3470 ac_clean_files=$ac_clean_files_save
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3472 $as_echo_n "checking for suffix of executables... " >&6; }
3473 if { { ac_try="$ac_link"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_link") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3485 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3486 # work properly (i.e., refer to `conftest.exe'), while it won't with
3487 # `rm'.
3488 for ac_file in conftest.exe conftest conftest.*; do
3489 test -f "$ac_file" || continue
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 break;;
3494 * ) break;;
3495 esac
3496 done
3497 else
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 fi
3503 rm -f conftest conftest$ac_cv_exeext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3505 $as_echo "$ac_cv_exeext" >&6; }
3506
3507 rm -f conftest.$ac_ext
3508 EXEEXT=$ac_cv_exeext
3509 ac_exeext=$EXEEXT
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 #include <stdio.h>
3513 int
3514 main ()
3515 {
3516 FILE *f = fopen ("conftest.out", "w");
3517 return ferror (f) || fclose (f) != 0;
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 ac_clean_files="$ac_clean_files conftest.out"
3524 # Check that the compiler produces executables we can run. If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3527 $as_echo_n "checking whether we are cross compiling... " >&6; }
3528 if test "$cross_compiling" != yes; then
3529 { { ac_try="$ac_link"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_link") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }
3540 if { ac_try='./conftest$ac_cv_exeext'
3541 { { case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_try") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; }; then
3551 cross_compiling=no
3552 else
3553 if test "$cross_compiling" = maybe; then
3554 cross_compiling=yes
3555 else
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot run C compiled programs.
3559 If you meant to cross compile, use \`--host'.
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565 $as_echo "$cross_compiling" >&6; }
3566
3567 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if ${ac_cv_objext+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { { ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compile") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if ${ac_cv_c_compiler_gnu+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627
3628 int
3629 main ()
3630 {
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_compiler_gnu=yes
3641 else
3642 ac_compiler_gnu=no
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3651 GCC=yes
3652 else
3653 GCC=
3654 fi
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3659 if ${ac_cv_prog_cc_g+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 ac_save_c_werror_flag=$ac_c_werror_flag
3663 ac_c_werror_flag=yes
3664 ac_cv_prog_cc_g=no
3665 CFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_g=yes
3679 else
3680 CFLAGS=""
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693
3694 else
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3696 CFLAGS="-g"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_prog_cc_g=yes
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719 $as_echo "$ac_cv_prog_cc_g" >&6; }
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
3725 else
3726 CFLAGS="-g"
3727 fi
3728 else
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737 if ${ac_cv_prog_cc_c89+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 ac_cv_prog_cc_c89=no
3741 ac_save_CC=$CC
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <stdarg.h>
3745 #include <stdio.h>
3746 struct stat;
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3751 char **p;
3752 int i;
3753 {
3754 return p[i];
3755 }
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3757 {
3758 char *s;
3759 va_list v;
3760 va_start (v,p);
3761 s = g (p, va_arg (v,int));
3762 va_end (v);
3763 return s;
3764 }
3765
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776 inside strings and character constants. */
3777 #define FOO(x) 'x'
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3786 int
3787 main ()
3788 {
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 do
3797 CC="$ac_save_CC $ac_arg"
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_c89=$ac_arg
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext
3802 test "x$ac_cv_prog_cc_c89" != "xno" && break
3803 done
3804 rm -f conftest.$ac_ext
3805 CC=$ac_save_CC
3806
3807 fi
3808 # AC_CACHE_VAL
3809 case "x$ac_cv_prog_cc_c89" in
3810 x)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812 $as_echo "none needed" >&6; } ;;
3813 xno)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815 $as_echo "unsupported" >&6; } ;;
3816 *)
3817 CC="$CC $ac_cv_prog_cc_c89"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3820 esac
3821 if test "x$ac_cv_prog_cc_c89" != xno; then :
3822
3823 fi
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3837 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3838 if ${am_cv_prog_cc_c_o+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 # Make sure it works both with $CC and with simple cc.
3853 # Following AC_PROG_CC_C_O, we do the test twice because some
3854 # compilers refuse to overwrite an existing .o file with -o,
3855 # though they will create one.
3856 am_cv_prog_cc_c_o=yes
3857 for am_i in 1 2; do
3858 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3859 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } \
3863 && test -f conftest2.$ac_objext; then
3864 : OK
3865 else
3866 am_cv_prog_cc_c_o=no
3867 break
3868 fi
3869 done
3870 rm -f core conftest*
3871 unset am_i
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3874 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3875 if test "$am_cv_prog_cc_c_o" != yes; then
3876 # Losing compiler, so override with the script.
3877 # FIXME: It is wrong to rewrite CC.
3878 # But if we don't then we get into trouble of one sort or another.
3879 # A longer-term fix would be to have automake use am__CC in this case,
3880 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3881 CC="$am_aux_dir/compile $CC"
3882 fi
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890 depcc="$CC" am_compiler_list=
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3893 $as_echo_n "checking dependency style of $depcc... " >&6; }
3894 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3898 # We make a subdir and do the tests there. Otherwise we can end up
3899 # making bogus files that we don't know about and never remove. For
3900 # instance it was reported that on HP-UX the gcc test will end up
3901 # making a dummy file named 'D' -- because '-MD' means "put the output
3902 # in D".
3903 rm -rf conftest.dir
3904 mkdir conftest.dir
3905 # Copy depcomp to subdir because otherwise we won't find it if we're
3906 # using a relative directory.
3907 cp "$am_depcomp" conftest.dir
3908 cd conftest.dir
3909 # We will build objects and dependencies in a subdirectory because
3910 # it helps to detect inapplicable dependency modes. For instance
3911 # both Tru64's cc and ICC support -MD to output dependencies as a
3912 # side effect of compilation, but ICC will put the dependencies in
3913 # the current directory while Tru64 will put them in the object
3914 # directory.
3915 mkdir sub
3916
3917 am_cv_CC_dependencies_compiler_type=none
3918 if test "$am_compiler_list" = ""; then
3919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3920 fi
3921 am__universal=false
3922 case " $depcc " in #(
3923 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3924 esac
3925
3926 for depmode in $am_compiler_list; do
3927 # Setup a source with many dependencies, because some compilers
3928 # like to wrap large dependency lists on column 80 (with \), and
3929 # we should not choose a depcomp mode which is confused by this.
3930 #
3931 # We need to recreate these files for each test, as the compiler may
3932 # overwrite some of them when testing with obscure command lines.
3933 # This happens at least with the AIX C compiler.
3934 : > sub/conftest.c
3935 for i in 1 2 3 4 5 6; do
3936 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3937 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3938 # Solaris 10 /bin/sh.
3939 echo '/* dummy */' > sub/conftst$i.h
3940 done
3941 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3942
3943 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3944 # mode. It turns out that the SunPro C++ compiler does not properly
3945 # handle '-M -o', and we need to detect this. Also, some Intel
3946 # versions had trouble with output in subdirs.
3947 am__obj=sub/conftest.${OBJEXT-o}
3948 am__minus_obj="-o $am__obj"
3949 case $depmode in
3950 gcc)
3951 # This depmode causes a compiler race in universal mode.
3952 test "$am__universal" = false || continue
3953 ;;
3954 nosideeffect)
3955 # After this tag, mechanisms are not by side-effect, so they'll
3956 # only be used when explicitly requested.
3957 if test "x$enable_dependency_tracking" = xyes; then
3958 continue
3959 else
3960 break
3961 fi
3962 ;;
3963 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3964 # This compiler won't grok '-c -o', but also, the minuso test has
3965 # not run yet. These depmodes are late enough in the game, and
3966 # so weak that their functioning should not be impacted.
3967 am__obj=conftest.${OBJEXT-o}
3968 am__minus_obj=
3969 ;;
3970 none) break ;;
3971 esac
3972 if depmode=$depmode \
3973 source=sub/conftest.c object=$am__obj \
3974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3975 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3976 >/dev/null 2>conftest.err &&
3977 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3979 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3981 # icc doesn't choke on unknown options, it will just issue warnings
3982 # or remarks (even with -Werror). So we grep stderr for any message
3983 # that says an option was ignored or not supported.
3984 # When given -MP, icc 7.0 and 7.1 complain thusly:
3985 # icc: Command line warning: ignoring option '-M'; no argument required
3986 # The diagnosis changed in icc 8.0:
3987 # icc: Command line remark: option '-MP' not supported
3988 if (grep 'ignoring option' conftest.err ||
3989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3990 am_cv_CC_dependencies_compiler_type=$depmode
3991 break
3992 fi
3993 fi
3994 done
3995
3996 cd ..
3997 rm -rf conftest.dir
3998 else
3999 am_cv_CC_dependencies_compiler_type=none
4000 fi
4001
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4004 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4005 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4006
4007 if
4008 test "x$enable_dependency_tracking" != xno \
4009 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4010 am__fastdepCC_TRUE=
4011 am__fastdepCC_FALSE='#'
4012 else
4013 am__fastdepCC_TRUE='#'
4014 am__fastdepCC_FALSE=
4015 fi
4016
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4020 if ${ac_cv_prog_cc_c99+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 ac_cv_prog_cc_c99=no
4024 ac_save_CC=$CC
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027 #include <stdarg.h>
4028 #include <stdbool.h>
4029 #include <stdlib.h>
4030 #include <wchar.h>
4031 #include <stdio.h>
4032
4033 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4034 #define debug(...) fprintf (stderr, __VA_ARGS__)
4035 #define showlist(...) puts (#__VA_ARGS__)
4036 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4037 static void
4038 test_varargs_macros (void)
4039 {
4040 int x = 1234;
4041 int y = 5678;
4042 debug ("Flag");
4043 debug ("X = %d\n", x);
4044 showlist (The first, second, and third items.);
4045 report (x>y, "x is %d but y is %d", x, y);
4046 }
4047
4048 // Check long long types.
4049 #define BIG64 18446744073709551615ull
4050 #define BIG32 4294967295ul
4051 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4052 #if !BIG_OK
4053 your preprocessor is broken;
4054 #endif
4055 #if BIG_OK
4056 #else
4057 your preprocessor is broken;
4058 #endif
4059 static long long int bignum = -9223372036854775807LL;
4060 static unsigned long long int ubignum = BIG64;
4061
4062 struct incomplete_array
4063 {
4064 int datasize;
4065 double data[];
4066 };
4067
4068 struct named_init {
4069 int number;
4070 const wchar_t *name;
4071 double average;
4072 };
4073
4074 typedef const char *ccp;
4075
4076 static inline int
4077 test_restrict (ccp restrict text)
4078 {
4079 // See if C++-style comments work.
4080 // Iterate through items via the restricted pointer.
4081 // Also check for declarations in for loops.
4082 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4083 continue;
4084 return 0;
4085 }
4086
4087 // Check varargs and va_copy.
4088 static void
4089 test_varargs (const char *format, ...)
4090 {
4091 va_list args;
4092 va_start (args, format);
4093 va_list args_copy;
4094 va_copy (args_copy, args);
4095
4096 const char *str;
4097 int number;
4098 float fnumber;
4099
4100 while (*format)
4101 {
4102 switch (*format++)
4103 {
4104 case 's': // string
4105 str = va_arg (args_copy, const char *);
4106 break;
4107 case 'd': // int
4108 number = va_arg (args_copy, int);
4109 break;
4110 case 'f': // float
4111 fnumber = va_arg (args_copy, double);
4112 break;
4113 default:
4114 break;
4115 }
4116 }
4117 va_end (args_copy);
4118 va_end (args);
4119 }
4120
4121 int
4122 main ()
4123 {
4124
4125 // Check bool.
4126 _Bool success = false;
4127
4128 // Check restrict.
4129 if (test_restrict ("String literal") == 0)
4130 success = true;
4131 char *restrict newvar = "Another string";
4132
4133 // Check varargs.
4134 test_varargs ("s, d' f .", "string", 65, 34.234);
4135 test_varargs_macros ();
4136
4137 // Check flexible array members.
4138 struct incomplete_array *ia =
4139 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4140 ia->datasize = 10;
4141 for (int i = 0; i < ia->datasize; ++i)
4142 ia->data[i] = i * 1.234;
4143
4144 // Check named initializers.
4145 struct named_init ni = {
4146 .number = 34,
4147 .name = L"Test wide string",
4148 .average = 543.34343,
4149 };
4150
4151 ni.number = 58;
4152
4153 int dynamic_array[ni.number];
4154 dynamic_array[ni.number - 1] = 543;
4155
4156 // work around unused variable warnings
4157 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4158 || dynamic_array[ni.number - 1] != 543);
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4165 do
4166 CC="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_c99=$ac_arg
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext
4171 test "x$ac_cv_prog_cc_c99" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC
4175
4176 fi
4177 # AC_CACHE_VAL
4178 case "x$ac_cv_prog_cc_c99" in
4179 x)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 $as_echo "none needed" >&6; } ;;
4182 xno)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184 $as_echo "unsupported" >&6; } ;;
4185 *)
4186 CC="$CC $ac_cv_prog_cc_c99"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4189 esac
4190 if test "x$ac_cv_prog_cc_c99" != xno; then :
4191
4192 fi
4193
4194
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4202 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4203 # On Suns, sometimes $CPP names a directory.
4204 if test -n "$CPP" && test -d "$CPP"; then
4205 CPP=
4206 fi
4207 if test -z "$CPP"; then
4208 if ${ac_cv_prog_CPP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 # Double quotes because CPP needs to be expanded
4212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 do
4214 ac_preproc_ok=false
4215 for ac_c_preproc_warn_flag in '' yes
4216 do
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #ifdef __STDC__
4226 # include <limits.h>
4227 #else
4228 # include <assert.h>
4229 #endif
4230 Syntax error
4231 _ACEOF
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233
4234 else
4235 # Broken: fails on valid input.
4236 continue
4237 fi
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4239
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <ac_nonexistent.h>
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: success on invalid input.
4248 continue
4249 else
4250 # Passes both tests.
4251 ac_preproc_ok=:
4252 break
4253 fi
4254 rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256 done
4257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258 rm -f conftest.i conftest.err conftest.$ac_ext
4259 if $ac_preproc_ok; then :
4260 break
4261 fi
4262
4263 done
4264 ac_cv_prog_CPP=$CPP
4265
4266 fi
4267 CPP=$ac_cv_prog_CPP
4268 else
4269 ac_cv_prog_CPP=$CPP
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4272 $as_echo "$CPP" >&6; }
4273 ac_preproc_ok=false
4274 for ac_c_preproc_warn_flag in '' yes
4275 do
4276 # Use a header file that comes with gcc, so configuring glibc
4277 # with a fresh cross-compiler works.
4278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279 # <limits.h> exists even on freestanding compilers.
4280 # On the NeXT, cc -E runs the code through the compiler's parser,
4281 # not just through cpp. "Syntax error" is here to catch this case.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #ifdef __STDC__
4285 # include <limits.h>
4286 #else
4287 # include <assert.h>
4288 #endif
4289 Syntax error
4290 _ACEOF
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292
4293 else
4294 # Broken: fails on valid input.
4295 continue
4296 fi
4297 rm -f conftest.err conftest.i conftest.$ac_ext
4298
4299 # OK, works on sane cases. Now check whether nonexistent headers
4300 # can be detected and how.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <ac_nonexistent.h>
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306 # Broken: success on invalid input.
4307 continue
4308 else
4309 # Passes both tests.
4310 ac_preproc_ok=:
4311 break
4312 fi
4313 rm -f conftest.err conftest.i conftest.$ac_ext
4314
4315 done
4316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317 rm -f conftest.i conftest.err conftest.$ac_ext
4318 if $ac_preproc_ok; then :
4319
4320 else
4321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4323 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4324 See \`config.log' for more details" "$LINENO" 5; }
4325 fi
4326
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4335 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4336 if ${ac_cv_path_GREP+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -z "$GREP"; then
4340 ac_path_GREP_found=false
4341 # Loop through the user's path and test for each of PROGNAME-LIST
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_prog in grep ggrep; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4350 as_fn_executable_p "$ac_path_GREP" || continue
4351 # Check for GNU ac_path_GREP and select it if it is found.
4352 # Check for GNU $ac_path_GREP
4353 case `"$ac_path_GREP" --version 2>&1` in
4354 *GNU*)
4355 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4356 *)
4357 ac_count=0
4358 $as_echo_n 0123456789 >"conftest.in"
4359 while :
4360 do
4361 cat "conftest.in" "conftest.in" >"conftest.tmp"
4362 mv "conftest.tmp" "conftest.in"
4363 cp "conftest.in" "conftest.nl"
4364 $as_echo 'GREP' >> "conftest.nl"
4365 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367 as_fn_arith $ac_count + 1 && ac_count=$as_val
4368 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4369 # Best one so far, save it but keep looking for a better one
4370 ac_cv_path_GREP="$ac_path_GREP"
4371 ac_path_GREP_max=$ac_count
4372 fi
4373 # 10*(2^10) chars as input seems more than enough
4374 test $ac_count -gt 10 && break
4375 done
4376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4377 esac
4378
4379 $ac_path_GREP_found && break 3
4380 done
4381 done
4382 done
4383 IFS=$as_save_IFS
4384 if test -z "$ac_cv_path_GREP"; then
4385 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386 fi
4387 else
4388 ac_cv_path_GREP=$GREP
4389 fi
4390
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4393 $as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP="$ac_cv_path_GREP"
4395
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4398 $as_echo_n "checking for egrep... " >&6; }
4399 if ${ac_cv_path_EGREP+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403 then ac_cv_path_EGREP="$GREP -E"
4404 else
4405 if test -z "$EGREP"; then
4406 ac_path_EGREP_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in egrep; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416 as_fn_executable_p "$ac_path_EGREP" || continue
4417 # Check for GNU ac_path_EGREP and select it if it is found.
4418 # Check for GNU $ac_path_EGREP
4419 case `"$ac_path_EGREP" --version 2>&1` in
4420 *GNU*)
4421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422 *)
4423 ac_count=0
4424 $as_echo_n 0123456789 >"conftest.in"
4425 while :
4426 do
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo 'EGREP' >> "conftest.nl"
4431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 as_fn_arith $ac_count + 1 && ac_count=$as_val
4434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_EGREP="$ac_path_EGREP"
4437 ac_path_EGREP_max=$ac_count
4438 fi
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4441 done
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443 esac
4444
4445 $ac_path_EGREP_found && break 3
4446 done
4447 done
4448 done
4449 IFS=$as_save_IFS
4450 if test -z "$ac_cv_path_EGREP"; then
4451 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452 fi
4453 else
4454 ac_cv_path_EGREP=$EGREP
4455 fi
4456
4457 fi
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4460 $as_echo "$ac_cv_path_EGREP" >&6; }
4461 EGREP="$ac_cv_path_EGREP"
4462
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4465 $as_echo_n "checking for ANSI C header files... " >&6; }
4466 if ${ac_cv_header_stdc+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <stdlib.h>
4472 #include <stdarg.h>
4473 #include <string.h>
4474 #include <float.h>
4475
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485 ac_cv_header_stdc=yes
4486 else
4487 ac_cv_header_stdc=no
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490
4491 if test $ac_cv_header_stdc = yes; then
4492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #include <string.h>
4496
4497 _ACEOF
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "memchr" >/dev/null 2>&1; then :
4500
4501 else
4502 ac_cv_header_stdc=no
4503 fi
4504 rm -f conftest*
4505
4506 fi
4507
4508 if test $ac_cv_header_stdc = yes; then
4509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <stdlib.h>
4513
4514 _ACEOF
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "free" >/dev/null 2>&1; then :
4517
4518 else
4519 ac_cv_header_stdc=no
4520 fi
4521 rm -f conftest*
4522
4523 fi
4524
4525 if test $ac_cv_header_stdc = yes; then
4526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527 if test "$cross_compiling" = yes; then :
4528 :
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <ctype.h>
4533 #include <stdlib.h>
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 #else
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4543 #endif
4544
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546 int
4547 main ()
4548 {
4549 int i;
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4553 return 2;
4554 return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_run "$LINENO"; then :
4558
4559 else
4560 ac_cv_header_stdc=no
4561 fi
4562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4563 conftest.$ac_objext conftest.beam conftest.$ac_ext
4564 fi
4565
4566 fi
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4569 $as_echo "$ac_cv_header_stdc" >&6; }
4570 if test $ac_cv_header_stdc = yes; then
4571
4572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573
4574 fi
4575
4576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4578 inttypes.h stdint.h unistd.h
4579 do :
4580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 "
4583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4584 cat >>confdefs.h <<_ACEOF
4585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586 _ACEOF
4587
4588 fi
4589
4590 done
4591
4592
4593
4594
4595
4596
4597 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4598 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4599 CLANGCC="yes"
4600 else
4601 CLANGCC="no"
4602 fi
4603
4604 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4605 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4606 INTELCC="yes"
4607 else
4608 INTELCC="no"
4609 fi
4610
4611 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4612 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4613 SUNCC="yes"
4614 else
4615 SUNCC="no"
4616 fi
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 case $PKG_CONFIG in
4636 [\\/]* | ?:[\\/]*)
4637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4638 ;;
4639 *)
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 ;;
4656 esac
4657 fi
4658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4659 if test -n "$PKG_CONFIG"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4661 $as_echo "$PKG_CONFIG" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 fi
4669 if test -z "$ac_cv_path_PKG_CONFIG"; then
4670 ac_pt_PKG_CONFIG=$PKG_CONFIG
4671 # Extract the first word of "pkg-config", so it can be a program name with args.
4672 set dummy pkg-config; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 case $ac_pt_PKG_CONFIG in
4679 [\\/]* | ?:[\\/]*)
4680 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4681 ;;
4682 *)
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 ;;
4699 esac
4700 fi
4701 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4702 if test -n "$ac_pt_PKG_CONFIG"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4704 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709
4710 if test "x$ac_pt_PKG_CONFIG" = x; then
4711 PKG_CONFIG=""
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714 yes:)
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717 ac_tool_warned=yes ;;
4718 esac
4719 PKG_CONFIG=$ac_pt_PKG_CONFIG
4720 fi
4721 else
4722 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4723 fi
4724
4725 fi
4726 if test -n "$PKG_CONFIG"; then
4727 _pkg_min_version=0.9.0
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4729 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4730 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732 $as_echo "yes" >&6; }
4733 else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 PKG_CONFIG=""
4737 fi
4738 fi
4739 # Make sure we can run config.sub.
4740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4744 $as_echo_n "checking build system type... " >&6; }
4745 if ${ac_cv_build+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 ac_build_alias=$build_alias
4749 test "x$ac_build_alias" = x &&
4750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4751 test "x$ac_build_alias" = x &&
4752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4758 $as_echo "$ac_cv_build" >&6; }
4759 case $ac_cv_build in
4760 *-*-*) ;;
4761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4762 esac
4763 build=$ac_cv_build
4764 ac_save_IFS=$IFS; IFS='-'
4765 set x $ac_cv_build
4766 shift
4767 build_cpu=$1
4768 build_vendor=$2
4769 shift; shift
4770 # Remember, the first character of IFS is used to create $*,
4771 # except with old shells:
4772 build_os=$*
4773 IFS=$ac_save_IFS
4774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4775
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4778 $as_echo_n "checking host system type... " >&6; }
4779 if ${ac_cv_host+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test "x$host_alias" = x; then
4783 ac_cv_host=$ac_cv_build
4784 else
4785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4787 fi
4788
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4791 $as_echo "$ac_cv_host" >&6; }
4792 case $ac_cv_host in
4793 *-*-*) ;;
4794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4795 esac
4796 host=$ac_cv_host
4797 ac_save_IFS=$IFS; IFS='-'
4798 set x $ac_cv_host
4799 shift
4800 host_cpu=$1
4801 host_vendor=$2
4802 shift; shift
4803 # Remember, the first character of IFS is used to create $*,
4804 # except with old shells:
4805 host_os=$*
4806 IFS=$ac_save_IFS
4807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4811 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4812 if ${ac_cv_path_SED+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4816 for ac_i in 1 2 3 4 5 6 7; do
4817 ac_script="$ac_script$as_nl$ac_script"
4818 done
4819 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4820 { ac_script=; unset ac_script;}
4821 if test -z "$SED"; then
4822 ac_path_SED_found=false
4823 # Loop through the user's path and test for each of PROGNAME-LIST
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_prog in sed gsed; do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4832 as_fn_executable_p "$ac_path_SED" || continue
4833 # Check for GNU ac_path_SED and select it if it is found.
4834 # Check for GNU $ac_path_SED
4835 case `"$ac_path_SED" --version 2>&1` in
4836 *GNU*)
4837 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4838 *)
4839 ac_count=0
4840 $as_echo_n 0123456789 >"conftest.in"
4841 while :
4842 do
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 $as_echo '' >> "conftest.nl"
4847 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_SED_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_SED="$ac_path_SED"
4853 ac_path_SED_max=$ac_count
4854 fi
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4857 done
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861 $ac_path_SED_found && break 3
4862 done
4863 done
4864 done
4865 IFS=$as_save_IFS
4866 if test -z "$ac_cv_path_SED"; then
4867 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4868 fi
4869 else
4870 ac_cv_path_SED=$SED
4871 fi
4872
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4875 $as_echo "$ac_cv_path_SED" >&6; }
4876 SED="$ac_cv_path_SED"
4877 rm -f conftest.sed
4878
4879
4880
4881
4882
4883
4884 # Check whether --enable-selective-werror was given.
4885 if test "${enable_selective_werror+set}" = set; then :
4886 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4887 else
4888 SELECTIVE_WERROR=yes
4889 fi
4890
4891
4892
4893
4894
4895 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4896 if test "x$SUNCC" = "xyes"; then
4897 BASE_CFLAGS="-v"
4898 else
4899 BASE_CFLAGS=""
4900 fi
4901
4902 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 xorg_testset_save_CFLAGS="$CFLAGS"
4917
4918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 int i;
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 xorg_cv_cc_flag_unknown_warning_option=yes
4931 else
4932 xorg_cv_cc_flag_unknown_warning_option=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4940 fi
4941
4942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4945 fi
4946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 int i;
4955 _ACEOF
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 xorg_cv_cc_flag_unused_command_line_argument=yes
4958 else
4959 xorg_cv_cc_flag_unused_command_line_argument=no
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4966 CFLAGS="$xorg_testset_save_CFLAGS"
4967 fi
4968
4969 found="no"
4970
4971 if test $found = "no" ; then
4972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974 fi
4975
4976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4978 fi
4979
4980 CFLAGS="$CFLAGS -Wall"
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4983 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4984 cacheid=xorg_cv_cc_flag__Wall
4985 if eval \${$cacheid+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 int i;
4991 int
4992 main ()
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_link "$LINENO"; then :
5000 eval $cacheid=yes
5001 else
5002 eval $cacheid=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext \
5005 conftest$ac_exeext conftest.$ac_ext
5006 fi
5007
5008
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5010
5011 eval supported=\$$cacheid
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5013 $as_echo "$supported" >&6; }
5014 if test "$supported" = "yes" ; then
5015 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5016 found="yes"
5017 fi
5018 fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 xorg_testset_save_CFLAGS="$CFLAGS"
5035
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 int i;
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 xorg_cv_cc_flag_unknown_warning_option=yes
5049 else
5050 xorg_cv_cc_flag_unknown_warning_option=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5057 CFLAGS="$xorg_testset_save_CFLAGS"
5058 fi
5059
5060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063 fi
5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 int i;
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"; then :
5075 xorg_cv_cc_flag_unused_command_line_argument=yes
5076 else
5077 xorg_cv_cc_flag_unused_command_line_argument=no
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5084 CFLAGS="$xorg_testset_save_CFLAGS"
5085 fi
5086
5087 found="no"
5088
5089 if test $found = "no" ; then
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 fi
5093
5094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096 fi
5097
5098 CFLAGS="$CFLAGS -Wpointer-arith"
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5101 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5102 cacheid=xorg_cv_cc_flag__Wpointer_arith
5103 if eval \${$cacheid+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 int i;
5109 int
5110 main ()
5111 {
5112
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_link "$LINENO"; then :
5118 eval $cacheid=yes
5119 else
5120 eval $cacheid=no
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext \
5123 conftest$ac_exeext conftest.$ac_ext
5124 fi
5125
5126
5127 CFLAGS="$xorg_testset_save_CFLAGS"
5128
5129 eval supported=\$$cacheid
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5131 $as_echo "$supported" >&6; }
5132 if test "$supported" = "yes" ; then
5133 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5134 found="yes"
5135 fi
5136 fi
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 xorg_testset_save_CFLAGS="$CFLAGS"
5153
5154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 xorg_cv_cc_flag_unknown_warning_option=yes
5167 else
5168 xorg_cv_cc_flag_unknown_warning_option=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5175 CFLAGS="$xorg_testset_save_CFLAGS"
5176 fi
5177
5178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181 fi
5182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 int i;
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 xorg_cv_cc_flag_unused_command_line_argument=yes
5194 else
5195 xorg_cv_cc_flag_unused_command_line_argument=no
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5202 CFLAGS="$xorg_testset_save_CFLAGS"
5203 fi
5204
5205 found="no"
5206
5207 if test $found = "no" ; then
5208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210 fi
5211
5212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214 fi
5215
5216 CFLAGS="$CFLAGS -Wmissing-declarations"
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5219 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5220 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5221 if eval \${$cacheid+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 int i;
5227 int
5228 main ()
5229 {
5230
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_link "$LINENO"; then :
5236 eval $cacheid=yes
5237 else
5238 eval $cacheid=no
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
5242 fi
5243
5244
5245 CFLAGS="$xorg_testset_save_CFLAGS"
5246
5247 eval supported=\$$cacheid
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5249 $as_echo "$supported" >&6; }
5250 if test "$supported" = "yes" ; then
5251 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5252 found="yes"
5253 fi
5254 fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 xorg_testset_save_CFLAGS="$CFLAGS"
5271
5272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 int i;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 xorg_cv_cc_flag_unknown_warning_option=yes
5285 else
5286 xorg_cv_cc_flag_unknown_warning_option=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5293 CFLAGS="$xorg_testset_save_CFLAGS"
5294 fi
5295
5296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299 fi
5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 int i;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 xorg_cv_cc_flag_unused_command_line_argument=yes
5312 else
5313 xorg_cv_cc_flag_unused_command_line_argument=no
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5320 CFLAGS="$xorg_testset_save_CFLAGS"
5321 fi
5322
5323 found="no"
5324
5325 if test $found = "no" ; then
5326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328 fi
5329
5330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5332 fi
5333
5334 CFLAGS="$CFLAGS -Wformat=2"
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5337 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5338 cacheid=xorg_cv_cc_flag__Wformat_2
5339 if eval \${$cacheid+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 int i;
5345 int
5346 main ()
5347 {
5348
5349 ;
5350 return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_c_try_link "$LINENO"; then :
5354 eval $cacheid=yes
5355 else
5356 eval $cacheid=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext \
5359 conftest$ac_exeext conftest.$ac_ext
5360 fi
5361
5362
5363 CFLAGS="$xorg_testset_save_CFLAGS"
5364
5365 eval supported=\$$cacheid
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5367 $as_echo "$supported" >&6; }
5368 if test "$supported" = "yes" ; then
5369 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5370 found="yes"
5371 fi
5372 fi
5373
5374 if test $found = "no" ; then
5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377 fi
5378
5379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381 fi
5382
5383 CFLAGS="$CFLAGS -Wformat"
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5386 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5387 cacheid=xorg_cv_cc_flag__Wformat
5388 if eval \${$cacheid+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 int i;
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_link "$LINENO"; then :
5403 eval $cacheid=yes
5404 else
5405 eval $cacheid=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5409 fi
5410
5411
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414 eval supported=\$$cacheid
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416 $as_echo "$supported" >&6; }
5417 if test "$supported" = "yes" ; then
5418 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5419 found="yes"
5420 fi
5421 fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 xorg_testset_save_CFLAGS="$CFLAGS"
5440
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 int i;
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 xorg_cv_cc_flag_unknown_warning_option=yes
5454 else
5455 xorg_cv_cc_flag_unknown_warning_option=no
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5462 CFLAGS="$xorg_testset_save_CFLAGS"
5463 fi
5464
5465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468 fi
5469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 int i;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480 xorg_cv_cc_flag_unused_command_line_argument=yes
5481 else
5482 xorg_cv_cc_flag_unused_command_line_argument=no
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5489 CFLAGS="$xorg_testset_save_CFLAGS"
5490 fi
5491
5492 found="no"
5493
5494 if test $found = "no" ; then
5495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497 fi
5498
5499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 fi
5502
5503 CFLAGS="$CFLAGS -Wstrict-prototypes"
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5506 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5507 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5508 if eval \${$cacheid+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 int i;
5514 int
5515 main ()
5516 {
5517
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_link "$LINENO"; then :
5523 eval $cacheid=yes
5524 else
5525 eval $cacheid=no
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5529 fi
5530
5531
5532 CFLAGS="$xorg_testset_save_CFLAGS"
5533
5534 eval supported=\$$cacheid
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5536 $as_echo "$supported" >&6; }
5537 if test "$supported" = "yes" ; then
5538 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5539 found="yes"
5540 fi
5541 fi
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 xorg_testset_save_CFLAGS="$CFLAGS"
5558
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 int i;
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 xorg_cv_cc_flag_unknown_warning_option=yes
5572 else
5573 xorg_cv_cc_flag_unknown_warning_option=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5580 CFLAGS="$xorg_testset_save_CFLAGS"
5581 fi
5582
5583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586 fi
5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 int i;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 xorg_cv_cc_flag_unused_command_line_argument=yes
5599 else
5600 xorg_cv_cc_flag_unused_command_line_argument=no
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5607 CFLAGS="$xorg_testset_save_CFLAGS"
5608 fi
5609
5610 found="no"
5611
5612 if test $found = "no" ; then
5613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 fi
5616
5617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619 fi
5620
5621 CFLAGS="$CFLAGS -Wmissing-prototypes"
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5624 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5625 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5626 if eval \${$cacheid+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 int i;
5632 int
5633 main ()
5634 {
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_link "$LINENO"; then :
5641 eval $cacheid=yes
5642 else
5643 eval $cacheid=no
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
5647 fi
5648
5649
5650 CFLAGS="$xorg_testset_save_CFLAGS"
5651
5652 eval supported=\$$cacheid
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5654 $as_echo "$supported" >&6; }
5655 if test "$supported" = "yes" ; then
5656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5657 found="yes"
5658 fi
5659 fi
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 xorg_testset_save_CFLAGS="$CFLAGS"
5676
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int i;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 xorg_cv_cc_flag_unknown_warning_option=yes
5690 else
5691 xorg_cv_cc_flag_unknown_warning_option=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5698 CFLAGS="$xorg_testset_save_CFLAGS"
5699 fi
5700
5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704 fi
5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 int i;
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 xorg_cv_cc_flag_unused_command_line_argument=yes
5717 else
5718 xorg_cv_cc_flag_unused_command_line_argument=no
5719 fi
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5725 CFLAGS="$xorg_testset_save_CFLAGS"
5726 fi
5727
5728 found="no"
5729
5730 if test $found = "no" ; then
5731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733 fi
5734
5735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5737 fi
5738
5739 CFLAGS="$CFLAGS -Wnested-externs"
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5742 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5743 cacheid=xorg_cv_cc_flag__Wnested_externs
5744 if eval \${$cacheid+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 int i;
5750 int
5751 main ()
5752 {
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_link "$LINENO"; then :
5759 eval $cacheid=yes
5760 else
5761 eval $cacheid=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext \
5764 conftest$ac_exeext conftest.$ac_ext
5765 fi
5766
5767
5768 CFLAGS="$xorg_testset_save_CFLAGS"
5769
5770 eval supported=\$$cacheid
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772 $as_echo "$supported" >&6; }
5773 if test "$supported" = "yes" ; then
5774 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5775 found="yes"
5776 fi
5777 fi
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 xorg_testset_save_CFLAGS="$CFLAGS"
5794
5795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 int i;
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 xorg_cv_cc_flag_unknown_warning_option=yes
5808 else
5809 xorg_cv_cc_flag_unknown_warning_option=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817 fi
5818
5819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822 fi
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 int i;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"; then :
5834 xorg_cv_cc_flag_unused_command_line_argument=yes
5835 else
5836 xorg_cv_cc_flag_unused_command_line_argument=no
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5843 CFLAGS="$xorg_testset_save_CFLAGS"
5844 fi
5845
5846 found="no"
5847
5848 if test $found = "no" ; then
5849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5851 fi
5852
5853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5855 fi
5856
5857 CFLAGS="$CFLAGS -Wbad-function-cast"
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5860 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5861 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5862 if eval \${$cacheid+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int i;
5868 int
5869 main ()
5870 {
5871
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 if ac_fn_c_try_link "$LINENO"; then :
5877 eval $cacheid=yes
5878 else
5879 eval $cacheid=no
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 fi
5884
5885
5886 CFLAGS="$xorg_testset_save_CFLAGS"
5887
5888 eval supported=\$$cacheid
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5890 $as_echo "$supported" >&6; }
5891 if test "$supported" = "yes" ; then
5892 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5893 found="yes"
5894 fi
5895 fi
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911 xorg_testset_save_CFLAGS="$CFLAGS"
5912
5913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 int i;
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 xorg_cv_cc_flag_unknown_warning_option=yes
5926 else
5927 xorg_cv_cc_flag_unknown_warning_option=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5934 CFLAGS="$xorg_testset_save_CFLAGS"
5935 fi
5936
5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 fi
5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 int i;
5950 _ACEOF
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 xorg_cv_cc_flag_unused_command_line_argument=yes
5953 else
5954 xorg_cv_cc_flag_unused_command_line_argument=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5962 fi
5963
5964 found="no"
5965
5966 if test $found = "no" ; then
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 fi
5970
5971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973 fi
5974
5975 CFLAGS="$CFLAGS -Wold-style-definition"
5976
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5978 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5979 cacheid=xorg_cv_cc_flag__Wold_style_definition
5980 if eval \${$cacheid+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int i;
5986 int
5987 main ()
5988 {
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 eval $cacheid=yes
5996 else
5997 eval $cacheid=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 fi
6002
6003
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005
6006 eval supported=\$$cacheid
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6008 $as_echo "$supported" >&6; }
6009 if test "$supported" = "yes" ; then
6010 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6011 found="yes"
6012 fi
6013 fi
6014
6015 if test $found = "no" ; then
6016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018 fi
6019
6020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6022 fi
6023
6024 CFLAGS="$CFLAGS -fd"
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6027 $as_echo_n "checking if $CC supports -fd... " >&6; }
6028 cacheid=xorg_cv_cc_flag__fd
6029 if eval \${$cacheid+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 int i;
6035 int
6036 main ()
6037 {
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 eval $cacheid=yes
6045 else
6046 eval $cacheid=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 fi
6051
6052
6053 CFLAGS="$xorg_testset_save_CFLAGS"
6054
6055 eval supported=\$$cacheid
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057 $as_echo "$supported" >&6; }
6058 if test "$supported" = "yes" ; then
6059 BASE_CFLAGS="$BASE_CFLAGS -fd"
6060 found="yes"
6061 fi
6062 fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unknown_warning_option=yes
6093 else
6094 xorg_cv_cc_flag_unknown_warning_option=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6102 fi
6103
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 fi
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6120 else
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 found="no"
6132
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136 fi
6137
6138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 fi
6141
6142 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6145 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6147 if eval \${$cacheid+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 int i;
6153 int
6154 main ()
6155 {
6156
6157 ;
6158 return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162 eval $cacheid=yes
6163 else
6164 eval $cacheid=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 fi
6169
6170
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173 eval supported=\$$cacheid
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6178 found="yes"
6179 fi
6180 fi
6181
6182
6183
6184
6185
6186 # This chunk adds additional warnings that could catch undesired effects.
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 xorg_testset_save_CFLAGS="$CFLAGS"
6201
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 xorg_cv_cc_flag_unknown_warning_option=yes
6215 else
6216 xorg_cv_cc_flag_unknown_warning_option=no
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224 fi
6225
6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 fi
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 int i;
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 xorg_cv_cc_flag_unused_command_line_argument=yes
6242 else
6243 xorg_cv_cc_flag_unused_command_line_argument=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 found="no"
6254
6255 if test $found = "no" ; then
6256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 fi
6259
6260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 fi
6263
6264 CFLAGS="$CFLAGS -Wunused"
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6267 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6268 cacheid=xorg_cv_cc_flag__Wunused
6269 if eval \${$cacheid+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 int
6276 main ()
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 eval $cacheid=yes
6285 else
6286 eval $cacheid=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 fi
6291
6292
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295 eval supported=\$$cacheid
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297 $as_echo "$supported" >&6; }
6298 if test "$supported" = "yes" ; then
6299 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6300 found="yes"
6301 fi
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 xorg_testset_save_CFLAGS="$CFLAGS"
6319
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 _ACEOF
6331 if ac_fn_c_try_compile "$LINENO"; then :
6332 xorg_cv_cc_flag_unknown_warning_option=yes
6333 else
6334 xorg_cv_cc_flag_unknown_warning_option=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6341 CFLAGS="$xorg_testset_save_CFLAGS"
6342 fi
6343
6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"; then :
6359 xorg_cv_cc_flag_unused_command_line_argument=yes
6360 else
6361 xorg_cv_cc_flag_unused_command_line_argument=no
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6369 fi
6370
6371 found="no"
6372
6373 if test $found = "no" ; then
6374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 fi
6377
6378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380 fi
6381
6382 CFLAGS="$CFLAGS -Wuninitialized"
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6385 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6386 cacheid=xorg_cv_cc_flag__Wuninitialized
6387 if eval \${$cacheid+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 int
6394 main ()
6395 {
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 if ac_fn_c_try_link "$LINENO"; then :
6402 eval $cacheid=yes
6403 else
6404 eval $cacheid=no
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 fi
6409
6410
6411 CFLAGS="$xorg_testset_save_CFLAGS"
6412
6413 eval supported=\$$cacheid
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6415 $as_echo "$supported" >&6; }
6416 if test "$supported" = "yes" ; then
6417 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6418 found="yes"
6419 fi
6420 fi
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 int i;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"; then :
6450 xorg_cv_cc_flag_unknown_warning_option=yes
6451 else
6452 xorg_cv_cc_flag_unknown_warning_option=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 fi
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 xorg_cv_cc_flag_unused_command_line_argument=yes
6478 else
6479 xorg_cv_cc_flag_unused_command_line_argument=no
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6486 CFLAGS="$xorg_testset_save_CFLAGS"
6487 fi
6488
6489 found="no"
6490
6491 if test $found = "no" ; then
6492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 fi
6495
6496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6498 fi
6499
6500 CFLAGS="$CFLAGS -Wshadow"
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6503 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6504 cacheid=xorg_cv_cc_flag__Wshadow
6505 if eval \${$cacheid+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 eval $cacheid=yes
6521 else
6522 eval $cacheid=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 fi
6527
6528
6529 CFLAGS="$xorg_testset_save_CFLAGS"
6530
6531 eval supported=\$$cacheid
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6533 $as_echo "$supported" >&6; }
6534 if test "$supported" = "yes" ; then
6535 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6536 found="yes"
6537 fi
6538 fi
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 int i;
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 xorg_cv_cc_flag_unknown_warning_option=yes
6569 else
6570 xorg_cv_cc_flag_unknown_warning_option=no
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6577 CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583 fi
6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 xorg_cv_cc_flag_unused_command_line_argument=yes
6596 else
6597 xorg_cv_cc_flag_unused_command_line_argument=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6604 CFLAGS="$xorg_testset_save_CFLAGS"
6605 fi
6606
6607 found="no"
6608
6609 if test $found = "no" ; then
6610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 fi
6613
6614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6616 fi
6617
6618 CFLAGS="$CFLAGS -Wmissing-noreturn"
6619
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6621 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6622 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6623 if eval \${$cacheid+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 int
6630 main ()
6631 {
6632
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638 eval $cacheid=yes
6639 else
6640 eval $cacheid=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644 fi
6645
6646
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649 eval supported=\$$cacheid
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651 $as_echo "$supported" >&6; }
6652 if test "$supported" = "yes" ; then
6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6654 found="yes"
6655 fi
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"; then :
6686 xorg_cv_cc_flag_unknown_warning_option=yes
6687 else
6688 xorg_cv_cc_flag_unknown_warning_option=no
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 fi
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 xorg_cv_cc_flag_unused_command_line_argument=yes
6714 else
6715 xorg_cv_cc_flag_unused_command_line_argument=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723 fi
6724
6725 found="no"
6726
6727 if test $found = "no" ; then
6728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 fi
6731
6732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6734 fi
6735
6736 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6739 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6740 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6741 if eval \${$cacheid+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 int
6748 main ()
6749 {
6750
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"; then :
6756 eval $cacheid=yes
6757 else
6758 eval $cacheid=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 fi
6763
6764
6765 CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767 eval supported=\$$cacheid
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769 $as_echo "$supported" >&6; }
6770 if test "$supported" = "yes" ; then
6771 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6772 found="yes"
6773 fi
6774 fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 xorg_testset_save_CFLAGS="$CFLAGS"
6791
6792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6795 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6796 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 xorg_cv_cc_flag_unknown_warning_option=yes
6805 else
6806 xorg_cv_cc_flag_unknown_warning_option=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6811 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814 fi
6815
6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 fi
6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6822 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6823 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 int i;
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 xorg_cv_cc_flag_unused_command_line_argument=yes
6832 else
6833 xorg_cv_cc_flag_unused_command_line_argument=no
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6838 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6840 CFLAGS="$xorg_testset_save_CFLAGS"
6841 fi
6842
6843 found="no"
6844
6845 if test $found = "no" ; then
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 fi
6849
6850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852 fi
6853
6854 CFLAGS="$CFLAGS -Wredundant-decls"
6855
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6857 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6858 cacheid=xorg_cv_cc_flag__Wredundant_decls
6859 if eval \${$cacheid+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 int i;
6865 int
6866 main ()
6867 {
6868
6869 ;
6870 return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_c_try_link "$LINENO"; then :
6874 eval $cacheid=yes
6875 else
6876 eval $cacheid=no
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
6880 fi
6881
6882
6883 CFLAGS="$xorg_testset_save_CFLAGS"
6884
6885 eval supported=\$$cacheid
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6887 $as_echo "$supported" >&6; }
6888 if test "$supported" = "yes" ; then
6889 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6890 found="yes"
6891 fi
6892 fi
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908 xorg_testset_save_CFLAGS="$CFLAGS"
6909
6910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6913 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6914 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int i;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 xorg_cv_cc_flag_unknown_warning_option=yes
6923 else
6924 xorg_cv_cc_flag_unknown_warning_option=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6929 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6931 CFLAGS="$xorg_testset_save_CFLAGS"
6932 fi
6933
6934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 fi
6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6940 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6941 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 xorg_cv_cc_flag_unused_command_line_argument=yes
6950 else
6951 xorg_cv_cc_flag_unused_command_line_argument=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6956 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6958 CFLAGS="$xorg_testset_save_CFLAGS"
6959 fi
6960
6961 found="no"
6962
6963 if test $found = "no" ; then
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 fi
6967
6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970 fi
6971
6972 CFLAGS="$CFLAGS -Wlogical-op"
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6975 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6976 cacheid=xorg_cv_cc_flag__Wlogical_op
6977 if eval \${$cacheid+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 int i;
6983 int
6984 main ()
6985 {
6986
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 eval $cacheid=yes
6993 else
6994 eval $cacheid=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 fi
6999
7000
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003 eval supported=\$$cacheid
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005 $as_echo "$supported" >&6; }
7006 if test "$supported" = "yes" ; then
7007 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7008 found="yes"
7009 fi
7010 fi
7011
7012
7013
7014 # These are currently disabled because they are noisy. They will be enabled
7015 # in the future once the codebase is sufficiently modernized to silence
7016 # them. For now, I don't want them to drown out the other warnings.
7017 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7018 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7019 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7020
7021 # Turn some warnings into errors, so we don't accidently get successful builds
7022 # when there are problems that should be fixed.
7023
7024 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 xorg_testset_save_CFLAGS="$CFLAGS"
7039
7040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 int i;
7050 _ACEOF
7051 if ac_fn_c_try_compile "$LINENO"; then :
7052 xorg_cv_cc_flag_unknown_warning_option=yes
7053 else
7054 xorg_cv_cc_flag_unknown_warning_option=no
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7061 CFLAGS="$xorg_testset_save_CFLAGS"
7062 fi
7063
7064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067 fi
7068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 int i;
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"; then :
7079 xorg_cv_cc_flag_unused_command_line_argument=yes
7080 else
7081 xorg_cv_cc_flag_unused_command_line_argument=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7088 CFLAGS="$xorg_testset_save_CFLAGS"
7089 fi
7090
7091 found="no"
7092
7093 if test $found = "no" ; then
7094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7096 fi
7097
7098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100 fi
7101
7102 CFLAGS="$CFLAGS -Werror=implicit"
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7105 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7106 cacheid=xorg_cv_cc_flag__Werror_implicit
7107 if eval \${$cacheid+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 int i;
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_link "$LINENO"; then :
7122 eval $cacheid=yes
7123 else
7124 eval $cacheid=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 fi
7129
7130
7131 CFLAGS="$xorg_testset_save_CFLAGS"
7132
7133 eval supported=\$$cacheid
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7135 $as_echo "$supported" >&6; }
7136 if test "$supported" = "yes" ; then
7137 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7138 found="yes"
7139 fi
7140 fi
7141
7142 if test $found = "no" ; then
7143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 fi
7146
7147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7149 fi
7150
7151 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7154 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7155 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7156 if eval \${$cacheid+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 int
7163 main ()
7164 {
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 eval $cacheid=yes
7172 else
7173 eval $cacheid=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 fi
7178
7179
7180 CFLAGS="$xorg_testset_save_CFLAGS"
7181
7182 eval supported=\$$cacheid
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7184 $as_echo "$supported" >&6; }
7185 if test "$supported" = "yes" ; then
7186 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7187 found="yes"
7188 fi
7189 fi
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 xorg_testset_save_CFLAGS="$CFLAGS"
7206
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 int i;
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 xorg_cv_cc_flag_unknown_warning_option=yes
7220 else
7221 xorg_cv_cc_flag_unknown_warning_option=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7228 CFLAGS="$xorg_testset_save_CFLAGS"
7229 fi
7230
7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 fi
7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"; then :
7246 xorg_cv_cc_flag_unused_command_line_argument=yes
7247 else
7248 xorg_cv_cc_flag_unused_command_line_argument=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7255 CFLAGS="$xorg_testset_save_CFLAGS"
7256 fi
7257
7258 found="no"
7259
7260 if test $found = "no" ; then
7261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 fi
7264
7265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7267 fi
7268
7269 CFLAGS="$CFLAGS -Werror=nonnull"
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7272 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7273 cacheid=xorg_cv_cc_flag__Werror_nonnull
7274 if eval \${$cacheid+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 int
7281 main ()
7282 {
7283
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_link "$LINENO"; then :
7289 eval $cacheid=yes
7290 else
7291 eval $cacheid=no
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext \
7294 conftest$ac_exeext conftest.$ac_ext
7295 fi
7296
7297
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7299
7300 eval supported=\$$cacheid
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7302 $as_echo "$supported" >&6; }
7303 if test "$supported" = "yes" ; then
7304 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7305 found="yes"
7306 fi
7307 fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int i;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 xorg_cv_cc_flag_unknown_warning_option=yes
7338 else
7339 xorg_cv_cc_flag_unknown_warning_option=no
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7346 CFLAGS="$xorg_testset_save_CFLAGS"
7347 fi
7348
7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 fi
7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364 xorg_cv_cc_flag_unused_command_line_argument=yes
7365 else
7366 xorg_cv_cc_flag_unused_command_line_argument=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374 fi
7375
7376 found="no"
7377
7378 if test $found = "no" ; then
7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382
7383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7385 fi
7386
7387 CFLAGS="$CFLAGS -Werror=init-self"
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7390 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7391 cacheid=xorg_cv_cc_flag__Werror_init_self
7392 if eval \${$cacheid+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 int
7399 main ()
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 eval $cacheid=yes
7408 else
7409 eval $cacheid=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 fi
7414
7415
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418 eval supported=\$$cacheid
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420 $as_echo "$supported" >&6; }
7421 if test "$supported" = "yes" ; then
7422 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7423 found="yes"
7424 fi
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 int i;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 xorg_cv_cc_flag_unknown_warning_option=yes
7456 else
7457 xorg_cv_cc_flag_unknown_warning_option=no
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7464 CFLAGS="$xorg_testset_save_CFLAGS"
7465 fi
7466
7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 int i;
7480 _ACEOF
7481 if ac_fn_c_try_compile "$LINENO"; then :
7482 xorg_cv_cc_flag_unused_command_line_argument=yes
7483 else
7484 xorg_cv_cc_flag_unused_command_line_argument=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492 fi
7493
7494 found="no"
7495
7496 if test $found = "no" ; then
7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500
7501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 fi
7504
7505 CFLAGS="$CFLAGS -Werror=main"
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7508 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7509 cacheid=xorg_cv_cc_flag__Werror_main
7510 if eval \${$cacheid+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 int
7517 main ()
7518 {
7519
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_link "$LINENO"; then :
7525 eval $cacheid=yes
7526 else
7527 eval $cacheid=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 fi
7532
7533
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536 eval supported=\$$cacheid
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538 $as_echo "$supported" >&6; }
7539 if test "$supported" = "yes" ; then
7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7541 found="yes"
7542 fi
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 int i;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 xorg_cv_cc_flag_unknown_warning_option=yes
7574 else
7575 xorg_cv_cc_flag_unknown_warning_option=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588 fi
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 xorg_cv_cc_flag_unused_command_line_argument=yes
7601 else
7602 xorg_cv_cc_flag_unused_command_line_argument=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610 fi
7611
7612 found="no"
7613
7614 if test $found = "no" ; then
7615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 fi
7618
7619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 fi
7622
7623 CFLAGS="$CFLAGS -Werror=missing-braces"
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7626 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7627 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7628 if eval \${$cacheid+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 int
7635 main ()
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643 eval $cacheid=yes
7644 else
7645 eval $cacheid=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649 fi
7650
7651
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654 eval supported=\$$cacheid
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656 $as_echo "$supported" >&6; }
7657 if test "$supported" = "yes" ; then
7658 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7659 found="yes"
7660 fi
7661 fi
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 xorg_testset_save_CFLAGS="$CFLAGS"
7678
7679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 int i;
7689 _ACEOF
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691 xorg_cv_cc_flag_unknown_warning_option=yes
7692 else
7693 xorg_cv_cc_flag_unknown_warning_option=no
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7700 CFLAGS="$xorg_testset_save_CFLAGS"
7701 fi
7702
7703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706 fi
7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 int i;
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 xorg_cv_cc_flag_unused_command_line_argument=yes
7719 else
7720 xorg_cv_cc_flag_unused_command_line_argument=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7727 CFLAGS="$xorg_testset_save_CFLAGS"
7728 fi
7729
7730 found="no"
7731
7732 if test $found = "no" ; then
7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735 fi
7736
7737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7739 fi
7740
7741 CFLAGS="$CFLAGS -Werror=sequence-point"
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7744 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7745 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7746 if eval \${$cacheid+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7751 int i;
7752 int
7753 main ()
7754 {
7755
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 if ac_fn_c_try_link "$LINENO"; then :
7761 eval $cacheid=yes
7762 else
7763 eval $cacheid=no
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7767 fi
7768
7769
7770 CFLAGS="$xorg_testset_save_CFLAGS"
7771
7772 eval supported=\$$cacheid
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7774 $as_echo "$supported" >&6; }
7775 if test "$supported" = "yes" ; then
7776 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7777 found="yes"
7778 fi
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 xorg_testset_save_CFLAGS="$CFLAGS"
7796
7797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 int i;
7807 _ACEOF
7808 if ac_fn_c_try_compile "$LINENO"; then :
7809 xorg_cv_cc_flag_unknown_warning_option=yes
7810 else
7811 xorg_cv_cc_flag_unknown_warning_option=no
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7818 CFLAGS="$xorg_testset_save_CFLAGS"
7819 fi
7820
7821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7824 fi
7825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"; then :
7836 xorg_cv_cc_flag_unused_command_line_argument=yes
7837 else
7838 xorg_cv_cc_flag_unused_command_line_argument=no
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7845 CFLAGS="$xorg_testset_save_CFLAGS"
7846 fi
7847
7848 found="no"
7849
7850 if test $found = "no" ; then
7851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853 fi
7854
7855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857 fi
7858
7859 CFLAGS="$CFLAGS -Werror=return-type"
7860
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7862 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7863 cacheid=xorg_cv_cc_flag__Werror_return_type
7864 if eval \${$cacheid+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 int i;
7870 int
7871 main ()
7872 {
7873
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 eval $cacheid=yes
7880 else
7881 eval $cacheid=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 fi
7886
7887
7888 CFLAGS="$xorg_testset_save_CFLAGS"
7889
7890 eval supported=\$$cacheid
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7892 $as_echo "$supported" >&6; }
7893 if test "$supported" = "yes" ; then
7894 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7895 found="yes"
7896 fi
7897 fi
7898
7899 if test $found = "no" ; then
7900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 fi
7903
7904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906 fi
7907
7908 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7909
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7911 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7912 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7913 if eval \${$cacheid+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 int i;
7919 int
7920 main ()
7921 {
7922
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 eval $cacheid=yes
7929 else
7930 eval $cacheid=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 fi
7935
7936
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938
7939 eval supported=\$$cacheid
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7941 $as_echo "$supported" >&6; }
7942 if test "$supported" = "yes" ; then
7943 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7944 found="yes"
7945 fi
7946 fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962 xorg_testset_save_CFLAGS="$CFLAGS"
7963
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976 xorg_cv_cc_flag_unknown_warning_option=yes
7977 else
7978 xorg_cv_cc_flag_unknown_warning_option=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 int i;
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003 xorg_cv_cc_flag_unused_command_line_argument=yes
8004 else
8005 xorg_cv_cc_flag_unused_command_line_argument=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8012 CFLAGS="$xorg_testset_save_CFLAGS"
8013 fi
8014
8015 found="no"
8016
8017 if test $found = "no" ; then
8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 fi
8021
8022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024 fi
8025
8026 CFLAGS="$CFLAGS -Werror=trigraphs"
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8029 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8030 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8031 if eval \${$cacheid+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 int
8038 main ()
8039 {
8040
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"; then :
8046 eval $cacheid=yes
8047 else
8048 eval $cacheid=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 fi
8053
8054
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057 eval supported=\$$cacheid
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059 $as_echo "$supported" >&6; }
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8062 found="yes"
8063 fi
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 xorg_cv_cc_flag_unknown_warning_option=yes
8095 else
8096 xorg_cv_cc_flag_unknown_warning_option=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8103 CFLAGS="$xorg_testset_save_CFLAGS"
8104 fi
8105
8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 fi
8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"; then :
8121 xorg_cv_cc_flag_unused_command_line_argument=yes
8122 else
8123 xorg_cv_cc_flag_unused_command_line_argument=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8130 CFLAGS="$xorg_testset_save_CFLAGS"
8131 fi
8132
8133 found="no"
8134
8135 if test $found = "no" ; then
8136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 fi
8139
8140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142 fi
8143
8144 CFLAGS="$CFLAGS -Werror=array-bounds"
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8147 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8148 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8149 if eval \${$cacheid+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 int
8156 main ()
8157 {
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164 eval $cacheid=yes
8165 else
8166 eval $cacheid=no
8167 fi
8168 rm -f core conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 fi
8171
8172
8173 CFLAGS="$xorg_testset_save_CFLAGS"
8174
8175 eval supported=\$$cacheid
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8177 $as_echo "$supported" >&6; }
8178 if test "$supported" = "yes" ; then
8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8180 found="yes"
8181 fi
8182 fi
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 xorg_testset_save_CFLAGS="$CFLAGS"
8199
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int i;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 xorg_cv_cc_flag_unknown_warning_option=yes
8213 else
8214 xorg_cv_cc_flag_unknown_warning_option=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 fi
8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 xorg_cv_cc_flag_unused_command_line_argument=yes
8240 else
8241 xorg_cv_cc_flag_unused_command_line_argument=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8249 fi
8250
8251 found="no"
8252
8253 if test $found = "no" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257
8258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 fi
8261
8262 CFLAGS="$CFLAGS -Werror=write-strings"
8263
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8265 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8266 cacheid=xorg_cv_cc_flag__Werror_write_strings
8267 if eval \${$cacheid+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 int
8274 main ()
8275 {
8276
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 eval $cacheid=yes
8283 else
8284 eval $cacheid=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext \
8287 conftest$ac_exeext conftest.$ac_ext
8288 fi
8289
8290
8291 CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293 eval supported=\$$cacheid
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295 $as_echo "$supported" >&6; }
8296 if test "$supported" = "yes" ; then
8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8298 found="yes"
8299 fi
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 int i;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 xorg_cv_cc_flag_unknown_warning_option=yes
8331 else
8332 xorg_cv_cc_flag_unknown_warning_option=no
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8339 CFLAGS="$xorg_testset_save_CFLAGS"
8340 fi
8341
8342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345 fi
8346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 int i;
8355 _ACEOF
8356 if ac_fn_c_try_compile "$LINENO"; then :
8357 xorg_cv_cc_flag_unused_command_line_argument=yes
8358 else
8359 xorg_cv_cc_flag_unused_command_line_argument=no
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8366 CFLAGS="$xorg_testset_save_CFLAGS"
8367 fi
8368
8369 found="no"
8370
8371 if test $found = "no" ; then
8372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374 fi
8375
8376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378 fi
8379
8380 CFLAGS="$CFLAGS -Werror=address"
8381
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8383 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8384 cacheid=xorg_cv_cc_flag__Werror_address
8385 if eval \${$cacheid+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 int i;
8391 int
8392 main ()
8393 {
8394
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_link "$LINENO"; then :
8400 eval $cacheid=yes
8401 else
8402 eval $cacheid=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 fi
8407
8408
8409 CFLAGS="$xorg_testset_save_CFLAGS"
8410
8411 eval supported=\$$cacheid
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8413 $as_echo "$supported" >&6; }
8414 if test "$supported" = "yes" ; then
8415 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8416 found="yes"
8417 fi
8418 fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 xorg_testset_save_CFLAGS="$CFLAGS"
8435
8436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 int i;
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448 xorg_cv_cc_flag_unknown_warning_option=yes
8449 else
8450 xorg_cv_cc_flag_unknown_warning_option=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8457 CFLAGS="$xorg_testset_save_CFLAGS"
8458 fi
8459
8460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463 fi
8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 int i;
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 xorg_cv_cc_flag_unused_command_line_argument=yes
8476 else
8477 xorg_cv_cc_flag_unused_command_line_argument=no
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8484 CFLAGS="$xorg_testset_save_CFLAGS"
8485 fi
8486
8487 found="no"
8488
8489 if test $found = "no" ; then
8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492 fi
8493
8494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496 fi
8497
8498 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8501 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8502 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8503 if eval \${$cacheid+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 int i;
8509 int
8510 main ()
8511 {
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 eval $cacheid=yes
8519 else
8520 eval $cacheid=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524 fi
8525
8526
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528
8529 eval supported=\$$cacheid
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8531 $as_echo "$supported" >&6; }
8532 if test "$supported" = "yes" ; then
8533 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8534 found="yes"
8535 fi
8536 fi
8537
8538 if test $found = "no" ; then
8539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8541 fi
8542
8543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8545 fi
8546
8547 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8550 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8551 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8552 if eval \${$cacheid+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 int i;
8558 int
8559 main ()
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"; then :
8567 eval $cacheid=yes
8568 else
8569 eval $cacheid=no
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8573 fi
8574
8575
8576 CFLAGS="$xorg_testset_save_CFLAGS"
8577
8578 eval supported=\$$cacheid
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8580 $as_echo "$supported" >&6; }
8581 if test "$supported" = "yes" ; then
8582 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8583 found="yes"
8584 fi
8585 fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601 xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else
8617 xorg_cv_cc_flag_unknown_warning_option=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 else
8644 xorg_cv_cc_flag_unused_command_line_argument=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 found="no"
8655
8656 if test $found = "no" ; then
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 fi
8664
8665 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8668 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8669 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8670 if eval \${$cacheid+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 int i;
8676 int
8677 main ()
8678 {
8679
8680 ;
8681 return 0;
8682 }
8683 _ACEOF
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 eval $cacheid=yes
8686 else
8687 eval $cacheid=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 fi
8692
8693
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695
8696 eval supported=\$$cacheid
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8698 $as_echo "$supported" >&6; }
8699 if test "$supported" = "yes" ; then
8700 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8701 found="yes"
8702 fi
8703 fi
8704
8705 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8706 else
8707 { $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
8708 $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;}
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 xorg_testset_save_CFLAGS="$CFLAGS"
8723
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 xorg_cv_cc_flag_unknown_warning_option=yes
8737 else
8738 xorg_cv_cc_flag_unknown_warning_option=no
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8745 CFLAGS="$xorg_testset_save_CFLAGS"
8746 fi
8747
8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 fi
8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 xorg_cv_cc_flag_unused_command_line_argument=yes
8764 else
8765 xorg_cv_cc_flag_unused_command_line_argument=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773 fi
8774
8775 found="no"
8776
8777 if test $found = "no" ; then
8778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 fi
8781
8782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8784 fi
8785
8786 CFLAGS="$CFLAGS -Wimplicit"
8787
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8789 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8790 cacheid=xorg_cv_cc_flag__Wimplicit
8791 if eval \${$cacheid+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 int
8798 main ()
8799 {
8800
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 eval $cacheid=yes
8807 else
8808 eval $cacheid=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 fi
8813
8814
8815 CFLAGS="$xorg_testset_save_CFLAGS"
8816
8817 eval supported=\$$cacheid
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8819 $as_echo "$supported" >&6; }
8820 if test "$supported" = "yes" ; then
8821 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8822 found="yes"
8823 fi
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 xorg_testset_save_CFLAGS="$CFLAGS"
8841
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"; then :
8854 xorg_cv_cc_flag_unknown_warning_option=yes
8855 else
8856 xorg_cv_cc_flag_unknown_warning_option=no
8857 fi
8858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8863 CFLAGS="$xorg_testset_save_CFLAGS"
8864 fi
8865
8866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869 fi
8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int i;
8879 _ACEOF
8880 if ac_fn_c_try_compile "$LINENO"; then :
8881 xorg_cv_cc_flag_unused_command_line_argument=yes
8882 else
8883 xorg_cv_cc_flag_unused_command_line_argument=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891 fi
8892
8893 found="no"
8894
8895 if test $found = "no" ; then
8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 fi
8899
8900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902 fi
8903
8904 CFLAGS="$CFLAGS -Wnonnull"
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8907 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8908 cacheid=xorg_cv_cc_flag__Wnonnull
8909 if eval \${$cacheid+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 int
8916 main ()
8917 {
8918
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 eval $cacheid=yes
8925 else
8926 eval $cacheid=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 fi
8931
8932
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934
8935 eval supported=\$$cacheid
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8937 $as_echo "$supported" >&6; }
8938 if test "$supported" = "yes" ; then
8939 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8940 found="yes"
8941 fi
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 xorg_testset_save_CFLAGS="$CFLAGS"
8959
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 xorg_cv_cc_flag_unknown_warning_option=yes
8973 else
8974 xorg_cv_cc_flag_unknown_warning_option=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987 fi
8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 xorg_cv_cc_flag_unused_command_line_argument=yes
9000 else
9001 xorg_cv_cc_flag_unused_command_line_argument=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9008 CFLAGS="$xorg_testset_save_CFLAGS"
9009 fi
9010
9011 found="no"
9012
9013 if test $found = "no" ; then
9014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 fi
9017
9018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9020 fi
9021
9022 CFLAGS="$CFLAGS -Winit-self"
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9025 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9026 cacheid=xorg_cv_cc_flag__Winit_self
9027 if eval \${$cacheid+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 int
9034 main ()
9035 {
9036
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 eval $cacheid=yes
9043 else
9044 eval $cacheid=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 fi
9049
9050
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053 eval supported=\$$cacheid
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055 $as_echo "$supported" >&6; }
9056 if test "$supported" = "yes" ; then
9057 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9058 found="yes"
9059 fi
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 int i;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 xorg_cv_cc_flag_unknown_warning_option=yes
9091 else
9092 xorg_cv_cc_flag_unknown_warning_option=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9099 CFLAGS="$xorg_testset_save_CFLAGS"
9100 fi
9101
9102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105 fi
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 int i;
9115 _ACEOF
9116 if ac_fn_c_try_compile "$LINENO"; then :
9117 xorg_cv_cc_flag_unused_command_line_argument=yes
9118 else
9119 xorg_cv_cc_flag_unused_command_line_argument=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127 fi
9128
9129 found="no"
9130
9131 if test $found = "no" ; then
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135
9136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 fi
9139
9140 CFLAGS="$CFLAGS -Wmain"
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9143 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9144 cacheid=xorg_cv_cc_flag__Wmain
9145 if eval \${$cacheid+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 eval $cacheid=yes
9161 else
9162 eval $cacheid=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 fi
9167
9168
9169 CFLAGS="$xorg_testset_save_CFLAGS"
9170
9171 eval supported=\$$cacheid
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9173 $as_echo "$supported" >&6; }
9174 if test "$supported" = "yes" ; then
9175 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9176 found="yes"
9177 fi
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194 xorg_testset_save_CFLAGS="$CFLAGS"
9195
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 int i;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 xorg_cv_cc_flag_unknown_warning_option=yes
9209 else
9210 xorg_cv_cc_flag_unknown_warning_option=no
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9217 CFLAGS="$xorg_testset_save_CFLAGS"
9218 fi
9219
9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"; then :
9235 xorg_cv_cc_flag_unused_command_line_argument=yes
9236 else
9237 xorg_cv_cc_flag_unused_command_line_argument=no
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 found="no"
9248
9249 if test $found = "no" ; then
9250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253
9254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 fi
9257
9258 CFLAGS="$CFLAGS -Wmissing-braces"
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9261 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9262 cacheid=xorg_cv_cc_flag__Wmissing_braces
9263 if eval \${$cacheid+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 int
9270 main ()
9271 {
9272
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 eval $cacheid=yes
9279 else
9280 eval $cacheid=no
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 fi
9285
9286
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288
9289 eval supported=\$$cacheid
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9291 $as_echo "$supported" >&6; }
9292 if test "$supported" = "yes" ; then
9293 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9294 found="yes"
9295 fi
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9323 int i;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 xorg_cv_cc_flag_unknown_warning_option=yes
9327 else
9328 xorg_cv_cc_flag_unknown_warning_option=no
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9335 CFLAGS="$xorg_testset_save_CFLAGS"
9336 fi
9337
9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341 fi
9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 _ACEOF
9352 if ac_fn_c_try_compile "$LINENO"; then :
9353 xorg_cv_cc_flag_unused_command_line_argument=yes
9354 else
9355 xorg_cv_cc_flag_unused_command_line_argument=no
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9362 CFLAGS="$xorg_testset_save_CFLAGS"
9363 fi
9364
9365 found="no"
9366
9367 if test $found = "no" ; then
9368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 fi
9371
9372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9374 fi
9375
9376 CFLAGS="$CFLAGS -Wsequence-point"
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9379 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9380 cacheid=xorg_cv_cc_flag__Wsequence_point
9381 if eval \${$cacheid+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 int
9388 main ()
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396 eval $cacheid=yes
9397 else
9398 eval $cacheid=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 fi
9403
9404
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407 eval supported=\$$cacheid
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409 $as_echo "$supported" >&6; }
9410 if test "$supported" = "yes" ; then
9411 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9412 found="yes"
9413 fi
9414 fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430 xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 xorg_cv_cc_flag_unknown_warning_option=yes
9445 else
9446 xorg_cv_cc_flag_unknown_warning_option=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9453 CFLAGS="$xorg_testset_save_CFLAGS"
9454 fi
9455
9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459 fi
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 int i;
9469 _ACEOF
9470 if ac_fn_c_try_compile "$LINENO"; then :
9471 xorg_cv_cc_flag_unused_command_line_argument=yes
9472 else
9473 xorg_cv_cc_flag_unused_command_line_argument=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480 CFLAGS="$xorg_testset_save_CFLAGS"
9481 fi
9482
9483 found="no"
9484
9485 if test $found = "no" ; then
9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 fi
9489
9490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 fi
9493
9494 CFLAGS="$CFLAGS -Wreturn-type"
9495
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9497 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9498 cacheid=xorg_cv_cc_flag__Wreturn_type
9499 if eval \${$cacheid+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 int
9506 main ()
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 eval $cacheid=yes
9515 else
9516 eval $cacheid=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 fi
9521
9522
9523 CFLAGS="$xorg_testset_save_CFLAGS"
9524
9525 eval supported=\$$cacheid
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9527 $as_echo "$supported" >&6; }
9528 if test "$supported" = "yes" ; then
9529 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9530 found="yes"
9531 fi
9532 fi
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548 xorg_testset_save_CFLAGS="$CFLAGS"
9549
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 xorg_cv_cc_flag_unknown_warning_option=yes
9563 else
9564 xorg_cv_cc_flag_unknown_warning_option=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9571 CFLAGS="$xorg_testset_save_CFLAGS"
9572 fi
9573
9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577 fi
9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int i;
9587 _ACEOF
9588 if ac_fn_c_try_compile "$LINENO"; then :
9589 xorg_cv_cc_flag_unused_command_line_argument=yes
9590 else
9591 xorg_cv_cc_flag_unused_command_line_argument=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9598 CFLAGS="$xorg_testset_save_CFLAGS"
9599 fi
9600
9601 found="no"
9602
9603 if test $found = "no" ; then
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 fi
9607
9608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610 fi
9611
9612 CFLAGS="$CFLAGS -Wtrigraphs"
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9615 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9616 cacheid=xorg_cv_cc_flag__Wtrigraphs
9617 if eval \${$cacheid+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 int
9624 main ()
9625 {
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 eval $cacheid=yes
9633 else
9634 eval $cacheid=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 fi
9639
9640
9641 CFLAGS="$xorg_testset_save_CFLAGS"
9642
9643 eval supported=\$$cacheid
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9645 $as_echo "$supported" >&6; }
9646 if test "$supported" = "yes" ; then
9647 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9648 found="yes"
9649 fi
9650 fi
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 xorg_testset_save_CFLAGS="$CFLAGS"
9667
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 int i;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9680 xorg_cv_cc_flag_unknown_warning_option=yes
9681 else
9682 xorg_cv_cc_flag_unknown_warning_option=no
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690 fi
9691
9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 _ACEOF
9706 if ac_fn_c_try_compile "$LINENO"; then :
9707 xorg_cv_cc_flag_unused_command_line_argument=yes
9708 else
9709 xorg_cv_cc_flag_unused_command_line_argument=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Warray-bounds"
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9733 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Warray_bounds
9735 if eval \${$cacheid+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 int
9742 main ()
9743 {
9744
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 eval $cacheid=yes
9751 else
9752 eval $cacheid=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 fi
9757
9758
9759 CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761 eval supported=\$$cacheid
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763 $as_echo "$supported" >&6; }
9764 if test "$supported" = "yes" ; then
9765 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9766 found="yes"
9767 fi
9768 fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784 xorg_testset_save_CFLAGS="$CFLAGS"
9785
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"; then :
9798 xorg_cv_cc_flag_unknown_warning_option=yes
9799 else
9800 xorg_cv_cc_flag_unknown_warning_option=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 fi
9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 int i;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 xorg_cv_cc_flag_unused_command_line_argument=yes
9826 else
9827 xorg_cv_cc_flag_unused_command_line_argument=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835 fi
9836
9837 found="no"
9838
9839 if test $found = "no" ; then
9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 fi
9843
9844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9846 fi
9847
9848 CFLAGS="$CFLAGS -Wwrite-strings"
9849
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9851 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9852 cacheid=xorg_cv_cc_flag__Wwrite_strings
9853 if eval \${$cacheid+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int i;
9859 int
9860 main ()
9861 {
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 eval $cacheid=yes
9869 else
9870 eval $cacheid=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 fi
9875
9876
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878
9879 eval supported=\$$cacheid
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9881 $as_echo "$supported" >&6; }
9882 if test "$supported" = "yes" ; then
9883 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9884 found="yes"
9885 fi
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902 xorg_testset_save_CFLAGS="$CFLAGS"
9903
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 int i;
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 xorg_cv_cc_flag_unknown_warning_option=yes
9917 else
9918 xorg_cv_cc_flag_unknown_warning_option=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926 fi
9927
9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931 fi
9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 int i;
9941 _ACEOF
9942 if ac_fn_c_try_compile "$LINENO"; then :
9943 xorg_cv_cc_flag_unused_command_line_argument=yes
9944 else
9945 xorg_cv_cc_flag_unused_command_line_argument=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952 CFLAGS="$xorg_testset_save_CFLAGS"
9953 fi
9954
9955 found="no"
9956
9957 if test $found = "no" ; then
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 fi
9961
9962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964 fi
9965
9966 CFLAGS="$CFLAGS -Waddress"
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9969 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9970 cacheid=xorg_cv_cc_flag__Waddress
9971 if eval \${$cacheid+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 int
9978 main ()
9979 {
9980
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986 eval $cacheid=yes
9987 else
9988 eval $cacheid=no
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi
9993
9994
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996
9997 eval supported=\$$cacheid
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9999 $as_echo "$supported" >&6; }
10000 if test "$supported" = "yes" ; then
10001 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10002 found="yes"
10003 fi
10004 fi
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020 xorg_testset_save_CFLAGS="$CFLAGS"
10021
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10025 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10026 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 int i;
10032 _ACEOF
10033 if ac_fn_c_try_compile "$LINENO"; then :
10034 xorg_cv_cc_flag_unknown_warning_option=yes
10035 else
10036 xorg_cv_cc_flag_unknown_warning_option=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10041 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10043 CFLAGS="$xorg_testset_save_CFLAGS"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10049 fi
10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10052 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10053 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 int i;
10059 _ACEOF
10060 if ac_fn_c_try_compile "$LINENO"; then :
10061 xorg_cv_cc_flag_unused_command_line_argument=yes
10062 else
10063 xorg_cv_cc_flag_unused_command_line_argument=no
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10068 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10070 CFLAGS="$xorg_testset_save_CFLAGS"
10071 fi
10072
10073 found="no"
10074
10075 if test $found = "no" ; then
10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078 fi
10079
10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 fi
10083
10084 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10085
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10087 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10088 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10089 if eval \${$cacheid+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 int i;
10095 int
10096 main ()
10097 {
10098
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 eval $cacheid=yes
10105 else
10106 eval $cacheid=no
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 fi
10111
10112
10113 CFLAGS="$xorg_testset_save_CFLAGS"
10114
10115 eval supported=\$$cacheid
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10117 $as_echo "$supported" >&6; }
10118 if test "$supported" = "yes" ; then
10119 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10120 found="yes"
10121 fi
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138 xorg_testset_save_CFLAGS="$CFLAGS"
10139
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10144 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 int i;
10150 _ACEOF
10151 if ac_fn_c_try_compile "$LINENO"; then :
10152 xorg_cv_cc_flag_unknown_warning_option=yes
10153 else
10154 xorg_cv_cc_flag_unknown_warning_option=no
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10159 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10161 CFLAGS="$xorg_testset_save_CFLAGS"
10162 fi
10163
10164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10167 fi
10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10170 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10171 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int i;
10177 _ACEOF
10178 if ac_fn_c_try_compile "$LINENO"; then :
10179 xorg_cv_cc_flag_unused_command_line_argument=yes
10180 else
10181 xorg_cv_cc_flag_unused_command_line_argument=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10186 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10188 CFLAGS="$xorg_testset_save_CFLAGS"
10189 fi
10190
10191 found="no"
10192
10193 if test $found = "no" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197
10198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200 fi
10201
10202 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10203
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10205 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10206 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10207 if eval \${$cacheid+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 int i;
10213 int
10214 main ()
10215 {
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 eval $cacheid=yes
10223 else
10224 eval $cacheid=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 fi
10229
10230
10231 CFLAGS="$xorg_testset_save_CFLAGS"
10232
10233 eval supported=\$$cacheid
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10235 $as_echo "$supported" >&6; }
10236 if test "$supported" = "yes" ; then
10237 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10238 found="yes"
10239 fi
10240 fi
10241
10242
10243 fi
10244
10245
10246
10247
10248
10249
10250
10251 CWARNFLAGS="$BASE_CFLAGS"
10252 if test "x$GCC" = xyes ; then
10253 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10254 fi
10255
10256
10257
10258
10259
10260
10261
10262
10263 # Check whether --enable-strict-compilation was given.
10264 if test "${enable_strict_compilation+set}" = set; then :
10265 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10266 else
10267 STRICT_COMPILE=no
10268 fi
10269
10270
10271
10272
10273
10274
10275 STRICT_CFLAGS=""
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289 xorg_testset_save_CFLAGS="$CFLAGS"
10290
10291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 int i;
10301 _ACEOF
10302 if ac_fn_c_try_compile "$LINENO"; then :
10303 xorg_cv_cc_flag_unknown_warning_option=yes
10304 else
10305 xorg_cv_cc_flag_unknown_warning_option=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10312 CFLAGS="$xorg_testset_save_CFLAGS"
10313 fi
10314
10315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10318 fi
10319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 int i;
10328 _ACEOF
10329 if ac_fn_c_try_compile "$LINENO"; then :
10330 xorg_cv_cc_flag_unused_command_line_argument=yes
10331 else
10332 xorg_cv_cc_flag_unused_command_line_argument=no
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10339 CFLAGS="$xorg_testset_save_CFLAGS"
10340 fi
10341
10342 found="no"
10343
10344 if test $found = "no" ; then
10345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10347 fi
10348
10349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10351 fi
10352
10353 CFLAGS="$CFLAGS -pedantic"
10354
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10356 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10357 cacheid=xorg_cv_cc_flag__pedantic
10358 if eval \${$cacheid+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 int i;
10364 int
10365 main ()
10366 {
10367
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 eval $cacheid=yes
10374 else
10375 eval $cacheid=no
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 fi
10380
10381
10382 CFLAGS="$xorg_testset_save_CFLAGS"
10383
10384 eval supported=\$$cacheid
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10386 $as_echo "$supported" >&6; }
10387 if test "$supported" = "yes" ; then
10388 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10389 found="yes"
10390 fi
10391 fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407 xorg_testset_save_CFLAGS="$CFLAGS"
10408
10409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"; then :
10421 xorg_cv_cc_flag_unknown_warning_option=yes
10422 else
10423 xorg_cv_cc_flag_unknown_warning_option=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 fi
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10430 CFLAGS="$xorg_testset_save_CFLAGS"
10431 fi
10432
10433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436 fi
10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 int i;
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448 xorg_cv_cc_flag_unused_command_line_argument=yes
10449 else
10450 xorg_cv_cc_flag_unused_command_line_argument=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10457 CFLAGS="$xorg_testset_save_CFLAGS"
10458 fi
10459
10460 found="no"
10461
10462 if test $found = "no" ; then
10463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465 fi
10466
10467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469 fi
10470
10471 CFLAGS="$CFLAGS -Werror"
10472
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10474 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10475 cacheid=xorg_cv_cc_flag__Werror
10476 if eval \${$cacheid+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int i;
10482 int
10483 main ()
10484 {
10485
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 eval $cacheid=yes
10492 else
10493 eval $cacheid=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 fi
10498
10499
10500 CFLAGS="$xorg_testset_save_CFLAGS"
10501
10502 eval supported=\$$cacheid
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10504 $as_echo "$supported" >&6; }
10505 if test "$supported" = "yes" ; then
10506 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10507 found="yes"
10508 fi
10509 fi
10510
10511 if test $found = "no" ; then
10512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514 fi
10515
10516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10518 fi
10519
10520 CFLAGS="$CFLAGS -errwarn"
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10523 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10524 cacheid=xorg_cv_cc_flag__errwarn
10525 if eval \${$cacheid+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 int
10532 main ()
10533 {
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 eval $cacheid=yes
10541 else
10542 eval $cacheid=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 fi
10547
10548
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551 eval supported=\$$cacheid
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553 $as_echo "$supported" >&6; }
10554 if test "$supported" = "yes" ; then
10555 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10556 found="yes"
10557 fi
10558 fi
10559
10560
10561
10562 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10563 # activate it with -Werror, so we add it here explicitly.
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577 xorg_testset_save_CFLAGS="$CFLAGS"
10578
10579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 int i;
10589 _ACEOF
10590 if ac_fn_c_try_compile "$LINENO"; then :
10591 xorg_cv_cc_flag_unknown_warning_option=yes
10592 else
10593 xorg_cv_cc_flag_unknown_warning_option=no
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 fi
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10600 CFLAGS="$xorg_testset_save_CFLAGS"
10601 fi
10602
10603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606 fi
10607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int i;
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"; then :
10618 xorg_cv_cc_flag_unused_command_line_argument=yes
10619 else
10620 xorg_cv_cc_flag_unused_command_line_argument=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10627 CFLAGS="$xorg_testset_save_CFLAGS"
10628 fi
10629
10630 found="no"
10631
10632 if test $found = "no" ; then
10633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10635 fi
10636
10637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10639 fi
10640
10641 CFLAGS="$CFLAGS -Werror=attributes"
10642
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10644 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10645 cacheid=xorg_cv_cc_flag__Werror_attributes
10646 if eval \${$cacheid+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 int i;
10652 int
10653 main ()
10654 {
10655
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 eval $cacheid=yes
10662 else
10663 eval $cacheid=no
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 fi
10668
10669
10670 CFLAGS="$xorg_testset_save_CFLAGS"
10671
10672 eval supported=\$$cacheid
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10674 $as_echo "$supported" >&6; }
10675 if test "$supported" = "yes" ; then
10676 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10677 found="yes"
10678 fi
10679 fi
10680
10681
10682
10683 if test "x$STRICT_COMPILE" = "xyes"; then
10684 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10685 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10686 fi
10687
10688
10689
10690
10691
10692
10693 cat >>confdefs.h <<_ACEOF
10694 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10695 _ACEOF
10696
10697 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10698 if test "x$PVM" = "x"; then
10699 PVM="0"
10700 fi
10701
10702 cat >>confdefs.h <<_ACEOF
10703 #define PACKAGE_VERSION_MINOR $PVM
10704 _ACEOF
10705
10706 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10707 if test "x$PVP" = "x"; then
10708 PVP="0"
10709 fi
10710
10711 cat >>confdefs.h <<_ACEOF
10712 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10713 _ACEOF
10714
10715
10716
10717 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10718 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10719 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10720 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10721
10722
10723
10724
10725 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10726 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10727 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10728 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10729 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10730
10731
10732
10733
10734
10735
10736 if test x$APP_MAN_SUFFIX = x ; then
10737 APP_MAN_SUFFIX=1
10738 fi
10739 if test x$APP_MAN_DIR = x ; then
10740 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10741 fi
10742
10743 if test x$LIB_MAN_SUFFIX = x ; then
10744 LIB_MAN_SUFFIX=3
10745 fi
10746 if test x$LIB_MAN_DIR = x ; then
10747 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10748 fi
10749
10750 if test x$FILE_MAN_SUFFIX = x ; then
10751 case $host_os in
10752 solaris*) FILE_MAN_SUFFIX=4 ;;
10753 *) FILE_MAN_SUFFIX=5 ;;
10754 esac
10755 fi
10756 if test x$FILE_MAN_DIR = x ; then
10757 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10758 fi
10759
10760 if test x$MISC_MAN_SUFFIX = x ; then
10761 case $host_os in
10762 solaris*) MISC_MAN_SUFFIX=5 ;;
10763 *) MISC_MAN_SUFFIX=7 ;;
10764 esac
10765 fi
10766 if test x$MISC_MAN_DIR = x ; then
10767 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10768 fi
10769
10770 if test x$DRIVER_MAN_SUFFIX = x ; then
10771 case $host_os in
10772 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10773 *) DRIVER_MAN_SUFFIX=4 ;;
10774 esac
10775 fi
10776 if test x$DRIVER_MAN_DIR = x ; then
10777 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10778 fi
10779
10780 if test x$ADMIN_MAN_SUFFIX = x ; then
10781 case $host_os in
10782 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10783 *) ADMIN_MAN_SUFFIX=8 ;;
10784 esac
10785 fi
10786 if test x$ADMIN_MAN_DIR = x ; then
10787 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10788 fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 XORG_MAN_PAGE="X Version 11"
10805
10806 MAN_SUBSTS="\
10807 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10808 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10809 -e 's|__xservername__|Xorg|g' \
10810 -e 's|__xconfigfile__|xorg.conf|g' \
10811 -e 's|__projectroot__|\$(prefix)|g' \
10812 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10813 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10814 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10815 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10816 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10817 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10818 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10819
10820
10821
10822 # Check whether --enable-silent-rules was given.
10823 if test "${enable_silent_rules+set}" = set; then :
10824 enableval=$enable_silent_rules;
10825 fi
10826
10827 case $enable_silent_rules in # (((
10828 yes) AM_DEFAULT_VERBOSITY=0;;
10829 no) AM_DEFAULT_VERBOSITY=1;;
10830 *) AM_DEFAULT_VERBOSITY=0;;
10831 esac
10832 am_make=${MAKE-make}
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10834 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10835 if ${am_cv_make_support_nested_variables+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if $as_echo 'TRUE=$(BAR$(V))
10839 BAR0=false
10840 BAR1=true
10841 V=1
10842 am__doit:
10843 @$(TRUE)
10844 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10845 am_cv_make_support_nested_variables=yes
10846 else
10847 am_cv_make_support_nested_variables=no
10848 fi
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10851 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10852 if test $am_cv_make_support_nested_variables = yes; then
10853 AM_V='$(V)'
10854 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10855 else
10856 AM_V=$AM_DEFAULT_VERBOSITY
10857 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10858 fi
10859 AM_BACKSLASH='\'
10860
10861
10862
10863
10864 # Check whether --enable-specs was given.
10865 if test "${enable_specs+set}" = set; then :
10866 enableval=$enable_specs; build_specs=$enableval
10867 else
10868 build_specs=yes
10869 fi
10870
10871
10872 if test x$build_specs = xyes; then
10873 ENABLE_SPECS_TRUE=
10874 ENABLE_SPECS_FALSE='#'
10875 else
10876 ENABLE_SPECS_TRUE='#'
10877 ENABLE_SPECS_FALSE=
10878 fi
10879
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10881 $as_echo_n "checking whether to build functional specifications... " >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10883 $as_echo "$build_specs" >&6; }
10884
10885
10886
10887
10888
10889 # Check whether --with-xmlto was given.
10890 if test "${with_xmlto+set}" = set; then :
10891 withval=$with_xmlto; use_xmlto=$withval
10892 else
10893 use_xmlto=auto
10894 fi
10895
10896
10897
10898 if test "x$use_xmlto" = x"auto"; then
10899 # Extract the first word of "xmlto", so it can be a program name with args.
10900 set dummy xmlto; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if ${ac_cv_path_XMLTO+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 case $XMLTO in
10907 [\\/]* | ?:[\\/]*)
10908 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10909 ;;
10910 *)
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922 done
10923 done
10924 IFS=$as_save_IFS
10925
10926 ;;
10927 esac
10928 fi
10929 XMLTO=$ac_cv_path_XMLTO
10930 if test -n "$XMLTO"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10932 $as_echo "$XMLTO" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 fi
10937
10938
10939 if test "x$XMLTO" = "x"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10941 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10942 have_xmlto=no
10943 else
10944 have_xmlto=yes
10945 fi
10946 elif test "x$use_xmlto" = x"yes" ; then
10947 # Extract the first word of "xmlto", so it can be a program name with args.
10948 set dummy xmlto; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if ${ac_cv_path_XMLTO+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 case $XMLTO in
10955 [\\/]* | ?:[\\/]*)
10956 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10957 ;;
10958 *)
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10969 fi
10970 done
10971 done
10972 IFS=$as_save_IFS
10973
10974 ;;
10975 esac
10976 fi
10977 XMLTO=$ac_cv_path_XMLTO
10978 if test -n "$XMLTO"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10980 $as_echo "$XMLTO" >&6; }
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 fi
10985
10986
10987 if test "x$XMLTO" = "x"; then
10988 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10989 fi
10990 have_xmlto=yes
10991 elif test "x$use_xmlto" = x"no" ; then
10992 if test "x$XMLTO" != "x"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10994 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10995 fi
10996 have_xmlto=no
10997 else
10998 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10999 fi
11000
11001 # Test for a minimum version of xmlto, if provided.
11002 if test "$have_xmlto" = yes; then
11003 # scrape the xmlto version
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11005 $as_echo_n "checking the xmlto version... " >&6; }
11006 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11008 $as_echo "$xmlto_version" >&6; }
11009 as_arg_v1=$xmlto_version
11010 as_arg_v2=0.0.22
11011 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11012 case $? in #(
11013 1) :
11014 if test "x$use_xmlto" = xauto; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
11016 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
11017 have_xmlto=no
11018 else
11019 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
11020 fi ;; #(
11021 0) :
11022 ;; #(
11023 2) :
11024 ;; #(
11025 *) :
11026 ;;
11027 esac
11028 fi
11029
11030 # Test for the ability of xmlto to generate a text target
11031 #
11032 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
11033 # following test for empty XML docbook files.
11034 # For compatibility reasons use the following empty XML docbook file and if
11035 # it fails try it again with a non-empty XML file.
11036 have_xmlto_text=no
11037 cat > conftest.xml << "EOF"
11038 EOF
11039 if test "$have_xmlto" = yes; then :
11040 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11041 have_xmlto_text=yes
11042 else
11043 # Try it again with a non-empty XML file.
11044 cat > conftest.xml << "EOF"
11045 <x></x>
11046 EOF
11047 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11048 have_xmlto_text=yes
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11051 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11052 fi
11053 fi
11054 fi
11055 rm -f conftest.xml
11056 if test $have_xmlto_text = yes; then
11057 HAVE_XMLTO_TEXT_TRUE=
11058 HAVE_XMLTO_TEXT_FALSE='#'
11059 else
11060 HAVE_XMLTO_TEXT_TRUE='#'
11061 HAVE_XMLTO_TEXT_FALSE=
11062 fi
11063
11064 if test "$have_xmlto" = yes; then
11065 HAVE_XMLTO_TRUE=
11066 HAVE_XMLTO_FALSE='#'
11067 else
11068 HAVE_XMLTO_TRUE='#'
11069 HAVE_XMLTO_FALSE=
11070 fi
11071
11072
11073
11074
11075
11076
11077 # Check whether --with-fop was given.
11078 if test "${with_fop+set}" = set; then :
11079 withval=$with_fop; use_fop=$withval
11080 else
11081 use_fop=auto
11082 fi
11083
11084
11085
11086 if test "x$use_fop" = x"auto"; then
11087 # Extract the first word of "fop", so it can be a program name with args.
11088 set dummy fop; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_path_FOP+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 case $FOP in
11095 [\\/]* | ?:[\\/]*)
11096 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11097 ;;
11098 *)
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110 done
11111 done
11112 IFS=$as_save_IFS
11113
11114 ;;
11115 esac
11116 fi
11117 FOP=$ac_cv_path_FOP
11118 if test -n "$FOP"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11120 $as_echo "$FOP" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127 if test "x$FOP" = "x"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11129 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11130 have_fop=no
11131 else
11132 have_fop=yes
11133 fi
11134 elif test "x$use_fop" = x"yes" ; then
11135 # Extract the first word of "fop", so it can be a program name with args.
11136 set dummy fop; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_path_FOP+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 case $FOP in
11143 [\\/]* | ?:[\\/]*)
11144 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11145 ;;
11146 *)
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11149 do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158 done
11159 done
11160 IFS=$as_save_IFS
11161
11162 ;;
11163 esac
11164 fi
11165 FOP=$ac_cv_path_FOP
11166 if test -n "$FOP"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11168 $as_echo "$FOP" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173
11174
11175 if test "x$FOP" = "x"; then
11176 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11177 fi
11178 have_fop=yes
11179 elif test "x$use_fop" = x"no" ; then
11180 if test "x$FOP" != "x"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11182 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11183 fi
11184 have_fop=no
11185 else
11186 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11187 fi
11188
11189 # Test for a minimum version of fop, if provided.
11190
11191 if test "$have_fop" = yes; then
11192 HAVE_FOP_TRUE=
11193 HAVE_FOP_FALSE='#'
11194 else
11195 HAVE_FOP_TRUE='#'
11196 HAVE_FOP_FALSE=
11197 fi
11198
11199
11200
11201
11202 # Preserves the interface, should it be implemented later
11203
11204
11205
11206 # Check whether --with-xsltproc was given.
11207 if test "${with_xsltproc+set}" = set; then :
11208 withval=$with_xsltproc; use_xsltproc=$withval
11209 else
11210 use_xsltproc=auto
11211 fi
11212
11213
11214
11215 if test "x$use_xsltproc" = x"auto"; then
11216 # Extract the first word of "xsltproc", so it can be a program name with args.
11217 set dummy xsltproc; ac_word=$2
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11219 $as_echo_n "checking for $ac_word... " >&6; }
11220 if ${ac_cv_path_XSLTPROC+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 case $XSLTPROC in
11224 [\\/]* | ?:[\\/]*)
11225 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11226 ;;
11227 *)
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11230 do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239 done
11240 done
11241 IFS=$as_save_IFS
11242
11243 ;;
11244 esac
11245 fi
11246 XSLTPROC=$ac_cv_path_XSLTPROC
11247 if test -n "$XSLTPROC"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11249 $as_echo "$XSLTPROC" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 fi
11254
11255
11256 if test "x$XSLTPROC" = "x"; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11258 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11259 have_xsltproc=no
11260 else
11261 have_xsltproc=yes
11262 fi
11263 elif test "x$use_xsltproc" = x"yes" ; then
11264 # Extract the first word of "xsltproc", so it can be a program name with args.
11265 set dummy xsltproc; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_path_XSLTPROC+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 case $XSLTPROC in
11272 [\\/]* | ?:[\\/]*)
11273 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11274 ;;
11275 *)
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11283 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287 done
11288 done
11289 IFS=$as_save_IFS
11290
11291 ;;
11292 esac
11293 fi
11294 XSLTPROC=$ac_cv_path_XSLTPROC
11295 if test -n "$XSLTPROC"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11297 $as_echo "$XSLTPROC" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302
11303
11304 if test "x$XSLTPROC" = "x"; then
11305 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11306 fi
11307 have_xsltproc=yes
11308 elif test "x$use_xsltproc" = x"no" ; then
11309 if test "x$XSLTPROC" != "x"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11311 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11312 fi
11313 have_xsltproc=no
11314 else
11315 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11316 fi
11317
11318 if test "$have_xsltproc" = yes; then
11319 HAVE_XSLTPROC_TRUE=
11320 HAVE_XSLTPROC_FALSE='#'
11321 else
11322 HAVE_XSLTPROC_TRUE='#'
11323 HAVE_XSLTPROC_FALSE=
11324 fi
11325
11326
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11329 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11330 XORG_SGML_PATH=
11331 if test -n "$PKG_CONFIG" && \
11332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11333 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11334 ac_status=$?
11335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336 test $ac_status = 0; }; then
11337 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11338 else
11339 :
11340
11341 fi
11342
11343 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11344 # the path and the name of the doc stylesheet
11345 if test "x$XORG_SGML_PATH" != "x" ; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11347 $as_echo "$XORG_SGML_PATH" >&6; }
11348 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11349 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11353 fi
11354
11355
11356
11357
11358 if test "x$XSL_STYLESHEET" != "x"; then
11359 HAVE_STYLESHEETS_TRUE=
11360 HAVE_STYLESHEETS_FALSE='#'
11361 else
11362 HAVE_STYLESHEETS_TRUE='#'
11363 HAVE_STYLESHEETS_FALSE=
11364 fi
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374 if test -n "$PYTHON"; then
11375 # If the user set $PYTHON, use it and don't search something else.
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
11377 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
11378 prog="import sys
11379 # split strings by '.' and convert to numeric. Append some zeros
11380 # because we need at least 4 digits for the hex conversion.
11381 # map returns an iterator in Python 3.0 and a list in 2.x
11382 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11383 minverhex = 0
11384 # xrange is not present in Python 3.0 and range returns an iterator
11385 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11386 sys.exit(sys.hexversion < minverhex)"
11387 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
11388 ($PYTHON -c "$prog") >&5 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; then :
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393 $as_echo "yes" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
11398 fi
11399 am_display_PYTHON=$PYTHON
11400 else
11401 # Otherwise, try each interpreter until we find one that satisfies
11402 # VERSION.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
11404 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
11405 if ${am_cv_pathless_PYTHON+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408
11409 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
11410 test "$am_cv_pathless_PYTHON" = none && break
11411 prog="import sys
11412 # split strings by '.' and convert to numeric. Append some zeros
11413 # because we need at least 4 digits for the hex conversion.
11414 # map returns an iterator in Python 3.0 and a list in 2.x
11415 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
11416 minverhex = 0
11417 # xrange is not present in Python 3.0 and range returns an iterator
11418 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
11419 sys.exit(sys.hexversion < minverhex)"
11420 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
11421 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; then :
11425 break
11426 fi
11427 done
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
11430 $as_echo "$am_cv_pathless_PYTHON" >&6; }
11431 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
11432 if test "$am_cv_pathless_PYTHON" = none; then
11433 PYTHON=:
11434 else
11435 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
11436 set dummy $am_cv_pathless_PYTHON; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_path_PYTHON+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 case $PYTHON in
11443 [\\/]* | ?:[\\/]*)
11444 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11445 ;;
11446 *)
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458 done
11459 done
11460 IFS=$as_save_IFS
11461
11462 ;;
11463 esac
11464 fi
11465 PYTHON=$ac_cv_path_PYTHON
11466 if test -n "$PYTHON"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11468 $as_echo "$PYTHON" >&6; }
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 fi
11473
11474
11475 fi
11476 am_display_PYTHON=$am_cv_pathless_PYTHON
11477 fi
11478
11479
11480 if test "$PYTHON" = :; then
11481 :
11482 else
11483
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
11486 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
11487 if ${am_cv_python_version+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
11493 $as_echo "$am_cv_python_version" >&6; }
11494 PYTHON_VERSION=$am_cv_python_version
11495
11496
11497
11498 PYTHON_PREFIX='${prefix}'
11499
11500 PYTHON_EXEC_PREFIX='${exec_prefix}'
11501
11502
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
11505 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
11506 if ${am_cv_python_platform+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
11512 $as_echo "$am_cv_python_platform" >&6; }
11513 PYTHON_PLATFORM=$am_cv_python_platform
11514
11515
11516 # Just factor out some code duplication.
11517 am_python_setup_sysconfig="\
11518 import sys
11519 # Prefer sysconfig over distutils.sysconfig, for better compatibility
11520 # with python 3.x. See automake bug#10227.
11521 try:
11522 import sysconfig
11523 except ImportError:
11524 can_use_sysconfig = 0
11525 else:
11526 can_use_sysconfig = 1
11527 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
11528 # <https://github.com/pypa/virtualenv/issues/118>
11529 try:
11530 from platform import python_implementation
11531 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
11532 can_use_sysconfig = 0
11533 except ImportError:
11534 pass"
11535
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
11538 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
11539 if ${am_cv_python_pythondir+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 if test "x$prefix" = xNONE
11543 then
11544 am_py_prefix=$ac_default_prefix
11545 else
11546 am_py_prefix=$prefix
11547 fi
11548 am_cv_python_pythondir=`$PYTHON -c "
11549 $am_python_setup_sysconfig
11550 if can_use_sysconfig:
11551 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
11552 else:
11553 from distutils import sysconfig
11554 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
11555 sys.stdout.write(sitedir)"`
11556 case $am_cv_python_pythondir in
11557 $am_py_prefix*)
11558 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
11559 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
11560 ;;
11561 *)
11562 case $am_py_prefix in
11563 /usr|/System*) ;;
11564 *)
11565 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
11566 ;;
11567 esac
11568 ;;
11569 esac
11570
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
11573 $as_echo "$am_cv_python_pythondir" >&6; }
11574 pythondir=$am_cv_python_pythondir
11575
11576
11577
11578 pkgpythondir=\${pythondir}/$PACKAGE
11579
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
11582 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
11583 if ${am_cv_python_pyexecdir+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test "x$exec_prefix" = xNONE
11587 then
11588 am_py_exec_prefix=$am_py_prefix
11589 else
11590 am_py_exec_prefix=$exec_prefix
11591 fi
11592 am_cv_python_pyexecdir=`$PYTHON -c "
11593 $am_python_setup_sysconfig
11594 if can_use_sysconfig:
11595 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
11596 else:
11597 from distutils import sysconfig
11598 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
11599 sys.stdout.write(sitedir)"`
11600 case $am_cv_python_pyexecdir in
11601 $am_py_exec_prefix*)
11602 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
11603 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
11604 ;;
11605 *)
11606 case $am_py_exec_prefix in
11607 /usr|/System*) ;;
11608 *)
11609 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
11610 ;;
11611 esac
11612 ;;
11613 esac
11614
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
11617 $as_echo "$am_cv_python_pyexecdir" >&6; }
11618 pyexecdir=$am_cv_python_pyexecdir
11619
11620
11621
11622 pkgpyexecdir=\${pyexecdir}/$PACKAGE
11623
11624
11625
11626 fi
11627
11628
11629 if test "$PYTHON" != :; then
11630 HAVE_PYTHON_TRUE=
11631 HAVE_PYTHON_FALSE='#'
11632 else
11633 HAVE_PYTHON_TRUE='#'
11634 HAVE_PYTHON_FALSE=
11635 fi
11636
11637
11638
11639
11640 # Check whether --enable-legacy was given.
11641 if test "${enable_legacy+set}" = set; then :
11642 enableval=$enable_legacy; LEGACY=$enableval
11643 else
11644 LEGACY=no
11645 fi
11646
11647 if test "x$LEGACY" = "xyes"; then
11648 LEGACY_TRUE=
11649 LEGACY_FALSE='#'
11650 else
11651 LEGACY_TRUE='#'
11652 LEGACY_FALSE=
11653 fi
11654
11655
11656 for ac_header in sys/select.h sys/param.h sys/types.h sys/time.h
11657 do :
11658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11659 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11660 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11661 cat >>confdefs.h <<_ACEOF
11662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663 _ACEOF
11664
11665 fi
11666
11667 done
11668
11669
11670 # Handle Xpoll.h.in
11671 # Avoid determining fds_bits on WIN32 hosts (not including cygwin)
11672 case $host_os in
11673 mingw*) fds_bits_found=true;;
11674 *) fds_bits_found=false;;
11675 esac
11676
11677 if test "x$fds_bits_found" = xfalse ; then
11678 ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" "
11679 #ifdef HAVE_SYS_PARAM_H
11680 #include <sys/param.h>
11681 #endif
11682 #ifdef HAVE_SYS_TYPES_H
11683 #include <sys/types.h>
11684 #endif
11685 #ifdef HAVE_SYS_TIME_H
11686 #include <sys/time.h>
11687 #endif
11688 #ifdef HAVE_SYS_SELECT_H
11689 #include <sys/select.h>
11690 #endif
11691
11692 "
11693 if test "x$ac_cv_member_fd_set_fds_bits" = xyes; then :
11694
11695 fds_bits_found=plain
11696 USE_FDS_BITS="fds_bits"
11697
11698 fi
11699
11700 fi
11701
11702 if test "x$fds_bits_found" = xfalse ; then
11703 ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" "
11704 #ifdef HAVE_SYS_PARAM_H
11705 #include <sys/param.h>
11706 #endif
11707 #ifdef HAVE_SYS_TYPES_H
11708 #include <sys/types.h>
11709 #endif
11710 #ifdef HAVE_SYS_TIME_H
11711 #include <sys/time.h>
11712 #endif
11713 #ifdef HAVE_SYS_SELECT_H
11714 #include <sys/select.h>
11715 #endif
11716
11717 "
11718 if test "x$ac_cv_member_fd_set___fds_bits" = xyes; then :
11719
11720 fds_bits_found=underscores
11721 USE_FDS_BITS="__fds_bits"
11722
11723 fi
11724
11725 fi
11726
11727 if test "x$fds_bits_found" = xfalse ; then
11728 as_fn_error $? "Could not determine how to access the fds_bits or equivalent
11729 structure in fd_set on your platform." "$LINENO" 5
11730 fi
11731
11732
11733
11734 ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc"
11735
11736
11737 cat >confcache <<\_ACEOF
11738 # This file is a shell script that caches the results of configure
11739 # tests run on this system so they can be shared between configure
11740 # scripts and configure runs, see configure's option --config-cache.
11741 # It is not useful on other systems. If it contains results you don't
11742 # want to keep, you may remove or edit it.
11743 #
11744 # config.status only pays attention to the cache file if you give it
11745 # the --recheck option to rerun configure.
11746 #
11747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11749 # following values.
11750
11751 _ACEOF
11752
11753 # The following way of writing the cache mishandles newlines in values,
11754 # but we know of no workaround that is simple, portable, and efficient.
11755 # So, we kill variables containing newlines.
11756 # Ultrix sh set writes to stderr and can't be redirected directly,
11757 # and sets the high bit in the cache file unless we assign to the vars.
11758 (
11759 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11760 eval ac_val=\$$ac_var
11761 case $ac_val in #(
11762 *${as_nl}*)
11763 case $ac_var in #(
11764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11766 esac
11767 case $ac_var in #(
11768 _ | IFS | as_nl) ;; #(
11769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11770 *) { eval $ac_var=; unset $ac_var;} ;;
11771 esac ;;
11772 esac
11773 done
11774
11775 (set) 2>&1 |
11776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11777 *${as_nl}ac_space=\ *)
11778 # `set' does not quote correctly, so add quotes: double-quote
11779 # substitution turns \\\\ into \\, and sed turns \\ into \.
11780 sed -n \
11781 "s/'/'\\\\''/g;
11782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11783 ;; #(
11784 *)
11785 # `set' quotes correctly as required by POSIX, so do not add quotes.
11786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11787 ;;
11788 esac |
11789 sort
11790 ) |
11791 sed '
11792 /^ac_cv_env_/b end
11793 t clear
11794 :clear
11795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11796 t end
11797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11798 :end' >>confcache
11799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11800 if test -w "$cache_file"; then
11801 if test "x$cache_file" != "x/dev/null"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11803 $as_echo "$as_me: updating cache $cache_file" >&6;}
11804 if test ! -f "$cache_file" || test -h "$cache_file"; then
11805 cat confcache >"$cache_file"
11806 else
11807 case $cache_file in #(
11808 */* | ?:*)
11809 mv -f confcache "$cache_file"$$ &&
11810 mv -f "$cache_file"$$ "$cache_file" ;; #(
11811 *)
11812 mv -f confcache "$cache_file" ;;
11813 esac
11814 fi
11815 fi
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11819 fi
11820 fi
11821 rm -f confcache
11822
11823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11824 # Let make expand exec_prefix.
11825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11826
11827 # Transform confdefs.h into DEFS.
11828 # Protect against shell expansion while executing Makefile rules.
11829 # Protect against Makefile macro expansion.
11830 #
11831 # If the first sed substitution is executed (which looks for macros that
11832 # take arguments), then branch to the quote section. Otherwise,
11833 # look for a macro that doesn't take arguments.
11834 ac_script='
11835 :mline
11836 /\\$/{
11837 N
11838 s,\\\n,,
11839 b mline
11840 }
11841 t clear
11842 :clear
11843 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11844 t quote
11845 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11846 t quote
11847 b any
11848 :quote
11849 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11850 s/\[/\\&/g
11851 s/\]/\\&/g
11852 s/\$/$$/g
11853 H
11854 :any
11855 ${
11856 g
11857 s/^\n//
11858 s/\n/ /g
11859 p
11860 }
11861 '
11862 DEFS=`sed -n "$ac_script" confdefs.h`
11863
11864
11865 ac_libobjs=
11866 ac_ltlibobjs=
11867 U=
11868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11869 # 1. Remove the extension, and $U if already installed.
11870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11873 # will be set to the directory where LIBOBJS objects are built.
11874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11876 done
11877 LIBOBJS=$ac_libobjs
11878
11879 LTLIBOBJS=$ac_ltlibobjs
11880
11881
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11883 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11884 if test -n "$am_sleep_pid"; then
11885 # Hide warnings about reused PIDs.
11886 wait $am_sleep_pid 2>/dev/null
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11889 $as_echo "done" >&6; }
11890 if test -n "$EXEEXT"; then
11891 am__EXEEXT_TRUE=
11892 am__EXEEXT_FALSE='#'
11893 else
11894 am__EXEEXT_TRUE='#'
11895 am__EXEEXT_FALSE=
11896 fi
11897
11898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11899 as_fn_error $? "conditional \"AMDEP\" was never defined.
11900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11901 fi
11902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11903 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11905 fi
11906 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11907 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11909 fi
11910 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11911 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11913 fi
11914 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11915 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11917 fi
11918 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11919 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11921 fi
11922 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11923 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11925 fi
11926 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11927 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11929 fi
11930 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
11931 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
11932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11933 fi
11934 if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then
11935 as_fn_error $? "conditional \"LEGACY\" was never defined.
11936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11937 fi
11938
11939 : "${CONFIG_STATUS=./config.status}"
11940 ac_write_fail=0
11941 ac_clean_files_save=$ac_clean_files
11942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11945 as_write_fail=0
11946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11947 #! $SHELL
11948 # Generated by $as_me.
11949 # Run this file to recreate the current configuration.
11950 # Compiler output produced by configure, useful for debugging
11951 # configure, is in config.log if it exists.
11952
11953 debug=false
11954 ac_cs_recheck=false
11955 ac_cs_silent=false
11956
11957 SHELL=\${CONFIG_SHELL-$SHELL}
11958 export SHELL
11959 _ASEOF
11960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11961 ## -------------------- ##
11962 ## M4sh Initialization. ##
11963 ## -------------------- ##
11964
11965 # Be more Bourne compatible
11966 DUALCASE=1; export DUALCASE # for MKS sh
11967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11968 emulate sh
11969 NULLCMD=:
11970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11971 # is contrary to our usage. Disable this feature.
11972 alias -g '${1+"$@"}'='"$@"'
11973 setopt NO_GLOB_SUBST
11974 else
11975 case `(set -o) 2>/dev/null` in #(
11976 *posix*) :
11977 set -o posix ;; #(
11978 *) :
11979 ;;
11980 esac
11981 fi
11982
11983
11984 as_nl='
11985 '
11986 export as_nl
11987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11991 # Prefer a ksh shell builtin over an external printf program on Solaris,
11992 # but without wasting forks for bash or zsh.
11993 if test -z "$BASH_VERSION$ZSH_VERSION" \
11994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11995 as_echo='print -r --'
11996 as_echo_n='print -rn --'
11997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11998 as_echo='printf %s\n'
11999 as_echo_n='printf %s'
12000 else
12001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12003 as_echo_n='/usr/ucb/echo -n'
12004 else
12005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12006 as_echo_n_body='eval
12007 arg=$1;
12008 case $arg in #(
12009 *"$as_nl"*)
12010 expr "X$arg" : "X\\(.*\\)$as_nl";
12011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12012 esac;
12013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12014 '
12015 export as_echo_n_body
12016 as_echo_n='sh -c $as_echo_n_body as_echo'
12017 fi
12018 export as_echo_body
12019 as_echo='sh -c $as_echo_body as_echo'
12020 fi
12021
12022 # The user is always right.
12023 if test "${PATH_SEPARATOR+set}" != set; then
12024 PATH_SEPARATOR=:
12025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12027 PATH_SEPARATOR=';'
12028 }
12029 fi
12030
12031
12032 # IFS
12033 # We need space, tab and new line, in precisely that order. Quoting is
12034 # there to prevent editors from complaining about space-tab.
12035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12036 # splitting by setting IFS to empty value.)
12037 IFS=" "" $as_nl"
12038
12039 # Find who we are. Look in the path if we contain no directory separator.
12040 as_myself=
12041 case $0 in #((
12042 *[\\/]* ) as_myself=$0 ;;
12043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12049 done
12050 IFS=$as_save_IFS
12051
12052 ;;
12053 esac
12054 # We did not find ourselves, most probably we were run as `sh COMMAND'
12055 # in which case we are not to be found in the path.
12056 if test "x$as_myself" = x; then
12057 as_myself=$0
12058 fi
12059 if test ! -f "$as_myself"; then
12060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12061 exit 1
12062 fi
12063
12064 # Unset variables that we do not need and which cause bugs (e.g. in
12065 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12066 # suppresses any "Segmentation fault" message there. '((' could
12067 # trigger a bug in pdksh 5.2.14.
12068 for as_var in BASH_ENV ENV MAIL MAILPATH
12069 do eval test x\${$as_var+set} = xset \
12070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12071 done
12072 PS1='$ '
12073 PS2='> '
12074 PS4='+ '
12075
12076 # NLS nuisances.
12077 LC_ALL=C
12078 export LC_ALL
12079 LANGUAGE=C
12080 export LANGUAGE
12081
12082 # CDPATH.
12083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12084
12085
12086 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12087 # ----------------------------------------
12088 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12089 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12090 # script with STATUS, using 1 if that was 0.
12091 as_fn_error ()
12092 {
12093 as_status=$1; test $as_status -eq 0 && as_status=1
12094 if test "$4"; then
12095 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12097 fi
12098 $as_echo "$as_me: error: $2" >&2
12099 as_fn_exit $as_status
12100 } # as_fn_error
12101
12102
12103 # as_fn_set_status STATUS
12104 # -----------------------
12105 # Set $? to STATUS, without forking.
12106 as_fn_set_status ()
12107 {
12108 return $1
12109 } # as_fn_set_status
12110
12111 # as_fn_exit STATUS
12112 # -----------------
12113 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12114 as_fn_exit ()
12115 {
12116 set +e
12117 as_fn_set_status $1
12118 exit $1
12119 } # as_fn_exit
12120
12121 # as_fn_unset VAR
12122 # ---------------
12123 # Portably unset VAR.
12124 as_fn_unset ()
12125 {
12126 { eval $1=; unset $1;}
12127 }
12128 as_unset=as_fn_unset
12129 # as_fn_append VAR VALUE
12130 # ----------------------
12131 # Append the text in VALUE to the end of the definition contained in VAR. Take
12132 # advantage of any shell optimizations that allow amortized linear growth over
12133 # repeated appends, instead of the typical quadratic growth present in naive
12134 # implementations.
12135 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12136 eval 'as_fn_append ()
12137 {
12138 eval $1+=\$2
12139 }'
12140 else
12141 as_fn_append ()
12142 {
12143 eval $1=\$$1\$2
12144 }
12145 fi # as_fn_append
12146
12147 # as_fn_arith ARG...
12148 # ------------------
12149 # Perform arithmetic evaluation on the ARGs, and store the result in the
12150 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12151 # must be portable across $(()) and expr.
12152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12153 eval 'as_fn_arith ()
12154 {
12155 as_val=$(( $* ))
12156 }'
12157 else
12158 as_fn_arith ()
12159 {
12160 as_val=`expr "$@" || test $? -eq 1`
12161 }
12162 fi # as_fn_arith
12163
12164
12165 if expr a : '\(a\)' >/dev/null 2>&1 &&
12166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12167 as_expr=expr
12168 else
12169 as_expr=false
12170 fi
12171
12172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12173 as_basename=basename
12174 else
12175 as_basename=false
12176 fi
12177
12178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12179 as_dirname=dirname
12180 else
12181 as_dirname=false
12182 fi
12183
12184 as_me=`$as_basename -- "$0" ||
12185 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12186 X"$0" : 'X\(//\)$' \| \
12187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12188 $as_echo X/"$0" |
12189 sed '/^.*\/\([^/][^/]*\)\/*$/{
12190 s//\1/
12191 q
12192 }
12193 /^X\/\(\/\/\)$/{
12194 s//\1/
12195 q
12196 }
12197 /^X\/\(\/\).*/{
12198 s//\1/
12199 q
12200 }
12201 s/.*/./; q'`
12202
12203 # Avoid depending upon Character Ranges.
12204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12207 as_cr_digits='0123456789'
12208 as_cr_alnum=$as_cr_Letters$as_cr_digits
12209
12210 ECHO_C= ECHO_N= ECHO_T=
12211 case `echo -n x` in #(((((
12212 -n*)
12213 case `echo 'xy\c'` in
12214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12215 xy) ECHO_C='\c';;
12216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12217 ECHO_T=' ';;
12218 esac;;
12219 *)
12220 ECHO_N='-n';;
12221 esac
12222
12223 rm -f conf$$ conf$$.exe conf$$.file
12224 if test -d conf$$.dir; then
12225 rm -f conf$$.dir/conf$$.file
12226 else
12227 rm -f conf$$.dir
12228 mkdir conf$$.dir 2>/dev/null
12229 fi
12230 if (echo >conf$$.file) 2>/dev/null; then
12231 if ln -s conf$$.file conf$$ 2>/dev/null; then
12232 as_ln_s='ln -s'
12233 # ... but there are two gotchas:
12234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236 # In both cases, we have to default to `cp -pR'.
12237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12238 as_ln_s='cp -pR'
12239 elif ln conf$$.file conf$$ 2>/dev/null; then
12240 as_ln_s=ln
12241 else
12242 as_ln_s='cp -pR'
12243 fi
12244 else
12245 as_ln_s='cp -pR'
12246 fi
12247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12248 rmdir conf$$.dir 2>/dev/null
12249
12250
12251 # as_fn_mkdir_p
12252 # -------------
12253 # Create "$as_dir" as a directory, including parents if necessary.
12254 as_fn_mkdir_p ()
12255 {
12256
12257 case $as_dir in #(
12258 -*) as_dir=./$as_dir;;
12259 esac
12260 test -d "$as_dir" || eval $as_mkdir_p || {
12261 as_dirs=
12262 while :; do
12263 case $as_dir in #(
12264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12265 *) as_qdir=$as_dir;;
12266 esac
12267 as_dirs="'$as_qdir' $as_dirs"
12268 as_dir=`$as_dirname -- "$as_dir" ||
12269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12270 X"$as_dir" : 'X\(//\)[^/]' \| \
12271 X"$as_dir" : 'X\(//\)$' \| \
12272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12273 $as_echo X"$as_dir" |
12274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12275 s//\1/
12276 q
12277 }
12278 /^X\(\/\/\)[^/].*/{
12279 s//\1/
12280 q
12281 }
12282 /^X\(\/\/\)$/{
12283 s//\1/
12284 q
12285 }
12286 /^X\(\/\).*/{
12287 s//\1/
12288 q
12289 }
12290 s/.*/./; q'`
12291 test -d "$as_dir" && break
12292 done
12293 test -z "$as_dirs" || eval "mkdir $as_dirs"
12294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12295
12296
12297 } # as_fn_mkdir_p
12298 if mkdir -p . 2>/dev/null; then
12299 as_mkdir_p='mkdir -p "$as_dir"'
12300 else
12301 test -d ./-p && rmdir ./-p
12302 as_mkdir_p=false
12303 fi
12304
12305
12306 # as_fn_executable_p FILE
12307 # -----------------------
12308 # Test if FILE is an executable regular file.
12309 as_fn_executable_p ()
12310 {
12311 test -f "$1" && test -x "$1"
12312 } # as_fn_executable_p
12313 as_test_x='test -x'
12314 as_executable_p=as_fn_executable_p
12315
12316 # Sed expression to map a string onto a valid CPP name.
12317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12318
12319 # Sed expression to map a string onto a valid variable name.
12320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12321
12322
12323 exec 6>&1
12324 ## ----------------------------------- ##
12325 ## Main body of $CONFIG_STATUS script. ##
12326 ## ----------------------------------- ##
12327 _ASEOF
12328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12329
12330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 # Save the log message, to keep $0 and so on meaningful, and to
12332 # report actual input values of CONFIG_FILES etc. instead of their
12333 # values after options handling.
12334 ac_log="
12335 This file was extended by xorgproto $as_me 2021.5, which was
12336 generated by GNU Autoconf 2.69. Invocation command line was
12337
12338 CONFIG_FILES = $CONFIG_FILES
12339 CONFIG_HEADERS = $CONFIG_HEADERS
12340 CONFIG_LINKS = $CONFIG_LINKS
12341 CONFIG_COMMANDS = $CONFIG_COMMANDS
12342 $ $0 $@
12343
12344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12345 "
12346
12347 _ACEOF
12348
12349 case $ac_config_files in *"
12350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12351 esac
12352
12353
12354
12355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356 # Files that config.status was made for.
12357 config_files="$ac_config_files"
12358 config_commands="$ac_config_commands"
12359
12360 _ACEOF
12361
12362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12363 ac_cs_usage="\
12364 \`$as_me' instantiates files and other configuration actions
12365 from templates according to the current configuration. Unless the files
12366 and actions are specified as TAGs, all are instantiated by default.
12367
12368 Usage: $0 [OPTION]... [TAG]...
12369
12370 -h, --help print this help, then exit
12371 -V, --version print version number and configuration settings, then exit
12372 --config print configuration, then exit
12373 -q, --quiet, --silent
12374 do not print progress messages
12375 -d, --debug don't remove temporary files
12376 --recheck update $as_me by reconfiguring in the same conditions
12377 --file=FILE[:TEMPLATE]
12378 instantiate the configuration file FILE
12379
12380 Configuration files:
12381 $config_files
12382
12383 Configuration commands:
12384 $config_commands
12385
12386 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>."
12387
12388 _ACEOF
12389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12391 ac_cs_version="\\
12392 xorgproto config.status 2021.5
12393 configured by $0, generated by GNU Autoconf 2.69,
12394 with options \\"\$ac_cs_config\\"
12395
12396 Copyright (C) 2012 Free Software Foundation, Inc.
12397 This config.status script is free software; the Free Software Foundation
12398 gives unlimited permission to copy, distribute and modify it."
12399
12400 ac_pwd='$ac_pwd'
12401 srcdir='$srcdir'
12402 INSTALL='$INSTALL'
12403 MKDIR_P='$MKDIR_P'
12404 AWK='$AWK'
12405 test -n "\$AWK" || AWK=awk
12406 _ACEOF
12407
12408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12409 # The default lists apply if the user does not specify any file.
12410 ac_need_defaults=:
12411 while test $# != 0
12412 do
12413 case $1 in
12414 --*=?*)
12415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12417 ac_shift=:
12418 ;;
12419 --*=)
12420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12421 ac_optarg=
12422 ac_shift=:
12423 ;;
12424 *)
12425 ac_option=$1
12426 ac_optarg=$2
12427 ac_shift=shift
12428 ;;
12429 esac
12430
12431 case $ac_option in
12432 # Handling of the options.
12433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12434 ac_cs_recheck=: ;;
12435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12436 $as_echo "$ac_cs_version"; exit ;;
12437 --config | --confi | --conf | --con | --co | --c )
12438 $as_echo "$ac_cs_config"; exit ;;
12439 --debug | --debu | --deb | --de | --d | -d )
12440 debug=: ;;
12441 --file | --fil | --fi | --f )
12442 $ac_shift
12443 case $ac_optarg in
12444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12445 '') as_fn_error $? "missing file argument" ;;
12446 esac
12447 as_fn_append CONFIG_FILES " '$ac_optarg'"
12448 ac_need_defaults=false;;
12449 --he | --h | --help | --hel | -h )
12450 $as_echo "$ac_cs_usage"; exit ;;
12451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12453 ac_cs_silent=: ;;
12454
12455 # This is an error.
12456 -*) as_fn_error $? "unrecognized option: \`$1'
12457 Try \`$0 --help' for more information." ;;
12458
12459 *) as_fn_append ac_config_targets " $1"
12460 ac_need_defaults=false ;;
12461
12462 esac
12463 shift
12464 done
12465
12466 ac_configure_extra_args=
12467
12468 if $ac_cs_silent; then
12469 exec 6>/dev/null
12470 ac_configure_extra_args="$ac_configure_extra_args --silent"
12471 fi
12472
12473 _ACEOF
12474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475 if \$ac_cs_recheck; then
12476 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12477 shift
12478 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12479 CONFIG_SHELL='$SHELL'
12480 export CONFIG_SHELL
12481 exec "\$@"
12482 fi
12483
12484 _ACEOF
12485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486 exec 5>>config.log
12487 {
12488 echo
12489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12490 ## Running $as_me. ##
12491 _ASBOX
12492 $as_echo "$ac_log"
12493 } >&5
12494
12495 _ACEOF
12496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497 #
12498 # INIT-COMMANDS
12499 #
12500 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12501
12502 _ACEOF
12503
12504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12505
12506 # Handling of arguments.
12507 for ac_config_target in $ac_config_targets
12508 do
12509 case $ac_config_target in
12510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12511 "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;;
12512 "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;;
12513 "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;;
12514 "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;;
12515 "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;;
12516 "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;;
12517 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
12518 "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;;
12519 "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;;
12520 "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;;
12521 "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;;
12522 "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;;
12523 "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;;
12524 "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;;
12525 "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;;
12526 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
12527 "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;;
12528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12529 "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;;
12530 "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;;
12531 "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;;
12532 "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;;
12533 "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;;
12534 "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;;
12535 "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;;
12536 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
12537 "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;;
12538 "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;;
12539 "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;;
12540 "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;;
12541 "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;;
12542 "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;;
12543 "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;;
12544 "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;;
12545 "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;;
12546 "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;;
12547 "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;;
12548 "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;;
12549 "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;;
12550 "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;;
12551 "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;;
12552 "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;;
12553 "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;;
12554 "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;;
12555 "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;;
12556 "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;;
12557 "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;;
12558 "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;;
12559 "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;;
12560
12561 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12562 esac
12563 done
12564
12565
12566 # If the user did not use the arguments to specify the items to instantiate,
12567 # then the envvar interface is used. Set only those that are not.
12568 # We use the long form for the default assignment because of an extremely
12569 # bizarre bug on SunOS 4.1.3.
12570 if $ac_need_defaults; then
12571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12573 fi
12574
12575 # Have a temporary directory for convenience. Make it in the build tree
12576 # simply because there is no reason against having it here, and in addition,
12577 # creating and moving files from /tmp can sometimes cause problems.
12578 # Hook for its removal unless debugging.
12579 # Note that there is a small window in which the directory will not be cleaned:
12580 # after its creation but before its name has been assigned to `$tmp'.
12581 $debug ||
12582 {
12583 tmp= ac_tmp=
12584 trap 'exit_status=$?
12585 : "${ac_tmp:=$tmp}"
12586 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12587 ' 0
12588 trap 'as_fn_exit 1' 1 2 13 15
12589 }
12590 # Create a (secure) tmp directory for tmp files.
12591
12592 {
12593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12594 test -d "$tmp"
12595 } ||
12596 {
12597 tmp=./conf$$-$RANDOM
12598 (umask 077 && mkdir "$tmp")
12599 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12600 ac_tmp=$tmp
12601
12602 # Set up the scripts for CONFIG_FILES section.
12603 # No need to generate them if there are no CONFIG_FILES.
12604 # This happens for instance with `./config.status config.h'.
12605 if test -n "$CONFIG_FILES"; then
12606
12607
12608 ac_cr=`echo X | tr X '\015'`
12609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12610 # But we know of no other shell where ac_cr would be empty at this
12611 # point, so we can use a bashism as a fallback.
12612 if test "x$ac_cr" = x; then
12613 eval ac_cr=\$\'\\r\'
12614 fi
12615 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12617 ac_cs_awk_cr='\\r'
12618 else
12619 ac_cs_awk_cr=$ac_cr
12620 fi
12621
12622 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12623 _ACEOF
12624
12625
12626 {
12627 echo "cat >conf$$subs.awk <<_ACEOF" &&
12628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12629 echo "_ACEOF"
12630 } >conf$$subs.sh ||
12631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12633 ac_delim='%!_!# '
12634 for ac_last_try in false false false false false :; do
12635 . ./conf$$subs.sh ||
12636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12637
12638 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12639 if test $ac_delim_n = $ac_delim_num; then
12640 break
12641 elif $ac_last_try; then
12642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12643 else
12644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12645 fi
12646 done
12647 rm -f conf$$subs.sh
12648
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12651 _ACEOF
12652 sed -n '
12653 h
12654 s/^/S["/; s/!.*/"]=/
12655 p
12656 g
12657 s/^[^!]*!//
12658 :repl
12659 t repl
12660 s/'"$ac_delim"'$//
12661 t delim
12662 :nl
12663 h
12664 s/\(.\{148\}\)..*/\1/
12665 t more1
12666 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12667 p
12668 n
12669 b repl
12670 :more1
12671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12672 p
12673 g
12674 s/.\{148\}//
12675 t nl
12676 :delim
12677 h
12678 s/\(.\{148\}\)..*/\1/
12679 t more2
12680 s/["\\]/\\&/g; s/^/"/; s/$/"/
12681 p
12682 b
12683 :more2
12684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12685 p
12686 g
12687 s/.\{148\}//
12688 t delim
12689 ' <conf$$subs.awk | sed '
12690 /^[^""]/{
12691 N
12692 s/\n//
12693 }
12694 ' >>$CONFIG_STATUS || ac_write_fail=1
12695 rm -f conf$$subs.awk
12696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12697 _ACAWK
12698 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12699 for (key in S) S_is_set[key] = 1
12700 FS = ""
12701
12702 }
12703 {
12704 line = $ 0
12705 nfields = split(line, field, "@")
12706 substed = 0
12707 len = length(field[1])
12708 for (i = 2; i < nfields; i++) {
12709 key = field[i]
12710 keylen = length(key)
12711 if (S_is_set[key]) {
12712 value = S[key]
12713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12714 len += length(value) + length(field[++i])
12715 substed = 1
12716 } else
12717 len += 1 + keylen
12718 }
12719
12720 print line
12721 }
12722
12723 _ACAWK
12724 _ACEOF
12725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12728 else
12729 cat
12730 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12732 _ACEOF
12733
12734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12736 # trailing colons and then remove the whole line if VPATH becomes empty
12737 # (actually we leave an empty line to preserve line numbers).
12738 if test "x$srcdir" = x.; then
12739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12740 h
12741 s///
12742 s/^/:/
12743 s/[ ]*$/:/
12744 s/:\$(srcdir):/:/g
12745 s/:\${srcdir}:/:/g
12746 s/:@srcdir@:/:/g
12747 s/^:*//
12748 s/:*$//
12749 x
12750 s/\(=[ ]*\).*/\1/
12751 G
12752 s/\n//
12753 s/^[^=]*=[ ]*$//
12754 }'
12755 fi
12756
12757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758 fi # test -n "$CONFIG_FILES"
12759
12760
12761 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12762 shift
12763 for ac_tag
12764 do
12765 case $ac_tag in
12766 :[FHLC]) ac_mode=$ac_tag; continue;;
12767 esac
12768 case $ac_mode$ac_tag in
12769 :[FHL]*:*);;
12770 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12771 :[FH]-) ac_tag=-:-;;
12772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12773 esac
12774 ac_save_IFS=$IFS
12775 IFS=:
12776 set x $ac_tag
12777 IFS=$ac_save_IFS
12778 shift
12779 ac_file=$1
12780 shift
12781
12782 case $ac_mode in
12783 :L) ac_source=$1;;
12784 :[FH])
12785 ac_file_inputs=
12786 for ac_f
12787 do
12788 case $ac_f in
12789 -) ac_f="$ac_tmp/stdin";;
12790 *) # Look for the file first in the build tree, then in the source tree
12791 # (if the path is not absolute). The absolute path cannot be DOS-style,
12792 # because $ac_f cannot contain `:'.
12793 test -f "$ac_f" ||
12794 case $ac_f in
12795 [\\/$]*) false;;
12796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12797 esac ||
12798 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12799 esac
12800 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12801 as_fn_append ac_file_inputs " '$ac_f'"
12802 done
12803
12804 # Let's still pretend it is `configure' which instantiates (i.e., don't
12805 # use $as_me), people would be surprised to read:
12806 # /* config.h. Generated by config.status. */
12807 configure_input='Generated from '`
12808 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12809 `' by configure.'
12810 if test x"$ac_file" != x-; then
12811 configure_input="$ac_file. $configure_input"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12813 $as_echo "$as_me: creating $ac_file" >&6;}
12814 fi
12815 # Neutralize special characters interpreted by sed in replacement strings.
12816 case $configure_input in #(
12817 *\&* | *\|* | *\\* )
12818 ac_sed_conf_input=`$as_echo "$configure_input" |
12819 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12820 *) ac_sed_conf_input=$configure_input;;
12821 esac
12822
12823 case $ac_tag in
12824 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12826 esac
12827 ;;
12828 esac
12829
12830 ac_dir=`$as_dirname -- "$ac_file" ||
12831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12832 X"$ac_file" : 'X\(//\)[^/]' \| \
12833 X"$ac_file" : 'X\(//\)$' \| \
12834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12835 $as_echo X"$ac_file" |
12836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12837 s//\1/
12838 q
12839 }
12840 /^X\(\/\/\)[^/].*/{
12841 s//\1/
12842 q
12843 }
12844 /^X\(\/\/\)$/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\).*/{
12849 s//\1/
12850 q
12851 }
12852 s/.*/./; q'`
12853 as_dir="$ac_dir"; as_fn_mkdir_p
12854 ac_builddir=.
12855
12856 case "$ac_dir" in
12857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12858 *)
12859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12860 # A ".." for each directory in $ac_dir_suffix.
12861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12862 case $ac_top_builddir_sub in
12863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12865 esac ;;
12866 esac
12867 ac_abs_top_builddir=$ac_pwd
12868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12869 # for backward compatibility:
12870 ac_top_builddir=$ac_top_build_prefix
12871
12872 case $srcdir in
12873 .) # We are building in place.
12874 ac_srcdir=.
12875 ac_top_srcdir=$ac_top_builddir_sub
12876 ac_abs_top_srcdir=$ac_pwd ;;
12877 [\\/]* | ?:[\\/]* ) # Absolute name.
12878 ac_srcdir=$srcdir$ac_dir_suffix;
12879 ac_top_srcdir=$srcdir
12880 ac_abs_top_srcdir=$srcdir ;;
12881 *) # Relative name.
12882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12883 ac_top_srcdir=$ac_top_build_prefix$srcdir
12884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12885 esac
12886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12887
12888
12889 case $ac_mode in
12890 :F)
12891 #
12892 # CONFIG_FILE
12893 #
12894
12895 case $INSTALL in
12896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12897 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12898 esac
12899 ac_MKDIR_P=$MKDIR_P
12900 case $MKDIR_P in
12901 [\\/$]* | ?:[\\/]* ) ;;
12902 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12903 esac
12904 _ACEOF
12905
12906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907 # If the template does not know about datarootdir, expand it.
12908 # FIXME: This hack should be removed a few years after 2.60.
12909 ac_datarootdir_hack=; ac_datarootdir_seen=
12910 ac_sed_dataroot='
12911 /datarootdir/ {
12912 p
12913 q
12914 }
12915 /@datadir@/p
12916 /@docdir@/p
12917 /@infodir@/p
12918 /@localedir@/p
12919 /@mandir@/p'
12920 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12921 *datarootdir*) ac_datarootdir_seen=yes;;
12922 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12924 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12925 _ACEOF
12926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12927 ac_datarootdir_hack='
12928 s&@datadir@&$datadir&g
12929 s&@docdir@&$docdir&g
12930 s&@infodir@&$infodir&g
12931 s&@localedir@&$localedir&g
12932 s&@mandir@&$mandir&g
12933 s&\\\${datarootdir}&$datarootdir&g' ;;
12934 esac
12935 _ACEOF
12936
12937 # Neutralize VPATH when `$srcdir' = `.'.
12938 # Shell code in configure.ac might set extrasub.
12939 # FIXME: do we really want to maintain this feature?
12940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941 ac_sed_extra="$ac_vpsub
12942 $extrasub
12943 _ACEOF
12944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12945 :t
12946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12947 s|@configure_input@|$ac_sed_conf_input|;t t
12948 s&@top_builddir@&$ac_top_builddir_sub&;t t
12949 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12950 s&@srcdir@&$ac_srcdir&;t t
12951 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12952 s&@top_srcdir@&$ac_top_srcdir&;t t
12953 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12954 s&@builddir@&$ac_builddir&;t t
12955 s&@abs_builddir@&$ac_abs_builddir&;t t
12956 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12957 s&@INSTALL@&$ac_INSTALL&;t t
12958 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12959 $ac_datarootdir_hack
12960 "
12961 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12963
12964 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12967 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12969 which seems to be undefined. Please make sure it is defined" >&5
12970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12971 which seems to be undefined. Please make sure it is defined" >&2;}
12972
12973 rm -f "$ac_tmp/stdin"
12974 case $ac_file in
12975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12977 esac \
12978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12979 ;;
12980
12981
12982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12983 $as_echo "$as_me: executing $ac_file commands" >&6;}
12984 ;;
12985 esac
12986
12987
12988 case $ac_file$ac_mode in
12989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12990 # Older Autoconf quotes --file arguments for eval, but not when files
12991 # are listed without --file. Let's play safe and only enable the eval
12992 # if we detect the quoting.
12993 # TODO: see whether this extra hack can be removed once we start
12994 # requiring Autoconf 2.70 or later.
12995 case $CONFIG_FILES in #(
12996 *\'*) :
12997 eval set x "$CONFIG_FILES" ;; #(
12998 *) :
12999 set x $CONFIG_FILES ;; #(
13000 *) :
13001 ;;
13002 esac
13003 shift
13004 # Used to flag and report bootstrapping failures.
13005 am_rc=0
13006 for am_mf
13007 do
13008 # Strip MF so we end up with the name of the file.
13009 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13010 # Check whether this is an Automake generated Makefile which includes
13011 # dependency-tracking related rules and includes.
13012 # Grep'ing the whole file directly is not great: AIX grep has a line
13013 # limit of 2048, but all sed's we know have understand at least 4000.
13014 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13015 || continue
13016 am_dirpart=`$as_dirname -- "$am_mf" ||
13017 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13018 X"$am_mf" : 'X\(//\)[^/]' \| \
13019 X"$am_mf" : 'X\(//\)$' \| \
13020 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13021 $as_echo X"$am_mf" |
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13023 s//\1/
13024 q
13025 }
13026 /^X\(\/\/\)[^/].*/{
13027 s//\1/
13028 q
13029 }
13030 /^X\(\/\/\)$/{
13031 s//\1/
13032 q
13033 }
13034 /^X\(\/\).*/{
13035 s//\1/
13036 q
13037 }
13038 s/.*/./; q'`
13039 am_filepart=`$as_basename -- "$am_mf" ||
13040 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13041 X"$am_mf" : 'X\(//\)$' \| \
13042 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13043 $as_echo X/"$am_mf" |
13044 sed '/^.*\/\([^/][^/]*\)\/*$/{
13045 s//\1/
13046 q
13047 }
13048 /^X\/\(\/\/\)$/{
13049 s//\1/
13050 q
13051 }
13052 /^X\/\(\/\).*/{
13053 s//\1/
13054 q
13055 }
13056 s/.*/./; q'`
13057 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13058 && sed -e '/# am--include-marker/d' "$am_filepart" \
13059 | $MAKE -f - am--depfiles" >&5
13060 (cd "$am_dirpart" \
13061 && sed -e '/# am--include-marker/d' "$am_filepart" \
13062 | $MAKE -f - am--depfiles) >&5 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } || am_rc=$?
13066 done
13067 if test $am_rc -ne 0; then
13068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13070 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13071 for automatic dependency tracking. Try re-running configure with the
13072 '--disable-dependency-tracking' option to at least be able to build
13073 the package (albeit without support for automatic dependency tracking).
13074 See \`config.log' for more details" "$LINENO" 5; }
13075 fi
13076 { am_dirpart=; unset am_dirpart;}
13077 { am_filepart=; unset am_filepart;}
13078 { am_mf=; unset am_mf;}
13079 { am_rc=; unset am_rc;}
13080 rm -f conftest-deps.mk
13081 }
13082 ;;
13083
13084 esac
13085 done # for ac_tag
13086
13087
13088 as_fn_exit 0
13089 _ACEOF
13090 ac_clean_files=$ac_clean_files_save
13091
13092 test $ac_write_fail = 0 ||
13093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13094
13095
13096 # configure is writing to config.log, and then calls config.status.
13097 # config.status does its own redirection, appending to config.log.
13098 # Unfortunately, on DOS this fails, as config.log is still kept open
13099 # by configure, so config.status won't be able to write to it; its
13100 # output is simply discarded. So we exec the FD to /dev/null,
13101 # effectively closing config.log, so it can be properly (re)opened and
13102 # appended to by config.status. When coming back to configure, we
13103 # need to make the FD available again.
13104 if test "$no_create" != yes; then
13105 ac_cs_success=:
13106 ac_config_status_args=
13107 test "$silent" = yes &&
13108 ac_config_status_args="$ac_config_status_args --quiet"
13109 exec 5>/dev/null
13110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13111 exec 5>>config.log
13112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13113 # would make configure fail if this is the last instruction.
13114 $ac_cs_success || as_fn_exit 1
13115 fi
13116 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13118 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13119 fi
13120
13121