configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xorg-docs 1.7.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='xorg-docs'
643 PACKAGE_TARNAME='xorg-docs'
644 PACKAGE_VERSION='1.7.1'
645 PACKAGE_STRING='xorg-docs 1.7.1'
646 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
647 PACKAGE_URL=''
648
649 ac_unique_file="Makefile.am"
650 # Factoring default headers for most tests.
651 ac_includes_default="\
652 #include <stdio.h>
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef STDC_HEADERS
660 # include <stdlib.h>
661 # include <stddef.h>
662 #else
663 # ifdef HAVE_STDLIB_H
664 # include <stdlib.h>
665 # endif
666 #endif
667 #ifdef HAVE_STRING_H
668 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
669 # include <memory.h>
670 # endif
671 # include <string.h>
672 #endif
673 #ifdef HAVE_STRINGS_H
674 # include <strings.h>
675 #endif
676 #ifdef HAVE_INTTYPES_H
677 # include <inttypes.h>
678 #endif
679 #ifdef HAVE_STDINT_H
680 # include <stdint.h>
681 #endif
682 #ifdef HAVE_UNISTD_H
683 # include <unistd.h>
684 #endif"
685
686 ac_subst_vars='am__EXEEXT_FALSE
687 am__EXEEXT_TRUE
688 LTLIBOBJS
689 LIBOBJS
690 HAVE_STYLESHEETS_FALSE
691 HAVE_STYLESHEETS_TRUE
692 XSL_STYLESHEET
693 STYLESHEET_SRCDIR
694 XORG_SGML_PATH
695 HAVE_FOP_FALSE
696 HAVE_FOP_TRUE
697 FOP
698 HAVE_XSLTPROC_FALSE
699 HAVE_XSLTPROC_TRUE
700 XSLTPROC
701 HAVE_XMLTO_FALSE
702 HAVE_XMLTO_TRUE
703 HAVE_XMLTO_TEXT_FALSE
704 HAVE_XMLTO_TEXT_TRUE
705 XMLTO
706 ENABLE_SPECS_FALSE
707 ENABLE_SPECS_TRUE
708 ENABLE_DOCS_FALSE
709 ENABLE_DOCS_TRUE
710 MAN_SUBSTS
711 XORG_MAN_PAGE
712 ADMIN_MAN_DIR
713 DRIVER_MAN_DIR
714 MISC_MAN_DIR
715 FILE_MAN_DIR
716 LIB_MAN_DIR
717 APP_MAN_DIR
718 ADMIN_MAN_SUFFIX
719 DRIVER_MAN_SUFFIX
720 MISC_MAN_SUFFIX
721 FILE_MAN_SUFFIX
722 LIB_MAN_SUFFIX
723 APP_MAN_SUFFIX
724 SED
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 INSTALL_CMD
734 PKG_CONFIG
735 CHANGELOG_CMD
736 STRICT_CFLAGS
737 CWARNFLAGS
738 BASE_CFLAGS
739 EGREP
740 GREP
741 CPP
742 am__fastdepCC_FALSE
743 am__fastdepCC_TRUE
744 CCDEPMODE
745 am__nodep
746 AMDEPBACKSLASH
747 AMDEP_FALSE
748 AMDEP_TRUE
749 am__quote
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 AM_BACKSLASH
760 AM_DEFAULT_VERBOSITY
761 AM_DEFAULT_V
762 AM_V
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_silent_rules
828 enable_dependency_tracking
829 enable_selective_werror
830 enable_strict_compilation
831 enable_docs
832 enable_specs
833 with_xmlto
834 with_xsltproc
835 with_fop
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CPP
846 PKG_CONFIG
847 XMLTO
848 XSLTPROC
849 FOP'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures xorg-docs 1.7.1 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-docs]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of xorg-docs 1.7.1:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-selective-werror
1475 Turn off selective compiler errors. (default:
1476 enabled)
1477 --enable-strict-compilation
1478 Enable all warnings from compiler and make them
1479 errors (default: disabled)
1480 --enable-docs Enable building the documentation (default: yes)
1481 --enable-specs Enable building the specs (default: yes)
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-xmlto Use xmlto to regenerate documentation (default:
1487 auto)
1488 --with-xsltproc Use xsltproc for the transformation of XML documents
1489 (default: auto)
1490 --with-fop Use fop to regenerate documentation (default: auto)
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 PKG_CONFIG path to pkg-config utility
1502 XMLTO Path to xmlto command
1503 XSLTPROC Path to xsltproc command
1504 FOP Path to fop command
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 continue
1520 ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539 .) # We are building in place.
1540 ac_srcdir=.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571 cat <<\_ACEOF
1572 xorg-docs configure 1.7.1
1573 generated by GNU Autoconf 2.69
1574
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1625 # ---------------------------------------------
1626 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_decl ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 as_decl_name=`echo $2|sed 's/ *(.*//'`
1632 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 int
1642 main ()
1643 {
1644 #ifndef $as_decl_name
1645 #ifdef __cplusplus
1646 (void) $as_decl_use;
1647 #else
1648 (void) $as_decl_name;
1649 #endif
1650 #endif
1651
1652 ;
1653 return 0;
1654 }
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_decl
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825 cat >config.log <<_ACEOF
1826 This file contains any messages produced by compilers while
1827 running configure, to aid debugging if configure makes a mistake.
1828
1829 It was created by xorg-docs $as_me 1.7.1, which was
1830 generated by GNU Autoconf 2.69. Invocation command line was
1831
1832 $ $0 $@
1833
1834 _ACEOF
1835 exec 5>>config.log
1836 {
1837 cat <<_ASUNAME
1838 ## --------- ##
1839 ## Platform. ##
1840 ## --------- ##
1841
1842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847
1848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1850
1851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1858
1859 _ASUNAME
1860
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 $as_echo "PATH: $as_dir"
1867 done
1868 IFS=$as_save_IFS
1869
1870 } >&5
1871
1872 cat >&5 <<_ACEOF
1873
1874
1875 ## ----------- ##
1876 ## Core tests. ##
1877 ## ----------- ##
1878
1879 _ACEOF
1880
1881
1882 # Keep a trace of the command line.
1883 # Strip out --no-create and --no-recursion so they do not pile up.
1884 # Strip out --silent because we don't want to record it for future runs.
1885 # Also quote any args containing shell meta-characters.
1886 # Make two passes to allow for proper duplicate-argument suppression.
1887 ac_configure_args=
1888 ac_configure_args0=
1889 ac_configure_args1=
1890 ac_must_keep_next=false
1891 for ac_pass in 1 2
1892 do
1893 for ac_arg
1894 do
1895 case $ac_arg in
1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898 | -silent | --silent | --silen | --sile | --sil)
1899 continue ;;
1900 *\'*)
1901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 esac
1903 case $ac_pass in
1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 2)
1906 as_fn_append ac_configure_args1 " '$ac_arg'"
1907 if test $ac_must_keep_next = true; then
1908 ac_must_keep_next=false # Got value, back to normal.
1909 else
1910 case $ac_arg in
1911 *=* | --config-cache | -C | -disable-* | --disable-* \
1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1914 | -with-* | --with-* | -without-* | --without-* | --x)
1915 case "$ac_configure_args0 " in
1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 esac
1918 ;;
1919 -* ) ac_must_keep_next=true ;;
1920 esac
1921 fi
1922 as_fn_append ac_configure_args " '$ac_arg'"
1923 ;;
1924 esac
1925 done
1926 done
1927 { ac_configure_args0=; unset ac_configure_args0;}
1928 { ac_configure_args1=; unset ac_configure_args1;}
1929
1930 # When interrupted or exit'd, cleanup temporary files, and complete
1931 # config.log. We remove comments because anyway the quotes in there
1932 # would cause problems or look ugly.
1933 # WARNING: Use '\'' to represent an apostrophe within the trap.
1934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1935 trap 'exit_status=$?
1936 # Save into config.log some information that might help in debugging.
1937 {
1938 echo
1939
1940 $as_echo "## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##"
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 $as_echo "## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##"
1979 echo
1980 for ac_var in $ac_subst_vars
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 $as_echo "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989
1990 if test -n "$ac_subst_files"; then
1991 $as_echo "## ------------------- ##
1992 ## File substitutions. ##
1993 ## ------------------- ##"
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 $as_echo "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 $as_echo "## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##"
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 $as_echo "$as_me: caught signal $ac_signal"
2016 $as_echo "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021 ' 0
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024 done
2025 ac_signal=0
2026
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2029
2030 $as_echo "/* confdefs.h */" > confdefs.h
2031
2032 # Predefined preprocessor variables.
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 _ACEOF
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 _ACEOF
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 _ACEOF
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_URL "$PACKAGE_URL"
2056 _ACEOF
2057
2058
2059 # Let the site file select an alternate cache file if it wants to.
2060 # Prefer an explicitly selected file to automatically selected ones.
2061 ac_site_file1=NONE
2062 ac_site_file2=NONE
2063 if test -n "$CONFIG_SITE"; then
2064 # We do not want a PATH search for config.site.
2065 case $CONFIG_SITE in #((
2066 -*) ac_site_file1=./$CONFIG_SITE;;
2067 */*) ac_site_file1=$CONFIG_SITE;;
2068 *) ac_site_file1=./$CONFIG_SITE;;
2069 esac
2070 elif test "x$prefix" != xNONE; then
2071 ac_site_file1=$prefix/share/config.site
2072 ac_site_file2=$prefix/etc/config.site
2073 else
2074 ac_site_file1=$ac_default_prefix/share/config.site
2075 ac_site_file2=$ac_default_prefix/etc/config.site
2076 fi
2077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078 do
2079 test "x$ac_site_file" = xNONE && continue
2080 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083 sed 's/^/| /' "$ac_site_file" >&5
2084 . "$ac_site_file" \
2085 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087 as_fn_error $? "failed to load site script $ac_site_file
2088 See \`config.log' for more details" "$LINENO" 5; }
2089 fi
2090 done
2091
2092 if test -r "$cache_file"; then
2093 # Some versions of bash will fail to source /dev/null (special files
2094 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097 $as_echo "$as_me: loading cache $cache_file" >&6;}
2098 case $cache_file in
2099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100 *) . "./$cache_file";;
2101 esac
2102 fi
2103 else
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105 $as_echo "$as_me: creating cache $cache_file" >&6;}
2106 >$cache_file
2107 fi
2108
2109 # Check that the precious variables saved in the cache have kept the same
2110 # value.
2111 ac_cache_corrupted=false
2112 for ac_var in $ac_precious_vars; do
2113 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2114 eval ac_new_set=\$ac_env_${ac_var}_set
2115 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2116 eval ac_new_val=\$ac_env_${ac_var}_value
2117 case $ac_old_set,$ac_new_set in
2118 set,)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,set)
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2124 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2126 ,);;
2127 *)
2128 if test "x$ac_old_val" != "x$ac_new_val"; then
2129 # differences in whitespace do not lead to failure.
2130 ac_old_val_w=`echo x $ac_old_val`
2131 ac_new_val_w=`echo x $ac_new_val`
2132 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2134 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 ac_cache_corrupted=:
2136 else
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2138 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2139 eval $ac_var=\$ac_old_val
2140 fi
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2142 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2144 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 fi;;
2146 esac
2147 # Pass precious variables to config.status.
2148 if test "$ac_new_set" = set; then
2149 case $ac_new_val in
2150 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2151 *) ac_arg=$ac_var=$ac_new_val ;;
2152 esac
2153 case " $ac_configure_args " in
2154 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2155 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2156 esac
2157 fi
2158 done
2159 if $ac_cache_corrupted; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2163 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2165 fi
2166 ## -------------------- ##
2167 ## Main body of script. ##
2168 ## -------------------- ##
2169
2170 ac_ext=c
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
2176
2177
2178
2179 # Initialize Automake
2180 am__api_version='1.15'
2181
2182 ac_aux_dir=
2183 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184 if test -f "$ac_dir/install-sh"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/install-sh -c"
2187 break
2188 elif test -f "$ac_dir/install.sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install.sh -c"
2191 break
2192 elif test -f "$ac_dir/shtool"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/shtool install -c"
2195 break
2196 fi
2197 done
2198 if test -z "$ac_aux_dir"; then
2199 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2200 fi
2201
2202 # These three variables are undocumented and unsupported,
2203 # and are intended to be withdrawn in a future Autoconf release.
2204 # They can cause serious problems if a builder's source tree is in a directory
2205 # whose full name contains unusual characters.
2206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209
2210
2211 # Find a good install program. We prefer a C program (faster),
2212 # so one script is as good as another. But avoid the broken or
2213 # incompatible versions:
2214 # SysV /etc/install, /usr/sbin/install
2215 # SunOS /usr/etc/install
2216 # IRIX /sbin/install
2217 # AIX /bin/install
2218 # AmigaOS /C/install, which installs bootblocks on floppy discs
2219 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2220 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2221 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2222 # OS/2's system install, which has a completely different semantic
2223 # ./install, which can be erroneously created by make from ./install.sh.
2224 # Reject install programs that cannot install multiple files.
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2226 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2227 if test -z "$INSTALL"; then
2228 if ${ac_cv_path_install+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 # Account for people who put trailing slashes in PATH elements.
2237 case $as_dir/ in #((
2238 ./ | .// | /[cC]/* | \
2239 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2240 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2241 /usr/ucb/* ) ;;
2242 *)
2243 # OSF1 and SCO ODT 3.0 have their own names for install.
2244 # Don't use installbsd from OSF since it installs stuff as root
2245 # by default.
2246 for ac_prog in ginstall scoinst install; do
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2249 if test $ac_prog = install &&
2250 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2251 # AIX install. It has an incompatible calling convention.
2252 :
2253 elif test $ac_prog = install &&
2254 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255 # program-specific install script used by HP pwplus--don't use.
2256 :
2257 else
2258 rm -rf conftest.one conftest.two conftest.dir
2259 echo one > conftest.one
2260 echo two > conftest.two
2261 mkdir conftest.dir
2262 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2263 test -s conftest.one && test -s conftest.two &&
2264 test -s conftest.dir/conftest.one &&
2265 test -s conftest.dir/conftest.two
2266 then
2267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2268 break 3
2269 fi
2270 fi
2271 fi
2272 done
2273 done
2274 ;;
2275 esac
2276
2277 done
2278 IFS=$as_save_IFS
2279
2280 rm -rf conftest.one conftest.two conftest.dir
2281
2282 fi
2283 if test "${ac_cv_path_install+set}" = set; then
2284 INSTALL=$ac_cv_path_install
2285 else
2286 # As a last resort, use the slow shell script. Don't cache a
2287 # value for INSTALL within a source directory, because that will
2288 # break other packages using the cache if that directory is
2289 # removed, or if the value is a relative name.
2290 INSTALL=$ac_install_sh
2291 fi
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2294 $as_echo "$INSTALL" >&6; }
2295
2296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2297 # It thinks the first close brace ends the variable substitution.
2298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2299
2300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2301
2302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2303
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2305 $as_echo_n "checking whether build environment is sane... " >&6; }
2306 # Reject unsafe characters in $srcdir or the absolute working directory
2307 # name. Accept space and tab only in the latter.
2308 am_lf='
2309 '
2310 case `pwd` in
2311 *[\\\"\#\$\&\'\`$am_lf]*)
2312 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2313 esac
2314 case $srcdir in
2315 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2316 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2317 esac
2318
2319 # Do 'set' in a subshell so we don't clobber the current shell's
2320 # arguments. Must try -L first in case configure is actually a
2321 # symlink; some systems play weird games with the mod time of symlinks
2322 # (eg FreeBSD returns the mod time of the symlink's containing
2323 # directory).
2324 if (
2325 am_has_slept=no
2326 for am_try in 1 2; do
2327 echo "timestamp, slept: $am_has_slept" > conftest.file
2328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2329 if test "$*" = "X"; then
2330 # -L didn't work.
2331 set X `ls -t "$srcdir/configure" conftest.file`
2332 fi
2333 if test "$*" != "X $srcdir/configure conftest.file" \
2334 && test "$*" != "X conftest.file $srcdir/configure"; then
2335
2336 # If neither matched, then we have a broken ls. This can happen
2337 # if, for instance, CONFIG_SHELL is bash and it inherits a
2338 # broken ls alias from the environment. This has actually
2339 # happened. Such a system could not be considered "sane".
2340 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2341 alias in your environment" "$LINENO" 5
2342 fi
2343 if test "$2" = conftest.file || test $am_try -eq 2; then
2344 break
2345 fi
2346 # Just in case.
2347 sleep 1
2348 am_has_slept=yes
2349 done
2350 test "$2" = conftest.file
2351 )
2352 then
2353 # Ok.
2354 :
2355 else
2356 as_fn_error $? "newly created file is older than distributed files!
2357 Check your system clock" "$LINENO" 5
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2360 $as_echo "yes" >&6; }
2361 # If we didn't sleep, we still need to ensure time stamps of config.status and
2362 # generated files are strictly newer.
2363 am_sleep_pid=
2364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2365 ( sleep 1 ) &
2366 am_sleep_pid=$!
2367 fi
2368
2369 rm -f conftest.file
2370
2371 test "$program_prefix" != NONE &&
2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
2381 # Expand $ac_aux_dir to an absolute path.
2382 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2383
2384 if test x"${MISSING+set}" != xset; then
2385 case $am_aux_dir in
2386 *\ * | *\ *)
2387 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2388 *)
2389 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2390 esac
2391 fi
2392 # Use eval to expand $SHELL
2393 if eval "$MISSING --is-lightweight"; then
2394 am_missing_run="$MISSING "
2395 else
2396 am_missing_run=
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2398 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2399 fi
2400
2401 if test x"${install_sh+set}" != xset; then
2402 case $am_aux_dir in
2403 *\ * | *\ *)
2404 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2405 *)
2406 install_sh="\${SHELL} $am_aux_dir/install-sh"
2407 esac
2408 fi
2409
2410 # Installed binaries are usually stripped using 'strip' when the user
2411 # run "make install-strip". However 'strip' might not be the right
2412 # tool to use in cross-compilation environments, therefore Automake
2413 # will honor the 'STRIP' environment variable to overrule this program.
2414 if test "$cross_compiling" != no; then
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}strip; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_STRIP+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$STRIP"; then
2424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 STRIP=$ac_cv_prog_STRIP
2444 if test -n "$STRIP"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2446 $as_echo "$STRIP" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452
2453 fi
2454 if test -z "$ac_cv_prog_STRIP"; then
2455 ac_ct_STRIP=$STRIP
2456 # Extract the first word of "strip", so it can be a program name with args.
2457 set dummy strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$ac_ct_STRIP"; then
2464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_STRIP="strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2484 if test -n "$ac_ct_STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2486 $as_echo "$ac_ct_STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492 if test "x$ac_ct_STRIP" = x; then
2493 STRIP=":"
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2499 ac_tool_warned=yes ;;
2500 esac
2501 STRIP=$ac_ct_STRIP
2502 fi
2503 else
2504 STRIP="$ac_cv_prog_STRIP"
2505 fi
2506
2507 fi
2508 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2511 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2512 if test -z "$MKDIR_P"; then
2513 if ${ac_cv_path_mkdir+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_prog in mkdir gmkdir; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2524 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2525 'mkdir (GNU coreutils) '* | \
2526 'mkdir (coreutils) '* | \
2527 'mkdir (fileutils) '4.1*)
2528 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2529 break 3;;
2530 esac
2531 done
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537
2538 test -d ./--version && rmdir ./--version
2539 if test "${ac_cv_path_mkdir+set}" = set; then
2540 MKDIR_P="$ac_cv_path_mkdir -p"
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for MKDIR_P within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 MKDIR_P="$ac_install_sh -d"
2547 fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2550 $as_echo "$MKDIR_P" >&6; }
2551
2552 for ac_prog in gawk mawk nawk awk
2553 do
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_AWK+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$AWK"; then
2562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_AWK="$ac_prog"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 AWK=$ac_cv_prog_AWK
2582 if test -n "$AWK"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584 $as_echo "$AWK" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 test -n "$AWK" && break
2592 done
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596 set x ${MAKE-make}
2597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat >conftest.make <<\_ACEOF
2602 SHELL = /bin/sh
2603 all:
2604 @echo '@@@%%%=$(MAKE)=@@@%%%'
2605 _ACEOF
2606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608 *@@@%%%=?*=@@@%%%*)
2609 eval ac_cv_prog_make_${ac_make}_set=yes;;
2610 *)
2611 eval ac_cv_prog_make_${ac_make}_set=no;;
2612 esac
2613 rm -f conftest.make
2614 fi
2615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 SET_MAKE=
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 SET_MAKE="MAKE=${MAKE-make}"
2623 fi
2624
2625 rm -rf .tst 2>/dev/null
2626 mkdir .tst 2>/dev/null
2627 if test -d .tst; then
2628 am__leading_dot=.
2629 else
2630 am__leading_dot=_
2631 fi
2632 rmdir .tst 2>/dev/null
2633
2634 # Check whether --enable-silent-rules was given.
2635 if test "${enable_silent_rules+set}" = set; then :
2636 enableval=$enable_silent_rules;
2637 fi
2638
2639 case $enable_silent_rules in # (((
2640 yes) AM_DEFAULT_VERBOSITY=0;;
2641 no) AM_DEFAULT_VERBOSITY=1;;
2642 *) AM_DEFAULT_VERBOSITY=1;;
2643 esac
2644 am_make=${MAKE-make}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2646 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2647 if ${am_cv_make_support_nested_variables+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if $as_echo 'TRUE=$(BAR$(V))
2651 BAR0=false
2652 BAR1=true
2653 V=1
2654 am__doit:
2655 @$(TRUE)
2656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2657 am_cv_make_support_nested_variables=yes
2658 else
2659 am_cv_make_support_nested_variables=no
2660 fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2663 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2664 if test $am_cv_make_support_nested_variables = yes; then
2665 AM_V='$(V)'
2666 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2667 else
2668 AM_V=$AM_DEFAULT_VERBOSITY
2669 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2670 fi
2671 AM_BACKSLASH='\'
2672
2673 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2674 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2675 # is not polluted with repeated "-I."
2676 am__isrc=' -I$(srcdir)'
2677 # test to see if srcdir already configured
2678 if test -f $srcdir/config.status; then
2679 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2680 fi
2681 fi
2682
2683 # test whether we have cygpath
2684 if test -z "$CYGPATH_W"; then
2685 if (cygpath --version) >/dev/null 2>/dev/null; then
2686 CYGPATH_W='cygpath -w'
2687 else
2688 CYGPATH_W=echo
2689 fi
2690 fi
2691
2692
2693 # Define the identity of the package.
2694 PACKAGE='xorg-docs'
2695 VERSION='1.7.1'
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE "$PACKAGE"
2700 _ACEOF
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define VERSION "$VERSION"
2705 _ACEOF
2706
2707 # Some tools Automake needs.
2708
2709 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710
2711
2712 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713
2714
2715 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716
2717
2718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719
2720
2721 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2722
2723 # For better backward compatibility. To be removed once Automake 1.9.x
2724 # dies out for good. For more background, see:
2725 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2726 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2727 mkdir_p='$(MKDIR_P)'
2728
2729 # We need awk for the "check" target (and possibly the TAP driver). The
2730 # system "awk" is bad on some platforms.
2731 # Always define AMTAR for backward compatibility. Yes, it's still used
2732 # in the wild :-( We should find a proper way to deprecate it ...
2733 AMTAR='$${TAR-tar}'
2734
2735
2736 # We'll loop over all known methods to create a tar archive until one works.
2737 _am_tools='gnutar pax cpio none'
2738
2739 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2740
2741
2742
2743
2744
2745
2746 # POSIX will say in a future version that running "rm -f" with no argument
2747 # is OK; and we want to be able to make that assumption in our Makefile
2748 # recipes. So use an aggressive probe to check that the usage we want is
2749 # actually supported "in the wild" to an acceptable degree.
2750 # See automake bug#10828.
2751 # To make any issue more visible, cause the running configure to be aborted
2752 # by default if the 'rm' program in use doesn't match our expectations; the
2753 # user can still override this though.
2754 if rm -f && rm -fr && rm -rf; then : OK; else
2755 cat >&2 <<'END'
2756 Oops!
2757
2758 Your 'rm' program seems unable to run without file operands specified
2759 on the command line, even when the '-f' option is present. This is contrary
2760 to the behaviour of most rm programs out there, and not conforming with
2761 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2762
2763 Please tell bug-automake@gnu.org about your system, including the value
2764 of your $PATH and any error possibly output before this message. This
2765 can help us improve future automake versions.
2766
2767 END
2768 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2769 echo 'Configuration will proceed anyway, since you have set the' >&2
2770 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2771 echo >&2
2772 else
2773 cat >&2 <<'END'
2774 Aborting the configuration process, to ensure you take notice of the issue.
2775
2776 You can download and install GNU coreutils to get an 'rm' implementation
2777 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2778
2779 If you want to complete the configuration process using your problematic
2780 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2781 to "yes", and re-run configure.
2782
2783 END
2784 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2785 fi
2786 fi
2787
2788
2789 # Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801 DEPDIR="${am__leading_dot}deps"
2802
2803 ac_config_commands="$ac_config_commands depfiles"
2804
2805
2806 am_make=${MAKE-make}
2807 cat > confinc << 'END'
2808 am__doit:
2809 @echo this is the am__doit target
2810 .PHONY: am__doit
2811 END
2812 # If we don't find an include directive, just comment out the code.
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2814 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2815 am__include="#"
2816 am__quote=
2817 _am_result=none
2818 # First try GNU make style include.
2819 echo "include confinc" > confmf
2820 # Ignore all kinds of additional output from 'make'.
2821 case `$am_make -s -f confmf 2> /dev/null` in #(
2822 *the\ am__doit\ target*)
2823 am__include=include
2824 am__quote=
2825 _am_result=GNU
2826 ;;
2827 esac
2828 # Now try BSD make style include.
2829 if test "$am__include" = "#"; then
2830 echo '.include "confinc"' > confmf
2831 case `$am_make -s -f confmf 2> /dev/null` in #(
2832 *the\ am__doit\ target*)
2833 am__include=.include
2834 am__quote="\""
2835 _am_result=BSD
2836 ;;
2837 esac
2838 fi
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2842 $as_echo "$_am_result" >&6; }
2843 rm -f confinc confmf
2844
2845 # Check whether --enable-dependency-tracking was given.
2846 if test "${enable_dependency_tracking+set}" = set; then :
2847 enableval=$enable_dependency_tracking;
2848 fi
2849
2850 if test "x$enable_dependency_tracking" != xno; then
2851 am_depcomp="$ac_aux_dir/depcomp"
2852 AMDEPBACKSLASH='\'
2853 am__nodep='_no'
2854 fi
2855 if test "x$enable_dependency_tracking" != xno; then
2856 AMDEP_TRUE=
2857 AMDEP_FALSE='#'
2858 else
2859 AMDEP_TRUE='#'
2860 AMDEP_FALSE=
2861 fi
2862
2863
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$ac_cv_prog_CC"; then
2909 ac_ct_CC=$CC
2910 # Extract the first word of "gcc", so it can be a program name with args.
2911 set dummy gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CC="gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940 $as_echo "$ac_ct_CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2956 fi
2957 else
2958 CC="$ac_cv_prog_CC"
2959 fi
2960
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}cc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 fi
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 ac_prog_rejected=no
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected=yes
3023 continue
3024 fi
3025 ac_cv_prog_CC="cc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy $ac_cv_prog_CC
3036 shift
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3041 shift
3042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3043 fi
3044 fi
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl.exe
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 test -n "$CC" && break
3100 done
3101 fi
3102 if test -z "$CC"; then
3103 ac_ct_CC=$CC
3104 for ac_prog in cl.exe
3105 do
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_CC="$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 test -n "$ac_ct_CC" && break
3144 done
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155 CC=$ac_ct_CC
3156 fi
3157 fi
3158
3159 fi
3160
3161
3162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details" "$LINENO" 5; }
3166
3167 # Provide some information about the compiler.
3168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169 set X $ac_compile
3170 ac_compiler=$2
3171 for ac_option in --version -v -V -qversion; do
3172 { { ac_try="$ac_compiler $ac_option >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 ac_status=$?
3181 if test -s conftest.err; then
3182 sed '10a\
3183 ... rest of stderr output deleted ...
3184 10q' conftest.err >conftest.er1
3185 cat conftest.er1 >&5
3186 fi
3187 rm -f conftest.er1 conftest.err
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }
3190 done
3191
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 ac_clean_files_save=$ac_clean_files
3204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3205 # Try to create an executable without -o first, disregard a.out.
3206 # It will help us diagnose broken compilers, and finding out an intuition
3207 # of exeext.
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209 $as_echo_n "checking whether the C compiler works... " >&6; }
3210 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211
3212 # The possible output files:
3213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214
3215 ac_rmfiles=
3216 for ac_file in $ac_files
3217 do
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3221 esac
3222 done
3223 rm -f $ac_rmfiles
3224
3225 if { { ac_try="$ac_link_default"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link_default") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3239 # so that the user can short-circuit this test for compilers unknown to
3240 # Autoconf.
3241 for ac_file in $ac_files ''
3242 do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 ;;
3247 [ab].out )
3248 # We found the default executable, but exeext='' is most
3249 # certainly right.
3250 break;;
3251 *.* )
3252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 then :; else
3254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 fi
3256 # We set ac_cv_exeext here because the later test for it is not
3257 # safe: cross compilers may not add the suffix if given an `-o'
3258 # argument, so we may need to know it at that point already.
3259 # Even if this section looks crufty: it has the advantage of
3260 # actually working.
3261 break;;
3262 * )
3263 break;;
3264 esac
3265 done
3266 test "$ac_cv_exeext" = no && ac_cv_exeext=
3267
3268 else
3269 ac_file=''
3270 fi
3271 if test -z "$ac_file"; then :
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "C compiler cannot create executables
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3290
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 break;;
3316 * ) break;;
3317 esac
3318 done
3319 else
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3328
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 #include <stdio.h>
3335 int
3336 main ()
3337 {
3338 FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351 { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 if { ac_try='./conftest$ac_cv_exeext'
3363 { { case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_try") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; }; then
3373 cross_compiling=no
3374 else
3375 if test "$cross_compiling" = maybe; then
3376 cross_compiling=yes
3377 else
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3388
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if ${ac_cv_objext+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details" "$LINENO" 5; }
3435 fi
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if ${ac_cv_c_compiler_gnu+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453 #ifndef __GNUC__
3454 choke me
3455 #endif
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_compiler_gnu=yes
3463 else
3464 ac_compiler_gnu=no
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3476 fi
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if ${ac_cv_prog_cc_g+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 else
3502 CFLAGS=""
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515
3516 else
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3546 CFLAGS="-g -O2"
3547 else
3548 CFLAGS="-g"
3549 fi
3550 else
3551 if test "$GCC" = yes; then
3552 CFLAGS="-O2"
3553 else
3554 CFLAGS=
3555 fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if ${ac_cv_prog_cc_c89+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 struct stat;
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3573 char **p;
3574 int i;
3575 {
3576 return p[i];
3577 }
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3579 {
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586 }
3587
3588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
3591 as 'x'. The following induces an error, until -std is added to get
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
3594 that's true only with -std. */
3595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
3597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599 #define FOO(x) 'x'
3600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
3602 int test (int i, double x);
3603 struct s1 {int (*f) (int a);};
3604 struct s2 {int (*f) (double a);};
3605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606 int argc;
3607 char **argv;
3608 int
3609 main ()
3610 {
3611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 do
3619 CC="$ac_save_CC $ac_arg"
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_c89=$ac_arg
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 done
3626 rm -f conftest.$ac_ext
3627 CC=$ac_save_CC
3628
3629 fi
3630 # AC_CACHE_VAL
3631 case "x$ac_cv_prog_cc_c89" in
3632 x)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3634 $as_echo "none needed" >&6; } ;;
3635 xno)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 $as_echo "unsupported" >&6; } ;;
3638 *)
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 esac
3643 if test "x$ac_cv_prog_cc_c89" != xno; then :
3644
3645 fi
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3659 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3660 if ${am_cv_prog_cc_c_o+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 # Make sure it works both with $CC and with simple cc.
3675 # Following AC_PROG_CC_C_O, we do the test twice because some
3676 # compilers refuse to overwrite an existing .o file with -o,
3677 # though they will create one.
3678 am_cv_prog_cc_c_o=yes
3679 for am_i in 1 2; do
3680 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3681 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } \
3685 && test -f conftest2.$ac_objext; then
3686 : OK
3687 else
3688 am_cv_prog_cc_c_o=no
3689 break
3690 fi
3691 done
3692 rm -f core conftest*
3693 unset am_i
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3696 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3697 if test "$am_cv_prog_cc_c_o" != yes; then
3698 # Losing compiler, so override with the script.
3699 # FIXME: It is wrong to rewrite CC.
3700 # But if we don't then we get into trouble of one sort or another.
3701 # A longer-term fix would be to have automake use am__CC in this case,
3702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3703 CC="$am_aux_dir/compile $CC"
3704 fi
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
3712 depcc="$CC" am_compiler_list=
3713
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715 $as_echo_n "checking dependency style of $depcc... " >&6; }
3716 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720 # We make a subdir and do the tests there. Otherwise we can end up
3721 # making bogus files that we don't know about and never remove. For
3722 # instance it was reported that on HP-UX the gcc test will end up
3723 # making a dummy file named 'D' -- because '-MD' means "put the output
3724 # in D".
3725 rm -rf conftest.dir
3726 mkdir conftest.dir
3727 # Copy depcomp to subdir because otherwise we won't find it if we're
3728 # using a relative directory.
3729 cp "$am_depcomp" conftest.dir
3730 cd conftest.dir
3731 # We will build objects and dependencies in a subdirectory because
3732 # it helps to detect inapplicable dependency modes. For instance
3733 # both Tru64's cc and ICC support -MD to output dependencies as a
3734 # side effect of compilation, but ICC will put the dependencies in
3735 # the current directory while Tru64 will put them in the object
3736 # directory.
3737 mkdir sub
3738
3739 am_cv_CC_dependencies_compiler_type=none
3740 if test "$am_compiler_list" = ""; then
3741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742 fi
3743 am__universal=false
3744 case " $depcc " in #(
3745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746 esac
3747
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3752 #
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3756 : > sub/conftest.c
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3760 # Solaris 10 /bin/sh.
3761 echo '/* dummy */' > sub/conftst$i.h
3762 done
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle '-M -o', and we need to detect this. Also, some Intel
3768 # versions had trouble with output in subdirs.
3769 am__obj=sub/conftest.${OBJEXT-o}
3770 am__minus_obj="-o $am__obj"
3771 case $depmode in
3772 gcc)
3773 # This depmode causes a compiler race in universal mode.
3774 test "$am__universal" = false || continue
3775 ;;
3776 nosideeffect)
3777 # After this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested.
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3783 fi
3784 ;;
3785 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786 # This compiler won't grok '-c -o', but also, the minuso test has
3787 # not run yet. These depmodes are late enough in the game, and
3788 # so weak that their functioning should not be impacted.
3789 am__obj=conftest.${OBJEXT-o}
3790 am__minus_obj=
3791 ;;
3792 none) break ;;
3793 esac
3794 if depmode=$depmode \
3795 source=sub/conftest.c object=$am__obj \
3796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798 >/dev/null 2>conftest.err &&
3799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803 # icc doesn't choke on unknown options, it will just issue warnings
3804 # or remarks (even with -Werror). So we grep stderr for any message
3805 # that says an option was ignored or not supported.
3806 # When given -MP, icc 7.0 and 7.1 complain thusly:
3807 # icc: Command line warning: ignoring option '-M'; no argument required
3808 # The diagnosis changed in icc 8.0:
3809 # icc: Command line remark: option '-MP' not supported
3810 if (grep 'ignoring option' conftest.err ||
3811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812 am_cv_CC_dependencies_compiler_type=$depmode
3813 break
3814 fi
3815 fi
3816 done
3817
3818 cd ..
3819 rm -rf conftest.dir
3820 else
3821 am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829 if
3830 test "x$enable_dependency_tracking" != xno \
3831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832 am__fastdepCC_TRUE=
3833 am__fastdepCC_FALSE='#'
3834 else
3835 am__fastdepCC_TRUE='#'
3836 am__fastdepCC_FALSE=
3837 fi
3838
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3842 if ${ac_cv_prog_cc_c99+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_cv_prog_cc_c99=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <stdarg.h>
3850 #include <stdbool.h>
3851 #include <stdlib.h>
3852 #include <wchar.h>
3853 #include <stdio.h>
3854
3855 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3856 #define debug(...) fprintf (stderr, __VA_ARGS__)
3857 #define showlist(...) puts (#__VA_ARGS__)
3858 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3859 static void
3860 test_varargs_macros (void)
3861 {
3862 int x = 1234;
3863 int y = 5678;
3864 debug ("Flag");
3865 debug ("X = %d\n", x);
3866 showlist (The first, second, and third items.);
3867 report (x>y, "x is %d but y is %d", x, y);
3868 }
3869
3870 // Check long long types.
3871 #define BIG64 18446744073709551615ull
3872 #define BIG32 4294967295ul
3873 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3874 #if !BIG_OK
3875 your preprocessor is broken;
3876 #endif
3877 #if BIG_OK
3878 #else
3879 your preprocessor is broken;
3880 #endif
3881 static long long int bignum = -9223372036854775807LL;
3882 static unsigned long long int ubignum = BIG64;
3883
3884 struct incomplete_array
3885 {
3886 int datasize;
3887 double data[];
3888 };
3889
3890 struct named_init {
3891 int number;
3892 const wchar_t *name;
3893 double average;
3894 };
3895
3896 typedef const char *ccp;
3897
3898 static inline int
3899 test_restrict (ccp restrict text)
3900 {
3901 // See if C++-style comments work.
3902 // Iterate through items via the restricted pointer.
3903 // Also check for declarations in for loops.
3904 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3905 continue;
3906 return 0;
3907 }
3908
3909 // Check varargs and va_copy.
3910 static void
3911 test_varargs (const char *format, ...)
3912 {
3913 va_list args;
3914 va_start (args, format);
3915 va_list args_copy;
3916 va_copy (args_copy, args);
3917
3918 const char *str;
3919 int number;
3920 float fnumber;
3921
3922 while (*format)
3923 {
3924 switch (*format++)
3925 {
3926 case 's': // string
3927 str = va_arg (args_copy, const char *);
3928 break;
3929 case 'd': // int
3930 number = va_arg (args_copy, int);
3931 break;
3932 case 'f': // float
3933 fnumber = va_arg (args_copy, double);
3934 break;
3935 default:
3936 break;
3937 }
3938 }
3939 va_end (args_copy);
3940 va_end (args);
3941 }
3942
3943 int
3944 main ()
3945 {
3946
3947 // Check bool.
3948 _Bool success = false;
3949
3950 // Check restrict.
3951 if (test_restrict ("String literal") == 0)
3952 success = true;
3953 char *restrict newvar = "Another string";
3954
3955 // Check varargs.
3956 test_varargs ("s, d' f .", "string", 65, 34.234);
3957 test_varargs_macros ();
3958
3959 // Check flexible array members.
3960 struct incomplete_array *ia =
3961 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3962 ia->datasize = 10;
3963 for (int i = 0; i < ia->datasize; ++i)
3964 ia->data[i] = i * 1.234;
3965
3966 // Check named initializers.
3967 struct named_init ni = {
3968 .number = 34,
3969 .name = L"Test wide string",
3970 .average = 543.34343,
3971 };
3972
3973 ni.number = 58;
3974
3975 int dynamic_array[ni.number];
3976 dynamic_array[ni.number - 1] = 543;
3977
3978 // work around unused variable warnings
3979 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3980 || dynamic_array[ni.number - 1] != 543);
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3987 do
3988 CC="$ac_save_CC $ac_arg"
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_c99=$ac_arg
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c99" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c99" in
4001 x)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004 xno)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007 *)
4008 CC="$CC $ac_cv_prog_cc_c99"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4010 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c99" != xno; then :
4013
4014 fi
4015
4016
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4024 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4025 # On Suns, sometimes $CPP names a directory.
4026 if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4028 fi
4029 if test -z "$CPP"; then
4030 if ${ac_cv_prog_CPP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 do
4036 ac_preproc_ok=false
4037 for ac_c_preproc_warn_flag in '' yes
4038 do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056 else
4057 # Broken: fails on valid input.
4058 continue
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069 # Broken: success on invalid input.
4070 continue
4071 else
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.i conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then :
4082 break
4083 fi
4084
4085 done
4086 ac_cv_prog_CPP=$CPP
4087
4088 fi
4089 CPP=$ac_cv_prog_CPP
4090 else
4091 ac_cv_prog_CPP=$CPP
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4094 $as_echo "$CPP" >&6; }
4095 ac_preproc_ok=false
4096 for ac_c_preproc_warn_flag in '' yes
4097 do
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #ifdef __STDC__
4107 # include <limits.h>
4108 #else
4109 # include <assert.h>
4110 #endif
4111 Syntax error
4112 _ACEOF
4113 if ac_fn_c_try_cpp "$LINENO"; then :
4114
4115 else
4116 # Broken: fails on valid input.
4117 continue
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <ac_nonexistent.h>
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 # Passes both tests.
4132 ac_preproc_ok=:
4133 break
4134 fi
4135 rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137 done
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.i conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then :
4141
4142 else
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4146 See \`config.log' for more details" "$LINENO" 5; }
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158 if ${ac_cv_path_GREP+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 as_fn_executable_p "$ac_path_GREP" || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178 *)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 as_fn_arith $ac_count + 1 && ac_count=$as_val
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4200
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208 fi
4209 else
4210 ac_cv_path_GREP=$GREP
4211 fi
4212
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215 $as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4217
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220 $as_echo_n "checking for egrep... " >&6; }
4221 if ${ac_cv_path_EGREP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225 then ac_cv_path_EGREP="$GREP -E"
4226 else
4227 if test -z "$EGREP"; then
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 as_fn_executable_p "$ac_path_EGREP" || continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4244 *)
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4266
4267 $ac_path_EGREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_EGREP"; then
4273 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 fi
4275 else
4276 ac_cv_path_EGREP=$EGREP
4277 fi
4278
4279 fi
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282 $as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4284
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4287 $as_echo_n "checking for ANSI C header files... " >&6; }
4288 if ${ac_cv_header_stdc+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <stdlib.h>
4294 #include <stdarg.h>
4295 #include <string.h>
4296 #include <float.h>
4297
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_header_stdc=yes
4308 else
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312
4313 if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then :
4322
4323 else
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "free" >/dev/null 2>&1; then :
4339
4340 else
4341 ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then :
4350 :
4351 else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <ctype.h>
4355 #include <stdlib.h>
4356 #if ((' ' & 0x0FF) == 0x020)
4357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4359 #else
4360 # define ISLOWER(c) \
4361 (('a' <= (c) && (c) <= 'i') \
4362 || ('j' <= (c) && (c) <= 'r') \
4363 || ('s' <= (c) && (c) <= 'z'))
4364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365 #endif
4366
4367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 int
4369 main ()
4370 {
4371 int i;
4372 for (i = 0; i < 256; i++)
4373 if (XOR (islower (i), ISLOWER (i))
4374 || toupper (i) != TOUPPER (i))
4375 return 2;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_run "$LINENO"; then :
4380
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4385 conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 fi
4387
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4391 $as_echo "$ac_cv_header_stdc" >&6; }
4392 if test $ac_cv_header_stdc = yes; then
4393
4394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4395
4396 fi
4397
4398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400 inttypes.h stdint.h unistd.h
4401 do :
4402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4404 "
4405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4406 cat >>confdefs.h <<_ACEOF
4407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411
4412 done
4413
4414
4415
4416
4417
4418
4419 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4420 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4421 CLANGCC="yes"
4422 else
4423 CLANGCC="no"
4424 fi
4425
4426 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4427 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4428 INTELCC="yes"
4429 else
4430 INTELCC="no"
4431 fi
4432
4433 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4434 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4435 SUNCC="yes"
4436 else
4437 SUNCC="no"
4438 fi
4439
4440
4441
4442
4443 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 case $PKG_CONFIG in
4453 [\\/]* | ?:[\\/]*)
4454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4455 ;;
4456 *)
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 ;;
4473 esac
4474 fi
4475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476 if test -n "$PKG_CONFIG"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4478 $as_echo "$PKG_CONFIG" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 fi
4486 if test -z "$ac_cv_path_PKG_CONFIG"; then
4487 ac_pt_PKG_CONFIG=$PKG_CONFIG
4488 # Extract the first word of "pkg-config", so it can be a program name with args.
4489 set dummy pkg-config; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 case $ac_pt_PKG_CONFIG in
4496 [\\/]* | ?:[\\/]*)
4497 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4498 ;;
4499 *)
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 ;;
4516 esac
4517 fi
4518 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519 if test -n "$ac_pt_PKG_CONFIG"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4521 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527 if test "x$ac_pt_PKG_CONFIG" = x; then
4528 PKG_CONFIG=""
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531 yes:)
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4535 esac
4536 PKG_CONFIG=$ac_pt_PKG_CONFIG
4537 fi
4538 else
4539 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4540 fi
4541
4542 fi
4543 if test -n "$PKG_CONFIG"; then
4544 _pkg_min_version=0.9.0
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4546 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4547 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4549 $as_echo "yes" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 PKG_CONFIG=""
4554 fi
4555
4556 fi
4557 # Make sure we can run config.sub.
4558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4559 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4562 $as_echo_n "checking build system type... " >&6; }
4563 if ${ac_cv_build+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 ac_build_alias=$build_alias
4567 test "x$ac_build_alias" = x &&
4568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4569 test "x$ac_build_alias" = x &&
4570 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4573
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4576 $as_echo "$ac_cv_build" >&6; }
4577 case $ac_cv_build in
4578 *-*-*) ;;
4579 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4580 esac
4581 build=$ac_cv_build
4582 ac_save_IFS=$IFS; IFS='-'
4583 set x $ac_cv_build
4584 shift
4585 build_cpu=$1
4586 build_vendor=$2
4587 shift; shift
4588 # Remember, the first character of IFS is used to create $*,
4589 # except with old shells:
4590 build_os=$*
4591 IFS=$ac_save_IFS
4592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4596 $as_echo_n "checking host system type... " >&6; }
4597 if ${ac_cv_host+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test "x$host_alias" = x; then
4601 ac_cv_host=$ac_cv_build
4602 else
4603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4605 fi
4606
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4609 $as_echo "$ac_cv_host" >&6; }
4610 case $ac_cv_host in
4611 *-*-*) ;;
4612 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4613 esac
4614 host=$ac_cv_host
4615 ac_save_IFS=$IFS; IFS='-'
4616 set x $ac_cv_host
4617 shift
4618 host_cpu=$1
4619 host_vendor=$2
4620 shift; shift
4621 # Remember, the first character of IFS is used to create $*,
4622 # except with old shells:
4623 host_os=$*
4624 IFS=$ac_save_IFS
4625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4629 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4630 if ${ac_cv_path_SED+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4634 for ac_i in 1 2 3 4 5 6 7; do
4635 ac_script="$ac_script$as_nl$ac_script"
4636 done
4637 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4638 { ac_script=; unset ac_script;}
4639 if test -z "$SED"; then
4640 ac_path_SED_found=false
4641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_prog in sed gsed; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4650 as_fn_executable_p "$ac_path_SED" || continue
4651 # Check for GNU ac_path_SED and select it if it is found.
4652 # Check for GNU $ac_path_SED
4653 case `"$ac_path_SED" --version 2>&1` in
4654 *GNU*)
4655 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4656 *)
4657 ac_count=0
4658 $as_echo_n 0123456789 >"conftest.in"
4659 while :
4660 do
4661 cat "conftest.in" "conftest.in" >"conftest.tmp"
4662 mv "conftest.tmp" "conftest.in"
4663 cp "conftest.in" "conftest.nl"
4664 $as_echo '' >> "conftest.nl"
4665 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667 as_fn_arith $ac_count + 1 && ac_count=$as_val
4668 if test $ac_count -gt ${ac_path_SED_max-0}; then
4669 # Best one so far, save it but keep looking for a better one
4670 ac_cv_path_SED="$ac_path_SED"
4671 ac_path_SED_max=$ac_count
4672 fi
4673 # 10*(2^10) chars as input seems more than enough
4674 test $ac_count -gt 10 && break
4675 done
4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 esac
4678
4679 $ac_path_SED_found && break 3
4680 done
4681 done
4682 done
4683 IFS=$as_save_IFS
4684 if test -z "$ac_cv_path_SED"; then
4685 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4686 fi
4687 else
4688 ac_cv_path_SED=$SED
4689 fi
4690
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4693 $as_echo "$ac_cv_path_SED" >&6; }
4694 SED="$ac_cv_path_SED"
4695 rm -f conftest.sed
4696
4697
4698
4699
4700
4701
4702 # Check whether --enable-selective-werror was given.
4703 if test "${enable_selective_werror+set}" = set; then :
4704 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4705 else
4706 SELECTIVE_WERROR=yes
4707 fi
4708
4709
4710
4711
4712
4713 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4714 if test "x$SUNCC" = "xyes"; then
4715 BASE_CFLAGS="-v"
4716 else
4717 BASE_CFLAGS=""
4718 fi
4719
4720 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 xorg_testset_save_CFLAGS="$CFLAGS"
4735
4736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 int i;
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 xorg_cv_cc_flag_unknown_warning_option=yes
4749 else
4750 xorg_cv_cc_flag_unknown_warning_option=no
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4757 CFLAGS="$xorg_testset_save_CFLAGS"
4758 fi
4759
4760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4763 fi
4764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 int i;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 xorg_cv_cc_flag_unused_command_line_argument=yes
4776 else
4777 xorg_cv_cc_flag_unused_command_line_argument=no
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4784 CFLAGS="$xorg_testset_save_CFLAGS"
4785 fi
4786
4787 found="no"
4788
4789 if test $found = "no" ; then
4790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4792 fi
4793
4794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4796 fi
4797
4798 CFLAGS="$CFLAGS -Wall"
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4801 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4802 cacheid=xorg_cv_cc_flag__Wall
4803 if eval \${$cacheid+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808 int i;
4809 int
4810 main ()
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_c_try_link "$LINENO"; then :
4818 eval $cacheid=yes
4819 else
4820 eval $cacheid=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext \
4823 conftest$ac_exeext conftest.$ac_ext
4824 fi
4825
4826
4827 CFLAGS="$xorg_testset_save_CFLAGS"
4828
4829 eval supported=\$$cacheid
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4831 $as_echo "$supported" >&6; }
4832 if test "$supported" = "yes" ; then
4833 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4834 found="yes"
4835 fi
4836 fi
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 xorg_testset_save_CFLAGS="$CFLAGS"
4853
4854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 int i;
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 xorg_cv_cc_flag_unknown_warning_option=yes
4867 else
4868 xorg_cv_cc_flag_unknown_warning_option=no
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4875 CFLAGS="$xorg_testset_save_CFLAGS"
4876 fi
4877
4878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881 fi
4882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 int i;
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 xorg_cv_cc_flag_unused_command_line_argument=yes
4894 else
4895 xorg_cv_cc_flag_unused_command_line_argument=no
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4902 CFLAGS="$xorg_testset_save_CFLAGS"
4903 fi
4904
4905 found="no"
4906
4907 if test $found = "no" ; then
4908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910 fi
4911
4912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4914 fi
4915
4916 CFLAGS="$CFLAGS -Wpointer-arith"
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4919 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4920 cacheid=xorg_cv_cc_flag__Wpointer_arith
4921 if eval \${$cacheid+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 int i;
4927 int
4928 main ()
4929 {
4930
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 if ac_fn_c_try_link "$LINENO"; then :
4936 eval $cacheid=yes
4937 else
4938 eval $cacheid=no
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext conftest.$ac_ext
4942 fi
4943
4944
4945 CFLAGS="$xorg_testset_save_CFLAGS"
4946
4947 eval supported=\$$cacheid
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4949 $as_echo "$supported" >&6; }
4950 if test "$supported" = "yes" ; then
4951 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4952 found="yes"
4953 fi
4954 fi
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 xorg_testset_save_CFLAGS="$CFLAGS"
4971
4972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981 int i;
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 xorg_cv_cc_flag_unknown_warning_option=yes
4985 else
4986 xorg_cv_cc_flag_unknown_warning_option=no
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4993 CFLAGS="$xorg_testset_save_CFLAGS"
4994 fi
4995
4996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999 fi
5000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 int i;
5009 _ACEOF
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 xorg_cv_cc_flag_unused_command_line_argument=yes
5012 else
5013 xorg_cv_cc_flag_unused_command_line_argument=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5020 CFLAGS="$xorg_testset_save_CFLAGS"
5021 fi
5022
5023 found="no"
5024
5025 if test $found = "no" ; then
5026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028 fi
5029
5030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032 fi
5033
5034 CFLAGS="$CFLAGS -Wmissing-declarations"
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5037 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5038 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5039 if eval \${$cacheid+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 int i;
5045 int
5046 main ()
5047 {
5048
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_link "$LINENO"; then :
5054 eval $cacheid=yes
5055 else
5056 eval $cacheid=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext \
5059 conftest$ac_exeext conftest.$ac_ext
5060 fi
5061
5062
5063 CFLAGS="$xorg_testset_save_CFLAGS"
5064
5065 eval supported=\$$cacheid
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5067 $as_echo "$supported" >&6; }
5068 if test "$supported" = "yes" ; then
5069 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5070 found="yes"
5071 fi
5072 fi
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 xorg_testset_save_CFLAGS="$CFLAGS"
5089
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 int i;
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102 xorg_cv_cc_flag_unknown_warning_option=yes
5103 else
5104 xorg_cv_cc_flag_unknown_warning_option=no
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5111 CFLAGS="$xorg_testset_save_CFLAGS"
5112 fi
5113
5114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117 fi
5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 xorg_cv_cc_flag_unused_command_line_argument=yes
5130 else
5131 xorg_cv_cc_flag_unused_command_line_argument=no
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5138 CFLAGS="$xorg_testset_save_CFLAGS"
5139 fi
5140
5141 found="no"
5142
5143 if test $found = "no" ; then
5144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5146 fi
5147
5148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5150 fi
5151
5152 CFLAGS="$CFLAGS -Wformat=2"
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5155 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5156 cacheid=xorg_cv_cc_flag__Wformat_2
5157 if eval \${$cacheid+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 int
5164 main ()
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_link "$LINENO"; then :
5172 eval $cacheid=yes
5173 else
5174 eval $cacheid=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext \
5177 conftest$ac_exeext conftest.$ac_ext
5178 fi
5179
5180
5181 CFLAGS="$xorg_testset_save_CFLAGS"
5182
5183 eval supported=\$$cacheid
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5185 $as_echo "$supported" >&6; }
5186 if test "$supported" = "yes" ; then
5187 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5188 found="yes"
5189 fi
5190 fi
5191
5192 if test $found = "no" ; then
5193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195 fi
5196
5197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199 fi
5200
5201 CFLAGS="$CFLAGS -Wformat"
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5204 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5205 cacheid=xorg_cv_cc_flag__Wformat
5206 if eval \${$cacheid+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_link "$LINENO"; then :
5221 eval $cacheid=yes
5222 else
5223 eval $cacheid=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 fi
5228
5229
5230 CFLAGS="$xorg_testset_save_CFLAGS"
5231
5232 eval supported=\$$cacheid
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5234 $as_echo "$supported" >&6; }
5235 if test "$supported" = "yes" ; then
5236 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5237 found="yes"
5238 fi
5239 fi
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 xorg_testset_save_CFLAGS="$CFLAGS"
5258
5259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 int i;
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 xorg_cv_cc_flag_unknown_warning_option=yes
5272 else
5273 xorg_cv_cc_flag_unknown_warning_option=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5280 CFLAGS="$xorg_testset_save_CFLAGS"
5281 fi
5282
5283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 fi
5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 int i;
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 xorg_cv_cc_flag_unused_command_line_argument=yes
5299 else
5300 xorg_cv_cc_flag_unused_command_line_argument=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 found="no"
5311
5312 if test $found = "no" ; then
5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315 fi
5316
5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319 fi
5320
5321 CFLAGS="$CFLAGS -Wstrict-prototypes"
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5324 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5325 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5326 if eval \${$cacheid+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 int i;
5332 int
5333 main ()
5334 {
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_link "$LINENO"; then :
5341 eval $cacheid=yes
5342 else
5343 eval $cacheid=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext \
5346 conftest$ac_exeext conftest.$ac_ext
5347 fi
5348
5349
5350 CFLAGS="$xorg_testset_save_CFLAGS"
5351
5352 eval supported=\$$cacheid
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5354 $as_echo "$supported" >&6; }
5355 if test "$supported" = "yes" ; then
5356 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5357 found="yes"
5358 fi
5359 fi
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 xorg_testset_save_CFLAGS="$CFLAGS"
5376
5377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 int i;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 xorg_cv_cc_flag_unknown_warning_option=yes
5390 else
5391 xorg_cv_cc_flag_unknown_warning_option=no
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5398 CFLAGS="$xorg_testset_save_CFLAGS"
5399 fi
5400
5401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 fi
5405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 int i;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 xorg_cv_cc_flag_unused_command_line_argument=yes
5417 else
5418 xorg_cv_cc_flag_unused_command_line_argument=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426 fi
5427
5428 found="no"
5429
5430 if test $found = "no" ; then
5431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433 fi
5434
5435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437 fi
5438
5439 CFLAGS="$CFLAGS -Wmissing-prototypes"
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5442 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5443 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5444 if eval \${$cacheid+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 int i;
5450 int
5451 main ()
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_link "$LINENO"; then :
5459 eval $cacheid=yes
5460 else
5461 eval $cacheid=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 fi
5466
5467
5468 CFLAGS="$xorg_testset_save_CFLAGS"
5469
5470 eval supported=\$$cacheid
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5472 $as_echo "$supported" >&6; }
5473 if test "$supported" = "yes" ; then
5474 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5475 found="yes"
5476 fi
5477 fi
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 xorg_testset_save_CFLAGS="$CFLAGS"
5494
5495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5504 int i;
5505 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5507 xorg_cv_cc_flag_unknown_warning_option=yes
5508 else
5509 xorg_cv_cc_flag_unknown_warning_option=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5516 CFLAGS="$xorg_testset_save_CFLAGS"
5517 fi
5518
5519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522 fi
5523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 xorg_cv_cc_flag_unused_command_line_argument=yes
5535 else
5536 xorg_cv_cc_flag_unused_command_line_argument=no
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544 fi
5545
5546 found="no"
5547
5548 if test $found = "no" ; then
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 fi
5552
5553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555 fi
5556
5557 CFLAGS="$CFLAGS -Wnested-externs"
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5560 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5561 cacheid=xorg_cv_cc_flag__Wnested_externs
5562 if eval \${$cacheid+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 int i;
5568 int
5569 main ()
5570 {
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_link "$LINENO"; then :
5577 eval $cacheid=yes
5578 else
5579 eval $cacheid=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583 fi
5584
5585
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5587
5588 eval supported=\$$cacheid
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5590 $as_echo "$supported" >&6; }
5591 if test "$supported" = "yes" ; then
5592 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5593 found="yes"
5594 fi
5595 fi
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"; then :
5625 xorg_cv_cc_flag_unknown_warning_option=yes
5626 else
5627 xorg_cv_cc_flag_unknown_warning_option=no
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5634 CFLAGS="$xorg_testset_save_CFLAGS"
5635 fi
5636
5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 fi
5641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 int i;
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 xorg_cv_cc_flag_unused_command_line_argument=yes
5653 else
5654 xorg_cv_cc_flag_unused_command_line_argument=no
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5661 CFLAGS="$xorg_testset_save_CFLAGS"
5662 fi
5663
5664 found="no"
5665
5666 if test $found = "no" ; then
5667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669 fi
5670
5671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673 fi
5674
5675 CFLAGS="$CFLAGS -Wbad-function-cast"
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5678 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5679 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5680 if eval \${$cacheid+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int i;
5686 int
5687 main ()
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_link "$LINENO"; then :
5695 eval $cacheid=yes
5696 else
5697 eval $cacheid=no
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 fi
5702
5703
5704 CFLAGS="$xorg_testset_save_CFLAGS"
5705
5706 eval supported=\$$cacheid
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5708 $as_echo "$supported" >&6; }
5709 if test "$supported" = "yes" ; then
5710 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5711 found="yes"
5712 fi
5713 fi
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 xorg_testset_save_CFLAGS="$CFLAGS"
5730
5731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 int i;
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743 xorg_cv_cc_flag_unknown_warning_option=yes
5744 else
5745 xorg_cv_cc_flag_unknown_warning_option=no
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752 CFLAGS="$xorg_testset_save_CFLAGS"
5753 fi
5754
5755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758 fi
5759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 int i;
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 xorg_cv_cc_flag_unused_command_line_argument=yes
5771 else
5772 xorg_cv_cc_flag_unused_command_line_argument=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5779 CFLAGS="$xorg_testset_save_CFLAGS"
5780 fi
5781
5782 found="no"
5783
5784 if test $found = "no" ; then
5785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787 fi
5788
5789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791 fi
5792
5793 CFLAGS="$CFLAGS -Wold-style-definition"
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5796 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5797 cacheid=xorg_cv_cc_flag__Wold_style_definition
5798 if eval \${$cacheid+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int i;
5804 int
5805 main ()
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 eval $cacheid=yes
5814 else
5815 eval $cacheid=no
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819 fi
5820
5821
5822 CFLAGS="$xorg_testset_save_CFLAGS"
5823
5824 eval supported=\$$cacheid
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5826 $as_echo "$supported" >&6; }
5827 if test "$supported" = "yes" ; then
5828 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5829 found="yes"
5830 fi
5831 fi
5832
5833 if test $found = "no" ; then
5834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 fi
5837
5838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5840 fi
5841
5842 CFLAGS="$CFLAGS -fd"
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5845 $as_echo_n "checking if $CC supports -fd... " >&6; }
5846 cacheid=xorg_cv_cc_flag__fd
5847 if eval \${$cacheid+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 int
5854 main ()
5855 {
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 if ac_fn_c_try_link "$LINENO"; then :
5862 eval $cacheid=yes
5863 else
5864 eval $cacheid=no
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 fi
5869
5870
5871 CFLAGS="$xorg_testset_save_CFLAGS"
5872
5873 eval supported=\$$cacheid
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5875 $as_echo "$supported" >&6; }
5876 if test "$supported" = "yes" ; then
5877 BASE_CFLAGS="$BASE_CFLAGS -fd"
5878 found="yes"
5879 fi
5880 fi
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 xorg_testset_save_CFLAGS="$CFLAGS"
5897
5898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5901 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5902 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int i;
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 xorg_cv_cc_flag_unknown_warning_option=yes
5911 else
5912 xorg_cv_cc_flag_unknown_warning_option=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5917 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5919 CFLAGS="$xorg_testset_save_CFLAGS"
5920 fi
5921
5922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925 fi
5926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5928 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5929 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 int i;
5935 _ACEOF
5936 if ac_fn_c_try_compile "$LINENO"; then :
5937 xorg_cv_cc_flag_unused_command_line_argument=yes
5938 else
5939 xorg_cv_cc_flag_unused_command_line_argument=no
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5944 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5946 CFLAGS="$xorg_testset_save_CFLAGS"
5947 fi
5948
5949 found="no"
5950
5951 if test $found = "no" ; then
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 fi
5955
5956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5958 fi
5959
5960 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5963 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5964 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5965 if eval \${$cacheid+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 int i;
5971 int
5972 main ()
5973 {
5974
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 eval $cacheid=yes
5981 else
5982 eval $cacheid=no
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5986 fi
5987
5988
5989 CFLAGS="$xorg_testset_save_CFLAGS"
5990
5991 eval supported=\$$cacheid
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5993 $as_echo "$supported" >&6; }
5994 if test "$supported" = "yes" ; then
5995 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5996 found="yes"
5997 fi
5998 fi
5999
6000
6001
6002
6003
6004 # This chunk adds additional warnings that could catch undesired effects.
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 xorg_testset_save_CFLAGS="$CFLAGS"
6019
6020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 int i;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 xorg_cv_cc_flag_unknown_warning_option=yes
6033 else
6034 xorg_cv_cc_flag_unknown_warning_option=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6041 CFLAGS="$xorg_testset_save_CFLAGS"
6042 fi
6043
6044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047 fi
6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 int i;
6057 _ACEOF
6058 if ac_fn_c_try_compile "$LINENO"; then :
6059 xorg_cv_cc_flag_unused_command_line_argument=yes
6060 else
6061 xorg_cv_cc_flag_unused_command_line_argument=no
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069 fi
6070
6071 found="no"
6072
6073 if test $found = "no" ; then
6074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076 fi
6077
6078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6080 fi
6081
6082 CFLAGS="$CFLAGS -Wunused"
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6085 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6086 cacheid=xorg_cv_cc_flag__Wunused
6087 if eval \${$cacheid+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 int
6094 main ()
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_link "$LINENO"; then :
6102 eval $cacheid=yes
6103 else
6104 eval $cacheid=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6108 fi
6109
6110
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112
6113 eval supported=\$$cacheid
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6115 $as_echo "$supported" >&6; }
6116 if test "$supported" = "yes" ; then
6117 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6118 found="yes"
6119 fi
6120 fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 xorg_testset_save_CFLAGS="$CFLAGS"
6137
6138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 int i;
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 xorg_cv_cc_flag_unknown_warning_option=yes
6151 else
6152 xorg_cv_cc_flag_unknown_warning_option=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6159 CFLAGS="$xorg_testset_save_CFLAGS"
6160 fi
6161
6162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165 fi
6166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 int i;
6175 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"; then :
6177 xorg_cv_cc_flag_unused_command_line_argument=yes
6178 else
6179 xorg_cv_cc_flag_unused_command_line_argument=no
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 fi
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6186 CFLAGS="$xorg_testset_save_CFLAGS"
6187 fi
6188
6189 found="no"
6190
6191 if test $found = "no" ; then
6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 fi
6195
6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198 fi
6199
6200 CFLAGS="$CFLAGS -Wuninitialized"
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6203 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6204 cacheid=xorg_cv_cc_flag__Wuninitialized
6205 if eval \${$cacheid+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 int i;
6211 int
6212 main ()
6213 {
6214
6215 ;
6216 return 0;
6217 }
6218 _ACEOF
6219 if ac_fn_c_try_link "$LINENO"; then :
6220 eval $cacheid=yes
6221 else
6222 eval $cacheid=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 fi
6227
6228
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230
6231 eval supported=\$$cacheid
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6233 $as_echo "$supported" >&6; }
6234 if test "$supported" = "yes" ; then
6235 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6236 found="yes"
6237 fi
6238 fi
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 xorg_testset_save_CFLAGS="$CFLAGS"
6255
6256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 _ACEOF
6267 if ac_fn_c_try_compile "$LINENO"; then :
6268 xorg_cv_cc_flag_unknown_warning_option=yes
6269 else
6270 xorg_cv_cc_flag_unknown_warning_option=no
6271 fi
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6277 CFLAGS="$xorg_testset_save_CFLAGS"
6278 fi
6279
6280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283 fi
6284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 int i;
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 xorg_cv_cc_flag_unused_command_line_argument=yes
6296 else
6297 xorg_cv_cc_flag_unused_command_line_argument=no
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 fi
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305 fi
6306
6307 found="no"
6308
6309 if test $found = "no" ; then
6310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 fi
6313
6314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316 fi
6317
6318 CFLAGS="$CFLAGS -Wshadow"
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6321 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6322 cacheid=xorg_cv_cc_flag__Wshadow
6323 if eval \${$cacheid+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 int
6330 main ()
6331 {
6332
6333 ;
6334 return 0;
6335 }
6336 _ACEOF
6337 if ac_fn_c_try_link "$LINENO"; then :
6338 eval $cacheid=yes
6339 else
6340 eval $cacheid=no
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6344 fi
6345
6346
6347 CFLAGS="$xorg_testset_save_CFLAGS"
6348
6349 eval supported=\$$cacheid
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6351 $as_echo "$supported" >&6; }
6352 if test "$supported" = "yes" ; then
6353 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6354 found="yes"
6355 fi
6356 fi
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 xorg_testset_save_CFLAGS="$CFLAGS"
6373
6374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 xorg_cv_cc_flag_unknown_warning_option=yes
6387 else
6388 xorg_cv_cc_flag_unknown_warning_option=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6395 CFLAGS="$xorg_testset_save_CFLAGS"
6396 fi
6397
6398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 fi
6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 int i;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 xorg_cv_cc_flag_unused_command_line_argument=yes
6414 else
6415 xorg_cv_cc_flag_unused_command_line_argument=no
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6422 CFLAGS="$xorg_testset_save_CFLAGS"
6423 fi
6424
6425 found="no"
6426
6427 if test $found = "no" ; then
6428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6430 fi
6431
6432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6434 fi
6435
6436 CFLAGS="$CFLAGS -Wmissing-noreturn"
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6439 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6440 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6441 if eval \${$cacheid+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 int i;
6447 int
6448 main ()
6449 {
6450
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_c_try_link "$LINENO"; then :
6456 eval $cacheid=yes
6457 else
6458 eval $cacheid=no
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462 fi
6463
6464
6465 CFLAGS="$xorg_testset_save_CFLAGS"
6466
6467 eval supported=\$$cacheid
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6469 $as_echo "$supported" >&6; }
6470 if test "$supported" = "yes" ; then
6471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6472 found="yes"
6473 fi
6474 fi
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 xorg_testset_save_CFLAGS="$CFLAGS"
6491
6492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 int i;
6502 _ACEOF
6503 if ac_fn_c_try_compile "$LINENO"; then :
6504 xorg_cv_cc_flag_unknown_warning_option=yes
6505 else
6506 xorg_cv_cc_flag_unknown_warning_option=no
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6513 CFLAGS="$xorg_testset_save_CFLAGS"
6514 fi
6515
6516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519 fi
6520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 int i;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 xorg_cv_cc_flag_unused_command_line_argument=yes
6532 else
6533 xorg_cv_cc_flag_unused_command_line_argument=no
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6540 CFLAGS="$xorg_testset_save_CFLAGS"
6541 fi
6542
6543 found="no"
6544
6545 if test $found = "no" ; then
6546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548 fi
6549
6550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6552 fi
6553
6554 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6557 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6558 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6559 if eval \${$cacheid+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 int i;
6565 int
6566 main ()
6567 {
6568
6569 ;
6570 return 0;
6571 }
6572 _ACEOF
6573 if ac_fn_c_try_link "$LINENO"; then :
6574 eval $cacheid=yes
6575 else
6576 eval $cacheid=no
6577 fi
6578 rm -f core conftest.err conftest.$ac_objext \
6579 conftest$ac_exeext conftest.$ac_ext
6580 fi
6581
6582
6583 CFLAGS="$xorg_testset_save_CFLAGS"
6584
6585 eval supported=\$$cacheid
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6587 $as_echo "$supported" >&6; }
6588 if test "$supported" = "yes" ; then
6589 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6590 found="yes"
6591 fi
6592 fi
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 xorg_testset_save_CFLAGS="$CFLAGS"
6609
6610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 xorg_cv_cc_flag_unknown_warning_option=yes
6623 else
6624 xorg_cv_cc_flag_unknown_warning_option=no
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6631 CFLAGS="$xorg_testset_save_CFLAGS"
6632 fi
6633
6634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637 fi
6638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 int i;
6647 _ACEOF
6648 if ac_fn_c_try_compile "$LINENO"; then :
6649 xorg_cv_cc_flag_unused_command_line_argument=yes
6650 else
6651 xorg_cv_cc_flag_unused_command_line_argument=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6658 CFLAGS="$xorg_testset_save_CFLAGS"
6659 fi
6660
6661 found="no"
6662
6663 if test $found = "no" ; then
6664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666 fi
6667
6668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6670 fi
6671
6672 CFLAGS="$CFLAGS -Wredundant-decls"
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6675 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6676 cacheid=xorg_cv_cc_flag__Wredundant_decls
6677 if eval \${$cacheid+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 int i;
6683 int
6684 main ()
6685 {
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_link "$LINENO"; then :
6692 eval $cacheid=yes
6693 else
6694 eval $cacheid=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 fi
6699
6700
6701 CFLAGS="$xorg_testset_save_CFLAGS"
6702
6703 eval supported=\$$cacheid
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6705 $as_echo "$supported" >&6; }
6706 if test "$supported" = "yes" ; then
6707 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6708 found="yes"
6709 fi
6710 fi
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 xorg_testset_save_CFLAGS="$CFLAGS"
6727
6728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 int i;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 xorg_cv_cc_flag_unknown_warning_option=yes
6741 else
6742 xorg_cv_cc_flag_unknown_warning_option=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6749 CFLAGS="$xorg_testset_save_CFLAGS"
6750 fi
6751
6752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755 fi
6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 int i;
6765 _ACEOF
6766 if ac_fn_c_try_compile "$LINENO"; then :
6767 xorg_cv_cc_flag_unused_command_line_argument=yes
6768 else
6769 xorg_cv_cc_flag_unused_command_line_argument=no
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 fi
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6776 CFLAGS="$xorg_testset_save_CFLAGS"
6777 fi
6778
6779 found="no"
6780
6781 if test $found = "no" ; then
6782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6784 fi
6785
6786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6788 fi
6789
6790 CFLAGS="$CFLAGS -Wlogical-op"
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6793 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6794 cacheid=xorg_cv_cc_flag__Wlogical_op
6795 if eval \${$cacheid+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 int i;
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 eval $cacheid=yes
6811 else
6812 eval $cacheid=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 fi
6817
6818
6819 CFLAGS="$xorg_testset_save_CFLAGS"
6820
6821 eval supported=\$$cacheid
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6823 $as_echo "$supported" >&6; }
6824 if test "$supported" = "yes" ; then
6825 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6826 found="yes"
6827 fi
6828 fi
6829
6830
6831
6832 # These are currently disabled because they are noisy. They will be enabled
6833 # in the future once the codebase is sufficiently modernized to silence
6834 # them. For now, I don't want them to drown out the other warnings.
6835 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6836 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6837 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6838
6839 # Turn some warnings into errors, so we don't accidently get successful builds
6840 # when there are problems that should be fixed.
6841
6842 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856 xorg_testset_save_CFLAGS="$CFLAGS"
6857
6858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int i;
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 xorg_cv_cc_flag_unknown_warning_option=yes
6871 else
6872 xorg_cv_cc_flag_unknown_warning_option=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880 fi
6881
6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885 fi
6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 xorg_cv_cc_flag_unused_command_line_argument=yes
6898 else
6899 xorg_cv_cc_flag_unused_command_line_argument=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906 CFLAGS="$xorg_testset_save_CFLAGS"
6907 fi
6908
6909 found="no"
6910
6911 if test $found = "no" ; then
6912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914 fi
6915
6916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918 fi
6919
6920 CFLAGS="$CFLAGS -Werror=implicit"
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6923 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6924 cacheid=xorg_cv_cc_flag__Werror_implicit
6925 if eval \${$cacheid+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int i;
6931 int
6932 main ()
6933 {
6934
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 eval $cacheid=yes
6941 else
6942 eval $cacheid=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6946 fi
6947
6948
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950
6951 eval supported=\$$cacheid
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953 $as_echo "$supported" >&6; }
6954 if test "$supported" = "yes" ; then
6955 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6956 found="yes"
6957 fi
6958 fi
6959
6960 if test $found = "no" ; then
6961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6963 fi
6964
6965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967 fi
6968
6969 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6972 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6973 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6974 if eval \${$cacheid+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6979 int i;
6980 int
6981 main ()
6982 {
6983
6984 ;
6985 return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989 eval $cacheid=yes
6990 else
6991 eval $cacheid=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 fi
6996
6997
6998 CFLAGS="$xorg_testset_save_CFLAGS"
6999
7000 eval supported=\$$cacheid
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7002 $as_echo "$supported" >&6; }
7003 if test "$supported" = "yes" ; then
7004 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7005 found="yes"
7006 fi
7007 fi
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 xorg_testset_save_CFLAGS="$CFLAGS"
7024
7025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 _ACEOF
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 xorg_cv_cc_flag_unknown_warning_option=yes
7038 else
7039 xorg_cv_cc_flag_unknown_warning_option=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 fi
7053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 int i;
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064 xorg_cv_cc_flag_unused_command_line_argument=yes
7065 else
7066 xorg_cv_cc_flag_unused_command_line_argument=no
7067 fi
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7073 CFLAGS="$xorg_testset_save_CFLAGS"
7074 fi
7075
7076 found="no"
7077
7078 if test $found = "no" ; then
7079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081 fi
7082
7083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7085 fi
7086
7087 CFLAGS="$CFLAGS -Werror=nonnull"
7088
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7090 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7091 cacheid=xorg_cv_cc_flag__Werror_nonnull
7092 if eval \${$cacheid+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 int i;
7098 int
7099 main ()
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_link "$LINENO"; then :
7107 eval $cacheid=yes
7108 else
7109 eval $cacheid=no
7110 fi
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 fi
7114
7115
7116 CFLAGS="$xorg_testset_save_CFLAGS"
7117
7118 eval supported=\$$cacheid
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7120 $as_echo "$supported" >&6; }
7121 if test "$supported" = "yes" ; then
7122 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7123 found="yes"
7124 fi
7125 fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 xorg_testset_save_CFLAGS="$CFLAGS"
7142
7143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 int i;
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155 xorg_cv_cc_flag_unknown_warning_option=yes
7156 else
7157 xorg_cv_cc_flag_unknown_warning_option=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7164 CFLAGS="$xorg_testset_save_CFLAGS"
7165 fi
7166
7167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 fi
7171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 int i;
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 xorg_cv_cc_flag_unused_command_line_argument=yes
7183 else
7184 xorg_cv_cc_flag_unused_command_line_argument=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7191 CFLAGS="$xorg_testset_save_CFLAGS"
7192 fi
7193
7194 found="no"
7195
7196 if test $found = "no" ; then
7197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199 fi
7200
7201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7203 fi
7204
7205 CFLAGS="$CFLAGS -Werror=init-self"
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7208 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7209 cacheid=xorg_cv_cc_flag__Werror_init_self
7210 if eval \${$cacheid+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 int i;
7216 int
7217 main ()
7218 {
7219
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 if ac_fn_c_try_link "$LINENO"; then :
7225 eval $cacheid=yes
7226 else
7227 eval $cacheid=no
7228 fi
7229 rm -f core conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 fi
7232
7233
7234 CFLAGS="$xorg_testset_save_CFLAGS"
7235
7236 eval supported=\$$cacheid
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7238 $as_echo "$supported" >&6; }
7239 if test "$supported" = "yes" ; then
7240 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7241 found="yes"
7242 fi
7243 fi
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259 xorg_testset_save_CFLAGS="$CFLAGS"
7260
7261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 int i;
7271 _ACEOF
7272 if ac_fn_c_try_compile "$LINENO"; then :
7273 xorg_cv_cc_flag_unknown_warning_option=yes
7274 else
7275 xorg_cv_cc_flag_unknown_warning_option=no
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7282 CFLAGS="$xorg_testset_save_CFLAGS"
7283 fi
7284
7285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 fi
7289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7297 int i;
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 xorg_cv_cc_flag_unused_command_line_argument=yes
7301 else
7302 xorg_cv_cc_flag_unused_command_line_argument=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7309 CFLAGS="$xorg_testset_save_CFLAGS"
7310 fi
7311
7312 found="no"
7313
7314 if test $found = "no" ; then
7315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 fi
7318
7319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321 fi
7322
7323 CFLAGS="$CFLAGS -Werror=main"
7324
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7326 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7327 cacheid=xorg_cv_cc_flag__Werror_main
7328 if eval \${$cacheid+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 int i;
7334 int
7335 main ()
7336 {
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_link "$LINENO"; then :
7343 eval $cacheid=yes
7344 else
7345 eval $cacheid=no
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7349 fi
7350
7351
7352 CFLAGS="$xorg_testset_save_CFLAGS"
7353
7354 eval supported=\$$cacheid
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7356 $as_echo "$supported" >&6; }
7357 if test "$supported" = "yes" ; then
7358 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7359 found="yes"
7360 fi
7361 fi
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 xorg_testset_save_CFLAGS="$CFLAGS"
7378
7379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 xorg_cv_cc_flag_unknown_warning_option=yes
7392 else
7393 xorg_cv_cc_flag_unknown_warning_option=no
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400 CFLAGS="$xorg_testset_save_CFLAGS"
7401 fi
7402
7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 fi
7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415 int i;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 xorg_cv_cc_flag_unused_command_line_argument=yes
7419 else
7420 xorg_cv_cc_flag_unused_command_line_argument=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427 CFLAGS="$xorg_testset_save_CFLAGS"
7428 fi
7429
7430 found="no"
7431
7432 if test $found = "no" ; then
7433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435 fi
7436
7437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 fi
7440
7441 CFLAGS="$CFLAGS -Werror=missing-braces"
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7444 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7445 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7446 if eval \${$cacheid+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 int i;
7452 int
7453 main ()
7454 {
7455
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 eval $cacheid=yes
7462 else
7463 eval $cacheid=no
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 fi
7468
7469
7470 CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472 eval supported=\$$cacheid
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474 $as_echo "$supported" >&6; }
7475 if test "$supported" = "yes" ; then
7476 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7477 found="yes"
7478 fi
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 xorg_testset_save_CFLAGS="$CFLAGS"
7496
7497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 _ACEOF
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 xorg_cv_cc_flag_unknown_warning_option=yes
7510 else
7511 xorg_cv_cc_flag_unknown_warning_option=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7518 CFLAGS="$xorg_testset_save_CFLAGS"
7519 fi
7520
7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 fi
7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 int i;
7534 _ACEOF
7535 if ac_fn_c_try_compile "$LINENO"; then :
7536 xorg_cv_cc_flag_unused_command_line_argument=yes
7537 else
7538 xorg_cv_cc_flag_unused_command_line_argument=no
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7545 CFLAGS="$xorg_testset_save_CFLAGS"
7546 fi
7547
7548 found="no"
7549
7550 if test $found = "no" ; then
7551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7553 fi
7554
7555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7557 fi
7558
7559 CFLAGS="$CFLAGS -Werror=sequence-point"
7560
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7562 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7563 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7564 if eval \${$cacheid+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int i;
7570 int
7571 main ()
7572 {
7573
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 eval $cacheid=yes
7580 else
7581 eval $cacheid=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 fi
7586
7587
7588 CFLAGS="$xorg_testset_save_CFLAGS"
7589
7590 eval supported=\$$cacheid
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7592 $as_echo "$supported" >&6; }
7593 if test "$supported" = "yes" ; then
7594 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7595 found="yes"
7596 fi
7597 fi
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 xorg_testset_save_CFLAGS="$CFLAGS"
7614
7615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7618 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7619 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 int i;
7625 _ACEOF
7626 if ac_fn_c_try_compile "$LINENO"; then :
7627 xorg_cv_cc_flag_unknown_warning_option=yes
7628 else
7629 xorg_cv_cc_flag_unknown_warning_option=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7634 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7636 CFLAGS="$xorg_testset_save_CFLAGS"
7637 fi
7638
7639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642 fi
7643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7645 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7646 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 int i;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"; then :
7654 xorg_cv_cc_flag_unused_command_line_argument=yes
7655 else
7656 xorg_cv_cc_flag_unused_command_line_argument=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7661 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7663 CFLAGS="$xorg_testset_save_CFLAGS"
7664 fi
7665
7666 found="no"
7667
7668 if test $found = "no" ; then
7669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675 fi
7676
7677 CFLAGS="$CFLAGS -Werror=return-type"
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7680 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7681 cacheid=xorg_cv_cc_flag__Werror_return_type
7682 if eval \${$cacheid+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 int i;
7688 int
7689 main ()
7690 {
7691
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 eval $cacheid=yes
7698 else
7699 eval $cacheid=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 fi
7704
7705
7706 CFLAGS="$xorg_testset_save_CFLAGS"
7707
7708 eval supported=\$$cacheid
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7710 $as_echo "$supported" >&6; }
7711 if test "$supported" = "yes" ; then
7712 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7713 found="yes"
7714 fi
7715 fi
7716
7717 if test $found = "no" ; then
7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720 fi
7721
7722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7724 fi
7725
7726 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7727
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7729 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7730 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7731 if eval \${$cacheid+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 int i;
7737 int
7738 main ()
7739 {
7740
7741 ;
7742 return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_c_try_link "$LINENO"; then :
7746 eval $cacheid=yes
7747 else
7748 eval $cacheid=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 fi
7753
7754
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7756
7757 eval supported=\$$cacheid
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7759 $as_echo "$supported" >&6; }
7760 if test "$supported" = "yes" ; then
7761 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7762 found="yes"
7763 fi
7764 fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 xorg_testset_save_CFLAGS="$CFLAGS"
7781
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 xorg_cv_cc_flag_unknown_warning_option=yes
7795 else
7796 xorg_cv_cc_flag_unknown_warning_option=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7803 CFLAGS="$xorg_testset_save_CFLAGS"
7804 fi
7805
7806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809 fi
7810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 int i;
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821 xorg_cv_cc_flag_unused_command_line_argument=yes
7822 else
7823 xorg_cv_cc_flag_unused_command_line_argument=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7830 CFLAGS="$xorg_testset_save_CFLAGS"
7831 fi
7832
7833 found="no"
7834
7835 if test $found = "no" ; then
7836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 fi
7839
7840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7842 fi
7843
7844 CFLAGS="$CFLAGS -Werror=trigraphs"
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7847 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7848 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7849 if eval \${$cacheid+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 int i;
7855 int
7856 main ()
7857 {
7858
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 eval $cacheid=yes
7865 else
7866 eval $cacheid=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 fi
7871
7872
7873 CFLAGS="$xorg_testset_save_CFLAGS"
7874
7875 eval supported=\$$cacheid
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7877 $as_echo "$supported" >&6; }
7878 if test "$supported" = "yes" ; then
7879 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7880 found="yes"
7881 fi
7882 fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898 xorg_testset_save_CFLAGS="$CFLAGS"
7899
7900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"; then :
7912 xorg_cv_cc_flag_unknown_warning_option=yes
7913 else
7914 xorg_cv_cc_flag_unknown_warning_option=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7921 CFLAGS="$xorg_testset_save_CFLAGS"
7922 fi
7923
7924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 fi
7928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 int i;
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939 xorg_cv_cc_flag_unused_command_line_argument=yes
7940 else
7941 xorg_cv_cc_flag_unused_command_line_argument=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7948 CFLAGS="$xorg_testset_save_CFLAGS"
7949 fi
7950
7951 found="no"
7952
7953 if test $found = "no" ; then
7954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956 fi
7957
7958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7960 fi
7961
7962 CFLAGS="$CFLAGS -Werror=array-bounds"
7963
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7965 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7966 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7967 if eval \${$cacheid+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 int
7974 main ()
7975 {
7976
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"; then :
7982 eval $cacheid=yes
7983 else
7984 eval $cacheid=no
7985 fi
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 fi
7989
7990
7991 CFLAGS="$xorg_testset_save_CFLAGS"
7992
7993 eval supported=\$$cacheid
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7995 $as_echo "$supported" >&6; }
7996 if test "$supported" = "yes" ; then
7997 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7998 found="yes"
7999 fi
8000 fi
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 xorg_testset_save_CFLAGS="$CFLAGS"
8017
8018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 int i;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 xorg_cv_cc_flag_unknown_warning_option=yes
8031 else
8032 xorg_cv_cc_flag_unknown_warning_option=no
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8039 CFLAGS="$xorg_testset_save_CFLAGS"
8040 fi
8041
8042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045 fi
8046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 int i;
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057 xorg_cv_cc_flag_unused_command_line_argument=yes
8058 else
8059 xorg_cv_cc_flag_unused_command_line_argument=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8066 CFLAGS="$xorg_testset_save_CFLAGS"
8067 fi
8068
8069 found="no"
8070
8071 if test $found = "no" ; then
8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074 fi
8075
8076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078 fi
8079
8080 CFLAGS="$CFLAGS -Werror=write-strings"
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8083 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8084 cacheid=xorg_cv_cc_flag__Werror_write_strings
8085 if eval \${$cacheid+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 int i;
8091 int
8092 main ()
8093 {
8094
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 eval $cacheid=yes
8101 else
8102 eval $cacheid=no
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 fi
8107
8108
8109 CFLAGS="$xorg_testset_save_CFLAGS"
8110
8111 eval supported=\$$cacheid
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8113 $as_echo "$supported" >&6; }
8114 if test "$supported" = "yes" ; then
8115 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8116 found="yes"
8117 fi
8118 fi
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 xorg_testset_save_CFLAGS="$CFLAGS"
8135
8136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8139 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 int i;
8146 _ACEOF
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148 xorg_cv_cc_flag_unknown_warning_option=yes
8149 else
8150 xorg_cv_cc_flag_unknown_warning_option=no
8151 fi
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8155 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8157 CFLAGS="$xorg_testset_save_CFLAGS"
8158 fi
8159
8160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 fi
8164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8166 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8172 int i;
8173 _ACEOF
8174 if ac_fn_c_try_compile "$LINENO"; then :
8175 xorg_cv_cc_flag_unused_command_line_argument=yes
8176 else
8177 xorg_cv_cc_flag_unused_command_line_argument=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8182 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185 fi
8186
8187 found="no"
8188
8189 if test $found = "no" ; then
8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192 fi
8193
8194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8196 fi
8197
8198 CFLAGS="$CFLAGS -Werror=address"
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8201 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8202 cacheid=xorg_cv_cc_flag__Werror_address
8203 if eval \${$cacheid+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int i;
8209 int
8210 main ()
8211 {
8212
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218 eval $cacheid=yes
8219 else
8220 eval $cacheid=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 fi
8225
8226
8227 CFLAGS="$xorg_testset_save_CFLAGS"
8228
8229 eval supported=\$$cacheid
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8231 $as_echo "$supported" >&6; }
8232 if test "$supported" = "yes" ; then
8233 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8234 found="yes"
8235 fi
8236 fi
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 xorg_testset_save_CFLAGS="$CFLAGS"
8253
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8257 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 _ACEOF
8265 if ac_fn_c_try_compile "$LINENO"; then :
8266 xorg_cv_cc_flag_unknown_warning_option=yes
8267 else
8268 xorg_cv_cc_flag_unknown_warning_option=no
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8273 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8275 CFLAGS="$xorg_testset_save_CFLAGS"
8276 fi
8277
8278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281 fi
8282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8284 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 int i;
8291 _ACEOF
8292 if ac_fn_c_try_compile "$LINENO"; then :
8293 xorg_cv_cc_flag_unused_command_line_argument=yes
8294 else
8295 xorg_cv_cc_flag_unused_command_line_argument=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8300 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8302 CFLAGS="$xorg_testset_save_CFLAGS"
8303 fi
8304
8305 found="no"
8306
8307 if test $found = "no" ; then
8308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310 fi
8311
8312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314 fi
8315
8316 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8319 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8320 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8321 if eval \${$cacheid+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 int i;
8327 int
8328 main ()
8329 {
8330
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 eval $cacheid=yes
8337 else
8338 eval $cacheid=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 fi
8343
8344
8345 CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347 eval supported=\$$cacheid
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349 $as_echo "$supported" >&6; }
8350 if test "$supported" = "yes" ; then
8351 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8352 found="yes"
8353 fi
8354 fi
8355
8356 if test $found = "no" ; then
8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359 fi
8360
8361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363 fi
8364
8365 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8366
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8368 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8369 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8370 if eval \${$cacheid+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 int i;
8376 int
8377 main ()
8378 {
8379
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 eval $cacheid=yes
8386 else
8387 eval $cacheid=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 fi
8392
8393
8394 CFLAGS="$xorg_testset_save_CFLAGS"
8395
8396 eval supported=\$$cacheid
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8398 $as_echo "$supported" >&6; }
8399 if test "$supported" = "yes" ; then
8400 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8401 found="yes"
8402 fi
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419 xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 xorg_cv_cc_flag_unknown_warning_option=yes
8434 else
8435 xorg_cv_cc_flag_unknown_warning_option=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 fi
8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 int i;
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 xorg_cv_cc_flag_unused_command_line_argument=yes
8461 else
8462 xorg_cv_cc_flag_unused_command_line_argument=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469 CFLAGS="$xorg_testset_save_CFLAGS"
8470 fi
8471
8472 found="no"
8473
8474 if test $found = "no" ; then
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 fi
8478
8479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 fi
8482
8483 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8486 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8487 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8488 if eval \${$cacheid+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 int i;
8494 int
8495 main ()
8496 {
8497
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 eval $cacheid=yes
8504 else
8505 eval $cacheid=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 fi
8510
8511
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514 eval supported=\$$cacheid
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516 $as_echo "$supported" >&6; }
8517 if test "$supported" = "yes" ; then
8518 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8519 found="yes"
8520 fi
8521 fi
8522
8523 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8524 else
8525 { $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
8526 $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;}
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540 xorg_testset_save_CFLAGS="$CFLAGS"
8541
8542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8545 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8546 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 int i;
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 xorg_cv_cc_flag_unknown_warning_option=yes
8555 else
8556 xorg_cv_cc_flag_unknown_warning_option=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8561 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8563 CFLAGS="$xorg_testset_save_CFLAGS"
8564 fi
8565
8566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 fi
8570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8572 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8573 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 int i;
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 xorg_cv_cc_flag_unused_command_line_argument=yes
8582 else
8583 xorg_cv_cc_flag_unused_command_line_argument=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8588 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8590 CFLAGS="$xorg_testset_save_CFLAGS"
8591 fi
8592
8593 found="no"
8594
8595 if test $found = "no" ; then
8596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598 fi
8599
8600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602 fi
8603
8604 CFLAGS="$CFLAGS -Wimplicit"
8605
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8607 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8608 cacheid=xorg_cv_cc_flag__Wimplicit
8609 if eval \${$cacheid+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int i;
8615 int
8616 main ()
8617 {
8618
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 eval $cacheid=yes
8625 else
8626 eval $cacheid=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 fi
8631
8632
8633 CFLAGS="$xorg_testset_save_CFLAGS"
8634
8635 eval supported=\$$cacheid
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8637 $as_echo "$supported" >&6; }
8638 if test "$supported" = "yes" ; then
8639 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8640 found="yes"
8641 fi
8642 fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 xorg_testset_save_CFLAGS="$CFLAGS"
8659
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8663 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8664 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 int i;
8670 _ACEOF
8671 if ac_fn_c_try_compile "$LINENO"; then :
8672 xorg_cv_cc_flag_unknown_warning_option=yes
8673 else
8674 xorg_cv_cc_flag_unknown_warning_option=no
8675 fi
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8679 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8681 CFLAGS="$xorg_testset_save_CFLAGS"
8682 fi
8683
8684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687 fi
8688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8690 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8691 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 int i;
8697 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"; then :
8699 xorg_cv_cc_flag_unused_command_line_argument=yes
8700 else
8701 xorg_cv_cc_flag_unused_command_line_argument=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8706 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8709 fi
8710
8711 found="no"
8712
8713 if test $found = "no" ; then
8714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716 fi
8717
8718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720 fi
8721
8722 CFLAGS="$CFLAGS -Wnonnull"
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8725 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8726 cacheid=xorg_cv_cc_flag__Wnonnull
8727 if eval \${$cacheid+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 int i;
8733 int
8734 main ()
8735 {
8736
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 eval $cacheid=yes
8743 else
8744 eval $cacheid=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 fi
8749
8750
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752
8753 eval supported=\$$cacheid
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8755 $as_echo "$supported" >&6; }
8756 if test "$supported" = "yes" ; then
8757 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8758 found="yes"
8759 fi
8760 fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 xorg_testset_save_CFLAGS="$CFLAGS"
8777
8778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int i;
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790 xorg_cv_cc_flag_unknown_warning_option=yes
8791 else
8792 xorg_cv_cc_flag_unknown_warning_option=no
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8799 CFLAGS="$xorg_testset_save_CFLAGS"
8800 fi
8801
8802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805 fi
8806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 int i;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 xorg_cv_cc_flag_unused_command_line_argument=yes
8818 else
8819 xorg_cv_cc_flag_unused_command_line_argument=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827 fi
8828
8829 found="no"
8830
8831 if test $found = "no" ; then
8832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834 fi
8835
8836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838 fi
8839
8840 CFLAGS="$CFLAGS -Winit-self"
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8843 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8844 cacheid=xorg_cv_cc_flag__Winit_self
8845 if eval \${$cacheid+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 int i;
8851 int
8852 main ()
8853 {
8854
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_link "$LINENO"; then :
8860 eval $cacheid=yes
8861 else
8862 eval $cacheid=no
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 fi
8867
8868
8869 CFLAGS="$xorg_testset_save_CFLAGS"
8870
8871 eval supported=\$$cacheid
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8873 $as_echo "$supported" >&6; }
8874 if test "$supported" = "yes" ; then
8875 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8876 found="yes"
8877 fi
8878 fi
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894 xorg_testset_save_CFLAGS="$CFLAGS"
8895
8896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8899 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8900 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"; then :
8908 xorg_cv_cc_flag_unknown_warning_option=yes
8909 else
8910 xorg_cv_cc_flag_unknown_warning_option=no
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8915 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8919
8920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923 fi
8924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8927 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 int i;
8933 _ACEOF
8934 if ac_fn_c_try_compile "$LINENO"; then :
8935 xorg_cv_cc_flag_unused_command_line_argument=yes
8936 else
8937 xorg_cv_cc_flag_unused_command_line_argument=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8942 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8944 CFLAGS="$xorg_testset_save_CFLAGS"
8945 fi
8946
8947 found="no"
8948
8949 if test $found = "no" ; then
8950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952 fi
8953
8954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8956 fi
8957
8958 CFLAGS="$CFLAGS -Wmain"
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8961 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8962 cacheid=xorg_cv_cc_flag__Wmain
8963 if eval \${$cacheid+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 int i;
8969 int
8970 main ()
8971 {
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978 eval $cacheid=yes
8979 else
8980 eval $cacheid=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 fi
8985
8986
8987 CFLAGS="$xorg_testset_save_CFLAGS"
8988
8989 eval supported=\$$cacheid
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8991 $as_echo "$supported" >&6; }
8992 if test "$supported" = "yes" ; then
8993 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8994 found="yes"
8995 fi
8996 fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 xorg_testset_save_CFLAGS="$CFLAGS"
9013
9014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 int i;
9024 _ACEOF
9025 if ac_fn_c_try_compile "$LINENO"; then :
9026 xorg_cv_cc_flag_unknown_warning_option=yes
9027 else
9028 xorg_cv_cc_flag_unknown_warning_option=no
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9035 CFLAGS="$xorg_testset_save_CFLAGS"
9036 fi
9037
9038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 fi
9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 int i;
9051 _ACEOF
9052 if ac_fn_c_try_compile "$LINENO"; then :
9053 xorg_cv_cc_flag_unused_command_line_argument=yes
9054 else
9055 xorg_cv_cc_flag_unused_command_line_argument=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063 fi
9064
9065 found="no"
9066
9067 if test $found = "no" ; then
9068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070 fi
9071
9072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9074 fi
9075
9076 CFLAGS="$CFLAGS -Wmissing-braces"
9077
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9079 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9080 cacheid=xorg_cv_cc_flag__Wmissing_braces
9081 if eval \${$cacheid+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 int i;
9087 int
9088 main ()
9089 {
9090
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 eval $cacheid=yes
9097 else
9098 eval $cacheid=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 fi
9103
9104
9105 CFLAGS="$xorg_testset_save_CFLAGS"
9106
9107 eval supported=\$$cacheid
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9109 $as_echo "$supported" >&6; }
9110 if test "$supported" = "yes" ; then
9111 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9112 found="yes"
9113 fi
9114 fi
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130 xorg_testset_save_CFLAGS="$CFLAGS"
9131
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int i;
9142 _ACEOF
9143 if ac_fn_c_try_compile "$LINENO"; then :
9144 xorg_cv_cc_flag_unknown_warning_option=yes
9145 else
9146 xorg_cv_cc_flag_unknown_warning_option=no
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9153 CFLAGS="$xorg_testset_save_CFLAGS"
9154 fi
9155
9156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159 fi
9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 int i;
9169 _ACEOF
9170 if ac_fn_c_try_compile "$LINENO"; then :
9171 xorg_cv_cc_flag_unused_command_line_argument=yes
9172 else
9173 xorg_cv_cc_flag_unused_command_line_argument=no
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181 fi
9182
9183 found="no"
9184
9185 if test $found = "no" ; then
9186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9188 fi
9189
9190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192 fi
9193
9194 CFLAGS="$CFLAGS -Wsequence-point"
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9197 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9198 cacheid=xorg_cv_cc_flag__Wsequence_point
9199 if eval \${$cacheid+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int i;
9205 int
9206 main ()
9207 {
9208
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214 eval $cacheid=yes
9215 else
9216 eval $cacheid=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 fi
9221
9222
9223 CFLAGS="$xorg_testset_save_CFLAGS"
9224
9225 eval supported=\$$cacheid
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9227 $as_echo "$supported" >&6; }
9228 if test "$supported" = "yes" ; then
9229 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9230 found="yes"
9231 fi
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248 xorg_testset_save_CFLAGS="$CFLAGS"
9249
9250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 int i;
9260 _ACEOF
9261 if ac_fn_c_try_compile "$LINENO"; then :
9262 xorg_cv_cc_flag_unknown_warning_option=yes
9263 else
9264 xorg_cv_cc_flag_unknown_warning_option=no
9265 fi
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9271 CFLAGS="$xorg_testset_save_CFLAGS"
9272 fi
9273
9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277 fi
9278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 int i;
9287 _ACEOF
9288 if ac_fn_c_try_compile "$LINENO"; then :
9289 xorg_cv_cc_flag_unused_command_line_argument=yes
9290 else
9291 xorg_cv_cc_flag_unused_command_line_argument=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 fi
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9298 CFLAGS="$xorg_testset_save_CFLAGS"
9299 fi
9300
9301 found="no"
9302
9303 if test $found = "no" ; then
9304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306 fi
9307
9308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9310 fi
9311
9312 CFLAGS="$CFLAGS -Wreturn-type"
9313
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9315 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9316 cacheid=xorg_cv_cc_flag__Wreturn_type
9317 if eval \${$cacheid+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 int i;
9323 int
9324 main ()
9325 {
9326
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9332 eval $cacheid=yes
9333 else
9334 eval $cacheid=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 fi
9339
9340
9341 CFLAGS="$xorg_testset_save_CFLAGS"
9342
9343 eval supported=\$$cacheid
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9345 $as_echo "$supported" >&6; }
9346 if test "$supported" = "yes" ; then
9347 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9348 found="yes"
9349 fi
9350 fi
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366 xorg_testset_save_CFLAGS="$CFLAGS"
9367
9368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 int i;
9378 _ACEOF
9379 if ac_fn_c_try_compile "$LINENO"; then :
9380 xorg_cv_cc_flag_unknown_warning_option=yes
9381 else
9382 xorg_cv_cc_flag_unknown_warning_option=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9389 CFLAGS="$xorg_testset_save_CFLAGS"
9390 fi
9391
9392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395 fi
9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404 int i;
9405 _ACEOF
9406 if ac_fn_c_try_compile "$LINENO"; then :
9407 xorg_cv_cc_flag_unused_command_line_argument=yes
9408 else
9409 xorg_cv_cc_flag_unused_command_line_argument=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 fi
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 found="no"
9420
9421 if test $found = "no" ; then
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 fi
9429
9430 CFLAGS="$CFLAGS -Wtrigraphs"
9431
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9433 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9434 cacheid=xorg_cv_cc_flag__Wtrigraphs
9435 if eval \${$cacheid+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 int i;
9441 int
9442 main ()
9443 {
9444
9445 ;
9446 return 0;
9447 }
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 eval $cacheid=yes
9451 else
9452 eval $cacheid=no
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 fi
9457
9458
9459 CFLAGS="$xorg_testset_save_CFLAGS"
9460
9461 eval supported=\$$cacheid
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9463 $as_echo "$supported" >&6; }
9464 if test "$supported" = "yes" ; then
9465 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9466 found="yes"
9467 fi
9468 fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484 xorg_testset_save_CFLAGS="$CFLAGS"
9485
9486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 int i;
9496 _ACEOF
9497 if ac_fn_c_try_compile "$LINENO"; then :
9498 xorg_cv_cc_flag_unknown_warning_option=yes
9499 else
9500 xorg_cv_cc_flag_unknown_warning_option=no
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9507 CFLAGS="$xorg_testset_save_CFLAGS"
9508 fi
9509
9510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 fi
9514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 int i;
9523 _ACEOF
9524 if ac_fn_c_try_compile "$LINENO"; then :
9525 xorg_cv_cc_flag_unused_command_line_argument=yes
9526 else
9527 xorg_cv_cc_flag_unused_command_line_argument=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535 fi
9536
9537 found="no"
9538
9539 if test $found = "no" ; then
9540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542 fi
9543
9544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9546 fi
9547
9548 CFLAGS="$CFLAGS -Warray-bounds"
9549
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9551 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9552 cacheid=xorg_cv_cc_flag__Warray_bounds
9553 if eval \${$cacheid+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 int i;
9559 int
9560 main ()
9561 {
9562
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 eval $cacheid=yes
9569 else
9570 eval $cacheid=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 fi
9575
9576
9577 CFLAGS="$xorg_testset_save_CFLAGS"
9578
9579 eval supported=\$$cacheid
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9581 $as_echo "$supported" >&6; }
9582 if test "$supported" = "yes" ; then
9583 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9584 found="yes"
9585 fi
9586 fi
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 xorg_testset_save_CFLAGS="$CFLAGS"
9603
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 _ACEOF
9615 if ac_fn_c_try_compile "$LINENO"; then :
9616 xorg_cv_cc_flag_unknown_warning_option=yes
9617 else
9618 xorg_cv_cc_flag_unknown_warning_option=no
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9625 CFLAGS="$xorg_testset_save_CFLAGS"
9626 fi
9627
9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 int i;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 xorg_cv_cc_flag_unused_command_line_argument=yes
9644 else
9645 xorg_cv_cc_flag_unused_command_line_argument=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653 fi
9654
9655 found="no"
9656
9657 if test $found = "no" ; then
9658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660 fi
9661
9662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9664 fi
9665
9666 CFLAGS="$CFLAGS -Wwrite-strings"
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9669 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9670 cacheid=xorg_cv_cc_flag__Wwrite_strings
9671 if eval \${$cacheid+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 int
9678 main ()
9679 {
9680
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 eval $cacheid=yes
9687 else
9688 eval $cacheid=no
9689 fi
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 fi
9693
9694
9695 CFLAGS="$xorg_testset_save_CFLAGS"
9696
9697 eval supported=\$$cacheid
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9699 $as_echo "$supported" >&6; }
9700 if test "$supported" = "yes" ; then
9701 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9702 found="yes"
9703 fi
9704 fi
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720 xorg_testset_save_CFLAGS="$CFLAGS"
9721
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 _ACEOF
9733 if ac_fn_c_try_compile "$LINENO"; then :
9734 xorg_cv_cc_flag_unknown_warning_option=yes
9735 else
9736 xorg_cv_cc_flag_unknown_warning_option=no
9737 fi
9738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9743 CFLAGS="$xorg_testset_save_CFLAGS"
9744 fi
9745
9746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 fi
9750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 int i;
9759 _ACEOF
9760 if ac_fn_c_try_compile "$LINENO"; then :
9761 xorg_cv_cc_flag_unused_command_line_argument=yes
9762 else
9763 xorg_cv_cc_flag_unused_command_line_argument=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771 fi
9772
9773 found="no"
9774
9775 if test $found = "no" ; then
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 fi
9779
9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782 fi
9783
9784 CFLAGS="$CFLAGS -Waddress"
9785
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9787 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9788 cacheid=xorg_cv_cc_flag__Waddress
9789 if eval \${$cacheid+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 int
9796 main ()
9797 {
9798
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 eval $cacheid=yes
9805 else
9806 eval $cacheid=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 fi
9811
9812
9813 CFLAGS="$xorg_testset_save_CFLAGS"
9814
9815 eval supported=\$$cacheid
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9817 $as_echo "$supported" >&6; }
9818 if test "$supported" = "yes" ; then
9819 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9820 found="yes"
9821 fi
9822 fi
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838 xorg_testset_save_CFLAGS="$CFLAGS"
9839
9840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 int i;
9850 _ACEOF
9851 if ac_fn_c_try_compile "$LINENO"; then :
9852 xorg_cv_cc_flag_unknown_warning_option=yes
9853 else
9854 xorg_cv_cc_flag_unknown_warning_option=no
9855 fi
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 fi
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9861 CFLAGS="$xorg_testset_save_CFLAGS"
9862 fi
9863
9864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867 fi
9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 int i;
9877 _ACEOF
9878 if ac_fn_c_try_compile "$LINENO"; then :
9879 xorg_cv_cc_flag_unused_command_line_argument=yes
9880 else
9881 xorg_cv_cc_flag_unused_command_line_argument=no
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9888 CFLAGS="$xorg_testset_save_CFLAGS"
9889 fi
9890
9891 found="no"
9892
9893 if test $found = "no" ; then
9894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896 fi
9897
9898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9900 fi
9901
9902 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9903
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9905 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9906 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9907 if eval \${$cacheid+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int i;
9913 int
9914 main ()
9915 {
9916
9917 ;
9918 return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922 eval $cacheid=yes
9923 else
9924 eval $cacheid=no
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 fi
9929
9930
9931 CFLAGS="$xorg_testset_save_CFLAGS"
9932
9933 eval supported=\$$cacheid
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9935 $as_echo "$supported" >&6; }
9936 if test "$supported" = "yes" ; then
9937 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9938 found="yes"
9939 fi
9940 fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956 xorg_testset_save_CFLAGS="$CFLAGS"
9957
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int i;
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"; then :
9970 xorg_cv_cc_flag_unknown_warning_option=yes
9971 else
9972 xorg_cv_cc_flag_unknown_warning_option=no
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 fi
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9979 CFLAGS="$xorg_testset_save_CFLAGS"
9980 fi
9981
9982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985 fi
9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int i;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"; then :
9997 xorg_cv_cc_flag_unused_command_line_argument=yes
9998 else
9999 xorg_cv_cc_flag_unused_command_line_argument=no
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10006 CFLAGS="$xorg_testset_save_CFLAGS"
10007 fi
10008
10009 found="no"
10010
10011 if test $found = "no" ; then
10012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014 fi
10015
10016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10018 fi
10019
10020 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10023 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10024 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10025 if eval \${$cacheid+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 int i;
10031 int
10032 main ()
10033 {
10034
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 if ac_fn_c_try_link "$LINENO"; then :
10040 eval $cacheid=yes
10041 else
10042 eval $cacheid=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 fi
10047
10048
10049 CFLAGS="$xorg_testset_save_CFLAGS"
10050
10051 eval supported=\$$cacheid
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10053 $as_echo "$supported" >&6; }
10054 if test "$supported" = "yes" ; then
10055 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10056 found="yes"
10057 fi
10058 fi
10059
10060
10061 fi
10062
10063
10064
10065
10066
10067
10068
10069 CWARNFLAGS="$BASE_CFLAGS"
10070 if test "x$GCC" = xyes ; then
10071 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10072 fi
10073
10074
10075
10076
10077
10078
10079
10080
10081 # Check whether --enable-strict-compilation was given.
10082 if test "${enable_strict_compilation+set}" = set; then :
10083 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10084 else
10085 STRICT_COMPILE=no
10086 fi
10087
10088
10089
10090
10091
10092
10093 STRICT_CFLAGS=""
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"; then :
10121 xorg_cv_cc_flag_unknown_warning_option=yes
10122 else
10123 xorg_cv_cc_flag_unknown_warning_option=no
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10128 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10130 CFLAGS="$xorg_testset_save_CFLAGS"
10131 fi
10132
10133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 fi
10137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10139 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10140 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 int i;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148 xorg_cv_cc_flag_unused_command_line_argument=yes
10149 else
10150 xorg_cv_cc_flag_unused_command_line_argument=no
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 fi
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10155 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10157 CFLAGS="$xorg_testset_save_CFLAGS"
10158 fi
10159
10160 found="no"
10161
10162 if test $found = "no" ; then
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10169 fi
10170
10171 CFLAGS="$CFLAGS -pedantic"
10172
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10174 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10175 cacheid=xorg_cv_cc_flag__pedantic
10176 if eval \${$cacheid+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int i;
10182 int
10183 main ()
10184 {
10185
10186 ;
10187 return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10191 eval $cacheid=yes
10192 else
10193 eval $cacheid=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 fi
10198
10199
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201
10202 eval supported=\$$cacheid
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10204 $as_echo "$supported" >&6; }
10205 if test "$supported" = "yes" ; then
10206 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10207 found="yes"
10208 fi
10209 fi
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 xorg_testset_save_CFLAGS="$CFLAGS"
10226
10227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10230 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10231 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int i;
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"; then :
10239 xorg_cv_cc_flag_unknown_warning_option=yes
10240 else
10241 xorg_cv_cc_flag_unknown_warning_option=no
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 fi
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10246 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10248 CFLAGS="$xorg_testset_save_CFLAGS"
10249 fi
10250
10251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254 fi
10255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10257 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10258 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 int i;
10264 _ACEOF
10265 if ac_fn_c_try_compile "$LINENO"; then :
10266 xorg_cv_cc_flag_unused_command_line_argument=yes
10267 else
10268 xorg_cv_cc_flag_unused_command_line_argument=no
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10273 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10275 CFLAGS="$xorg_testset_save_CFLAGS"
10276 fi
10277
10278 found="no"
10279
10280 if test $found = "no" ; then
10281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10283 fi
10284
10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10287 fi
10288
10289 CFLAGS="$CFLAGS -Werror"
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10292 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10293 cacheid=xorg_cv_cc_flag__Werror
10294 if eval \${$cacheid+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 int i;
10300 int
10301 main ()
10302 {
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 eval $cacheid=yes
10310 else
10311 eval $cacheid=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 fi
10316
10317
10318 CFLAGS="$xorg_testset_save_CFLAGS"
10319
10320 eval supported=\$$cacheid
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10322 $as_echo "$supported" >&6; }
10323 if test "$supported" = "yes" ; then
10324 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10325 found="yes"
10326 fi
10327 fi
10328
10329 if test $found = "no" ; then
10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332 fi
10333
10334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336 fi
10337
10338 CFLAGS="$CFLAGS -errwarn"
10339
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10341 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10342 cacheid=xorg_cv_cc_flag__errwarn
10343 if eval \${$cacheid+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348 int i;
10349 int
10350 main ()
10351 {
10352
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 eval $cacheid=yes
10359 else
10360 eval $cacheid=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 fi
10365
10366
10367 CFLAGS="$xorg_testset_save_CFLAGS"
10368
10369 eval supported=\$$cacheid
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10371 $as_echo "$supported" >&6; }
10372 if test "$supported" = "yes" ; then
10373 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10374 found="yes"
10375 fi
10376 fi
10377
10378
10379
10380 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10381 # activate it with -Werror, so we add it here explicitly.
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395 xorg_testset_save_CFLAGS="$CFLAGS"
10396
10397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10400 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10401 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int i;
10407 _ACEOF
10408 if ac_fn_c_try_compile "$LINENO"; then :
10409 xorg_cv_cc_flag_unknown_warning_option=yes
10410 else
10411 xorg_cv_cc_flag_unknown_warning_option=no
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 fi
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10416 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10418 CFLAGS="$xorg_testset_save_CFLAGS"
10419 fi
10420
10421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424 fi
10425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10428 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 _ACEOF
10435 if ac_fn_c_try_compile "$LINENO"; then :
10436 xorg_cv_cc_flag_unused_command_line_argument=yes
10437 else
10438 xorg_cv_cc_flag_unused_command_line_argument=no
10439 fi
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10443 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10445 CFLAGS="$xorg_testset_save_CFLAGS"
10446 fi
10447
10448 found="no"
10449
10450 if test $found = "no" ; then
10451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10453 fi
10454
10455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10457 fi
10458
10459 CFLAGS="$CFLAGS -Werror=attributes"
10460
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10462 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10463 cacheid=xorg_cv_cc_flag__Werror_attributes
10464 if eval \${$cacheid+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 int i;
10470 int
10471 main ()
10472 {
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479 eval $cacheid=yes
10480 else
10481 eval $cacheid=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 fi
10486
10487
10488 CFLAGS="$xorg_testset_save_CFLAGS"
10489
10490 eval supported=\$$cacheid
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10492 $as_echo "$supported" >&6; }
10493 if test "$supported" = "yes" ; then
10494 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10495 found="yes"
10496 fi
10497 fi
10498
10499
10500
10501 if test "x$STRICT_COMPILE" = "xyes"; then
10502 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10503 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10504 fi
10505
10506
10507
10508
10509
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10513 _ACEOF
10514
10515 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10516 if test "x$PVM" = "x"; then
10517 PVM="0"
10518 fi
10519
10520 cat >>confdefs.h <<_ACEOF
10521 #define PACKAGE_VERSION_MINOR $PVM
10522 _ACEOF
10523
10524 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10525 if test "x$PVP" = "x"; then
10526 PVP="0"
10527 fi
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10531 _ACEOF
10532
10533
10534
10535 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10536 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10537 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10538 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10539
10540
10541
10542
10543 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10544 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10545 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10546 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10547 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10548
10549
10550
10551
10552
10553
10554 if test x$APP_MAN_SUFFIX = x ; then
10555 APP_MAN_SUFFIX=1
10556 fi
10557 if test x$APP_MAN_DIR = x ; then
10558 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10559 fi
10560
10561 if test x$LIB_MAN_SUFFIX = x ; then
10562 LIB_MAN_SUFFIX=3
10563 fi
10564 if test x$LIB_MAN_DIR = x ; then
10565 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10566 fi
10567
10568 if test x$FILE_MAN_SUFFIX = x ; then
10569 case $host_os in
10570 solaris*) FILE_MAN_SUFFIX=4 ;;
10571 *) FILE_MAN_SUFFIX=5 ;;
10572 esac
10573 fi
10574 if test x$FILE_MAN_DIR = x ; then
10575 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10576 fi
10577
10578 if test x$MISC_MAN_SUFFIX = x ; then
10579 case $host_os in
10580 solaris*) MISC_MAN_SUFFIX=5 ;;
10581 *) MISC_MAN_SUFFIX=7 ;;
10582 esac
10583 fi
10584 if test x$MISC_MAN_DIR = x ; then
10585 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10586 fi
10587
10588 if test x$DRIVER_MAN_SUFFIX = x ; then
10589 case $host_os in
10590 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10591 *) DRIVER_MAN_SUFFIX=4 ;;
10592 esac
10593 fi
10594 if test x$DRIVER_MAN_DIR = x ; then
10595 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10596 fi
10597
10598 if test x$ADMIN_MAN_SUFFIX = x ; then
10599 case $host_os in
10600 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10601 *) ADMIN_MAN_SUFFIX=8 ;;
10602 esac
10603 fi
10604 if test x$ADMIN_MAN_DIR = x ; then
10605 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10606 fi
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 XORG_MAN_PAGE="X Version 11"
10623
10624 MAN_SUBSTS="\
10625 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10626 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10627 -e 's|__xservername__|Xorg|g' \
10628 -e 's|__xconfigfile__|xorg.conf|g' \
10629 -e 's|__projectroot__|\$(prefix)|g' \
10630 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10631 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10632 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10633 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10634 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10635 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10636 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10637
10638
10639
10640 # Check whether --enable-silent-rules was given.
10641 if test "${enable_silent_rules+set}" = set; then :
10642 enableval=$enable_silent_rules;
10643 fi
10644
10645 case $enable_silent_rules in # (((
10646 yes) AM_DEFAULT_VERBOSITY=0;;
10647 no) AM_DEFAULT_VERBOSITY=1;;
10648 *) AM_DEFAULT_VERBOSITY=0;;
10649 esac
10650 am_make=${MAKE-make}
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10652 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10653 if ${am_cv_make_support_nested_variables+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 if $as_echo 'TRUE=$(BAR$(V))
10657 BAR0=false
10658 BAR1=true
10659 V=1
10660 am__doit:
10661 @$(TRUE)
10662 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10663 am_cv_make_support_nested_variables=yes
10664 else
10665 am_cv_make_support_nested_variables=no
10666 fi
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10669 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10670 if test $am_cv_make_support_nested_variables = yes; then
10671 AM_V='$(V)'
10672 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10673 else
10674 AM_V=$AM_DEFAULT_VERBOSITY
10675 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10676 fi
10677 AM_BACKSLASH='\'
10678
10679
10680
10681
10682 # Check whether --enable-docs was given.
10683 if test "${enable_docs+set}" = set; then :
10684 enableval=$enable_docs; build_docs=$enableval
10685 else
10686 build_docs=yes
10687 fi
10688
10689
10690 if test x$build_docs = xyes; then
10691 ENABLE_DOCS_TRUE=
10692 ENABLE_DOCS_FALSE='#'
10693 else
10694 ENABLE_DOCS_TRUE='#'
10695 ENABLE_DOCS_FALSE=
10696 fi
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10699 $as_echo_n "checking whether to build documentation... " >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10701 $as_echo "$build_docs" >&6; }
10702
10703
10704
10705 # Check whether --enable-specs was given.
10706 if test "${enable_specs+set}" = set; then :
10707 enableval=$enable_specs; build_specs=$enableval
10708 else
10709 build_specs=yes
10710 fi
10711
10712
10713 if test x$build_specs = xyes; then
10714 ENABLE_SPECS_TRUE=
10715 ENABLE_SPECS_FALSE='#'
10716 else
10717 ENABLE_SPECS_TRUE='#'
10718 ENABLE_SPECS_FALSE=
10719 fi
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10722 $as_echo_n "checking whether to build functional specifications... " >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10724 $as_echo "$build_specs" >&6; }
10725
10726
10727
10728
10729
10730 # Check whether --with-xmlto was given.
10731 if test "${with_xmlto+set}" = set; then :
10732 withval=$with_xmlto; use_xmlto=$withval
10733 else
10734 use_xmlto=auto
10735 fi
10736
10737
10738
10739 if test "x$use_xmlto" = x"auto"; then
10740 # Extract the first word of "xmlto", so it can be a program name with args.
10741 set dummy xmlto; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_path_XMLTO+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 case $XMLTO in
10748 [\\/]* | ?:[\\/]*)
10749 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10750 ;;
10751 *)
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10754 do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763 done
10764 done
10765 IFS=$as_save_IFS
10766
10767 ;;
10768 esac
10769 fi
10770 XMLTO=$ac_cv_path_XMLTO
10771 if test -n "$XMLTO"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10773 $as_echo "$XMLTO" >&6; }
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10777 fi
10778
10779
10780 if test "x$XMLTO" = "x"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10782 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10783 have_xmlto=no
10784 else
10785 have_xmlto=yes
10786 fi
10787 elif test "x$use_xmlto" = x"yes" ; then
10788 # Extract the first word of "xmlto", so it can be a program name with args.
10789 set dummy xmlto; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_path_XMLTO+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 case $XMLTO in
10796 [\\/]* | ?:[\\/]*)
10797 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10798 ;;
10799 *)
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811 done
10812 done
10813 IFS=$as_save_IFS
10814
10815 ;;
10816 esac
10817 fi
10818 XMLTO=$ac_cv_path_XMLTO
10819 if test -n "$XMLTO"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10821 $as_echo "$XMLTO" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828 if test "x$XMLTO" = "x"; then
10829 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10830 fi
10831 have_xmlto=yes
10832 elif test "x$use_xmlto" = x"no" ; then
10833 if test "x$XMLTO" != "x"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10835 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10836 fi
10837 have_xmlto=no
10838 else
10839 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10840 fi
10841
10842 # Test for a minimum version of xmlto, if provided.
10843 if test "$have_xmlto" = yes; then
10844 # scrape the xmlto version
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10846 $as_echo_n "checking the xmlto version... " >&6; }
10847 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10849 $as_echo "$xmlto_version" >&6; }
10850 as_arg_v1=$xmlto_version
10851 as_arg_v2=0.0.22
10852 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10853 case $? in #(
10854 1) :
10855 if test "x$use_xmlto" = xauto; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10857 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10858 have_xmlto=no
10859 else
10860 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10861 fi ;; #(
10862 0) :
10863 ;; #(
10864 2) :
10865 ;; #(
10866 *) :
10867 ;;
10868 esac
10869 fi
10870
10871 # Test for the ability of xmlto to generate a text target
10872 have_xmlto_text=no
10873 cat > conftest.xml << "EOF"
10874 EOF
10875 if test "$have_xmlto" = yes; then :
10876 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10877 have_xmlto_text=yes
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10880 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10881 fi
10882 fi
10883 rm -f conftest.xml
10884 if test $have_xmlto_text = yes; then
10885 HAVE_XMLTO_TEXT_TRUE=
10886 HAVE_XMLTO_TEXT_FALSE='#'
10887 else
10888 HAVE_XMLTO_TEXT_TRUE='#'
10889 HAVE_XMLTO_TEXT_FALSE=
10890 fi
10891
10892 if test "$have_xmlto" = yes; then
10893 HAVE_XMLTO_TRUE=
10894 HAVE_XMLTO_FALSE='#'
10895 else
10896 HAVE_XMLTO_TRUE='#'
10897 HAVE_XMLTO_FALSE=
10898 fi
10899
10900
10901
10902
10903 # Preserves the interface, should it be implemented later
10904
10905
10906
10907 # Check whether --with-xsltproc was given.
10908 if test "${with_xsltproc+set}" = set; then :
10909 withval=$with_xsltproc; use_xsltproc=$withval
10910 else
10911 use_xsltproc=auto
10912 fi
10913
10914
10915
10916 if test "x$use_xsltproc" = x"auto"; then
10917 # Extract the first word of "xsltproc", so it can be a program name with args.
10918 set dummy xsltproc; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_XSLTPROC+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 case $XSLTPROC in
10925 [\\/]* | ?:[\\/]*)
10926 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10927 ;;
10928 *)
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940 done
10941 done
10942 IFS=$as_save_IFS
10943
10944 ;;
10945 esac
10946 fi
10947 XSLTPROC=$ac_cv_path_XSLTPROC
10948 if test -n "$XSLTPROC"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10950 $as_echo "$XSLTPROC" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955
10956
10957 if test "x$XSLTPROC" = "x"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10959 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10960 have_xsltproc=no
10961 else
10962 have_xsltproc=yes
10963 fi
10964 elif test "x$use_xsltproc" = x"yes" ; then
10965 # Extract the first word of "xsltproc", so it can be a program name with args.
10966 set dummy xsltproc; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_path_XSLTPROC+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 case $XSLTPROC in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10975 ;;
10976 *)
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10979 do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988 done
10989 done
10990 IFS=$as_save_IFS
10991
10992 ;;
10993 esac
10994 fi
10995 XSLTPROC=$ac_cv_path_XSLTPROC
10996 if test -n "$XSLTPROC"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10998 $as_echo "$XSLTPROC" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003
11004
11005 if test "x$XSLTPROC" = "x"; then
11006 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11007 fi
11008 have_xsltproc=yes
11009 elif test "x$use_xsltproc" = x"no" ; then
11010 if test "x$XSLTPROC" != "x"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11012 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11013 fi
11014 have_xsltproc=no
11015 else
11016 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11017 fi
11018
11019 if test "$have_xsltproc" = yes; then
11020 HAVE_XSLTPROC_TRUE=
11021 HAVE_XSLTPROC_FALSE='#'
11022 else
11023 HAVE_XSLTPROC_TRUE='#'
11024 HAVE_XSLTPROC_FALSE=
11025 fi
11026
11027
11028
11029
11030
11031
11032 # Check whether --with-fop was given.
11033 if test "${with_fop+set}" = set; then :
11034 withval=$with_fop; use_fop=$withval
11035 else
11036 use_fop=auto
11037 fi
11038
11039
11040
11041 if test "x$use_fop" = x"auto"; then
11042 # Extract the first word of "fop", so it can be a program name with args.
11043 set dummy fop; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if ${ac_cv_path_FOP+:} false; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 case $FOP in
11050 [\\/]* | ?:[\\/]*)
11051 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11052 ;;
11053 *)
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11056 do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11061 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 ;;
11070 esac
11071 fi
11072 FOP=$ac_cv_path_FOP
11073 if test -n "$FOP"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11075 $as_echo "$FOP" >&6; }
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; }
11079 fi
11080
11081
11082 if test "x$FOP" = "x"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11084 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11085 have_fop=no
11086 else
11087 have_fop=yes
11088 fi
11089 elif test "x$use_fop" = x"yes" ; then
11090 # Extract the first word of "fop", so it can be a program name with args.
11091 set dummy fop; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if ${ac_cv_path_FOP+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 case $FOP in
11098 [\\/]* | ?:[\\/]*)
11099 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11100 ;;
11101 *)
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11104 do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11109 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 ;;
11118 esac
11119 fi
11120 FOP=$ac_cv_path_FOP
11121 if test -n "$FOP"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11123 $as_echo "$FOP" >&6; }
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; }
11127 fi
11128
11129
11130 if test "x$FOP" = "x"; then
11131 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11132 fi
11133 have_fop=yes
11134 elif test "x$use_fop" = x"no" ; then
11135 if test "x$FOP" != "x"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11137 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11138 fi
11139 have_fop=no
11140 else
11141 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11142 fi
11143
11144 # Test for a minimum version of fop, if provided.
11145
11146 if test "$have_fop" = yes; then
11147 HAVE_FOP_TRUE=
11148 HAVE_FOP_FALSE='#'
11149 else
11150 HAVE_FOP_TRUE='#'
11151 HAVE_FOP_FALSE=
11152 fi
11153
11154
11155
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11157 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11158 XORG_SGML_PATH=
11159 if test -n "$PKG_CONFIG" && \
11160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11161 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11162 ac_status=$?
11163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164 test $ac_status = 0; }; then
11165 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11166 else
11167 :
11168
11169 fi
11170
11171 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11172 # the path and the name of the doc stylesheet
11173 if test "x$XORG_SGML_PATH" != "x" ; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11175 $as_echo "$XORG_SGML_PATH" >&6; }
11176 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11177 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 fi
11182
11183
11184
11185
11186 if test "x$XSL_STYLESHEET" != "x"; then
11187 HAVE_STYLESHEETS_TRUE=
11188 HAVE_STYLESHEETS_FALSE='#'
11189 else
11190 HAVE_STYLESHEETS_TRUE='#'
11191 HAVE_STYLESHEETS_FALSE=
11192 fi
11193
11194
11195
11196 ac_config_files="$ac_config_files Makefile general/Makefile general/fonts/Makefile general/input/Makefile general/graphics/Makefile general/platforms/Makefile man/Makefile specs/Makefile specs/CTEXT/Makefile specs/ICCCM/Makefile specs/Xext/Makefile specs/XLFD/Makefile specs/Xserver/Makefile"
11197
11198 cat >confcache <<\_ACEOF
11199 # This file is a shell script that caches the results of configure
11200 # tests run on this system so they can be shared between configure
11201 # scripts and configure runs, see configure's option --config-cache.
11202 # It is not useful on other systems. If it contains results you don't
11203 # want to keep, you may remove or edit it.
11204 #
11205 # config.status only pays attention to the cache file if you give it
11206 # the --recheck option to rerun configure.
11207 #
11208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11210 # following values.
11211
11212 _ACEOF
11213
11214 # The following way of writing the cache mishandles newlines in values,
11215 # but we know of no workaround that is simple, portable, and efficient.
11216 # So, we kill variables containing newlines.
11217 # Ultrix sh set writes to stderr and can't be redirected directly,
11218 # and sets the high bit in the cache file unless we assign to the vars.
11219 (
11220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11221 eval ac_val=\$$ac_var
11222 case $ac_val in #(
11223 *${as_nl}*)
11224 case $ac_var in #(
11225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11227 esac
11228 case $ac_var in #(
11229 _ | IFS | as_nl) ;; #(
11230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11231 *) { eval $ac_var=; unset $ac_var;} ;;
11232 esac ;;
11233 esac
11234 done
11235
11236 (set) 2>&1 |
11237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11238 *${as_nl}ac_space=\ *)
11239 # `set' does not quote correctly, so add quotes: double-quote
11240 # substitution turns \\\\ into \\, and sed turns \\ into \.
11241 sed -n \
11242 "s/'/'\\\\''/g;
11243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11244 ;; #(
11245 *)
11246 # `set' quotes correctly as required by POSIX, so do not add quotes.
11247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11248 ;;
11249 esac |
11250 sort
11251 ) |
11252 sed '
11253 /^ac_cv_env_/b end
11254 t clear
11255 :clear
11256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11257 t end
11258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11259 :end' >>confcache
11260 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11261 if test -w "$cache_file"; then
11262 if test "x$cache_file" != "x/dev/null"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11264 $as_echo "$as_me: updating cache $cache_file" >&6;}
11265 if test ! -f "$cache_file" || test -h "$cache_file"; then
11266 cat confcache >"$cache_file"
11267 else
11268 case $cache_file in #(
11269 */* | ?:*)
11270 mv -f confcache "$cache_file"$$ &&
11271 mv -f "$cache_file"$$ "$cache_file" ;; #(
11272 *)
11273 mv -f confcache "$cache_file" ;;
11274 esac
11275 fi
11276 fi
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11280 fi
11281 fi
11282 rm -f confcache
11283
11284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11285 # Let make expand exec_prefix.
11286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11287
11288 # Transform confdefs.h into DEFS.
11289 # Protect against shell expansion while executing Makefile rules.
11290 # Protect against Makefile macro expansion.
11291 #
11292 # If the first sed substitution is executed (which looks for macros that
11293 # take arguments), then branch to the quote section. Otherwise,
11294 # look for a macro that doesn't take arguments.
11295 ac_script='
11296 :mline
11297 /\\$/{
11298 N
11299 s,\\\n,,
11300 b mline
11301 }
11302 t clear
11303 :clear
11304 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11305 t quote
11306 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11307 t quote
11308 b any
11309 :quote
11310 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11311 s/\[/\\&/g
11312 s/\]/\\&/g
11313 s/\$/$$/g
11314 H
11315 :any
11316 ${
11317 g
11318 s/^\n//
11319 s/\n/ /g
11320 p
11321 }
11322 '
11323 DEFS=`sed -n "$ac_script" confdefs.h`
11324
11325
11326 ac_libobjs=
11327 ac_ltlibobjs=
11328 U=
11329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11330 # 1. Remove the extension, and $U if already installed.
11331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11332 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11334 # will be set to the directory where LIBOBJS objects are built.
11335 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11336 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11337 done
11338 LIBOBJS=$ac_libobjs
11339
11340 LTLIBOBJS=$ac_ltlibobjs
11341
11342
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11344 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11345 if test -n "$am_sleep_pid"; then
11346 # Hide warnings about reused PIDs.
11347 wait $am_sleep_pid 2>/dev/null
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11350 $as_echo "done" >&6; }
11351 if test -n "$EXEEXT"; then
11352 am__EXEEXT_TRUE=
11353 am__EXEEXT_FALSE='#'
11354 else
11355 am__EXEEXT_TRUE='#'
11356 am__EXEEXT_FALSE=
11357 fi
11358
11359 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11360 as_fn_error $? "conditional \"AMDEP\" was never defined.
11361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11362 fi
11363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11364 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11366 fi
11367 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11368 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11370 fi
11371 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11372 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11374 fi
11375 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11376 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11378 fi
11379 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11380 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11382 fi
11383 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11384 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11386 fi
11387 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11388 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11390 fi
11391 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11392 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11394 fi
11395
11396 : "${CONFIG_STATUS=./config.status}"
11397 ac_write_fail=0
11398 ac_clean_files_save=$ac_clean_files
11399 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11402 as_write_fail=0
11403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11404 #! $SHELL
11405 # Generated by $as_me.
11406 # Run this file to recreate the current configuration.
11407 # Compiler output produced by configure, useful for debugging
11408 # configure, is in config.log if it exists.
11409
11410 debug=false
11411 ac_cs_recheck=false
11412 ac_cs_silent=false
11413
11414 SHELL=\${CONFIG_SHELL-$SHELL}
11415 export SHELL
11416 _ASEOF
11417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11418 ## -------------------- ##
11419 ## M4sh Initialization. ##
11420 ## -------------------- ##
11421
11422 # Be more Bourne compatible
11423 DUALCASE=1; export DUALCASE # for MKS sh
11424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11425 emulate sh
11426 NULLCMD=:
11427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11428 # is contrary to our usage. Disable this feature.
11429 alias -g '${1+"$@"}'='"$@"'
11430 setopt NO_GLOB_SUBST
11431 else
11432 case `(set -o) 2>/dev/null` in #(
11433 *posix*) :
11434 set -o posix ;; #(
11435 *) :
11436 ;;
11437 esac
11438 fi
11439
11440
11441 as_nl='
11442 '
11443 export as_nl
11444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11445 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11448 # Prefer a ksh shell builtin over an external printf program on Solaris,
11449 # but without wasting forks for bash or zsh.
11450 if test -z "$BASH_VERSION$ZSH_VERSION" \
11451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11452 as_echo='print -r --'
11453 as_echo_n='print -rn --'
11454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11455 as_echo='printf %s\n'
11456 as_echo_n='printf %s'
11457 else
11458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11459 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11460 as_echo_n='/usr/ucb/echo -n'
11461 else
11462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11463 as_echo_n_body='eval
11464 arg=$1;
11465 case $arg in #(
11466 *"$as_nl"*)
11467 expr "X$arg" : "X\\(.*\\)$as_nl";
11468 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11469 esac;
11470 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11471 '
11472 export as_echo_n_body
11473 as_echo_n='sh -c $as_echo_n_body as_echo'
11474 fi
11475 export as_echo_body
11476 as_echo='sh -c $as_echo_body as_echo'
11477 fi
11478
11479 # The user is always right.
11480 if test "${PATH_SEPARATOR+set}" != set; then
11481 PATH_SEPARATOR=:
11482 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11483 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11484 PATH_SEPARATOR=';'
11485 }
11486 fi
11487
11488
11489 # IFS
11490 # We need space, tab and new line, in precisely that order. Quoting is
11491 # there to prevent editors from complaining about space-tab.
11492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11493 # splitting by setting IFS to empty value.)
11494 IFS=" "" $as_nl"
11495
11496 # Find who we are. Look in the path if we contain no directory separator.
11497 as_myself=
11498 case $0 in #((
11499 *[\\/]* ) as_myself=$0 ;;
11500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11506 done
11507 IFS=$as_save_IFS
11508
11509 ;;
11510 esac
11511 # We did not find ourselves, most probably we were run as `sh COMMAND'
11512 # in which case we are not to be found in the path.
11513 if test "x$as_myself" = x; then
11514 as_myself=$0
11515 fi
11516 if test ! -f "$as_myself"; then
11517 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11518 exit 1
11519 fi
11520
11521 # Unset variables that we do not need and which cause bugs (e.g. in
11522 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11523 # suppresses any "Segmentation fault" message there. '((' could
11524 # trigger a bug in pdksh 5.2.14.
11525 for as_var in BASH_ENV ENV MAIL MAILPATH
11526 do eval test x\${$as_var+set} = xset \
11527 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11528 done
11529 PS1='$ '
11530 PS2='> '
11531 PS4='+ '
11532
11533 # NLS nuisances.
11534 LC_ALL=C
11535 export LC_ALL
11536 LANGUAGE=C
11537 export LANGUAGE
11538
11539 # CDPATH.
11540 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11541
11542
11543 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11544 # ----------------------------------------
11545 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11546 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11547 # script with STATUS, using 1 if that was 0.
11548 as_fn_error ()
11549 {
11550 as_status=$1; test $as_status -eq 0 && as_status=1
11551 if test "$4"; then
11552 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11553 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11554 fi
11555 $as_echo "$as_me: error: $2" >&2
11556 as_fn_exit $as_status
11557 } # as_fn_error
11558
11559
11560 # as_fn_set_status STATUS
11561 # -----------------------
11562 # Set $? to STATUS, without forking.
11563 as_fn_set_status ()
11564 {
11565 return $1
11566 } # as_fn_set_status
11567
11568 # as_fn_exit STATUS
11569 # -----------------
11570 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11571 as_fn_exit ()
11572 {
11573 set +e
11574 as_fn_set_status $1
11575 exit $1
11576 } # as_fn_exit
11577
11578 # as_fn_unset VAR
11579 # ---------------
11580 # Portably unset VAR.
11581 as_fn_unset ()
11582 {
11583 { eval $1=; unset $1;}
11584 }
11585 as_unset=as_fn_unset
11586 # as_fn_append VAR VALUE
11587 # ----------------------
11588 # Append the text in VALUE to the end of the definition contained in VAR. Take
11589 # advantage of any shell optimizations that allow amortized linear growth over
11590 # repeated appends, instead of the typical quadratic growth present in naive
11591 # implementations.
11592 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11593 eval 'as_fn_append ()
11594 {
11595 eval $1+=\$2
11596 }'
11597 else
11598 as_fn_append ()
11599 {
11600 eval $1=\$$1\$2
11601 }
11602 fi # as_fn_append
11603
11604 # as_fn_arith ARG...
11605 # ------------------
11606 # Perform arithmetic evaluation on the ARGs, and store the result in the
11607 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11608 # must be portable across $(()) and expr.
11609 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11610 eval 'as_fn_arith ()
11611 {
11612 as_val=$(( $* ))
11613 }'
11614 else
11615 as_fn_arith ()
11616 {
11617 as_val=`expr "$@" || test $? -eq 1`
11618 }
11619 fi # as_fn_arith
11620
11621
11622 if expr a : '\(a\)' >/dev/null 2>&1 &&
11623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11624 as_expr=expr
11625 else
11626 as_expr=false
11627 fi
11628
11629 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11630 as_basename=basename
11631 else
11632 as_basename=false
11633 fi
11634
11635 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11636 as_dirname=dirname
11637 else
11638 as_dirname=false
11639 fi
11640
11641 as_me=`$as_basename -- "$0" ||
11642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11643 X"$0" : 'X\(//\)$' \| \
11644 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11645 $as_echo X/"$0" |
11646 sed '/^.*\/\([^/][^/]*\)\/*$/{
11647 s//\1/
11648 q
11649 }
11650 /^X\/\(\/\/\)$/{
11651 s//\1/
11652 q
11653 }
11654 /^X\/\(\/\).*/{
11655 s//\1/
11656 q
11657 }
11658 s/.*/./; q'`
11659
11660 # Avoid depending upon Character Ranges.
11661 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11662 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11663 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11664 as_cr_digits='0123456789'
11665 as_cr_alnum=$as_cr_Letters$as_cr_digits
11666
11667 ECHO_C= ECHO_N= ECHO_T=
11668 case `echo -n x` in #(((((
11669 -n*)
11670 case `echo 'xy\c'` in
11671 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11672 xy) ECHO_C='\c';;
11673 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11674 ECHO_T=' ';;
11675 esac;;
11676 *)
11677 ECHO_N='-n';;
11678 esac
11679
11680 rm -f conf$$ conf$$.exe conf$$.file
11681 if test -d conf$$.dir; then
11682 rm -f conf$$.dir/conf$$.file
11683 else
11684 rm -f conf$$.dir
11685 mkdir conf$$.dir 2>/dev/null
11686 fi
11687 if (echo >conf$$.file) 2>/dev/null; then
11688 if ln -s conf$$.file conf$$ 2>/dev/null; then
11689 as_ln_s='ln -s'
11690 # ... but there are two gotchas:
11691 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11692 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11693 # In both cases, we have to default to `cp -pR'.
11694 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11695 as_ln_s='cp -pR'
11696 elif ln conf$$.file conf$$ 2>/dev/null; then
11697 as_ln_s=ln
11698 else
11699 as_ln_s='cp -pR'
11700 fi
11701 else
11702 as_ln_s='cp -pR'
11703 fi
11704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11705 rmdir conf$$.dir 2>/dev/null
11706
11707
11708 # as_fn_mkdir_p
11709 # -------------
11710 # Create "$as_dir" as a directory, including parents if necessary.
11711 as_fn_mkdir_p ()
11712 {
11713
11714 case $as_dir in #(
11715 -*) as_dir=./$as_dir;;
11716 esac
11717 test -d "$as_dir" || eval $as_mkdir_p || {
11718 as_dirs=
11719 while :; do
11720 case $as_dir in #(
11721 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11722 *) as_qdir=$as_dir;;
11723 esac
11724 as_dirs="'$as_qdir' $as_dirs"
11725 as_dir=`$as_dirname -- "$as_dir" ||
11726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11727 X"$as_dir" : 'X\(//\)[^/]' \| \
11728 X"$as_dir" : 'X\(//\)$' \| \
11729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11730 $as_echo X"$as_dir" |
11731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11732 s//\1/
11733 q
11734 }
11735 /^X\(\/\/\)[^/].*/{
11736 s//\1/
11737 q
11738 }
11739 /^X\(\/\/\)$/{
11740 s//\1/
11741 q
11742 }
11743 /^X\(\/\).*/{
11744 s//\1/
11745 q
11746 }
11747 s/.*/./; q'`
11748 test -d "$as_dir" && break
11749 done
11750 test -z "$as_dirs" || eval "mkdir $as_dirs"
11751 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11752
11753
11754 } # as_fn_mkdir_p
11755 if mkdir -p . 2>/dev/null; then
11756 as_mkdir_p='mkdir -p "$as_dir"'
11757 else
11758 test -d ./-p && rmdir ./-p
11759 as_mkdir_p=false
11760 fi
11761
11762
11763 # as_fn_executable_p FILE
11764 # -----------------------
11765 # Test if FILE is an executable regular file.
11766 as_fn_executable_p ()
11767 {
11768 test -f "$1" && test -x "$1"
11769 } # as_fn_executable_p
11770 as_test_x='test -x'
11771 as_executable_p=as_fn_executable_p
11772
11773 # Sed expression to map a string onto a valid CPP name.
11774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11775
11776 # Sed expression to map a string onto a valid variable name.
11777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11778
11779
11780 exec 6>&1
11781 ## ----------------------------------- ##
11782 ## Main body of $CONFIG_STATUS script. ##
11783 ## ----------------------------------- ##
11784 _ASEOF
11785 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11786
11787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11788 # Save the log message, to keep $0 and so on meaningful, and to
11789 # report actual input values of CONFIG_FILES etc. instead of their
11790 # values after options handling.
11791 ac_log="
11792 This file was extended by xorg-docs $as_me 1.7.1, which was
11793 generated by GNU Autoconf 2.69. Invocation command line was
11794
11795 CONFIG_FILES = $CONFIG_FILES
11796 CONFIG_HEADERS = $CONFIG_HEADERS
11797 CONFIG_LINKS = $CONFIG_LINKS
11798 CONFIG_COMMANDS = $CONFIG_COMMANDS
11799 $ $0 $@
11800
11801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11802 "
11803
11804 _ACEOF
11805
11806 case $ac_config_files in *"
11807 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11808 esac
11809
11810
11811
11812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11813 # Files that config.status was made for.
11814 config_files="$ac_config_files"
11815 config_commands="$ac_config_commands"
11816
11817 _ACEOF
11818
11819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11820 ac_cs_usage="\
11821 \`$as_me' instantiates files and other configuration actions
11822 from templates according to the current configuration. Unless the files
11823 and actions are specified as TAGs, all are instantiated by default.
11824
11825 Usage: $0 [OPTION]... [TAG]...
11826
11827 -h, --help print this help, then exit
11828 -V, --version print version number and configuration settings, then exit
11829 --config print configuration, then exit
11830 -q, --quiet, --silent
11831 do not print progress messages
11832 -d, --debug don't remove temporary files
11833 --recheck update $as_me by reconfiguring in the same conditions
11834 --file=FILE[:TEMPLATE]
11835 instantiate the configuration file FILE
11836
11837 Configuration files:
11838 $config_files
11839
11840 Configuration commands:
11841 $config_commands
11842
11843 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11844
11845 _ACEOF
11846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11847 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11848 ac_cs_version="\\
11849 xorg-docs config.status 1.7.1
11850 configured by $0, generated by GNU Autoconf 2.69,
11851 with options \\"\$ac_cs_config\\"
11852
11853 Copyright (C) 2012 Free Software Foundation, Inc.
11854 This config.status script is free software; the Free Software Foundation
11855 gives unlimited permission to copy, distribute and modify it."
11856
11857 ac_pwd='$ac_pwd'
11858 srcdir='$srcdir'
11859 INSTALL='$INSTALL'
11860 MKDIR_P='$MKDIR_P'
11861 AWK='$AWK'
11862 test -n "\$AWK" || AWK=awk
11863 _ACEOF
11864
11865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11866 # The default lists apply if the user does not specify any file.
11867 ac_need_defaults=:
11868 while test $# != 0
11869 do
11870 case $1 in
11871 --*=?*)
11872 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11873 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11874 ac_shift=:
11875 ;;
11876 --*=)
11877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11878 ac_optarg=
11879 ac_shift=:
11880 ;;
11881 *)
11882 ac_option=$1
11883 ac_optarg=$2
11884 ac_shift=shift
11885 ;;
11886 esac
11887
11888 case $ac_option in
11889 # Handling of the options.
11890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11891 ac_cs_recheck=: ;;
11892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11893 $as_echo "$ac_cs_version"; exit ;;
11894 --config | --confi | --conf | --con | --co | --c )
11895 $as_echo "$ac_cs_config"; exit ;;
11896 --debug | --debu | --deb | --de | --d | -d )
11897 debug=: ;;
11898 --file | --fil | --fi | --f )
11899 $ac_shift
11900 case $ac_optarg in
11901 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11902 '') as_fn_error $? "missing file argument" ;;
11903 esac
11904 as_fn_append CONFIG_FILES " '$ac_optarg'"
11905 ac_need_defaults=false;;
11906 --he | --h | --help | --hel | -h )
11907 $as_echo "$ac_cs_usage"; exit ;;
11908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11910 ac_cs_silent=: ;;
11911
11912 # This is an error.
11913 -*) as_fn_error $? "unrecognized option: \`$1'
11914 Try \`$0 --help' for more information." ;;
11915
11916 *) as_fn_append ac_config_targets " $1"
11917 ac_need_defaults=false ;;
11918
11919 esac
11920 shift
11921 done
11922
11923 ac_configure_extra_args=
11924
11925 if $ac_cs_silent; then
11926 exec 6>/dev/null
11927 ac_configure_extra_args="$ac_configure_extra_args --silent"
11928 fi
11929
11930 _ACEOF
11931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11932 if \$ac_cs_recheck; then
11933 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11934 shift
11935 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11936 CONFIG_SHELL='$SHELL'
11937 export CONFIG_SHELL
11938 exec "\$@"
11939 fi
11940
11941 _ACEOF
11942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943 exec 5>>config.log
11944 {
11945 echo
11946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11947 ## Running $as_me. ##
11948 _ASBOX
11949 $as_echo "$ac_log"
11950 } >&5
11951
11952 _ACEOF
11953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11954 #
11955 # INIT-COMMANDS
11956 #
11957 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11958
11959 _ACEOF
11960
11961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11962
11963 # Handling of arguments.
11964 for ac_config_target in $ac_config_targets
11965 do
11966 case $ac_config_target in
11967 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11969 "general/Makefile") CONFIG_FILES="$CONFIG_FILES general/Makefile" ;;
11970 "general/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES general/fonts/Makefile" ;;
11971 "general/input/Makefile") CONFIG_FILES="$CONFIG_FILES general/input/Makefile" ;;
11972 "general/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES general/graphics/Makefile" ;;
11973 "general/platforms/Makefile") CONFIG_FILES="$CONFIG_FILES general/platforms/Makefile" ;;
11974 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11975 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11976 "specs/CTEXT/Makefile") CONFIG_FILES="$CONFIG_FILES specs/CTEXT/Makefile" ;;
11977 "specs/ICCCM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/ICCCM/Makefile" ;;
11978 "specs/Xext/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xext/Makefile" ;;
11979 "specs/XLFD/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XLFD/Makefile" ;;
11980 "specs/Xserver/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xserver/Makefile" ;;
11981
11982 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11983 esac
11984 done
11985
11986
11987 # If the user did not use the arguments to specify the items to instantiate,
11988 # then the envvar interface is used. Set only those that are not.
11989 # We use the long form for the default assignment because of an extremely
11990 # bizarre bug on SunOS 4.1.3.
11991 if $ac_need_defaults; then
11992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11994 fi
11995
11996 # Have a temporary directory for convenience. Make it in the build tree
11997 # simply because there is no reason against having it here, and in addition,
11998 # creating and moving files from /tmp can sometimes cause problems.
11999 # Hook for its removal unless debugging.
12000 # Note that there is a small window in which the directory will not be cleaned:
12001 # after its creation but before its name has been assigned to `$tmp'.
12002 $debug ||
12003 {
12004 tmp= ac_tmp=
12005 trap 'exit_status=$?
12006 : "${ac_tmp:=$tmp}"
12007 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12008 ' 0
12009 trap 'as_fn_exit 1' 1 2 13 15
12010 }
12011 # Create a (secure) tmp directory for tmp files.
12012
12013 {
12014 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12015 test -d "$tmp"
12016 } ||
12017 {
12018 tmp=./conf$$-$RANDOM
12019 (umask 077 && mkdir "$tmp")
12020 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12021 ac_tmp=$tmp
12022
12023 # Set up the scripts for CONFIG_FILES section.
12024 # No need to generate them if there are no CONFIG_FILES.
12025 # This happens for instance with `./config.status config.h'.
12026 if test -n "$CONFIG_FILES"; then
12027
12028
12029 ac_cr=`echo X | tr X '\015'`
12030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12031 # But we know of no other shell where ac_cr would be empty at this
12032 # point, so we can use a bashism as a fallback.
12033 if test "x$ac_cr" = x; then
12034 eval ac_cr=\$\'\\r\'
12035 fi
12036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12038 ac_cs_awk_cr='\\r'
12039 else
12040 ac_cs_awk_cr=$ac_cr
12041 fi
12042
12043 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12044 _ACEOF
12045
12046
12047 {
12048 echo "cat >conf$$subs.awk <<_ACEOF" &&
12049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12050 echo "_ACEOF"
12051 } >conf$$subs.sh ||
12052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12054 ac_delim='%!_!# '
12055 for ac_last_try in false false false false false :; do
12056 . ./conf$$subs.sh ||
12057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12058
12059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12060 if test $ac_delim_n = $ac_delim_num; then
12061 break
12062 elif $ac_last_try; then
12063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12064 else
12065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066 fi
12067 done
12068 rm -f conf$$subs.sh
12069
12070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12071 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12072 _ACEOF
12073 sed -n '
12074 h
12075 s/^/S["/; s/!.*/"]=/
12076 p
12077 g
12078 s/^[^!]*!//
12079 :repl
12080 t repl
12081 s/'"$ac_delim"'$//
12082 t delim
12083 :nl
12084 h
12085 s/\(.\{148\}\)..*/\1/
12086 t more1
12087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12088 p
12089 n
12090 b repl
12091 :more1
12092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12093 p
12094 g
12095 s/.\{148\}//
12096 t nl
12097 :delim
12098 h
12099 s/\(.\{148\}\)..*/\1/
12100 t more2
12101 s/["\\]/\\&/g; s/^/"/; s/$/"/
12102 p
12103 b
12104 :more2
12105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12106 p
12107 g
12108 s/.\{148\}//
12109 t delim
12110 ' <conf$$subs.awk | sed '
12111 /^[^""]/{
12112 N
12113 s/\n//
12114 }
12115 ' >>$CONFIG_STATUS || ac_write_fail=1
12116 rm -f conf$$subs.awk
12117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12118 _ACAWK
12119 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12120 for (key in S) S_is_set[key] = 1
12121 FS = ""
12122
12123 }
12124 {
12125 line = $ 0
12126 nfields = split(line, field, "@")
12127 substed = 0
12128 len = length(field[1])
12129 for (i = 2; i < nfields; i++) {
12130 key = field[i]
12131 keylen = length(key)
12132 if (S_is_set[key]) {
12133 value = S[key]
12134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12135 len += length(value) + length(field[++i])
12136 substed = 1
12137 } else
12138 len += 1 + keylen
12139 }
12140
12141 print line
12142 }
12143
12144 _ACAWK
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12149 else
12150 cat
12151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12152 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12153 _ACEOF
12154
12155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12157 # trailing colons and then remove the whole line if VPATH becomes empty
12158 # (actually we leave an empty line to preserve line numbers).
12159 if test "x$srcdir" = x.; then
12160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12161 h
12162 s///
12163 s/^/:/
12164 s/[ ]*$/:/
12165 s/:\$(srcdir):/:/g
12166 s/:\${srcdir}:/:/g
12167 s/:@srcdir@:/:/g
12168 s/^:*//
12169 s/:*$//
12170 x
12171 s/\(=[ ]*\).*/\1/
12172 G
12173 s/\n//
12174 s/^[^=]*=[ ]*$//
12175 }'
12176 fi
12177
12178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179 fi # test -n "$CONFIG_FILES"
12180
12181
12182 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12183 shift
12184 for ac_tag
12185 do
12186 case $ac_tag in
12187 :[FHLC]) ac_mode=$ac_tag; continue;;
12188 esac
12189 case $ac_mode$ac_tag in
12190 :[FHL]*:*);;
12191 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12192 :[FH]-) ac_tag=-:-;;
12193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12194 esac
12195 ac_save_IFS=$IFS
12196 IFS=:
12197 set x $ac_tag
12198 IFS=$ac_save_IFS
12199 shift
12200 ac_file=$1
12201 shift
12202
12203 case $ac_mode in
12204 :L) ac_source=$1;;
12205 :[FH])
12206 ac_file_inputs=
12207 for ac_f
12208 do
12209 case $ac_f in
12210 -) ac_f="$ac_tmp/stdin";;
12211 *) # Look for the file first in the build tree, then in the source tree
12212 # (if the path is not absolute). The absolute path cannot be DOS-style,
12213 # because $ac_f cannot contain `:'.
12214 test -f "$ac_f" ||
12215 case $ac_f in
12216 [\\/$]*) false;;
12217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12218 esac ||
12219 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12220 esac
12221 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12222 as_fn_append ac_file_inputs " '$ac_f'"
12223 done
12224
12225 # Let's still pretend it is `configure' which instantiates (i.e., don't
12226 # use $as_me), people would be surprised to read:
12227 # /* config.h. Generated by config.status. */
12228 configure_input='Generated from '`
12229 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12230 `' by configure.'
12231 if test x"$ac_file" != x-; then
12232 configure_input="$ac_file. $configure_input"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12234 $as_echo "$as_me: creating $ac_file" >&6;}
12235 fi
12236 # Neutralize special characters interpreted by sed in replacement strings.
12237 case $configure_input in #(
12238 *\&* | *\|* | *\\* )
12239 ac_sed_conf_input=`$as_echo "$configure_input" |
12240 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12241 *) ac_sed_conf_input=$configure_input;;
12242 esac
12243
12244 case $ac_tag in
12245 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12247 esac
12248 ;;
12249 esac
12250
12251 ac_dir=`$as_dirname -- "$ac_file" ||
12252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253 X"$ac_file" : 'X\(//\)[^/]' \| \
12254 X"$ac_file" : 'X\(//\)$' \| \
12255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12256 $as_echo X"$ac_file" |
12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\(\/\/\)[^/].*/{
12262 s//\1/
12263 q
12264 }
12265 /^X\(\/\/\)$/{
12266 s//\1/
12267 q
12268 }
12269 /^X\(\/\).*/{
12270 s//\1/
12271 q
12272 }
12273 s/.*/./; q'`
12274 as_dir="$ac_dir"; as_fn_mkdir_p
12275 ac_builddir=.
12276
12277 case "$ac_dir" in
12278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12279 *)
12280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12281 # A ".." for each directory in $ac_dir_suffix.
12282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12283 case $ac_top_builddir_sub in
12284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12286 esac ;;
12287 esac
12288 ac_abs_top_builddir=$ac_pwd
12289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12290 # for backward compatibility:
12291 ac_top_builddir=$ac_top_build_prefix
12292
12293 case $srcdir in
12294 .) # We are building in place.
12295 ac_srcdir=.
12296 ac_top_srcdir=$ac_top_builddir_sub
12297 ac_abs_top_srcdir=$ac_pwd ;;
12298 [\\/]* | ?:[\\/]* ) # Absolute name.
12299 ac_srcdir=$srcdir$ac_dir_suffix;
12300 ac_top_srcdir=$srcdir
12301 ac_abs_top_srcdir=$srcdir ;;
12302 *) # Relative name.
12303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12304 ac_top_srcdir=$ac_top_build_prefix$srcdir
12305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12306 esac
12307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12308
12309
12310 case $ac_mode in
12311 :F)
12312 #
12313 # CONFIG_FILE
12314 #
12315
12316 case $INSTALL in
12317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12319 esac
12320 ac_MKDIR_P=$MKDIR_P
12321 case $MKDIR_P in
12322 [\\/$]* | ?:[\\/]* ) ;;
12323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12324 esac
12325 _ACEOF
12326
12327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328 # If the template does not know about datarootdir, expand it.
12329 # FIXME: This hack should be removed a few years after 2.60.
12330 ac_datarootdir_hack=; ac_datarootdir_seen=
12331 ac_sed_dataroot='
12332 /datarootdir/ {
12333 p
12334 q
12335 }
12336 /@datadir@/p
12337 /@docdir@/p
12338 /@infodir@/p
12339 /@localedir@/p
12340 /@mandir@/p'
12341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12342 *datarootdir*) ac_datarootdir_seen=yes;;
12343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12346 _ACEOF
12347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12348 ac_datarootdir_hack='
12349 s&@datadir@&$datadir&g
12350 s&@docdir@&$docdir&g
12351 s&@infodir@&$infodir&g
12352 s&@localedir@&$localedir&g
12353 s&@mandir@&$mandir&g
12354 s&\\\${datarootdir}&$datarootdir&g' ;;
12355 esac
12356 _ACEOF
12357
12358 # Neutralize VPATH when `$srcdir' = `.'.
12359 # Shell code in configure.ac might set extrasub.
12360 # FIXME: do we really want to maintain this feature?
12361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12362 ac_sed_extra="$ac_vpsub
12363 $extrasub
12364 _ACEOF
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366 :t
12367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12368 s|@configure_input@|$ac_sed_conf_input|;t t
12369 s&@top_builddir@&$ac_top_builddir_sub&;t t
12370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12371 s&@srcdir@&$ac_srcdir&;t t
12372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12373 s&@top_srcdir@&$ac_top_srcdir&;t t
12374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12375 s&@builddir@&$ac_builddir&;t t
12376 s&@abs_builddir@&$ac_abs_builddir&;t t
12377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12378 s&@INSTALL@&$ac_INSTALL&;t t
12379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12380 $ac_datarootdir_hack
12381 "
12382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12384
12385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12390 which seems to be undefined. Please make sure it is defined" >&5
12391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12392 which seems to be undefined. Please make sure it is defined" >&2;}
12393
12394 rm -f "$ac_tmp/stdin"
12395 case $ac_file in
12396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12398 esac \
12399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12400 ;;
12401
12402
12403 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12404 $as_echo "$as_me: executing $ac_file commands" >&6;}
12405 ;;
12406 esac
12407
12408
12409 case $ac_file$ac_mode in
12410 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12411 # Older Autoconf quotes --file arguments for eval, but not when files
12412 # are listed without --file. Let's play safe and only enable the eval
12413 # if we detect the quoting.
12414 case $CONFIG_FILES in
12415 *\'*) eval set x "$CONFIG_FILES" ;;
12416 *) set x $CONFIG_FILES ;;
12417 esac
12418 shift
12419 for mf
12420 do
12421 # Strip MF so we end up with the name of the file.
12422 mf=`echo "$mf" | sed -e 's/:.*$//'`
12423 # Check whether this is an Automake generated Makefile or not.
12424 # We used to match only the files named 'Makefile.in', but
12425 # some people rename them; so instead we look at the file content.
12426 # Grep'ing the first line is not enough: some people post-process
12427 # each Makefile.in and add a new line on top of each file to say so.
12428 # Grep'ing the whole file is not good either: AIX grep has a line
12429 # limit of 2048, but all sed's we know have understand at least 4000.
12430 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12431 dirpart=`$as_dirname -- "$mf" ||
12432 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433 X"$mf" : 'X\(//\)[^/]' \| \
12434 X"$mf" : 'X\(//\)$' \| \
12435 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12436 $as_echo X"$mf" |
12437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12438 s//\1/
12439 q
12440 }
12441 /^X\(\/\/\)[^/].*/{
12442 s//\1/
12443 q
12444 }
12445 /^X\(\/\/\)$/{
12446 s//\1/
12447 q
12448 }
12449 /^X\(\/\).*/{
12450 s//\1/
12451 q
12452 }
12453 s/.*/./; q'`
12454 else
12455 continue
12456 fi
12457 # Extract the definition of DEPDIR, am__include, and am__quote
12458 # from the Makefile without running 'make'.
12459 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12460 test -z "$DEPDIR" && continue
12461 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12462 test -z "$am__include" && continue
12463 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12464 # Find all dependency output files, they are included files with
12465 # $(DEPDIR) in their names. We invoke sed twice because it is the
12466 # simplest approach to changing $(DEPDIR) to its actual value in the
12467 # expansion.
12468 for file in `sed -n "
12469 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12470 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12471 # Make sure the directory exists.
12472 test -f "$dirpart/$file" && continue
12473 fdir=`$as_dirname -- "$file" ||
12474 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$file" : 'X\(//\)[^/]' \| \
12476 X"$file" : 'X\(//\)$' \| \
12477 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12478 $as_echo X"$file" |
12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\/\)[^/].*/{
12484 s//\1/
12485 q
12486 }
12487 /^X\(\/\/\)$/{
12488 s//\1/
12489 q
12490 }
12491 /^X\(\/\).*/{
12492 s//\1/
12493 q
12494 }
12495 s/.*/./; q'`
12496 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12497 # echo "creating $dirpart/$file"
12498 echo '# dummy' > "$dirpart/$file"
12499 done
12500 done
12501 }
12502 ;;
12503
12504 esac
12505 done # for ac_tag
12506
12507
12508 as_fn_exit 0
12509 _ACEOF
12510 ac_clean_files=$ac_clean_files_save
12511
12512 test $ac_write_fail = 0 ||
12513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12514
12515
12516 # configure is writing to config.log, and then calls config.status.
12517 # config.status does its own redirection, appending to config.log.
12518 # Unfortunately, on DOS this fails, as config.log is still kept open
12519 # by configure, so config.status won't be able to write to it; its
12520 # output is simply discarded. So we exec the FD to /dev/null,
12521 # effectively closing config.log, so it can be properly (re)opened and
12522 # appended to by config.status. When coming back to configure, we
12523 # need to make the FD available again.
12524 if test "$no_create" != yes; then
12525 ac_cs_success=:
12526 ac_config_status_args=
12527 test "$silent" = yes &&
12528 ac_config_status_args="$ac_config_status_args --quiet"
12529 exec 5>/dev/null
12530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12531 exec 5>>config.log
12532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12533 # would make configure fail if this is the last instruction.
12534 $ac_cs_success || as_fn_exit 1
12535 fi
12536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12538 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12539 fi
12540
12541