Debian Codegraph @

rendercheck/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for rendercheck 1.5.
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 [email protected] 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
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='rendercheck'
583 PACKAGE_TARNAME='rendercheck'
584 PACKAGE_VERSION='1.5'
585 PACKAGE_STRING='rendercheck 1.5'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 RC_LIBS
631 RC_CFLAGS
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 INSTALL_CMD
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CHANGELOG_CMD
660 STRICT_CFLAGS
661 CWARNFLAGS
662 BASE_CFLAGS
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_silent_rules
755 enable_maintainer_mode
756 enable_dependency_tracking
757 enable_selective_werror
758 enable_strict_compilation
759 '
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CC
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP
769 PKG_CONFIG
770 PKG_CONFIG_PATH
771 PKG_CONFIG_LIBDIR
772 RC_CFLAGS
773 RC_LIBS'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *=) ac_optarg= ;;
838 *) ac_optarg=yes ;;
839 esac
840
841 # Accept the important Cygnus configure options, so we can diagnose typos.
842
843 case $ac_dashdash$ac_option in
844 --)
845 ac_dashdash=yes ;;
846
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
851
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
856
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
863
864 --config-cache | -C)
865 cache_file=config.cache ;;
866
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
871
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
878
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
894
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
899
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
904
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=\$ac_optarg ;;
920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
940
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
945
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
975
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
992
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1013
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1049
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
1068 sbindir=$ac_optarg ;;
1069
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
1079 sharedstatedir=$ac_optarg ;;
1080
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
1084 site=$ac_optarg ;;
1085
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1090
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1097
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1102
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1105
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1108
1109 -with-* | --with-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=\$ac_optarg ;;
1124
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=no ;;
1140
1141 --x)
1142 # Obsolete; use --with-x.
1143 with_x=yes ;;
1144
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1151
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1158
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161 ;;
1162
1163 *=*)
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169 esac
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1172
1173 *)
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 ;;
1180
1181 esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1191 no) ;;
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202 do
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 as_fn_error $? "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures rendercheck 1.5 to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking ...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/rendercheck]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of rendercheck 1.5:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-silent-rules less verbose build output (undo: "make V=1")
1393 --disable-silent-rules verbose build output (undo: "make V=0")
1394 --enable-maintainer-mode
1395 enable make rules and dependencies not useful (and
1396 sometimes confusing) to the casual installer
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401 --disable-selective-werror
1402 Turn off selective compiler errors. (default:
1403 enabled)
1404 --enable-strict-compilation
1405 Enable all warnings from compiler and make them
1406 errors (default: disabled)
1407
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 PKG_CONFIG path to pkg-config utility
1418 PKG_CONFIG_PATH
1419 directories to add to pkg-config's search path
1420 PKG_CONFIG_LIBDIR
1421 path overriding pkg-config's built-in search path
1422 RC_CFLAGS C compiler flags for RC, overriding pkg-config
1423 RC_LIBS linker flags for RC, overriding pkg-config
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 rendercheck configure 1.5
1492 generated by GNU Autoconf 2.69
1493
1494 Copyright (C) 2012 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537 fi
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1540
1541 } # ac_fn_c_try_compile
1542
1543 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1544 # ---------------------------------------------
1545 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1546 # accordingly.
1547 ac_fn_c_check_decl ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 as_decl_name=`echo $2|sed 's/ *(.*//'`
1551 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1553 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1554 if eval \${$3+:} false; then :
1555 $as_echo_n "(cached) " >&6
1556 else
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1559 $4
1560 int
1561 main ()
1562 {
1563 #ifndef $as_decl_name
1564 #ifdef __cplusplus
1565 (void) $as_decl_use;
1566 #else
1567 (void) $as_decl_name;
1568 #endif
1569 #endif
1570
1571 ;
1572 return 0;
1573 }
1574 _ACEOF
1575 if ac_fn_c_try_compile "$LINENO"; then :
1576 eval "$3=yes"
1577 else
1578 eval "$3=no"
1579 fi
1580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 fi
1582 eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584 $as_echo "$ac_res" >&6; }
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586
1587 } # ac_fn_c_check_decl
1588
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_cpp
1625
1626 # ac_fn_c_try_run LINENO
1627 # ----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1629 # that executables *can* be run.
1630 ac_fn_c_try_run ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1644 { { case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_try") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; }; }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: program exited with status $ac_status" >&5
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=$ac_status
1661 fi
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_run
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748 # the include files in INCLUDES and setting the cache variable VAR
1749 # accordingly.
1750 ac_fn_c_check_header_mongrel ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if eval \${$3+:} false; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 else
1763 # Is the header compilable?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765 $as_echo_n "checking $2 usability... " >&6; }
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773 else
1774 ac_header_compiler=no
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778 $as_echo "$ac_header_compiler" >&6; }
1779
1780 # Is the header present?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782 $as_echo_n "checking $2 presence... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789 else
1790 ac_header_preproc=no
1791 fi
1792 rm -f conftest.err conftest.i conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794 $as_echo "$ac_header_preproc" >&6; }
1795
1796 # So? What about this header?
1797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1798 yes:no: )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 no:yes:* )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ( $as_echo "## ---------------------------------------------------------------------- ##
1816 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1817 ## ---------------------------------------------------------------------- ##"
1818 ) | sed "s/^/$as_me: WARNING: /" >&2
1819 ;;
1820 esac
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 eval "$3=\$ac_header_compiler"
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_header_mongrel
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1838
1839 It was created by rendercheck $as_me 1.5, which was
1840 generated by GNU Autoconf 2.69. Invocation command line was
1841
1842 $ $0 $@
1843
1844 _ACEOF
1845 exec 5>>config.log
1846 {
1847 cat <<_ASUNAME
1848 ## --------- ##
1849 ## Platform. ##
1850 ## --------- ##
1851
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1860
1861 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1862 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1865 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1866 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1867 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1868
1869 _ASUNAME
1870
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 $as_echo "PATH: $as_dir"
1877 done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903 for ac_arg
1904 do
1905 case $ac_arg in
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1909 continue ;;
1910 *\'*)
1911 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 esac
1913 case $ac_pass in
1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915 2)
1916 as_fn_append ac_configure_args1 " '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1919 else
1920 case $ac_arg in
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 esac
1928 ;;
1929 -* ) ac_must_keep_next=true ;;
1930 esac
1931 fi
1932 as_fn_append ac_configure_args " '$ac_arg'"
1933 ;;
1934 esac
1935 done
1936 done
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Save into config.log some information that might help in debugging.
1947 {
1948 echo
1949
1950 $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1953 echo
1954 # The following way of writing the cache mishandles newlines in values,
1955 (
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1958 case $ac_val in #(
1959 *${as_nl}*)
1960 case $ac_var in #(
1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 esac
1964 case $ac_var in #(
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1968 esac ;;
1969 esac
1970 done
1971 (set) 2>&1 |
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1974 sed -n \
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 ;; #(
1978 *)
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980 ;;
1981 esac |
1982 sort
1983 )
1984 echo
1985
1986 $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1989 echo
1990 for ac_var in $ac_subst_vars
1991 do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 $as_echo "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
1999
2000 if test -n "$ac_subst_files"; then
2001 $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2004 echo
2005 for ac_var in $ac_subst_files
2006 do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 $as_echo "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2014 fi
2015
2016 if test -s confdefs.h; then
2017 $as_echo "## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##"
2020 echo
2021 cat confdefs.h
2022 echo
2023 fi
2024 test "$ac_signal" != 0 &&
2025 $as_echo "$as_me: caught signal $ac_signal"
2026 $as_echo "$as_me: exit $exit_status"
2027 } >&5
2028 rm -f core *.core core.conftest.* &&
2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 exit $exit_status
2031 ' 0
2032 for ac_signal in 1 2 13 15; do
2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 done
2035 ac_signal=0
2036
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2039
2040 $as_echo "/* confdefs.h */" > confdefs.h
2041
2042 # Predefined preprocessor variables.
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_URL "$PACKAGE_URL"
2066 _ACEOF
2067
2068
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2071 ac_site_file1=NONE
2072 ac_site_file2=NONE
2073 if test -n "$CONFIG_SITE"; then
2074 # We do not want a PATH search for config.site.
2075 case $CONFIG_SITE in #((
2076 -*) ac_site_file1=./$CONFIG_SITE;;
2077 */*) ac_site_file1=$CONFIG_SITE;;
2078 *) ac_site_file1=./$CONFIG_SITE;;
2079 esac
2080 elif test "x$prefix" != xNONE; then
2081 ac_site_file1=$prefix/share/config.site
2082 ac_site_file2=$prefix/etc/config.site
2083 else
2084 ac_site_file1=$ac_default_prefix/share/config.site
2085 ac_site_file2=$ac_default_prefix/etc/config.site
2086 fi
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 do
2089 test "x$ac_site_file" = xNONE && continue
2090 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093 sed 's/^/| /' "$ac_site_file" >&5
2094 . "$ac_site_file" \
2095 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2099 fi
2100 done
2101
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special files
2104 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2105 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108 case $cache_file in
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
2111 esac
2112 fi
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116 >$cache_file
2117 fi
2118
2119 # Check that the precious variables saved in the cache have kept the same
2120 # value.
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2128 set,)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,set)
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2136 ,);;
2137 *)
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w=`echo x $ac_old_val`
2141 ac_new_val_w=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted=:
2146 else
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\$ac_old_val
2150 fi
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2155 fi;;
2156 esac
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2159 case $ac_new_val in
2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 *) ac_arg=$ac_var=$ac_new_val ;;
2162 esac
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166 esac
2167 fi
2168 done
2169 if $ac_cache_corrupted; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175 fi
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187
2188
2189 am__api_version='1.13'
2190
2191 ac_aux_dir=
2192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2193 if test -f "$ac_dir/install-sh"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2196 break
2197 elif test -f "$ac_dir/install.sh"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2200 break
2201 elif test -f "$ac_dir/shtool"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2204 break
2205 fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2209 fi
2210
2211 # These three variables are undocumented and unsupported,
2212 # and are intended to be withdrawn in a future Autoconf release.
2213 # They can cause serious problems if a builder's source tree is in a directory
2214 # whose full name contains unusual characters.
2215 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2216 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2217 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2218
2219
2220 # Find a good install program. We prefer a C program (faster),
2221 # so one script is as good as another. But avoid the broken or
2222 # incompatible versions:
2223 # SysV /etc/install, /usr/sbin/install
2224 # SunOS /usr/etc/install
2225 # IRIX /sbin/install
2226 # AIX /bin/install
2227 # AmigaOS /C/install, which installs bootblocks on floppy discs
2228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231 # OS/2's system install, which has a completely different semantic
2232 # ./install, which can be erroneously created by make from ./install.sh.
2233 # Reject install programs that cannot install multiple files.
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2236 if test -z "$INSTALL"; then
2237 if ${ac_cv_path_install+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2246 case $as_dir/ in #((
2247 ./ | .// | /[cC]/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2250 /usr/ucb/* ) ;;
2251 *)
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2254 # by default.
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2261 :
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2265 :
2266 else
2267 rm -rf conftest.one conftest.two conftest.dir
2268 echo one > conftest.one
2269 echo two > conftest.two
2270 mkdir conftest.dir
2271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272 test -s conftest.one && test -s conftest.two &&
2273 test -s conftest.dir/conftest.one &&
2274 test -s conftest.dir/conftest.two
2275 then
2276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277 break 3
2278 fi
2279 fi
2280 fi
2281 done
2282 done
2283 ;;
2284 esac
2285
2286 done
2287 IFS=$as_save_IFS
2288
2289 rm -rf conftest.one conftest.two conftest.dir
2290
2291 fi
2292 if test "${ac_cv_path_install+set}" = set; then
2293 INSTALL=$ac_cv_path_install
2294 else
2295 # As a last resort, use the slow shell script. Don't cache a
2296 # value for INSTALL within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the value is a relative name.
2299 INSTALL=$ac_install_sh
2300 fi
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303 $as_echo "$INSTALL" >&6; }
2304
2305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306 # It thinks the first close brace ends the variable substitution.
2307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
2309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2310
2311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2314 $as_echo_n "checking whether build environment is sane... " >&6; }
2315 # Reject unsafe characters in $srcdir or the absolute working directory
2316 # name. Accept space and tab only in the latter.
2317 am_lf='
2318 '
2319 case `pwd` in
2320 *[\\\"\#\$\&\'\`$am_lf]*)
2321 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2322 esac
2323 case $srcdir in
2324 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2325 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2326 esac
2327
2328 # Do 'set' in a subshell so we don't clobber the current shell's
2329 # arguments. Must try -L first in case configure is actually a
2330 # symlink; some systems play weird games with the mod time of symlinks
2331 # (eg FreeBSD returns the mod time of the symlink's containing
2332 # directory).
2333 if (
2334 am_has_slept=no
2335 for am_try in 1 2; do
2336 echo "timestamp, slept: $am_has_slept" > conftest.file
2337 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2338 if test "$*" = "X"; then
2339 # -L didn't work.
2340 set X `ls -t "$srcdir/configure" conftest.file`
2341 fi
2342 if test "$*" != "X $srcdir/configure conftest.file" \
2343 && test "$*" != "X conftest.file $srcdir/configure"; then
2344
2345 # If neither matched, then we have a broken ls. This can happen
2346 # if, for instance, CONFIG_SHELL is bash and it inherits a
2347 # broken ls alias from the environment. This has actually
2348 # happened. Such a system could not be considered "sane".
2349 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2350 alias in your environment" "$LINENO" 5
2351 fi
2352 if test "$2" = conftest.file || test $am_try -eq 2; then
2353 break
2354 fi
2355 # Just in case.
2356 sleep 1
2357 am_has_slept=yes
2358 done
2359 test "$2" = conftest.file
2360 )
2361 then
2362 # Ok.
2363 :
2364 else
2365 as_fn_error $? "newly created file is older than distributed files!
2366 Check your system clock" "$LINENO" 5
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2369 $as_echo "yes" >&6; }
2370 # If we didn't sleep, we still need to ensure time stamps of config.status and
2371 # generated files are strictly newer.
2372 am_sleep_pid=
2373 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2374 ( sleep 1 ) &
2375 am_sleep_pid=$!
2376 fi
2377
2378 rm -f conftest.file
2379
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $.
2386 # By default was `s,x,x', remove it if useless.
2387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390 # expand $ac_aux_dir to an absolute path
2391 am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393 if test x"${MISSING+set}" != xset; then
2394 case $am_aux_dir in
2395 *\ * | *\ *)
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 *)
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399 esac
2400 fi
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --is-lightweight"; then
2403 am_missing_run="$MISSING "
2404 else
2405 am_missing_run=
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2407 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2408 fi
2409
2410 if test x"${install_sh}" != xset; then
2411 case $am_aux_dir in
2412 *\ * | *\ *)
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 *)
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2416 esac
2417 fi
2418
2419 # Installed binaries are usually stripped using 'strip' when the user
2420 # run "make install-strip". However 'strip' might not be the right
2421 # tool to use in cross-compilation environments, therefore Automake
2422 # will honor the 'STRIP' environment variable to overrule this program.
2423 if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}strip; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_STRIP+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446 done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451 fi
2452 STRIP=$ac_cv_prog_STRIP
2453 if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455 $as_echo "$STRIP" >&6; }
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2459 fi
2460
2461
2462 fi
2463 if test -z "$ac_cv_prog_STRIP"; then
2464 ac_ct_STRIP=$STRIP
2465 # Extract the first word of "strip", so it can be a program name with args.
2466 set dummy strip; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493 if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495 $as_echo "$ac_ct_STRIP" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501 if test "x$ac_ct_STRIP" = x; then
2502 STRIP=":"
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510 STRIP=$ac_ct_STRIP
2511 fi
2512 else
2513 STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521 if test -z "$MKDIR_P"; then
2522 if ${ac_cv_path_mkdir+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_prog in mkdir gmkdir; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538 break 3;;
2539 esac
2540 done
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546
2547 test -d ./--version && rmdir ./--version
2548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
2550 else
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 MKDIR_P="$ac_install_sh -d"
2556 fi
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559 $as_echo "$MKDIR_P" >&6; }
2560
2561 for ac_prog in gawk mawk nawk awk
2562 do
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if ${ac_cv_prog_AWK+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$AWK"; then
2571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_AWK="$ac_prog"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 AWK=$ac_cv_prog_AWK
2591 if test -n "$AWK"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2593 $as_echo "$AWK" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 test -n "$AWK" && break
2601 done
2602
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2604 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2605 set x ${MAKE-make}
2606 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2607 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat >conftest.make <<\_ACEOF
2611 SHELL = /bin/sh
2612 all:
2613 @echo '@@@%%%=$(MAKE)=@@@%%%'
2614 _ACEOF
2615 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2616 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2617 *@@@%%%=?*=@@@%%%*)
2618 eval ac_cv_prog_make_${ac_make}_set=yes;;
2619 *)
2620 eval ac_cv_prog_make_${ac_make}_set=no;;
2621 esac
2622 rm -f conftest.make
2623 fi
2624 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2626 $as_echo "yes" >&6; }
2627 SET_MAKE=
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 SET_MAKE="MAKE=${MAKE-make}"
2632 fi
2633
2634 rm -rf .tst 2>/dev/null
2635 mkdir .tst 2>/dev/null
2636 if test -d .tst; then
2637 am__leading_dot=.
2638 else
2639 am__leading_dot=_
2640 fi
2641 rmdir .tst 2>/dev/null
2642
2643 # Check whether --enable-silent-rules was given.
2644 if test "${enable_silent_rules+set}" = set; then :
2645 enableval=$enable_silent_rules;
2646 fi
2647
2648 case $enable_silent_rules in # (((
2649 yes) AM_DEFAULT_VERBOSITY=0;;
2650 no) AM_DEFAULT_VERBOSITY=1;;
2651 *) AM_DEFAULT_VERBOSITY=1;;
2652 esac
2653 am_make=${MAKE-make}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2655 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2656 if ${am_cv_make_support_nested_variables+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if $as_echo 'TRUE=$(BAR$(V))
2660 BAR0=false
2661 BAR1=true
2662 V=1
2663 am__doit:
2664 @$(TRUE)
2665 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2666 am_cv_make_support_nested_variables=yes
2667 else
2668 am_cv_make_support_nested_variables=no
2669 fi
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2672 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2673 if test $am_cv_make_support_nested_variables = yes; then
2674 AM_V='$(V)'
2675 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2676 else
2677 AM_V=$AM_DEFAULT_VERBOSITY
2678 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2679 fi
2680 AM_BACKSLASH='\'
2681
2682 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2683 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2684 # is not polluted with repeated "-I."
2685 am__isrc=' -I$(srcdir)'
2686 # test to see if srcdir already configured
2687 if test -f $srcdir/config.status; then
2688 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2689 fi
2690 fi
2691
2692 # test whether we have cygpath
2693 if test -z "$CYGPATH_W"; then
2694 if (cygpath --version) >/dev/null 2>/dev/null; then
2695 CYGPATH_W='cygpath -w'
2696 else
2697 CYGPATH_W=echo
2698 fi
2699 fi
2700
2701
2702 # Define the identity of the package.
2703 PACKAGE='rendercheck'
2704 VERSION='1.5'
2705
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE "$PACKAGE"
2709 _ACEOF
2710
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define VERSION "$VERSION"
2714 _ACEOF
2715
2716 # Some tools Automake needs.
2717
2718 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2719
2720
2721 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2722
2723
2724 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2725
2726
2727 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2728
2729
2730 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2731
2732 # For better backward compatibility. To be removed once Automake 1.9.x
2733 # dies out for good. For more background, see:
2734 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2735 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2736 mkdir_p='$(MKDIR_P)'
2737
2738 # We need awk for the "check" target. The system "awk" is bad on
2739 # some platforms.
2740 # Always define AMTAR for backward compatibility. Yes, it's still used
2741 # in the wild :-( We should find a proper way to deprecate it ...
2742 AMTAR='$${TAR-tar}'
2743
2744
2745 # We'll loop over all known methods to create a tar archive until one works.
2746 _am_tools='gnutar pax cpio none'
2747
2748 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749
2750
2751
2752
2753
2754
2755
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2758 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2759 # Check whether --enable-maintainer-mode was given.
2760 if test "${enable_maintainer_mode+set}" = set; then :
2761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2762 else
2763 USE_MAINTAINER_MODE=no
2764 fi
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2767 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2768 if test $USE_MAINTAINER_MODE = yes; then
2769 MAINTAINER_MODE_TRUE=
2770 MAINTAINER_MODE_FALSE='#'
2771 else
2772 MAINTAINER_MODE_TRUE='#'
2773 MAINTAINER_MODE_FALSE=
2774 fi
2775
2776 MAINT=$MAINTAINER_MODE_TRUE
2777
2778
2779
2780 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 DEPDIR="${am__leading_dot}deps"
2793
2794 ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797 am_make=${MAKE-make}
2798 cat > confinc << 'END'
2799 am__doit:
2800 @echo this is the am__doit target
2801 .PHONY: am__doit
2802 END
2803 # If we don't find an include directive, just comment out the code.
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2805 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2806 am__include="#"
2807 am__quote=
2808 _am_result=none
2809 # First try GNU make style include.
2810 echo "include confinc" > confmf
2811 # Ignore all kinds of additional output from 'make'.
2812 case `$am_make -s -f confmf 2> /dev/null` in #(
2813 *the\ am__doit\ target*)
2814 am__include=include
2815 am__quote=
2816 _am_result=GNU
2817 ;;
2818 esac
2819 # Now try BSD make style include.
2820 if test "$am__include" = "#"; then
2821 echo '.include "confinc"' > confmf
2822 case `$am_make -s -f confmf 2> /dev/null` in #(
2823 *the\ am__doit\ target*)
2824 am__include=.include
2825 am__quote="\""
2826 _am_result=BSD
2827 ;;
2828 esac
2829 fi
2830
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2833 $as_echo "$_am_result" >&6; }
2834 rm -f confinc confmf
2835
2836 # Check whether --enable-dependency-tracking was given.
2837 if test "${enable_dependency_tracking+set}" = set; then :
2838 enableval=$enable_dependency_tracking;
2839 fi
2840
2841 if test "x$enable_dependency_tracking" != xno; then
2842 am_depcomp="$ac_aux_dir/depcomp"
2843 AMDEPBACKSLASH='\'
2844 am__nodep='_no'
2845 fi
2846 if test "x$enable_dependency_tracking" != xno; then
2847 AMDEP_TRUE=
2848 AMDEP_FALSE='#'
2849 else
2850 AMDEP_TRUE='#'
2851 AMDEP_FALSE=
2852 fi
2853
2854
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_CC"; then
2900 ac_ct_CC=$CC
2901 # Extract the first word of "gcc", so it can be a program name with args.
2902 set dummy gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC="gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931 $as_echo "$ac_ct_CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946 CC=$ac_ct_CC
2947 fi
2948 else
2949 CC="$ac_cv_prog_CC"
2950 fi
2951
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}cc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_CC="${ac_tool_prefix}cc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 fi
2993 if test -z "$CC"; then
2994 # Extract the first word of "cc", so it can be a program name with args.
2995 set dummy cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 ac_prog_rejected=no
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3013 ac_prog_rejected=yes
3014 continue
3015 fi
3016 ac_cv_prog_CC="cc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 if test $ac_prog_rejected = yes; then
3025 # We found a bogon in the path, so make sure we never use it.
3026 set dummy $ac_cv_prog_CC
3027 shift
3028 if test $# != 0; then
3029 # We chose a different compiler from the bogus one.
3030 # However, it has the same basename, so the bogon will be chosen
3031 # first if we set CC to just the basename; use the full file name.
3032 shift
3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034 fi
3035 fi
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 fi
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 for ac_prog in cl.exe
3052 do
3053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 test -n "$CC" && break
3091 done
3092 fi
3093 if test -z "$CC"; then
3094 ac_ct_CC=$CC
3095 for ac_prog in cl.exe
3096 do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_CC="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125 if test -n "$ac_ct_CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3127 $as_echo "$ac_ct_CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 test -n "$ac_ct_CC" && break
3135 done
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 fi
3149
3150 fi
3151
3152
3153 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $? "no acceptable C compiler found in \$PATH
3156 See \`config.log' for more details" "$LINENO" 5; }
3157
3158 # Provide some information about the compiler.
3159 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3160 set X $ac_compile
3161 ac_compiler=$2
3162 for ac_option in --version -v -V -qversion; do
3163 { { ac_try="$ac_compiler $ac_option >&5"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3171 ac_status=$?
3172 if test -s conftest.err; then
3173 sed '10a\
3174 ... rest of stderr output deleted ...
3175 10q' conftest.err >conftest.er1
3176 cat conftest.er1 >&5
3177 fi
3178 rm -f conftest.er1 conftest.err
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }
3181 done
3182
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 ac_clean_files_save=$ac_clean_files
3195 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3196 # Try to create an executable without -o first, disregard a.out.
3197 # It will help us diagnose broken compilers, and finding out an intuition
3198 # of exeext.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3200 $as_echo_n "checking whether the C compiler works... " >&6; }
3201 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3202
3203 # The possible output files:
3204 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3205
3206 ac_rmfiles=
3207 for ac_file in $ac_files
3208 do
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3211 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3212 esac
3213 done
3214 rm -f $ac_rmfiles
3215
3216 if { { ac_try="$ac_link_default"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_link_default") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; then :
3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3231 # Autoconf.
3232 for ac_file in $ac_files ''
3233 do
3234 test -f "$ac_file" || continue
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3237 ;;
3238 [ab].out )
3239 # We found the default executable, but exeext='' is most
3240 # certainly right.
3241 break;;
3242 *.* )
3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3244 then :; else
3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246 fi
3247 # We set ac_cv_exeext here because the later test for it is not
3248 # safe: cross compilers may not add the suffix if given an `-o'
3249 # argument, so we may need to know it at that point already.
3250 # Even if this section looks crufty: it has the advantage of
3251 # actually working.
3252 break;;
3253 * )
3254 break;;
3255 esac
3256 done
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3258
3259 else
3260 ac_file=''
3261 fi
3262 if test -z "$ac_file"; then :
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error 77 "C compiler cannot create executables
3271 See \`config.log' for more details" "$LINENO" 5; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3274 $as_echo "yes" >&6; }
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3277 $as_echo_n "checking for C compiler default output file name... " >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3279 $as_echo "$ac_file" >&6; }
3280 ac_exeext=$ac_cv_exeext
3281
3282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3283 ac_clean_files=$ac_clean_files_save
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3285 $as_echo_n "checking for suffix of executables... " >&6; }
3286 if { { ac_try="$ac_link"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_link") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3298 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3299 # work properly (i.e., refer to `conftest.exe'), while it won't with
3300 # `rm'.
3301 for ac_file in conftest.exe conftest conftest.*; do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 break;;
3307 * ) break;;
3308 esac
3309 done
3310 else
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316 rm -f conftest conftest$ac_cv_exeext
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3318 $as_echo "$ac_cv_exeext" >&6; }
3319
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3322 ac_exeext=$EXEEXT
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325 #include <stdio.h>
3326 int
3327 main ()
3328 {
3329 FILE *f = fopen ("conftest.out", "w");
3330 return ferror (f) || fclose (f) != 0;
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 ac_clean_files="$ac_clean_files conftest.out"
3337 # Check that the compiler produces executables we can run. If not, either
3338 # the compiler is broken, or we cross compile.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3340 $as_echo_n "checking whether we are cross compiling... " >&6; }
3341 if test "$cross_compiling" != yes; then
3342 { { ac_try="$ac_link"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }
3353 if { ac_try='./conftest$ac_cv_exeext'
3354 { { case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_try") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; }; then
3364 cross_compiling=no
3365 else
3366 if test "$cross_compiling" = maybe; then
3367 cross_compiling=yes
3368 else
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "cannot run C compiled programs.
3372 If you meant to cross compile, use \`--host'.
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 fi
3375 fi
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3378 $as_echo "$cross_compiling" >&6; }
3379
3380 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3381 ac_clean_files=$ac_clean_files_save
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3383 $as_echo_n "checking for suffix of object files... " >&6; }
3384 if ${ac_cv_objext+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.o conftest.obj
3399 if { { ac_try="$ac_compile"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compile") 2>&5
3407 ac_status=$?
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415 break;;
3416 esac
3417 done
3418 else
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 fi
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3432 ac_objext=$OBJEXT
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3435 if ${ac_cv_c_compiler_gnu+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444 #ifndef __GNUC__
3445 choke me
3446 #endif
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_compiler_gnu=yes
3454 else
3455 ac_compiler_gnu=no
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463 if test $ac_compiler_gnu = yes; then
3464 GCC=yes
3465 else
3466 GCC=
3467 fi
3468 ac_test_CFLAGS=${CFLAGS+set}
3469 ac_save_CFLAGS=$CFLAGS
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3471 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3472 if ${ac_cv_prog_cc_g+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_save_c_werror_flag=$ac_c_werror_flag
3476 ac_c_werror_flag=yes
3477 ac_cv_prog_cc_g=no
3478 CFLAGS="-g"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_g=yes
3492 else
3493 CFLAGS=""
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506
3507 else
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3509 CFLAGS="-g"
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_g=yes
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3532 $as_echo "$ac_cv_prog_cc_g" >&6; }
3533 if test "$ac_test_CFLAGS" = set; then
3534 CFLAGS=$ac_save_CFLAGS
3535 elif test $ac_cv_prog_cc_g = yes; then
3536 if test "$GCC" = yes; then
3537 CFLAGS="-g -O2"
3538 else
3539 CFLAGS="-g"
3540 fi
3541 else
3542 if test "$GCC" = yes; then
3543 CFLAGS="-O2"
3544 else
3545 CFLAGS=
3546 fi
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3549 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3550 if ${ac_cv_prog_cc_c89+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_cv_prog_cc_c89=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <stdarg.h>
3558 #include <stdio.h>
3559 struct stat;
3560 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3561 struct buf { int x; };
3562 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3563 static char *e (p, i)
3564 char **p;
3565 int i;
3566 {
3567 return p[i];
3568 }
3569 static char *f (char * (*g) (char **, int), char **p, ...)
3570 {
3571 char *s;
3572 va_list v;
3573 va_start (v,p);
3574 s = g (p, va_arg (v,int));
3575 va_end (v);
3576 return s;
3577 }
3578
3579 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3580 function prototypes and stuff, but not '\xHH' hex character constants.
3581 These don't provoke an error unfortunately, instead are silently treated
3582 as 'x'. The following induces an error, until -std is added to get
3583 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3584 array size at least. It's necessary to write '\x00'==0 to get something
3585 that's true only with -std. */
3586 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3587
3588 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3589 inside strings and character constants. */
3590 #define FOO(x) 'x'
3591 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3592
3593 int test (int i, double x);
3594 struct s1 {int (*f) (int a);};
3595 struct s2 {int (*f) (double a);};
3596 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3597 int argc;
3598 char **argv;
3599 int
3600 main ()
3601 {
3602 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3608 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3609 do
3610 CC="$ac_save_CC $ac_arg"
3611 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_c89=$ac_arg
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext
3615 test "x$ac_cv_prog_cc_c89" != "xno" && break
3616 done
3617 rm -f conftest.$ac_ext
3618 CC=$ac_save_CC
3619
3620 fi
3621 # AC_CACHE_VAL
3622 case "x$ac_cv_prog_cc_c89" in
3623 x)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3625 $as_echo "none needed" >&6; } ;;
3626 xno)
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3628 $as_echo "unsupported" >&6; } ;;
3629 *)
3630 CC="$CC $ac_cv_prog_cc_c89"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3632 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3633 esac
3634 if test "x$ac_cv_prog_cc_c89" != xno; then :
3635
3636 fi
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 depcc="$CC" am_compiler_list=
3645
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3647 $as_echo_n "checking dependency style of $depcc... " >&6; }
3648 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652 # We make a subdir and do the tests there. Otherwise we can end up
3653 # making bogus files that we don't know about and never remove. For
3654 # instance it was reported that on HP-UX the gcc test will end up
3655 # making a dummy file named 'D' -- because '-MD' means "put the output
3656 # in D".
3657 rm -rf conftest.dir
3658 mkdir conftest.dir
3659 # Copy depcomp to subdir because otherwise we won't find it if we're
3660 # using a relative directory.
3661 cp "$am_depcomp" conftest.dir
3662 cd conftest.dir
3663 # We will build objects and dependencies in a subdirectory because
3664 # it helps to detect inapplicable dependency modes. For instance
3665 # both Tru64's cc and ICC support -MD to output dependencies as a
3666 # side effect of compilation, but ICC will put the dependencies in
3667 # the current directory while Tru64 will put them in the object
3668 # directory.
3669 mkdir sub
3670
3671 am_cv_CC_dependencies_compiler_type=none
3672 if test "$am_compiler_list" = ""; then
3673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674 fi
3675 am__universal=false
3676 case " $depcc " in #(
3677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3678 esac
3679
3680 for depmode in $am_compiler_list; do
3681 # Setup a source with many dependencies, because some compilers
3682 # like to wrap large dependency lists on column 80 (with \), and
3683 # we should not choose a depcomp mode which is confused by this.
3684 #
3685 # We need to recreate these files for each test, as the compiler may
3686 # overwrite some of them when testing with obscure command lines.
3687 # This happens at least with the AIX C compiler.
3688 : > sub/conftest.c
3689 for i in 1 2 3 4 5 6; do
3690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3692 # Solaris 10 /bin/sh.
3693 echo '/* dummy */' > sub/conftst$i.h
3694 done
3695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3696
3697 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3698 # mode. It turns out that the SunPro C++ compiler does not properly
3699 # handle '-M -o', and we need to detect this. Also, some Intel
3700 # versions had trouble with output in subdirs.
3701 am__obj=sub/conftest.${OBJEXT-o}
3702 am__minus_obj="-o $am__obj"
3703 case $depmode in
3704 gcc)
3705 # This depmode causes a compiler race in universal mode.
3706 test "$am__universal" = false || continue
3707 ;;
3708 nosideeffect)
3709 # After this tag, mechanisms are not by side-effect, so they'll
3710 # only be used when explicitly requested.
3711 if test "x$enable_dependency_tracking" = xyes; then
3712 continue
3713 else
3714 break
3715 fi
3716 ;;
3717 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3718 # This compiler won't grok '-c -o', but also, the minuso test has
3719 # not run yet. These depmodes are late enough in the game, and
3720 # so weak that their functioning should not be impacted.
3721 am__obj=conftest.${OBJEXT-o}
3722 am__minus_obj=
3723 ;;
3724 none) break ;;
3725 esac
3726 if depmode=$depmode \
3727 source=sub/conftest.c object=$am__obj \
3728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3730 >/dev/null 2>conftest.err &&
3731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3735 # icc doesn't choke on unknown options, it will just issue warnings
3736 # or remarks (even with -Werror). So we grep stderr for any message
3737 # that says an option was ignored or not supported.
3738 # When given -MP, icc 7.0 and 7.1 complain thusly:
3739 # icc: Command line warning: ignoring option '-M'; no argument required
3740 # The diagnosis changed in icc 8.0:
3741 # icc: Command line remark: option '-MP' not supported
3742 if (grep 'ignoring option' conftest.err ||
3743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3744 am_cv_CC_dependencies_compiler_type=$depmode
3745 break
3746 fi
3747 fi
3748 done
3749
3750 cd ..
3751 rm -rf conftest.dir
3752 else
3753 am_cv_CC_dependencies_compiler_type=none
3754 fi
3755
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3760
3761 if
3762 test "x$enable_dependency_tracking" != xno \
3763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764 am__fastdepCC_TRUE=
3765 am__fastdepCC_FALSE='#'
3766 else
3767 am__fastdepCC_TRUE='#'
3768 am__fastdepCC_FALSE=
3769 fi
3770
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3773 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3774 if ${ac_cv_prog_cc_c99+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 ac_cv_prog_cc_c99=no
3778 ac_save_CC=$CC
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <stdarg.h>
3782 #include <stdbool.h>
3783 #include <stdlib.h>
3784 #include <wchar.h>
3785 #include <stdio.h>
3786
3787 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3788 #define debug(...) fprintf (stderr, __VA_ARGS__)
3789 #define showlist(...) puts (#__VA_ARGS__)
3790 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3791 static void
3792 test_varargs_macros (void)
3793 {
3794 int x = 1234;
3795 int y = 5678;
3796 debug ("Flag");
3797 debug ("X = %d\n", x);
3798 showlist (The first, second, and third items.);
3799 report (x>y, "x is %d but y is %d", x, y);
3800 }
3801
3802 // Check long long types.
3803 #define BIG64 18446744073709551615ull
3804 #define BIG32 4294967295ul
3805 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3806 #if !BIG_OK
3807 your preprocessor is broken;
3808 #endif
3809 #if BIG_OK
3810 #else
3811 your preprocessor is broken;
3812 #endif
3813 static long long int bignum = -9223372036854775807LL;
3814 static unsigned long long int ubignum = BIG64;
3815
3816 struct incomplete_array
3817 {
3818 int datasize;
3819 double data[];
3820 };
3821
3822 struct named_init {
3823 int number;
3824 const wchar_t *name;
3825 double average;
3826 };
3827
3828 typedef const char *ccp;
3829
3830 static inline int
3831 test_restrict (ccp restrict text)
3832 {
3833 // See if C++-style comments work.
3834 // Iterate through items via the restricted pointer.
3835 // Also check for declarations in for loops.
3836 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3837 continue;
3838 return 0;
3839 }
3840
3841 // Check varargs and va_copy.
3842 static void
3843 test_varargs (const char *format, ...)
3844 {
3845 va_list args;
3846 va_start (args, format);
3847 va_list args_copy;
3848 va_copy (args_copy, args);
3849
3850 const char *str;
3851 int number;
3852 float fnumber;
3853
3854 while (*format)
3855 {
3856 switch (*format++)
3857 {
3858 case 's': // string
3859 str = va_arg (args_copy, const char *);
3860 break;
3861 case 'd': // int
3862 number = va_arg (args_copy, int);
3863 break;
3864 case 'f': // float
3865 fnumber = va_arg (args_copy, double);
3866 break;
3867 default:
3868 break;
3869 }
3870 }
3871 va_end (args_copy);
3872 va_end (args);
3873 }
3874
3875 int
3876 main ()
3877 {
3878
3879 // Check bool.
3880 _Bool success = false;
3881
3882 // Check restrict.
3883 if (test_restrict ("String literal") == 0)
3884 success = true;
3885 char *restrict newvar = "Another string";
3886
3887 // Check varargs.
3888 test_varargs ("s, d' f .", "string", 65, 34.234);
3889 test_varargs_macros ();
3890
3891 // Check flexible array members.
3892 struct incomplete_array *ia =
3893 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3894 ia->datasize = 10;
3895 for (int i = 0; i < ia->datasize; ++i)
3896 ia->data[i] = i * 1.234;
3897
3898 // Check named initializers.
3899 struct named_init ni = {
3900 .number = 34,
3901 .name = L"Test wide string",
3902 .average = 543.34343,
3903 };
3904
3905 ni.number = 58;
3906
3907 int dynamic_array[ni.number];
3908 dynamic_array[ni.number - 1] = 543;
3909
3910 // work around unused variable warnings
3911 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3912 || dynamic_array[ni.number - 1] != 543);
3913
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3919 do
3920 CC="$ac_save_CC $ac_arg"
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_prog_cc_c99=$ac_arg
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c99" != "xno" && break
3926 done
3927 rm -f conftest.$ac_ext
3928 CC=$ac_save_CC
3929
3930 fi
3931 # AC_CACHE_VAL
3932 case "x$ac_cv_prog_cc_c99" in
3933 x)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3936 xno)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3939 *)
3940 CC="$CC $ac_cv_prog_cc_c99"
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3942 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3943 esac
3944 if test "x$ac_cv_prog_cc_c99" != xno; then :
3945
3946 fi
3947
3948
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3956 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3957 # On Suns, sometimes $CPP names a directory.
3958 if test -n "$CPP" && test -d "$CPP"; then
3959 CPP=
3960 fi
3961 if test -z "$CPP"; then
3962 if ${ac_cv_prog_CPP+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 # Double quotes because CPP needs to be expanded
3966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967 do
3968 ac_preproc_ok=false
3969 for ac_c_preproc_warn_flag in '' yes
3970 do
3971 # Use a header file that comes with gcc, so configuring glibc
3972 # with a fresh cross-compiler works.
3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974 # <limits.h> exists even on freestanding compilers.
3975 # On the NeXT, cc -E runs the code through the compiler's parser,
3976 # not just through cpp. "Syntax error" is here to catch this case.
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #ifdef __STDC__
3980 # include <limits.h>
3981 #else
3982 # include <assert.h>
3983 #endif
3984 Syntax error
3985 _ACEOF
3986 if ac_fn_c_try_cpp "$LINENO"; then :
3987
3988 else
3989 # Broken: fails on valid input.
3990 continue
3991 fi
3992 rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994 # OK, works on sane cases. Now check whether nonexistent headers
3995 # can be detected and how.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <ac_nonexistent.h>
3999 _ACEOF
4000 if ac_fn_c_try_cpp "$LINENO"; then :
4001 # Broken: success on invalid input.
4002 continue
4003 else
4004 # Passes both tests.
4005 ac_preproc_ok=:
4006 break
4007 fi
4008 rm -f conftest.err conftest.i conftest.$ac_ext
4009
4010 done
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.i conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then :
4014 break
4015 fi
4016
4017 done
4018 ac_cv_prog_CPP=$CPP
4019
4020 fi
4021 CPP=$ac_cv_prog_CPP
4022 else
4023 ac_cv_prog_CPP=$CPP
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4026 $as_echo "$CPP" >&6; }
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043 Syntax error
4044 _ACEOF
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047 else
4048 # Broken: fails on valid input.
4049 continue
4050 fi
4051 rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053 # OK, works on sane cases. Now check whether nonexistent headers
4054 # can be detected and how.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if ac_fn_c_try_cpp "$LINENO"; then :
4060 # Broken: success on invalid input.
4061 continue
4062 else
4063 # Passes both tests.
4064 ac_preproc_ok=:
4065 break
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 done
4070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071 rm -f conftest.i conftest.err conftest.$ac_ext
4072 if $ac_preproc_ok; then :
4073
4074 else
4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4078 See \`config.log' for more details" "$LINENO" 5; }
4079 fi
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4090 if ${ac_cv_path_GREP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test -z "$GREP"; then
4094 ac_path_GREP_found=false
4095 # Loop through the user's path and test for each of PROGNAME-LIST
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_prog in grep ggrep; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104 as_fn_executable_p "$ac_path_GREP" || continue
4105 # Check for GNU ac_path_GREP and select it if it is found.
4106 # Check for GNU $ac_path_GREP
4107 case `"$ac_path_GREP" --version 2>&1` in
4108 *GNU*)
4109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4110 *)
4111 ac_count=0
4112 $as_echo_n 0123456789 >"conftest.in"
4113 while :
4114 do
4115 cat "conftest.in" "conftest.in" >"conftest.tmp"
4116 mv "conftest.tmp" "conftest.in"
4117 cp "conftest.in" "conftest.nl"
4118 $as_echo 'GREP' >> "conftest.nl"
4119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121 as_fn_arith $ac_count + 1 && ac_count=$as_val
4122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123 # Best one so far, save it but keep looking for a better one
4124 ac_cv_path_GREP="$ac_path_GREP"
4125 ac_path_GREP_max=$ac_count
4126 fi
4127 # 10*(2^10) chars as input seems more than enough
4128 test $ac_count -gt 10 && break
4129 done
4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131 esac
4132
4133 $ac_path_GREP_found && break 3
4134 done
4135 done
4136 done
4137 IFS=$as_save_IFS
4138 if test -z "$ac_cv_path_GREP"; then
4139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140 fi
4141 else
4142 ac_cv_path_GREP=$GREP
4143 fi
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4147 $as_echo "$ac_cv_path_GREP" >&6; }
4148 GREP="$ac_cv_path_GREP"
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4152 $as_echo_n "checking for egrep... " >&6; }
4153 if ${ac_cv_path_EGREP+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157 then ac_cv_path_EGREP="$GREP -E"
4158 else
4159 if test -z "$EGREP"; then
4160 ac_path_EGREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in egrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4170 as_fn_executable_p "$ac_path_EGREP" || continue
4171 # Check for GNU ac_path_EGREP and select it if it is found.
4172 # Check for GNU $ac_path_EGREP
4173 case `"$ac_path_EGREP" --version 2>&1` in
4174 *GNU*)
4175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4176 *)
4177 ac_count=0
4178 $as_echo_n 0123456789 >"conftest.in"
4179 while :
4180 do
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 $as_echo 'EGREP' >> "conftest.nl"
4185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 as_fn_arith $ac_count + 1 && ac_count=$as_val
4188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_EGREP="$ac_path_EGREP"
4191 ac_path_EGREP_max=$ac_count
4192 fi
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4195 done
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4198
4199 $ac_path_EGREP_found && break 3
4200 done
4201 done
4202 done
4203 IFS=$as_save_IFS
4204 if test -z "$ac_cv_path_EGREP"; then
4205 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206 fi
4207 else
4208 ac_cv_path_EGREP=$EGREP
4209 fi
4210
4211 fi
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4214 $as_echo "$ac_cv_path_EGREP" >&6; }
4215 EGREP="$ac_cv_path_EGREP"
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4219 $as_echo_n "checking for ANSI C header files... " >&6; }
4220 if ${ac_cv_header_stdc+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <stdlib.h>
4226 #include <stdarg.h>
4227 #include <string.h>
4228 #include <float.h>
4229
4230 int
4231 main ()
4232 {
4233
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_cv_header_stdc=yes
4240 else
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244
4245 if test $ac_cv_header_stdc = yes; then
4246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <string.h>
4250
4251 _ACEOF
4252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253 $EGREP "memchr" >/dev/null 2>&1; then :
4254
4255 else
4256 ac_cv_header_stdc=no
4257 fi
4258 rm -f conftest*
4259
4260 fi
4261
4262 if test $ac_cv_header_stdc = yes; then
4263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266 #include <stdlib.h>
4267
4268 _ACEOF
4269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270 $EGREP "free" >/dev/null 2>&1; then :
4271
4272 else
4273 ac_cv_header_stdc=no
4274 fi
4275 rm -f conftest*
4276
4277 fi
4278
4279 if test $ac_cv_header_stdc = yes; then
4280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281 if test "$cross_compiling" = yes; then :
4282 :
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ctype.h>
4287 #include <stdlib.h>
4288 #if ((' ' & 0x0FF) == 0x020)
4289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291 #else
4292 # define ISLOWER(c) \
4293 (('a' <= (c) && (c) <= 'i') \
4294 || ('j' <= (c) && (c) <= 'r') \
4295 || ('s' <= (c) && (c) <= 'z'))
4296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297 #endif
4298
4299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300 int
4301 main ()
4302 {
4303 int i;
4304 for (i = 0; i < 256; i++)
4305 if (XOR (islower (i), ISLOWER (i))
4306 || toupper (i) != TOUPPER (i))
4307 return 2;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_run "$LINENO"; then :
4312
4313 else
4314 ac_cv_header_stdc=no
4315 fi
4316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4317 conftest.$ac_objext conftest.beam conftest.$ac_ext
4318 fi
4319
4320 fi
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4323 $as_echo "$ac_cv_header_stdc" >&6; }
4324 if test $ac_cv_header_stdc = yes; then
4325
4326 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4327
4328 fi
4329
4330 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332 inttypes.h stdint.h unistd.h
4333 do :
4334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4336 "
4337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4338 cat >>confdefs.h <<_ACEOF
4339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 _ACEOF
4341
4342 fi
4343
4344 done
4345
4346
4347
4348
4349
4350
4351 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4352 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4353 CLANGCC="yes"
4354 else
4355 CLANGCC="no"
4356 fi
4357
4358 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4359 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4360 INTELCC="yes"
4361 else
4362 INTELCC="no"
4363 fi
4364
4365 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4366 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4367 SUNCC="yes"
4368 else
4369 SUNCC="no"
4370 fi
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 case $PKG_CONFIG in
4390 [\\/]* | ?:[\\/]*)
4391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4392 ;;
4393 *)
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 ;;
4410 esac
4411 fi
4412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4413 if test -n "$PKG_CONFIG"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4415 $as_echo "$PKG_CONFIG" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422 fi
4423 if test -z "$ac_cv_path_PKG_CONFIG"; then
4424 ac_pt_PKG_CONFIG=$PKG_CONFIG
4425 # Extract the first word of "pkg-config", so it can be a program name with args.
4426 set dummy pkg-config; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 case $ac_pt_PKG_CONFIG in
4433 [\\/]* | ?:[\\/]*)
4434 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4435 ;;
4436 *)
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 ;;
4453 esac
4454 fi
4455 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4456 if test -n "$ac_pt_PKG_CONFIG"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4458 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464 if test "x$ac_pt_PKG_CONFIG" = x; then
4465 PKG_CONFIG=""
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 PKG_CONFIG=$ac_pt_PKG_CONFIG
4474 fi
4475 else
4476 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4477 fi
4478
4479 fi
4480 if test -n "$PKG_CONFIG"; then
4481 _pkg_min_version=0.9.0
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4483 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4484 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 $as_echo "yes" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 PKG_CONFIG=""
4491 fi
4492 fi
4493 # Make sure we can run config.sub.
4494 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4495 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4498 $as_echo_n "checking build system type... " >&6; }
4499 if ${ac_cv_build+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 ac_build_alias=$build_alias
4503 test "x$ac_build_alias" = x &&
4504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4505 test "x$ac_build_alias" = x &&
4506 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4507 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4509
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4512 $as_echo "$ac_cv_build" >&6; }
4513 case $ac_cv_build in
4514 *-*-*) ;;
4515 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4516 esac
4517 build=$ac_cv_build
4518 ac_save_IFS=$IFS; IFS='-'
4519 set x $ac_cv_build
4520 shift
4521 build_cpu=$1
4522 build_vendor=$2
4523 shift; shift
4524 # Remember, the first character of IFS is used to create $*,
4525 # except with old shells:
4526 build_os=$*
4527 IFS=$ac_save_IFS
4528 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4532 $as_echo_n "checking host system type... " >&6; }
4533 if ${ac_cv_host+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test "x$host_alias" = x; then
4537 ac_cv_host=$ac_cv_build
4538 else
4539 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4541 fi
4542
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4545 $as_echo "$ac_cv_host" >&6; }
4546 case $ac_cv_host in
4547 *-*-*) ;;
4548 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4549 esac
4550 host=$ac_cv_host
4551 ac_save_IFS=$IFS; IFS='-'
4552 set x $ac_cv_host
4553 shift
4554 host_cpu=$1
4555 host_vendor=$2
4556 shift; shift
4557 # Remember, the first character of IFS is used to create $*,
4558 # except with old shells:
4559 host_os=$*
4560 IFS=$ac_save_IFS
4561 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566 if ${ac_cv_path_SED+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570 for ac_i in 1 2 3 4 5 6 7; do
4571 ac_script="$ac_script$as_nl$ac_script"
4572 done
4573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574 { ac_script=; unset ac_script;}
4575 if test -z "$SED"; then
4576 ac_path_SED_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in sed gsed; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4586 as_fn_executable_p "$ac_path_SED" || continue
4587 # Check for GNU ac_path_SED and select it if it is found.
4588 # Check for GNU $ac_path_SED
4589 case `"$ac_path_SED" --version 2>&1` in
4590 *GNU*)
4591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592 *)
4593 ac_count=0
4594 $as_echo_n 0123456789 >"conftest.in"
4595 while :
4596 do
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo '' >> "conftest.nl"
4601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_SED_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_SED="$ac_path_SED"
4607 ac_path_SED_max=$ac_count
4608 fi
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4611 done
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615 $ac_path_SED_found && break 3
4616 done
4617 done
4618 done
4619 IFS=$as_save_IFS
4620 if test -z "$ac_cv_path_SED"; then
4621 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622 fi
4623 else
4624 ac_cv_path_SED=$SED
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629 $as_echo "$ac_cv_path_SED" >&6; }
4630 SED="$ac_cv_path_SED"
4631 rm -f conftest.sed
4632
4633
4634
4635
4636
4637
4638 # Check whether --enable-selective-werror was given.
4639 if test "${enable_selective_werror+set}" = set; then :
4640 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4641 else
4642 SELECTIVE_WERROR=yes
4643 fi
4644
4645
4646
4647
4648
4649 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4650 if test "x$SUNCC" = "xyes"; then
4651 BASE_CFLAGS="-v"
4652 else
4653 BASE_CFLAGS=""
4654 fi
4655
4656 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 xorg_testset_save_CFLAGS="$CFLAGS"
4671
4672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 int i;
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 xorg_cv_cc_flag_unknown_warning_option=yes
4685 else
4686 xorg_cv_cc_flag_unknown_warning_option=no
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4693 CFLAGS="$xorg_testset_save_CFLAGS"
4694 fi
4695
4696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4699 fi
4700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 int i;
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 xorg_cv_cc_flag_unused_command_line_argument=yes
4712 else
4713 xorg_cv_cc_flag_unused_command_line_argument=no
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4720 CFLAGS="$xorg_testset_save_CFLAGS"
4721 fi
4722
4723 found="no"
4724
4725 if test $found = "no" ; then
4726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4728 fi
4729
4730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4732 fi
4733
4734 CFLAGS="$CFLAGS -Wall"
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4737 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4738 cacheid=xorg_cv_cc_flag__Wall
4739 if eval \${$cacheid+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 int i;
4745 int
4746 main ()
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_link "$LINENO"; then :
4754 eval $cacheid=yes
4755 else
4756 eval $cacheid=no
4757 fi
4758 rm -f core conftest.err conftest.$ac_objext \
4759 conftest$ac_exeext conftest.$ac_ext
4760 fi
4761
4762
4763 CFLAGS="$xorg_testset_save_CFLAGS"
4764
4765 eval supported=\$$cacheid
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4767 $as_echo "$supported" >&6; }
4768 if test "$supported" = "yes" ; then
4769 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4770 found="yes"
4771 fi
4772 fi
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 xorg_testset_save_CFLAGS="$CFLAGS"
4789
4790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4793 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4794 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 int i;
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 xorg_cv_cc_flag_unknown_warning_option=yes
4803 else
4804 xorg_cv_cc_flag_unknown_warning_option=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4809 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4811 CFLAGS="$xorg_testset_save_CFLAGS"
4812 fi
4813
4814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4817 fi
4818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4820 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4821 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 int i;
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 xorg_cv_cc_flag_unused_command_line_argument=yes
4830 else
4831 xorg_cv_cc_flag_unused_command_line_argument=no
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4836 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4838 CFLAGS="$xorg_testset_save_CFLAGS"
4839 fi
4840
4841 found="no"
4842
4843 if test $found = "no" ; then
4844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4846 fi
4847
4848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4850 fi
4851
4852 CFLAGS="$CFLAGS -Wpointer-arith"
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4855 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4856 cacheid=xorg_cv_cc_flag__Wpointer_arith
4857 if eval \${$cacheid+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 int i;
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_link "$LINENO"; then :
4872 eval $cacheid=yes
4873 else
4874 eval $cacheid=no
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext \
4877 conftest$ac_exeext conftest.$ac_ext
4878 fi
4879
4880
4881 CFLAGS="$xorg_testset_save_CFLAGS"
4882
4883 eval supported=\$$cacheid
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4885 $as_echo "$supported" >&6; }
4886 if test "$supported" = "yes" ; then
4887 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4888 found="yes"
4889 fi
4890 fi
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 xorg_testset_save_CFLAGS="$CFLAGS"
4907
4908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 int i;
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 xorg_cv_cc_flag_unknown_warning_option=yes
4921 else
4922 xorg_cv_cc_flag_unknown_warning_option=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4929 CFLAGS="$xorg_testset_save_CFLAGS"
4930 fi
4931
4932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935 fi
4936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 xorg_cv_cc_flag_unused_command_line_argument=yes
4948 else
4949 xorg_cv_cc_flag_unused_command_line_argument=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956 CFLAGS="$xorg_testset_save_CFLAGS"
4957 fi
4958
4959 found="no"
4960
4961 if test $found = "no" ; then
4962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964 fi
4965
4966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 fi
4969
4970 CFLAGS="$CFLAGS -Wmissing-declarations"
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4973 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4974 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4975 if eval \${$cacheid+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 int i;
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_link "$LINENO"; then :
4990 eval $cacheid=yes
4991 else
4992 eval $cacheid=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext \
4995 conftest$ac_exeext conftest.$ac_ext
4996 fi
4997
4998
4999 CFLAGS="$xorg_testset_save_CFLAGS"
5000
5001 eval supported=\$$cacheid
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5003 $as_echo "$supported" >&6; }
5004 if test "$supported" = "yes" ; then
5005 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5006 found="yes"
5007 fi
5008 fi
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024 xorg_testset_save_CFLAGS="$CFLAGS"
5025
5026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5030 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 int i;
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038 xorg_cv_cc_flag_unknown_warning_option=yes
5039 else
5040 xorg_cv_cc_flag_unknown_warning_option=no
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047 CFLAGS="$xorg_testset_save_CFLAGS"
5048 fi
5049
5050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053 fi
5054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int i;
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 xorg_cv_cc_flag_unused_command_line_argument=yes
5066 else
5067 xorg_cv_cc_flag_unused_command_line_argument=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5072 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5074 CFLAGS="$xorg_testset_save_CFLAGS"
5075 fi
5076
5077 found="no"
5078
5079 if test $found = "no" ; then
5080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082 fi
5083
5084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5086 fi
5087
5088 CFLAGS="$CFLAGS -Wformat=2"
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5091 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5092 cacheid=xorg_cv_cc_flag__Wformat_2
5093 if eval \${$cacheid+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 int i;
5099 int
5100 main ()
5101 {
5102
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_link "$LINENO"; then :
5108 eval $cacheid=yes
5109 else
5110 eval $cacheid=no
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5114 fi
5115
5116
5117 CFLAGS="$xorg_testset_save_CFLAGS"
5118
5119 eval supported=\$$cacheid
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5121 $as_echo "$supported" >&6; }
5122 if test "$supported" = "yes" ; then
5123 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5124 found="yes"
5125 fi
5126 fi
5127
5128 if test $found = "no" ; then
5129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131 fi
5132
5133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135 fi
5136
5137 CFLAGS="$CFLAGS -Wformat"
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5140 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5141 cacheid=xorg_cv_cc_flag__Wformat
5142 if eval \${$cacheid+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 int i;
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 if ac_fn_c_try_link "$LINENO"; then :
5157 eval $cacheid=yes
5158 else
5159 eval $cacheid=no
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext \
5162 conftest$ac_exeext conftest.$ac_ext
5163 fi
5164
5165
5166 CFLAGS="$xorg_testset_save_CFLAGS"
5167
5168 eval supported=\$$cacheid
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5170 $as_echo "$supported" >&6; }
5171 if test "$supported" = "yes" ; then
5172 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5173 found="yes"
5174 fi
5175 fi
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 xorg_testset_save_CFLAGS="$CFLAGS"
5194
5195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5198 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5199 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 int i;
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 xorg_cv_cc_flag_unknown_warning_option=yes
5208 else
5209 xorg_cv_cc_flag_unknown_warning_option=no
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5214 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5216 CFLAGS="$xorg_testset_save_CFLAGS"
5217 fi
5218
5219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222 fi
5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5225 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5226 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 int i;
5232 _ACEOF
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234 xorg_cv_cc_flag_unused_command_line_argument=yes
5235 else
5236 xorg_cv_cc_flag_unused_command_line_argument=no
5237 fi
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5241 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5243 CFLAGS="$xorg_testset_save_CFLAGS"
5244 fi
5245
5246 found="no"
5247
5248 if test $found = "no" ; then
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 fi
5252
5253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5255 fi
5256
5257 CFLAGS="$CFLAGS -Wstrict-prototypes"
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5260 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5261 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5262 if eval \${$cacheid+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 int i;
5268 int
5269 main ()
5270 {
5271
5272 ;
5273 return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_link "$LINENO"; then :
5277 eval $cacheid=yes
5278 else
5279 eval $cacheid=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 fi
5284
5285
5286 CFLAGS="$xorg_testset_save_CFLAGS"
5287
5288 eval supported=\$$cacheid
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5290 $as_echo "$supported" >&6; }
5291 if test "$supported" = "yes" ; then
5292 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5293 found="yes"
5294 fi
5295 fi
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 xorg_testset_save_CFLAGS="$CFLAGS"
5312
5313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5316 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5317 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 int i;
5323 _ACEOF
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325 xorg_cv_cc_flag_unknown_warning_option=yes
5326 else
5327 xorg_cv_cc_flag_unknown_warning_option=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5332 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335 fi
5336
5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 fi
5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5343 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5344 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 int i;
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 xorg_cv_cc_flag_unused_command_line_argument=yes
5353 else
5354 xorg_cv_cc_flag_unused_command_line_argument=no
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5359 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5361 CFLAGS="$xorg_testset_save_CFLAGS"
5362 fi
5363
5364 found="no"
5365
5366 if test $found = "no" ; then
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 fi
5370
5371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5373 fi
5374
5375 CFLAGS="$CFLAGS -Wmissing-prototypes"
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5378 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5379 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5380 if eval \${$cacheid+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 int i;
5386 int
5387 main ()
5388 {
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_link "$LINENO"; then :
5395 eval $cacheid=yes
5396 else
5397 eval $cacheid=no
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 fi
5402
5403
5404 CFLAGS="$xorg_testset_save_CFLAGS"
5405
5406 eval supported=\$$cacheid
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5408 $as_echo "$supported" >&6; }
5409 if test "$supported" = "yes" ; then
5410 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5411 found="yes"
5412 fi
5413 fi
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429 xorg_testset_save_CFLAGS="$CFLAGS"
5430
5431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5434 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5435 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 int i;
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 xorg_cv_cc_flag_unknown_warning_option=yes
5444 else
5445 xorg_cv_cc_flag_unknown_warning_option=no
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5450 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5452 CFLAGS="$xorg_testset_save_CFLAGS"
5453 fi
5454
5455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5461 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5462 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 int i;
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 xorg_cv_cc_flag_unused_command_line_argument=yes
5471 else
5472 xorg_cv_cc_flag_unused_command_line_argument=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5477 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5479 CFLAGS="$xorg_testset_save_CFLAGS"
5480 fi
5481
5482 found="no"
5483
5484 if test $found = "no" ; then
5485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487 fi
5488
5489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5491 fi
5492
5493 CFLAGS="$CFLAGS -Wnested-externs"
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5496 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5497 cacheid=xorg_cv_cc_flag__Wnested_externs
5498 if eval \${$cacheid+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 int i;
5504 int
5505 main ()
5506 {
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_link "$LINENO"; then :
5513 eval $cacheid=yes
5514 else
5515 eval $cacheid=no
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 fi
5520
5521
5522 CFLAGS="$xorg_testset_save_CFLAGS"
5523
5524 eval supported=\$$cacheid
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5526 $as_echo "$supported" >&6; }
5527 if test "$supported" = "yes" ; then
5528 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5529 found="yes"
5530 fi
5531 fi
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 xorg_testset_save_CFLAGS="$CFLAGS"
5548
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5552 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5553 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 int i;
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 xorg_cv_cc_flag_unknown_warning_option=yes
5562 else
5563 xorg_cv_cc_flag_unknown_warning_option=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5568 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571 fi
5572
5573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 fi
5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5579 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5580 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 int i;
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 xorg_cv_cc_flag_unused_command_line_argument=yes
5589 else
5590 xorg_cv_cc_flag_unused_command_line_argument=no
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597 CFLAGS="$xorg_testset_save_CFLAGS"
5598 fi
5599
5600 found="no"
5601
5602 if test $found = "no" ; then
5603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605 fi
5606
5607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 fi
5610
5611 CFLAGS="$CFLAGS -Wbad-function-cast"
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5614 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5615 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5616 if eval \${$cacheid+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 int i;
5622 int
5623 main ()
5624 {
5625
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 eval $cacheid=yes
5632 else
5633 eval $cacheid=no
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5637 fi
5638
5639
5640 CFLAGS="$xorg_testset_save_CFLAGS"
5641
5642 eval supported=\$$cacheid
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5644 $as_echo "$supported" >&6; }
5645 if test "$supported" = "yes" ; then
5646 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5647 found="yes"
5648 fi
5649 fi
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 xorg_testset_save_CFLAGS="$CFLAGS"
5666
5667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5670 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5671 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 int i;
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 xorg_cv_cc_flag_unknown_warning_option=yes
5680 else
5681 xorg_cv_cc_flag_unknown_warning_option=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5686 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5688 CFLAGS="$xorg_testset_save_CFLAGS"
5689 fi
5690
5691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 fi
5695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5697 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5698 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 int i;
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"; then :
5706 xorg_cv_cc_flag_unused_command_line_argument=yes
5707 else
5708 xorg_cv_cc_flag_unused_command_line_argument=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5713 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716 fi
5717
5718 found="no"
5719
5720 if test $found = "no" ; then
5721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723 fi
5724
5725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5727 fi
5728
5729 CFLAGS="$CFLAGS -Wold-style-definition"
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5732 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5733 cacheid=xorg_cv_cc_flag__Wold_style_definition
5734 if eval \${$cacheid+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 int i;
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_link "$LINENO"; then :
5749 eval $cacheid=yes
5750 else
5751 eval $cacheid=no
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 fi
5756
5757
5758 CFLAGS="$xorg_testset_save_CFLAGS"
5759
5760 eval supported=\$$cacheid
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5762 $as_echo "$supported" >&6; }
5763 if test "$supported" = "yes" ; then
5764 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5765 found="yes"
5766 fi
5767 fi
5768
5769 if test $found = "no" ; then
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 fi
5773
5774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776 fi
5777
5778 CFLAGS="$CFLAGS -fd"
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5781 $as_echo_n "checking if $CC supports -fd... " >&6; }
5782 cacheid=xorg_cv_cc_flag__fd
5783 if eval \${$cacheid+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 int i;
5789 int
5790 main ()
5791 {
5792
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_link "$LINENO"; then :
5798 eval $cacheid=yes
5799 else
5800 eval $cacheid=no
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804 fi
5805
5806
5807 CFLAGS="$xorg_testset_save_CFLAGS"
5808
5809 eval supported=\$$cacheid
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5811 $as_echo "$supported" >&6; }
5812 if test "$supported" = "yes" ; then
5813 BASE_CFLAGS="$BASE_CFLAGS -fd"
5814 found="yes"
5815 fi
5816 fi
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 xorg_testset_save_CFLAGS="$CFLAGS"
5833
5834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5837 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5838 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 xorg_cv_cc_flag_unknown_warning_option=yes
5847 else
5848 xorg_cv_cc_flag_unknown_warning_option=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5853 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5855 CFLAGS="$xorg_testset_save_CFLAGS"
5856 fi
5857
5858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861 fi
5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5864 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5865 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 xorg_cv_cc_flag_unused_command_line_argument=yes
5874 else
5875 xorg_cv_cc_flag_unused_command_line_argument=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5880 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 found="no"
5886
5887 if test $found = "no" ; then
5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890 fi
5891
5892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894 fi
5895
5896 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5899 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5900 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5901 if eval \${$cacheid+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 int i;
5907 int
5908 main ()
5909 {
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_link "$LINENO"; then :
5916 eval $cacheid=yes
5917 else
5918 eval $cacheid=no
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext
5922 fi
5923
5924
5925 CFLAGS="$xorg_testset_save_CFLAGS"
5926
5927 eval supported=\$$cacheid
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5929 $as_echo "$supported" >&6; }
5930 if test "$supported" = "yes" ; then
5931 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5932 found="yes"
5933 fi
5934 fi
5935
5936
5937
5938
5939
5940 # This chunk adds additional warnings that could catch undesired effects.
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 xorg_testset_save_CFLAGS="$CFLAGS"
5955
5956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 int i;
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 xorg_cv_cc_flag_unknown_warning_option=yes
5969 else
5970 xorg_cv_cc_flag_unknown_warning_option=no
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5977 CFLAGS="$xorg_testset_save_CFLAGS"
5978 fi
5979
5980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 fi
5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 xorg_cv_cc_flag_unused_command_line_argument=yes
5996 else
5997 xorg_cv_cc_flag_unused_command_line_argument=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6004 CFLAGS="$xorg_testset_save_CFLAGS"
6005 fi
6006
6007 found="no"
6008
6009 if test $found = "no" ; then
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 fi
6013
6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016 fi
6017
6018 CFLAGS="$CFLAGS -Wunused"
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6021 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6022 cacheid=xorg_cv_cc_flag__Wunused
6023 if eval \${$cacheid+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 int i;
6029 int
6030 main ()
6031 {
6032
6033 ;
6034 return 0;
6035 }
6036 _ACEOF
6037 if ac_fn_c_try_link "$LINENO"; then :
6038 eval $cacheid=yes
6039 else
6040 eval $cacheid=no
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6044 fi
6045
6046
6047 CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049 eval supported=\$$cacheid
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051 $as_echo "$supported" >&6; }
6052 if test "$supported" = "yes" ; then
6053 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6054 found="yes"
6055 fi
6056 fi
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 xorg_testset_save_CFLAGS="$CFLAGS"
6073
6074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 int i;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 xorg_cv_cc_flag_unknown_warning_option=yes
6087 else
6088 xorg_cv_cc_flag_unknown_warning_option=no
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6095 CFLAGS="$xorg_testset_save_CFLAGS"
6096 fi
6097
6098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 xorg_cv_cc_flag_unused_command_line_argument=yes
6114 else
6115 xorg_cv_cc_flag_unused_command_line_argument=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 found="no"
6126
6127 if test $found = "no" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131
6132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6134 fi
6135
6136 CFLAGS="$CFLAGS -Wuninitialized"
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6139 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6140 cacheid=xorg_cv_cc_flag__Wuninitialized
6141 if eval \${$cacheid+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int i;
6147 int
6148 main ()
6149 {
6150
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 eval $cacheid=yes
6157 else
6158 eval $cacheid=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6162 fi
6163
6164
6165 CFLAGS="$xorg_testset_save_CFLAGS"
6166
6167 eval supported=\$$cacheid
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6169 $as_echo "$supported" >&6; }
6170 if test "$supported" = "yes" ; then
6171 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6172 found="yes"
6173 fi
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 xorg_testset_save_CFLAGS="$CFLAGS"
6191
6192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 int i;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204 xorg_cv_cc_flag_unknown_warning_option=yes
6205 else
6206 xorg_cv_cc_flag_unknown_warning_option=no
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6213 CFLAGS="$xorg_testset_save_CFLAGS"
6214 fi
6215
6216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 int i;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 xorg_cv_cc_flag_unused_command_line_argument=yes
6232 else
6233 xorg_cv_cc_flag_unused_command_line_argument=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 found="no"
6244
6245 if test $found = "no" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249
6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 fi
6253
6254 CFLAGS="$CFLAGS -Wshadow"
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6257 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6258 cacheid=xorg_cv_cc_flag__Wshadow
6259 if eval \${$cacheid+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 int i;
6265 int
6266 main ()
6267 {
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_link "$LINENO"; then :
6274 eval $cacheid=yes
6275 else
6276 eval $cacheid=no
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 fi
6281
6282
6283 CFLAGS="$xorg_testset_save_CFLAGS"
6284
6285 eval supported=\$$cacheid
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6287 $as_echo "$supported" >&6; }
6288 if test "$supported" = "yes" ; then
6289 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6290 found="yes"
6291 fi
6292 fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 xorg_testset_save_CFLAGS="$CFLAGS"
6309
6310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int i;
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 xorg_cv_cc_flag_unknown_warning_option=yes
6323 else
6324 xorg_cv_cc_flag_unknown_warning_option=no
6325 fi
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6331 CFLAGS="$xorg_testset_save_CFLAGS"
6332 fi
6333
6334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337 fi
6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 xorg_cv_cc_flag_unused_command_line_argument=yes
6350 else
6351 xorg_cv_cc_flag_unused_command_line_argument=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6358 CFLAGS="$xorg_testset_save_CFLAGS"
6359 fi
6360
6361 found="no"
6362
6363 if test $found = "no" ; then
6364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366 fi
6367
6368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6370 fi
6371
6372 CFLAGS="$CFLAGS -Wmissing-noreturn"
6373
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6375 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6376 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6377 if eval \${$cacheid+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 int i;
6383 int
6384 main ()
6385 {
6386
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 eval $cacheid=yes
6393 else
6394 eval $cacheid=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 fi
6399
6400
6401 CFLAGS="$xorg_testset_save_CFLAGS"
6402
6403 eval supported=\$$cacheid
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6405 $as_echo "$supported" >&6; }
6406 if test "$supported" = "yes" ; then
6407 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6408 found="yes"
6409 fi
6410 fi
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426 xorg_testset_save_CFLAGS="$CFLAGS"
6427
6428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 int i;
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"; then :
6440 xorg_cv_cc_flag_unknown_warning_option=yes
6441 else
6442 xorg_cv_cc_flag_unknown_warning_option=no
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6449 CFLAGS="$xorg_testset_save_CFLAGS"
6450 fi
6451
6452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455 fi
6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 xorg_cv_cc_flag_unused_command_line_argument=yes
6468 else
6469 xorg_cv_cc_flag_unused_command_line_argument=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6476 CFLAGS="$xorg_testset_save_CFLAGS"
6477 fi
6478
6479 found="no"
6480
6481 if test $found = "no" ; then
6482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484 fi
6485
6486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6488 fi
6489
6490 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6493 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6494 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6495 if eval \${$cacheid+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 int i;
6501 int
6502 main ()
6503 {
6504
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 if ac_fn_c_try_link "$LINENO"; then :
6510 eval $cacheid=yes
6511 else
6512 eval $cacheid=no
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516 fi
6517
6518
6519 CFLAGS="$xorg_testset_save_CFLAGS"
6520
6521 eval supported=\$$cacheid
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6523 $as_echo "$supported" >&6; }
6524 if test "$supported" = "yes" ; then
6525 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6526 found="yes"
6527 fi
6528 fi
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544 xorg_testset_save_CFLAGS="$CFLAGS"
6545
6546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 int i;
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 xorg_cv_cc_flag_unknown_warning_option=yes
6559 else
6560 xorg_cv_cc_flag_unknown_warning_option=no
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6567 CFLAGS="$xorg_testset_save_CFLAGS"
6568 fi
6569
6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573 fi
6574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 int i;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 xorg_cv_cc_flag_unused_command_line_argument=yes
6586 else
6587 xorg_cv_cc_flag_unused_command_line_argument=no
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6594 CFLAGS="$xorg_testset_save_CFLAGS"
6595 fi
6596
6597 found="no"
6598
6599 if test $found = "no" ; then
6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602 fi
6603
6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6606 fi
6607
6608 CFLAGS="$CFLAGS -Wredundant-decls"
6609
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6611 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6612 cacheid=xorg_cv_cc_flag__Wredundant_decls
6613 if eval \${$cacheid+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 int i;
6619 int
6620 main ()
6621 {
6622
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_link "$LINENO"; then :
6628 eval $cacheid=yes
6629 else
6630 eval $cacheid=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
6634 fi
6635
6636
6637 CFLAGS="$xorg_testset_save_CFLAGS"
6638
6639 eval supported=\$$cacheid
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6641 $as_echo "$supported" >&6; }
6642 if test "$supported" = "yes" ; then
6643 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6644 found="yes"
6645 fi
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 xorg_testset_save_CFLAGS="$CFLAGS"
6663
6664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int i;
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"; then :
6676 xorg_cv_cc_flag_unknown_warning_option=yes
6677 else
6678 xorg_cv_cc_flag_unknown_warning_option=no
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 fi
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6685 CFLAGS="$xorg_testset_save_CFLAGS"
6686 fi
6687
6688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691 fi
6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int i;
6701 _ACEOF
6702 if ac_fn_c_try_compile "$LINENO"; then :
6703 xorg_cv_cc_flag_unused_command_line_argument=yes
6704 else
6705 xorg_cv_cc_flag_unused_command_line_argument=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713 fi
6714
6715 found="no"
6716
6717 if test $found = "no" ; then
6718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720 fi
6721
6722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6724 fi
6725
6726 CFLAGS="$CFLAGS -Wlogical-op"
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6729 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6730 cacheid=xorg_cv_cc_flag__Wlogical_op
6731 if eval \${$cacheid+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 int i;
6737 int
6738 main ()
6739 {
6740
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"; then :
6746 eval $cacheid=yes
6747 else
6748 eval $cacheid=no
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 fi
6753
6754
6755 CFLAGS="$xorg_testset_save_CFLAGS"
6756
6757 eval supported=\$$cacheid
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6759 $as_echo "$supported" >&6; }
6760 if test "$supported" = "yes" ; then
6761 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6762 found="yes"
6763 fi
6764 fi
6765
6766
6767
6768 # These are currently disabled because they are noisy. They will be enabled
6769 # in the future once the codebase is sufficiently modernized to silence
6770 # them. For now, I don't want them to drown out the other warnings.
6771 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6772 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6773 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6774
6775 # Turn some warnings into errors, so we don't accidently get successful builds
6776 # when there are problems that should be fixed.
6777
6778 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 xorg_testset_save_CFLAGS="$CFLAGS"
6793
6794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 xorg_cv_cc_flag_unknown_warning_option=yes
6807 else
6808 xorg_cv_cc_flag_unknown_warning_option=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6815 CFLAGS="$xorg_testset_save_CFLAGS"
6816 fi
6817
6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 int i;
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 xorg_cv_cc_flag_unused_command_line_argument=yes
6834 else
6835 xorg_cv_cc_flag_unused_command_line_argument=no
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6842 CFLAGS="$xorg_testset_save_CFLAGS"
6843 fi
6844
6845 found="no"
6846
6847 if test $found = "no" ; then
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 fi
6851
6852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6854 fi
6855
6856 CFLAGS="$CFLAGS -Werror=implicit"
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6859 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6860 cacheid=xorg_cv_cc_flag__Werror_implicit
6861 if eval \${$cacheid+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 int i;
6867 int
6868 main ()
6869 {
6870
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 eval $cacheid=yes
6877 else
6878 eval $cacheid=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 fi
6883
6884
6885 CFLAGS="$xorg_testset_save_CFLAGS"
6886
6887 eval supported=\$$cacheid
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6889 $as_echo "$supported" >&6; }
6890 if test "$supported" = "yes" ; then
6891 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6892 found="yes"
6893 fi
6894 fi
6895
6896 if test $found = "no" ; then
6897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6899 fi
6900
6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903 fi
6904
6905 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6906
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6908 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6909 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6910 if eval \${$cacheid+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 int i;
6916 int
6917 main ()
6918 {
6919
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925 eval $cacheid=yes
6926 else
6927 eval $cacheid=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6931 fi
6932
6933
6934 CFLAGS="$xorg_testset_save_CFLAGS"
6935
6936 eval supported=\$$cacheid
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6938 $as_echo "$supported" >&6; }
6939 if test "$supported" = "yes" ; then
6940 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6941 found="yes"
6942 fi
6943 fi
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959 xorg_testset_save_CFLAGS="$CFLAGS"
6960
6961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 int i;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 xorg_cv_cc_flag_unknown_warning_option=yes
6974 else
6975 xorg_cv_cc_flag_unknown_warning_option=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6982 CFLAGS="$xorg_testset_save_CFLAGS"
6983 fi
6984
6985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 fi
6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 xorg_cv_cc_flag_unused_command_line_argument=yes
7001 else
7002 xorg_cv_cc_flag_unused_command_line_argument=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010 fi
7011
7012 found="no"
7013
7014 if test $found = "no" ; then
7015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017 fi
7018
7019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7021 fi
7022
7023 CFLAGS="$CFLAGS -Werror=nonnull"
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7026 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7027 cacheid=xorg_cv_cc_flag__Werror_nonnull
7028 if eval \${$cacheid+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 int i;
7034 int
7035 main ()
7036 {
7037
7038 ;
7039 return 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 eval $cacheid=yes
7044 else
7045 eval $cacheid=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 fi
7050
7051
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7053
7054 eval supported=\$$cacheid
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7056 $as_echo "$supported" >&6; }
7057 if test "$supported" = "yes" ; then
7058 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7059 found="yes"
7060 fi
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 xorg_testset_save_CFLAGS="$CFLAGS"
7078
7079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int i;
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 xorg_cv_cc_flag_unknown_warning_option=yes
7092 else
7093 xorg_cv_cc_flag_unknown_warning_option=no
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7100 CFLAGS="$xorg_testset_save_CFLAGS"
7101 fi
7102
7103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 fi
7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 int i;
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 xorg_cv_cc_flag_unused_command_line_argument=yes
7119 else
7120 xorg_cv_cc_flag_unused_command_line_argument=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7127 CFLAGS="$xorg_testset_save_CFLAGS"
7128 fi
7129
7130 found="no"
7131
7132 if test $found = "no" ; then
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 fi
7136
7137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139 fi
7140
7141 CFLAGS="$CFLAGS -Werror=init-self"
7142
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7144 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7145 cacheid=xorg_cv_cc_flag__Werror_init_self
7146 if eval \${$cacheid+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 int i;
7152 int
7153 main ()
7154 {
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_link "$LINENO"; then :
7161 eval $cacheid=yes
7162 else
7163 eval $cacheid=no
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167 fi
7168
7169
7170 CFLAGS="$xorg_testset_save_CFLAGS"
7171
7172 eval supported=\$$cacheid
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7174 $as_echo "$supported" >&6; }
7175 if test "$supported" = "yes" ; then
7176 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7177 found="yes"
7178 fi
7179 fi
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 xorg_testset_save_CFLAGS="$CFLAGS"
7196
7197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"; then :
7209 xorg_cv_cc_flag_unknown_warning_option=yes
7210 else
7211 xorg_cv_cc_flag_unknown_warning_option=no
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7218 CFLAGS="$xorg_testset_save_CFLAGS"
7219 fi
7220
7221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 fi
7225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int i;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 xorg_cv_cc_flag_unused_command_line_argument=yes
7237 else
7238 xorg_cv_cc_flag_unused_command_line_argument=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7245 CFLAGS="$xorg_testset_save_CFLAGS"
7246 fi
7247
7248 found="no"
7249
7250 if test $found = "no" ; then
7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253 fi
7254
7255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257 fi
7258
7259 CFLAGS="$CFLAGS -Werror=main"
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7262 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7263 cacheid=xorg_cv_cc_flag__Werror_main
7264 if eval \${$cacheid+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 int i;
7270 int
7271 main ()
7272 {
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 eval $cacheid=yes
7280 else
7281 eval $cacheid=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 fi
7286
7287
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7289
7290 eval supported=\$$cacheid
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7292 $as_echo "$supported" >&6; }
7293 if test "$supported" = "yes" ; then
7294 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7295 found="yes"
7296 fi
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 xorg_testset_save_CFLAGS="$CFLAGS"
7314
7315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 int i;
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 xorg_cv_cc_flag_unknown_warning_option=yes
7328 else
7329 xorg_cv_cc_flag_unknown_warning_option=no
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7336 CFLAGS="$xorg_testset_save_CFLAGS"
7337 fi
7338
7339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 _ACEOF
7353 if ac_fn_c_try_compile "$LINENO"; then :
7354 xorg_cv_cc_flag_unused_command_line_argument=yes
7355 else
7356 xorg_cv_cc_flag_unused_command_line_argument=no
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7363 CFLAGS="$xorg_testset_save_CFLAGS"
7364 fi
7365
7366 found="no"
7367
7368 if test $found = "no" ; then
7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371 fi
7372
7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7375 fi
7376
7377 CFLAGS="$CFLAGS -Werror=missing-braces"
7378
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7380 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7381 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7382 if eval \${$cacheid+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 int i;
7388 int
7389 main ()
7390 {
7391
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"; then :
7397 eval $cacheid=yes
7398 else
7399 eval $cacheid=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7403 fi
7404
7405
7406 CFLAGS="$xorg_testset_save_CFLAGS"
7407
7408 eval supported=\$$cacheid
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7410 $as_echo "$supported" >&6; }
7411 if test "$supported" = "yes" ; then
7412 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7413 found="yes"
7414 fi
7415 fi
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 xorg_testset_save_CFLAGS="$CFLAGS"
7432
7433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 int i;
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"; then :
7445 xorg_cv_cc_flag_unknown_warning_option=yes
7446 else
7447 xorg_cv_cc_flag_unknown_warning_option=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454 CFLAGS="$xorg_testset_save_CFLAGS"
7455 fi
7456
7457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 fi
7461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 int i;
7470 _ACEOF
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 xorg_cv_cc_flag_unused_command_line_argument=yes
7473 else
7474 xorg_cv_cc_flag_unused_command_line_argument=no
7475 fi
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7481 CFLAGS="$xorg_testset_save_CFLAGS"
7482 fi
7483
7484 found="no"
7485
7486 if test $found = "no" ; then
7487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 fi
7490
7491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7493 fi
7494
7495 CFLAGS="$CFLAGS -Werror=sequence-point"
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7498 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7499 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7500 if eval \${$cacheid+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 int
7507 main ()
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 eval $cacheid=yes
7516 else
7517 eval $cacheid=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 fi
7522
7523
7524 CFLAGS="$xorg_testset_save_CFLAGS"
7525
7526 eval supported=\$$cacheid
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7528 $as_echo "$supported" >&6; }
7529 if test "$supported" = "yes" ; then
7530 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7531 found="yes"
7532 fi
7533 fi
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549 xorg_testset_save_CFLAGS="$CFLAGS"
7550
7551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 int i;
7561 _ACEOF
7562 if ac_fn_c_try_compile "$LINENO"; then :
7563 xorg_cv_cc_flag_unknown_warning_option=yes
7564 else
7565 xorg_cv_cc_flag_unknown_warning_option=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7572 CFLAGS="$xorg_testset_save_CFLAGS"
7573 fi
7574
7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 fi
7579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 xorg_cv_cc_flag_unused_command_line_argument=yes
7591 else
7592 xorg_cv_cc_flag_unused_command_line_argument=no
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7599 CFLAGS="$xorg_testset_save_CFLAGS"
7600 fi
7601
7602 found="no"
7603
7604 if test $found = "no" ; then
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 fi
7608
7609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7611 fi
7612
7613 CFLAGS="$CFLAGS -Werror=return-type"
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7616 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7617 cacheid=xorg_cv_cc_flag__Werror_return_type
7618 if eval \${$cacheid+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 int i;
7624 int
7625 main ()
7626 {
7627
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_link "$LINENO"; then :
7633 eval $cacheid=yes
7634 else
7635 eval $cacheid=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 fi
7640
7641
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7643
7644 eval supported=\$$cacheid
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7646 $as_echo "$supported" >&6; }
7647 if test "$supported" = "yes" ; then
7648 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7649 found="yes"
7650 fi
7651 fi
7652
7653 if test $found = "no" ; then
7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656 fi
7657
7658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660 fi
7661
7662 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7663
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7665 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7666 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7667 if eval \${$cacheid+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 int i;
7673 int
7674 main ()
7675 {
7676
7677 ;
7678 return 0;
7679 }
7680 _ACEOF
7681 if ac_fn_c_try_link "$LINENO"; then :
7682 eval $cacheid=yes
7683 else
7684 eval $cacheid=no
7685 fi
7686 rm -f core conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688 fi
7689
7690
7691 CFLAGS="$xorg_testset_save_CFLAGS"
7692
7693 eval supported=\$$cacheid
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7695 $as_echo "$supported" >&6; }
7696 if test "$supported" = "yes" ; then
7697 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7698 found="yes"
7699 fi
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 xorg_testset_save_CFLAGS="$CFLAGS"
7717
7718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 int i;
7728 _ACEOF
7729 if ac_fn_c_try_compile "$LINENO"; then :
7730 xorg_cv_cc_flag_unknown_warning_option=yes
7731 else
7732 xorg_cv_cc_flag_unknown_warning_option=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740 fi
7741
7742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745 fi
7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 xorg_cv_cc_flag_unused_command_line_argument=yes
7758 else
7759 xorg_cv_cc_flag_unused_command_line_argument=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 found="no"
7770
7771 if test $found = "no" ; then
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 fi
7775
7776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778 fi
7779
7780 CFLAGS="$CFLAGS -Werror=trigraphs"
7781
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7783 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7784 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7785 if eval \${$cacheid+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 int i;
7791 int
7792 main ()
7793 {
7794
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_link "$LINENO"; then :
7800 eval $cacheid=yes
7801 else
7802 eval $cacheid=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806 fi
7807
7808
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810
7811 eval supported=\$$cacheid
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7813 $as_echo "$supported" >&6; }
7814 if test "$supported" = "yes" ; then
7815 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7816 found="yes"
7817 fi
7818 fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834 xorg_testset_save_CFLAGS="$CFLAGS"
7835
7836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int i;
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"; then :
7848 xorg_cv_cc_flag_unknown_warning_option=yes
7849 else
7850 xorg_cv_cc_flag_unknown_warning_option=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7857 CFLAGS="$xorg_testset_save_CFLAGS"
7858 fi
7859
7860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863 fi
7864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 xorg_cv_cc_flag_unused_command_line_argument=yes
7876 else
7877 xorg_cv_cc_flag_unused_command_line_argument=no
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7884 CFLAGS="$xorg_testset_save_CFLAGS"
7885 fi
7886
7887 found="no"
7888
7889 if test $found = "no" ; then
7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892 fi
7893
7894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7896 fi
7897
7898 CFLAGS="$CFLAGS -Werror=array-bounds"
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7901 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7902 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7903 if eval \${$cacheid+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 int i;
7909 int
7910 main ()
7911 {
7912
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 eval $cacheid=yes
7919 else
7920 eval $cacheid=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 fi
7925
7926
7927 CFLAGS="$xorg_testset_save_CFLAGS"
7928
7929 eval supported=\$$cacheid
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7931 $as_echo "$supported" >&6; }
7932 if test "$supported" = "yes" ; then
7933 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7934 found="yes"
7935 fi
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952 xorg_testset_save_CFLAGS="$CFLAGS"
7953
7954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int i;
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"; then :
7966 xorg_cv_cc_flag_unknown_warning_option=yes
7967 else
7968 xorg_cv_cc_flag_unknown_warning_option=no
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7975 CFLAGS="$xorg_testset_save_CFLAGS"
7976 fi
7977
7978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 fi
7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993 xorg_cv_cc_flag_unused_command_line_argument=yes
7994 else
7995 xorg_cv_cc_flag_unused_command_line_argument=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8002 CFLAGS="$xorg_testset_save_CFLAGS"
8003 fi
8004
8005 found="no"
8006
8007 if test $found = "no" ; then
8008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010 fi
8011
8012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014 fi
8015
8016 CFLAGS="$CFLAGS -Werror=write-strings"
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8019 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8020 cacheid=xorg_cv_cc_flag__Werror_write_strings
8021 if eval \${$cacheid+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 int i;
8027 int
8028 main ()
8029 {
8030
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then :
8036 eval $cacheid=yes
8037 else
8038 eval $cacheid=no
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 fi
8043
8044
8045 CFLAGS="$xorg_testset_save_CFLAGS"
8046
8047 eval supported=\$$cacheid
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8049 $as_echo "$supported" >&6; }
8050 if test "$supported" = "yes" ; then
8051 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8052 found="yes"
8053 fi
8054 fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 xorg_testset_save_CFLAGS="$CFLAGS"
8071
8072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 int i;
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084 xorg_cv_cc_flag_unknown_warning_option=yes
8085 else
8086 xorg_cv_cc_flag_unknown_warning_option=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8093 CFLAGS="$xorg_testset_save_CFLAGS"
8094 fi
8095
8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099 fi
8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int i;
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 xorg_cv_cc_flag_unused_command_line_argument=yes
8112 else
8113 xorg_cv_cc_flag_unused_command_line_argument=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8120 CFLAGS="$xorg_testset_save_CFLAGS"
8121 fi
8122
8123 found="no"
8124
8125 if test $found = "no" ; then
8126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128 fi
8129
8130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8132 fi
8133
8134 CFLAGS="$CFLAGS -Werror=address"
8135
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8137 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8138 cacheid=xorg_cv_cc_flag__Werror_address
8139 if eval \${$cacheid+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 int i;
8145 int
8146 main ()
8147 {
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_link "$LINENO"; then :
8154 eval $cacheid=yes
8155 else
8156 eval $cacheid=no
8157 fi
8158 rm -f core conftest.err conftest.$ac_objext \
8159 conftest$ac_exeext conftest.$ac_ext
8160 fi
8161
8162
8163 CFLAGS="$xorg_testset_save_CFLAGS"
8164
8165 eval supported=\$$cacheid
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8167 $as_echo "$supported" >&6; }
8168 if test "$supported" = "yes" ; then
8169 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8170 found="yes"
8171 fi
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 xorg_testset_save_CFLAGS="$CFLAGS"
8189
8190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8193 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8194 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 int i;
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202 xorg_cv_cc_flag_unknown_warning_option=yes
8203 else
8204 xorg_cv_cc_flag_unknown_warning_option=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8209 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8211 CFLAGS="$xorg_testset_save_CFLAGS"
8212 fi
8213
8214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 fi
8218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8220 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8221 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 int i;
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 xorg_cv_cc_flag_unused_command_line_argument=yes
8230 else
8231 xorg_cv_cc_flag_unused_command_line_argument=no
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239 fi
8240
8241 found="no"
8242
8243 if test $found = "no" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247
8248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8250 fi
8251
8252 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8253
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8255 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8256 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8257 if eval \${$cacheid+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 int i;
8263 int
8264 main ()
8265 {
8266
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_link "$LINENO"; then :
8272 eval $cacheid=yes
8273 else
8274 eval $cacheid=no
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 fi
8279
8280
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282
8283 eval supported=\$$cacheid
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8285 $as_echo "$supported" >&6; }
8286 if test "$supported" = "yes" ; then
8287 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8288 found="yes"
8289 fi
8290 fi
8291
8292 if test $found = "no" ; then
8293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295 fi
8296
8297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299 fi
8300
8301 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8304 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8305 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8306 if eval \${$cacheid+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 int i;
8312 int
8313 main ()
8314 {
8315
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"; then :
8321 eval $cacheid=yes
8322 else
8323 eval $cacheid=no
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 fi
8328
8329
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8331
8332 eval supported=\$$cacheid
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8334 $as_echo "$supported" >&6; }
8335 if test "$supported" = "yes" ; then
8336 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8337 found="yes"
8338 fi
8339 fi
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355 xorg_testset_save_CFLAGS="$CFLAGS"
8356
8357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int i;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 xorg_cv_cc_flag_unknown_warning_option=yes
8370 else
8371 xorg_cv_cc_flag_unknown_warning_option=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379 fi
8380
8381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384 fi
8385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 xorg_cv_cc_flag_unused_command_line_argument=yes
8397 else
8398 xorg_cv_cc_flag_unused_command_line_argument=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406 fi
8407
8408 found="no"
8409
8410 if test $found = "no" ; then
8411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413 fi
8414
8415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417 fi
8418
8419 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8422 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8423 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8424 if eval \${$cacheid+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 int i;
8430 int
8431 main ()
8432 {
8433
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_link "$LINENO"; then :
8439 eval $cacheid=yes
8440 else
8441 eval $cacheid=no
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 fi
8446
8447
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450 eval supported=\$$cacheid
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452 $as_echo "$supported" >&6; }
8453 if test "$supported" = "yes" ; then
8454 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8455 found="yes"
8456 fi
8457 fi
8458
8459 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8460 else
8461 { $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
8462 $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;}
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 xorg_testset_save_CFLAGS="$CFLAGS"
8477
8478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8481 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8482 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 int i;
8488 _ACEOF
8489 if ac_fn_c_try_compile "$LINENO"; then :
8490 xorg_cv_cc_flag_unknown_warning_option=yes
8491 else
8492 xorg_cv_cc_flag_unknown_warning_option=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 fi
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8497 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8499 CFLAGS="$xorg_testset_save_CFLAGS"
8500 fi
8501
8502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505 fi
8506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8508 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8509 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 xorg_cv_cc_flag_unused_command_line_argument=yes
8518 else
8519 xorg_cv_cc_flag_unused_command_line_argument=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8524 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8526 CFLAGS="$xorg_testset_save_CFLAGS"
8527 fi
8528
8529 found="no"
8530
8531 if test $found = "no" ; then
8532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534 fi
8535
8536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538 fi
8539
8540 CFLAGS="$CFLAGS -Wimplicit"
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8543 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8544 cacheid=xorg_cv_cc_flag__Wimplicit
8545 if eval \${$cacheid+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 int i;
8551 int
8552 main ()
8553 {
8554
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"; then :
8560 eval $cacheid=yes
8561 else
8562 eval $cacheid=no
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 fi
8567
8568
8569 CFLAGS="$xorg_testset_save_CFLAGS"
8570
8571 eval supported=\$$cacheid
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8573 $as_echo "$supported" >&6; }
8574 if test "$supported" = "yes" ; then
8575 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8576 found="yes"
8577 fi
8578 fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594 xorg_testset_save_CFLAGS="$CFLAGS"
8595
8596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8599 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8600 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"; then :
8608 xorg_cv_cc_flag_unknown_warning_option=yes
8609 else
8610 xorg_cv_cc_flag_unknown_warning_option=no
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8615 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8617 CFLAGS="$xorg_testset_save_CFLAGS"
8618 fi
8619
8620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623 fi
8624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8626 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8627 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 int i;
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"; then :
8635 xorg_cv_cc_flag_unused_command_line_argument=yes
8636 else
8637 xorg_cv_cc_flag_unused_command_line_argument=no
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8642 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8644 CFLAGS="$xorg_testset_save_CFLAGS"
8645 fi
8646
8647 found="no"
8648
8649 if test $found = "no" ; then
8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652 fi
8653
8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8656 fi
8657
8658 CFLAGS="$CFLAGS -Wnonnull"
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8661 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8662 cacheid=xorg_cv_cc_flag__Wnonnull
8663 if eval \${$cacheid+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 int i;
8669 int
8670 main ()
8671 {
8672
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_c_try_link "$LINENO"; then :
8678 eval $cacheid=yes
8679 else
8680 eval $cacheid=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684 fi
8685
8686
8687 CFLAGS="$xorg_testset_save_CFLAGS"
8688
8689 eval supported=\$$cacheid
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8691 $as_echo "$supported" >&6; }
8692 if test "$supported" = "yes" ; then
8693 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8694 found="yes"
8695 fi
8696 fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712 xorg_testset_save_CFLAGS="$CFLAGS"
8713
8714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8717 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8718 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 int i;
8724 _ACEOF
8725 if ac_fn_c_try_compile "$LINENO"; then :
8726 xorg_cv_cc_flag_unknown_warning_option=yes
8727 else
8728 xorg_cv_cc_flag_unknown_warning_option=no
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8733 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8735 CFLAGS="$xorg_testset_save_CFLAGS"
8736 fi
8737
8738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741 fi
8742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8744 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8745 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 int i;
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"; then :
8753 xorg_cv_cc_flag_unused_command_line_argument=yes
8754 else
8755 xorg_cv_cc_flag_unused_command_line_argument=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8760 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8762 CFLAGS="$xorg_testset_save_CFLAGS"
8763 fi
8764
8765 found="no"
8766
8767 if test $found = "no" ; then
8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770 fi
8771
8772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8774 fi
8775
8776 CFLAGS="$CFLAGS -Winit-self"
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8779 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8780 cacheid=xorg_cv_cc_flag__Winit_self
8781 if eval \${$cacheid+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 int i;
8787 int
8788 main ()
8789 {
8790
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796 eval $cacheid=yes
8797 else
8798 eval $cacheid=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 fi
8803
8804
8805 CFLAGS="$xorg_testset_save_CFLAGS"
8806
8807 eval supported=\$$cacheid
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8809 $as_echo "$supported" >&6; }
8810 if test "$supported" = "yes" ; then
8811 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8812 found="yes"
8813 fi
8814 fi
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 xorg_testset_save_CFLAGS="$CFLAGS"
8831
8832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8835 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8836 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 int i;
8842 _ACEOF
8843 if ac_fn_c_try_compile "$LINENO"; then :
8844 xorg_cv_cc_flag_unknown_warning_option=yes
8845 else
8846 xorg_cv_cc_flag_unknown_warning_option=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8851 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8853 CFLAGS="$xorg_testset_save_CFLAGS"
8854 fi
8855
8856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859 fi
8860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8862 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8863 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 int i;
8869 _ACEOF
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 xorg_cv_cc_flag_unused_command_line_argument=yes
8872 else
8873 xorg_cv_cc_flag_unused_command_line_argument=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8878 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 found="no"
8884
8885 if test $found = "no" ; then
8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889
8890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8892 fi
8893
8894 CFLAGS="$CFLAGS -Wmain"
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8897 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8898 cacheid=xorg_cv_cc_flag__Wmain
8899 if eval \${$cacheid+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 int i;
8905 int
8906 main ()
8907 {
8908
8909 ;
8910 return 0;
8911 }
8912 _ACEOF
8913 if ac_fn_c_try_link "$LINENO"; then :
8914 eval $cacheid=yes
8915 else
8916 eval $cacheid=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 fi
8921
8922
8923 CFLAGS="$xorg_testset_save_CFLAGS"
8924
8925 eval supported=\$$cacheid
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8927 $as_echo "$supported" >&6; }
8928 if test "$supported" = "yes" ; then
8929 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8930 found="yes"
8931 fi
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948 xorg_testset_save_CFLAGS="$CFLAGS"
8949
8950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8953 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8954 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 int i;
8960 _ACEOF
8961 if ac_fn_c_try_compile "$LINENO"; then :
8962 xorg_cv_cc_flag_unknown_warning_option=yes
8963 else
8964 xorg_cv_cc_flag_unknown_warning_option=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8969 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8971 CFLAGS="$xorg_testset_save_CFLAGS"
8972 fi
8973
8974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977 fi
8978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8980 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8981 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"; then :
8989 xorg_cv_cc_flag_unused_command_line_argument=yes
8990 else
8991 xorg_cv_cc_flag_unused_command_line_argument=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8996 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999 fi
9000
9001 found="no"
9002
9003 if test $found = "no" ; then
9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006 fi
9007
9008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9010 fi
9011
9012 CFLAGS="$CFLAGS -Wmissing-braces"
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9015 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9016 cacheid=xorg_cv_cc_flag__Wmissing_braces
9017 if eval \${$cacheid+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 int i;
9023 int
9024 main ()
9025 {
9026
9027 ;
9028 return 0;
9029 }
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032 eval $cacheid=yes
9033 else
9034 eval $cacheid=no
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 fi
9039
9040
9041 CFLAGS="$xorg_testset_save_CFLAGS"
9042
9043 eval supported=\$$cacheid
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9045 $as_echo "$supported" >&6; }
9046 if test "$supported" = "yes" ; then
9047 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9048 found="yes"
9049 fi
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066 xorg_testset_save_CFLAGS="$CFLAGS"
9067
9068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9071 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9072 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 int i;
9078 _ACEOF
9079 if ac_fn_c_try_compile "$LINENO"; then :
9080 xorg_cv_cc_flag_unknown_warning_option=yes
9081 else
9082 xorg_cv_cc_flag_unknown_warning_option=no
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9087 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9089 CFLAGS="$xorg_testset_save_CFLAGS"
9090 fi
9091
9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095 fi
9096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9098 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9099 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"; then :
9107 xorg_cv_cc_flag_unused_command_line_argument=yes
9108 else
9109 xorg_cv_cc_flag_unused_command_line_argument=no
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9114 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9116 CFLAGS="$xorg_testset_save_CFLAGS"
9117 fi
9118
9119 found="no"
9120
9121 if test $found = "no" ; then
9122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124 fi
9125
9126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9128 fi
9129
9130 CFLAGS="$CFLAGS -Wsequence-point"
9131
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9133 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9134 cacheid=xorg_cv_cc_flag__Wsequence_point
9135 if eval \${$cacheid+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 int i;
9141 int
9142 main ()
9143 {
9144
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 if ac_fn_c_try_link "$LINENO"; then :
9150 eval $cacheid=yes
9151 else
9152 eval $cacheid=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 fi
9157
9158
9159 CFLAGS="$xorg_testset_save_CFLAGS"
9160
9161 eval supported=\$$cacheid
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9163 $as_echo "$supported" >&6; }
9164 if test "$supported" = "yes" ; then
9165 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9166 found="yes"
9167 fi
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184 xorg_testset_save_CFLAGS="$CFLAGS"
9185
9186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9189 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9190 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 int i;
9196 _ACEOF
9197 if ac_fn_c_try_compile "$LINENO"; then :
9198 xorg_cv_cc_flag_unknown_warning_option=yes
9199 else
9200 xorg_cv_cc_flag_unknown_warning_option=no
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9205 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9207 CFLAGS="$xorg_testset_save_CFLAGS"
9208 fi
9209
9210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213 fi
9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9216 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9217 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 xorg_cv_cc_flag_unused_command_line_argument=yes
9226 else
9227 xorg_cv_cc_flag_unused_command_line_argument=no
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9232 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9234 CFLAGS="$xorg_testset_save_CFLAGS"
9235 fi
9236
9237 found="no"
9238
9239 if test $found = "no" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243
9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9246 fi
9247
9248 CFLAGS="$CFLAGS -Wreturn-type"
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9251 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9252 cacheid=xorg_cv_cc_flag__Wreturn_type
9253 if eval \${$cacheid+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 int i;
9259 int
9260 main ()
9261 {
9262
9263 ;
9264 return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"; then :
9268 eval $cacheid=yes
9269 else
9270 eval $cacheid=no
9271 fi
9272 rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 fi
9275
9276
9277 CFLAGS="$xorg_testset_save_CFLAGS"
9278
9279 eval supported=\$$cacheid
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9281 $as_echo "$supported" >&6; }
9282 if test "$supported" = "yes" ; then
9283 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9284 found="yes"
9285 fi
9286 fi
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 xorg_testset_save_CFLAGS="$CFLAGS"
9303
9304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9313 int i;
9314 _ACEOF
9315 if ac_fn_c_try_compile "$LINENO"; then :
9316 xorg_cv_cc_flag_unknown_warning_option=yes
9317 else
9318 xorg_cv_cc_flag_unknown_warning_option=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9325 CFLAGS="$xorg_testset_save_CFLAGS"
9326 fi
9327
9328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331 fi
9332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 _ACEOF
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 xorg_cv_cc_flag_unused_command_line_argument=yes
9344 else
9345 xorg_cv_cc_flag_unused_command_line_argument=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9352 CFLAGS="$xorg_testset_save_CFLAGS"
9353 fi
9354
9355 found="no"
9356
9357 if test $found = "no" ; then
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 fi
9361
9362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9364 fi
9365
9366 CFLAGS="$CFLAGS -Wtrigraphs"
9367
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9369 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9370 cacheid=xorg_cv_cc_flag__Wtrigraphs
9371 if eval \${$cacheid+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 int i;
9377 int
9378 main ()
9379 {
9380
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_link "$LINENO"; then :
9386 eval $cacheid=yes
9387 else
9388 eval $cacheid=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 fi
9393
9394
9395 CFLAGS="$xorg_testset_save_CFLAGS"
9396
9397 eval supported=\$$cacheid
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9399 $as_echo "$supported" >&6; }
9400 if test "$supported" = "yes" ; then
9401 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9402 found="yes"
9403 fi
9404 fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420 xorg_testset_save_CFLAGS="$CFLAGS"
9421
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9425 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9426 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 int i;
9432 _ACEOF
9433 if ac_fn_c_try_compile "$LINENO"; then :
9434 xorg_cv_cc_flag_unknown_warning_option=yes
9435 else
9436 xorg_cv_cc_flag_unknown_warning_option=no
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9441 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9443 CFLAGS="$xorg_testset_save_CFLAGS"
9444 fi
9445
9446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449 fi
9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9452 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9453 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 _ACEOF
9460 if ac_fn_c_try_compile "$LINENO"; then :
9461 xorg_cv_cc_flag_unused_command_line_argument=yes
9462 else
9463 xorg_cv_cc_flag_unused_command_line_argument=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9468 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9470 CFLAGS="$xorg_testset_save_CFLAGS"
9471 fi
9472
9473 found="no"
9474
9475 if test $found = "no" ; then
9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478 fi
9479
9480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482 fi
9483
9484 CFLAGS="$CFLAGS -Warray-bounds"
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9487 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9488 cacheid=xorg_cv_cc_flag__Warray_bounds
9489 if eval \${$cacheid+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 int i;
9495 int
9496 main ()
9497 {
9498
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504 eval $cacheid=yes
9505 else
9506 eval $cacheid=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 fi
9511
9512
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514
9515 eval supported=\$$cacheid
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9517 $as_echo "$supported" >&6; }
9518 if test "$supported" = "yes" ; then
9519 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9520 found="yes"
9521 fi
9522 fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538 xorg_testset_save_CFLAGS="$CFLAGS"
9539
9540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9544 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 int i;
9550 _ACEOF
9551 if ac_fn_c_try_compile "$LINENO"; then :
9552 xorg_cv_cc_flag_unknown_warning_option=yes
9553 else
9554 xorg_cv_cc_flag_unknown_warning_option=no
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9559 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9561 CFLAGS="$xorg_testset_save_CFLAGS"
9562 fi
9563
9564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 fi
9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9571 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 _ACEOF
9578 if ac_fn_c_try_compile "$LINENO"; then :
9579 xorg_cv_cc_flag_unused_command_line_argument=yes
9580 else
9581 xorg_cv_cc_flag_unused_command_line_argument=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9586 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9588 CFLAGS="$xorg_testset_save_CFLAGS"
9589 fi
9590
9591 found="no"
9592
9593 if test $found = "no" ; then
9594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596 fi
9597
9598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 fi
9601
9602 CFLAGS="$CFLAGS -Wwrite-strings"
9603
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9605 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9606 cacheid=xorg_cv_cc_flag__Wwrite_strings
9607 if eval \${$cacheid+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 int i;
9613 int
9614 main ()
9615 {
9616
9617 ;
9618 return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 eval $cacheid=yes
9623 else
9624 eval $cacheid=no
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 fi
9629
9630
9631 CFLAGS="$xorg_testset_save_CFLAGS"
9632
9633 eval supported=\$$cacheid
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9635 $as_echo "$supported" >&6; }
9636 if test "$supported" = "yes" ; then
9637 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9638 found="yes"
9639 fi
9640 fi
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656 xorg_testset_save_CFLAGS="$CFLAGS"
9657
9658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9662 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 int i;
9668 _ACEOF
9669 if ac_fn_c_try_compile "$LINENO"; then :
9670 xorg_cv_cc_flag_unknown_warning_option=yes
9671 else
9672 xorg_cv_cc_flag_unknown_warning_option=no
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9677 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9679 CFLAGS="$xorg_testset_save_CFLAGS"
9680 fi
9681
9682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 fi
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9688 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9689 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 int i;
9695 _ACEOF
9696 if ac_fn_c_try_compile "$LINENO"; then :
9697 xorg_cv_cc_flag_unused_command_line_argument=yes
9698 else
9699 xorg_cv_cc_flag_unused_command_line_argument=no
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9704 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9706 CFLAGS="$xorg_testset_save_CFLAGS"
9707 fi
9708
9709 found="no"
9710
9711 if test $found = "no" ; then
9712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714 fi
9715
9716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9718 fi
9719
9720 CFLAGS="$CFLAGS -Waddress"
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9723 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9724 cacheid=xorg_cv_cc_flag__Waddress
9725 if eval \${$cacheid+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 int i;
9731 int
9732 main ()
9733 {
9734
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 if ac_fn_c_try_link "$LINENO"; then :
9740 eval $cacheid=yes
9741 else
9742 eval $cacheid=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 fi
9747
9748
9749 CFLAGS="$xorg_testset_save_CFLAGS"
9750
9751 eval supported=\$$cacheid
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9753 $as_echo "$supported" >&6; }
9754 if test "$supported" = "yes" ; then
9755 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9756 found="yes"
9757 fi
9758 fi
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774 xorg_testset_save_CFLAGS="$CFLAGS"
9775
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9779 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9780 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int i;
9786 _ACEOF
9787 if ac_fn_c_try_compile "$LINENO"; then :
9788 xorg_cv_cc_flag_unknown_warning_option=yes
9789 else
9790 xorg_cv_cc_flag_unknown_warning_option=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9795 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9797 CFLAGS="$xorg_testset_save_CFLAGS"
9798 fi
9799
9800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803 fi
9804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9806 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9807 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 _ACEOF
9814 if ac_fn_c_try_compile "$LINENO"; then :
9815 xorg_cv_cc_flag_unused_command_line_argument=yes
9816 else
9817 xorg_cv_cc_flag_unused_command_line_argument=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9822 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9824 CFLAGS="$xorg_testset_save_CFLAGS"
9825 fi
9826
9827 found="no"
9828
9829 if test $found = "no" ; then
9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832 fi
9833
9834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9836 fi
9837
9838 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9841 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9842 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9843 if eval \${$cacheid+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 int i;
9849 int
9850 main ()
9851 {
9852
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 eval $cacheid=yes
9859 else
9860 eval $cacheid=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 fi
9865
9866
9867 CFLAGS="$xorg_testset_save_CFLAGS"
9868
9869 eval supported=\$$cacheid
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9871 $as_echo "$supported" >&6; }
9872 if test "$supported" = "yes" ; then
9873 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9874 found="yes"
9875 fi
9876 fi
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892 xorg_testset_save_CFLAGS="$CFLAGS"
9893
9894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"; then :
9906 xorg_cv_cc_flag_unknown_warning_option=yes
9907 else
9908 xorg_cv_cc_flag_unknown_warning_option=no
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9911 fi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9915 CFLAGS="$xorg_testset_save_CFLAGS"
9916 fi
9917
9918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921 fi
9922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 xorg_cv_cc_flag_unused_command_line_argument=yes
9934 else
9935 xorg_cv_cc_flag_unused_command_line_argument=no
9936 fi
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 fi
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9942 CFLAGS="$xorg_testset_save_CFLAGS"
9943 fi
9944
9945 found="no"
9946
9947 if test $found = "no" ; then
9948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950 fi
9951
9952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9954 fi
9955
9956 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9957
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9959 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9960 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9961 if eval \${$cacheid+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 int i;
9967 int
9968 main ()
9969 {
9970
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976 eval $cacheid=yes
9977 else
9978 eval $cacheid=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 fi
9983
9984
9985 CFLAGS="$xorg_testset_save_CFLAGS"
9986
9987 eval supported=\$$cacheid
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9989 $as_echo "$supported" >&6; }
9990 if test "$supported" = "yes" ; then
9991 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9992 found="yes"
9993 fi
9994 fi
9995
9996
9997 fi
9998
9999
10000
10001
10002
10003
10004
10005 CWARNFLAGS="$BASE_CFLAGS"
10006 if test "x$GCC" = xyes ; then
10007 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016
10017 # Check whether --enable-strict-compilation was given.
10018 if test "${enable_strict_compilation+set}" = set; then :
10019 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10020 else
10021 STRICT_COMPILE=no
10022 fi
10023
10024
10025
10026
10027
10028
10029 STRICT_CFLAGS=""
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043 xorg_testset_save_CFLAGS="$CFLAGS"
10044
10045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int i;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 xorg_cv_cc_flag_unknown_warning_option=yes
10058 else
10059 xorg_cv_cc_flag_unknown_warning_option=no
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067 fi
10068
10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 fi
10073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int i;
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 xorg_cv_cc_flag_unused_command_line_argument=yes
10085 else
10086 xorg_cv_cc_flag_unused_command_line_argument=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10093 CFLAGS="$xorg_testset_save_CFLAGS"
10094 fi
10095
10096 found="no"
10097
10098 if test $found = "no" ; then
10099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101 fi
10102
10103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10105 fi
10106
10107 CFLAGS="$CFLAGS -pedantic"
10108
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10110 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10111 cacheid=xorg_cv_cc_flag__pedantic
10112 if eval \${$cacheid+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10117 int i;
10118 int
10119 main ()
10120 {
10121
10122 ;
10123 return 0;
10124 }
10125 _ACEOF
10126 if ac_fn_c_try_link "$LINENO"; then :
10127 eval $cacheid=yes
10128 else
10129 eval $cacheid=no
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 fi
10134
10135
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137
10138 eval supported=\$$cacheid
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10140 $as_echo "$supported" >&6; }
10141 if test "$supported" = "yes" ; then
10142 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10143 found="yes"
10144 fi
10145 fi
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 xorg_testset_save_CFLAGS="$CFLAGS"
10162
10163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172 int i;
10173 _ACEOF
10174 if ac_fn_c_try_compile "$LINENO"; then :
10175 xorg_cv_cc_flag_unknown_warning_option=yes
10176 else
10177 xorg_cv_cc_flag_unknown_warning_option=no
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10184 CFLAGS="$xorg_testset_save_CFLAGS"
10185 fi
10186
10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 fi
10191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"; then :
10202 xorg_cv_cc_flag_unused_command_line_argument=yes
10203 else
10204 xorg_cv_cc_flag_unused_command_line_argument=no
10205 fi
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 fi
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10211 CFLAGS="$xorg_testset_save_CFLAGS"
10212 fi
10213
10214 found="no"
10215
10216 if test $found = "no" ; then
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 fi
10220
10221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10223 fi
10224
10225 CFLAGS="$CFLAGS -Werror"
10226
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10228 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10229 cacheid=xorg_cv_cc_flag__Werror
10230 if eval \${$cacheid+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 int i;
10236 int
10237 main ()
10238 {
10239
10240 ;
10241 return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245 eval $cacheid=yes
10246 else
10247 eval $cacheid=no
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 fi
10252
10253
10254 CFLAGS="$xorg_testset_save_CFLAGS"
10255
10256 eval supported=\$$cacheid
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10258 $as_echo "$supported" >&6; }
10259 if test "$supported" = "yes" ; then
10260 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10261 found="yes"
10262 fi
10263 fi
10264
10265 if test $found = "no" ; then
10266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268 fi
10269
10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10272 fi
10273
10274 CFLAGS="$CFLAGS -errwarn"
10275
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10277 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10278 cacheid=xorg_cv_cc_flag__errwarn
10279 if eval \${$cacheid+:} false; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284 int i;
10285 int
10286 main ()
10287 {
10288
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_link "$LINENO"; then :
10294 eval $cacheid=yes
10295 else
10296 eval $cacheid=no
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
10300 fi
10301
10302
10303 CFLAGS="$xorg_testset_save_CFLAGS"
10304
10305 eval supported=\$$cacheid
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10307 $as_echo "$supported" >&6; }
10308 if test "$supported" = "yes" ; then
10309 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10310 found="yes"
10311 fi
10312 fi
10313
10314
10315
10316 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10317 # activate it with -Werror, so we add it here explicitly.
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331 xorg_testset_save_CFLAGS="$CFLAGS"
10332
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10336 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10337 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 int i;
10343 _ACEOF
10344 if ac_fn_c_try_compile "$LINENO"; then :
10345 xorg_cv_cc_flag_unknown_warning_option=yes
10346 else
10347 xorg_cv_cc_flag_unknown_warning_option=no
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10352 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10354 CFLAGS="$xorg_testset_save_CFLAGS"
10355 fi
10356
10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 fi
10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10364 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10369 int i;
10370 _ACEOF
10371 if ac_fn_c_try_compile "$LINENO"; then :
10372 xorg_cv_cc_flag_unused_command_line_argument=yes
10373 else
10374 xorg_cv_cc_flag_unused_command_line_argument=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10377 fi
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10379 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382 fi
10383
10384 found="no"
10385
10386 if test $found = "no" ; then
10387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389 fi
10390
10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10393 fi
10394
10395 CFLAGS="$CFLAGS -Werror=attributes"
10396
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10398 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10399 cacheid=xorg_cv_cc_flag__Werror_attributes
10400 if eval \${$cacheid+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int i;
10406 int
10407 main ()
10408 {
10409
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 eval $cacheid=yes
10416 else
10417 eval $cacheid=no
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 fi
10422
10423
10424 CFLAGS="$xorg_testset_save_CFLAGS"
10425
10426 eval supported=\$$cacheid
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10428 $as_echo "$supported" >&6; }
10429 if test "$supported" = "yes" ; then
10430 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10431 found="yes"
10432 fi
10433 fi
10434
10435
10436
10437 if test "x$STRICT_COMPILE" = "xyes"; then
10438 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10439 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10440 fi
10441
10442
10443
10444
10445
10446
10447 cat >>confdefs.h <<_ACEOF
10448 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10449 _ACEOF
10450
10451 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10452 if test "x$PVM" = "x"; then
10453 PVM="0"
10454 fi
10455
10456 cat >>confdefs.h <<_ACEOF
10457 #define PACKAGE_VERSION_MINOR $PVM
10458 _ACEOF
10459
10460 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10461 if test "x$PVP" = "x"; then
10462 PVP="0"
10463 fi
10464
10465 cat >>confdefs.h <<_ACEOF
10466 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10467 _ACEOF
10468
10469
10470
10471 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10472 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10473 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10474 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10475
10476
10477
10478
10479 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10480 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10481 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10482 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10483 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10484
10485
10486
10487
10488
10489
10490 if test x$APP_MAN_SUFFIX = x ; then
10491 APP_MAN_SUFFIX=1
10492 fi
10493 if test x$APP_MAN_DIR = x ; then
10494 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10495 fi
10496
10497 if test x$LIB_MAN_SUFFIX = x ; then
10498 LIB_MAN_SUFFIX=3
10499 fi
10500 if test x$LIB_MAN_DIR = x ; then
10501 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10502 fi
10503
10504 if test x$FILE_MAN_SUFFIX = x ; then
10505 case $host_os in
10506 solaris*) FILE_MAN_SUFFIX=4 ;;
10507 *) FILE_MAN_SUFFIX=5 ;;
10508 esac
10509 fi
10510 if test x$FILE_MAN_DIR = x ; then
10511 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10512 fi
10513
10514 if test x$MISC_MAN_SUFFIX = x ; then
10515 case $host_os in
10516 solaris*) MISC_MAN_SUFFIX=5 ;;
10517 *) MISC_MAN_SUFFIX=7 ;;
10518 esac
10519 fi
10520 if test x$MISC_MAN_DIR = x ; then
10521 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10522 fi
10523
10524 if test x$DRIVER_MAN_SUFFIX = x ; then
10525 case $host_os in
10526 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10527 *) DRIVER_MAN_SUFFIX=4 ;;
10528 esac
10529 fi
10530 if test x$DRIVER_MAN_DIR = x ; then
10531 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10532 fi
10533
10534 if test x$ADMIN_MAN_SUFFIX = x ; then
10535 case $host_os in
10536 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10537 *) ADMIN_MAN_SUFFIX=8 ;;
10538 esac
10539 fi
10540 if test x$ADMIN_MAN_DIR = x ; then
10541 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10542 fi
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558 XORG_MAN_PAGE="X Version 11"
10559
10560 MAN_SUBSTS="\
10561 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10562 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10563 -e 's|__xservername__|Xorg|g' \
10564 -e 's|__xconfigfile__|xorg.conf|g' \
10565 -e 's|__projectroot__|\$(prefix)|g' \
10566 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10567 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10568 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10569 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10570 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10571 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10572 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10573
10574
10575
10576 # Check whether --enable-silent-rules was given.
10577 if test "${enable_silent_rules+set}" = set; then :
10578 enableval=$enable_silent_rules;
10579 fi
10580
10581 case $enable_silent_rules in # (((
10582 yes) AM_DEFAULT_VERBOSITY=0;;
10583 no) AM_DEFAULT_VERBOSITY=1;;
10584 *) AM_DEFAULT_VERBOSITY=0;;
10585 esac
10586 am_make=${MAKE-make}
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10588 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10589 if ${am_cv_make_support_nested_variables+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 if $as_echo 'TRUE=$(BAR$(V))
10593 BAR0=false
10594 BAR1=true
10595 V=1
10596 am__doit:
10597 @$(TRUE)
10598 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10599 am_cv_make_support_nested_variables=yes
10600 else
10601 am_cv_make_support_nested_variables=no
10602 fi
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10605 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10606 if test $am_cv_make_support_nested_variables = yes; then
10607 AM_V='$(V)'
10608 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10609 else
10610 AM_V=$AM_DEFAULT_VERBOSITY
10611 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10612 fi
10613 AM_BACKSLASH='\'
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 xorg_testset_save_CFLAGS="$CFLAGS"
10630
10631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10634 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10635 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int i;
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"; then :
10643 xorg_cv_cc_flag_unknown_warning_option=yes
10644 else
10645 xorg_cv_cc_flag_unknown_warning_option=no
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10650 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10652 CFLAGS="$xorg_testset_save_CFLAGS"
10653 fi
10654
10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658 fi
10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10661 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10662 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 int i;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"; then :
10670 xorg_cv_cc_flag_unused_command_line_argument=yes
10671 else
10672 xorg_cv_cc_flag_unused_command_line_argument=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10677 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10679 CFLAGS="$xorg_testset_save_CFLAGS"
10680 fi
10681
10682 found="no"
10683
10684 if test $found = "no" ; then
10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10687 fi
10688
10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10691 fi
10692
10693 CFLAGS="$CFLAGS -Wno-shadow"
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-shadow" >&5
10696 $as_echo_n "checking if $CC supports -Wno-shadow... " >&6; }
10697 cacheid=xorg_cv_cc_flag__Wno_shadow
10698 if eval \${$cacheid+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 int i;
10704 int
10705 main ()
10706 {
10707
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 eval $cacheid=yes
10714 else
10715 eval $cacheid=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 fi
10720
10721
10722 CFLAGS="$xorg_testset_save_CFLAGS"
10723
10724 eval supported=\$$cacheid
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10726 $as_echo "$supported" >&6; }
10727 if test "$supported" = "yes" ; then
10728 CWARNFLAGS="$CWARNFLAGS -Wno-shadow"
10729 found="yes"
10730 fi
10731 fi
10732
10733
10734
10735 # Checks for header files.
10736 for ac_header in err.h
10737 do :
10738 ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
10739 if test "x$ac_cv_header_err_h" = xyes; then :
10740 cat >>confdefs.h <<_ACEOF
10741 #define HAVE_ERR_H 1
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 # Checks for pkg-config packages
10750
10751 pkg_failed=no
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RC" >&5
10753 $as_echo_n "checking for RC... " >&6; }
10754
10755 if test -n "$RC_CFLAGS"; then
10756 pkg_cv_RC_CFLAGS="$RC_CFLAGS"
10757 elif test -n "$PKG_CONFIG"; then
10758 if test -n "$PKG_CONFIG" && \
10759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender x11 xproto >= 7.0.17\""; } >&5
10760 ($PKG_CONFIG --exists --print-errors "xrender x11 xproto >= 7.0.17") 2>&5
10761 ac_status=$?
10762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10763 test $ac_status = 0; }; then
10764 pkg_cv_RC_CFLAGS=`$PKG_CONFIG --cflags "xrender x11 xproto >= 7.0.17" 2>/dev/null`
10765 test "x$?" != "x0" && pkg_failed=yes
10766 else
10767 pkg_failed=yes
10768 fi
10769 else
10770 pkg_failed=untried
10771 fi
10772 if test -n "$RC_LIBS"; then
10773 pkg_cv_RC_LIBS="$RC_LIBS"
10774 elif test -n "$PKG_CONFIG"; then
10775 if test -n "$PKG_CONFIG" && \
10776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender x11 xproto >= 7.0.17\""; } >&5
10777 ($PKG_CONFIG --exists --print-errors "xrender x11 xproto >= 7.0.17") 2>&5
10778 ac_status=$?
10779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10780 test $ac_status = 0; }; then
10781 pkg_cv_RC_LIBS=`$PKG_CONFIG --libs "xrender x11 xproto >= 7.0.17" 2>/dev/null`
10782 test "x$?" != "x0" && pkg_failed=yes
10783 else
10784 pkg_failed=yes
10785 fi
10786 else
10787 pkg_failed=untried
10788 fi
10789
10790
10791
10792 if test $pkg_failed = yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10795
10796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10797 _pkg_short_errors_supported=yes
10798 else
10799 _pkg_short_errors_supported=no
10800 fi
10801 if test $_pkg_short_errors_supported = yes; then
10802 RC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender x11 xproto >= 7.0.17" 2>&1`
10803 else
10804 RC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender x11 xproto >= 7.0.17" 2>&1`
10805 fi
10806 # Put the nasty error message in config.log where it belongs
10807 echo "$RC_PKG_ERRORS" >&5
10808
10809 as_fn_error $? "Package requirements (xrender x11 xproto >= 7.0.17) were not met:
10810
10811 $RC_PKG_ERRORS
10812
10813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10814 installed software in a non-standard prefix.
10815
10816 Alternatively, you may set the environment variables RC_CFLAGS
10817 and RC_LIBS to avoid the need to call pkg-config.
10818 See the pkg-config man page for more details." "$LINENO" 5
10819 elif test $pkg_failed = untried; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10824 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10825 is in your PATH or set the PKG_CONFIG environment variable to the full
10826 path to pkg-config.
10827
10828 Alternatively, you may set the environment variables RC_CFLAGS
10829 and RC_LIBS to avoid the need to call pkg-config.
10830 See the pkg-config man page for more details.
10831
10832 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10833 See \`config.log' for more details" "$LINENO" 5; }
10834 else
10835 RC_CFLAGS=$pkg_cv_RC_CFLAGS
10836 RC_LIBS=$pkg_cv_RC_LIBS
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10838 $as_echo "yes" >&6; }
10839
10840 fi
10841
10842 ac_config_files="$ac_config_files Makefile man/Makefile"
10843
10844
10845 cat >confcache <<\_ACEOF
10846 # This file is a shell script that caches the results of configure
10847 # tests run on this system so they can be shared between configure
10848 # scripts and configure runs, see configure's option --config-cache.
10849 # It is not useful on other systems. If it contains results you don't
10850 # want to keep, you may remove or edit it.
10851 #
10852 # config.status only pays attention to the cache file if you give it
10853 # the --recheck option to rerun configure.
10854 #
10855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10857 # following values.
10858
10859 _ACEOF
10860
10861 # The following way of writing the cache mishandles newlines in values,
10862 # but we know of no workaround that is simple, portable, and efficient.
10863 # So, we kill variables containing newlines.
10864 # Ultrix sh set writes to stderr and can't be redirected directly,
10865 # and sets the high bit in the cache file unless we assign to the vars.
10866 (
10867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10868 eval ac_val=\$$ac_var
10869 case $ac_val in #(
10870 *${as_nl}*)
10871 case $ac_var in #(
10872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10874 esac
10875 case $ac_var in #(
10876 _ | IFS | as_nl) ;; #(
10877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10878 *) { eval $ac_var=; unset $ac_var;} ;;
10879 esac ;;
10880 esac
10881 done
10882
10883 (set) 2>&1 |
10884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10885 *${as_nl}ac_space=\ *)
10886 # `set' does not quote correctly, so add quotes: double-quote
10887 # substitution turns \\\\ into \\, and sed turns \\ into \.
10888 sed -n \
10889 "s/'/'\\\\''/g;
10890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10891 ;; #(
10892 *)
10893 # `set' quotes correctly as required by POSIX, so do not add quotes.
10894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10895 ;;
10896 esac |
10897 sort
10898 ) |
10899 sed '
10900 /^ac_cv_env_/b end
10901 t clear
10902 :clear
10903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10904 t end
10905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10906 :end' >>confcache
10907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10908 if test -w "$cache_file"; then
10909 if test "x$cache_file" != "x/dev/null"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10911 $as_echo "$as_me: updating cache $cache_file" >&6;}
10912 if test ! -f "$cache_file" || test -h "$cache_file"; then
10913 cat confcache >"$cache_file"
10914 else
10915 case $cache_file in #(
10916 */* | ?:*)
10917 mv -f confcache "$cache_file"$$ &&
10918 mv -f "$cache_file"$$ "$cache_file" ;; #(
10919 *)
10920 mv -f confcache "$cache_file" ;;
10921 esac
10922 fi
10923 fi
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10927 fi
10928 fi
10929 rm -f confcache
10930
10931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10932 # Let make expand exec_prefix.
10933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10934
10935 # Transform confdefs.h into DEFS.
10936 # Protect against shell expansion while executing Makefile rules.
10937 # Protect against Makefile macro expansion.
10938 #
10939 # If the first sed substitution is executed (which looks for macros that
10940 # take arguments), then branch to the quote section. Otherwise,
10941 # look for a macro that doesn't take arguments.
10942 ac_script='
10943 :mline
10944 /\\$/{
10945 N
10946 s,\\\n,,
10947 b mline
10948 }
10949 t clear
10950 :clear
10951 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10952 t quote
10953 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10954 t quote
10955 b any
10956 :quote
10957 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10958 s/\[/\\&/g
10959 s/\]/\\&/g
10960 s/\$/$$/g
10961 H
10962 :any
10963 ${
10964 g
10965 s/^\n//
10966 s/\n/ /g
10967 p
10968 }
10969 '
10970 DEFS=`sed -n "$ac_script" confdefs.h`
10971
10972
10973 ac_libobjs=
10974 ac_ltlibobjs=
10975 U=
10976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10977 # 1. Remove the extension, and $U if already installed.
10978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10979 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10981 # will be set to the directory where LIBOBJS objects are built.
10982 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10983 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10984 done
10985 LIBOBJS=$ac_libobjs
10986
10987 LTLIBOBJS=$ac_ltlibobjs
10988
10989
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10991 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10992 if test -n "$am_sleep_pid"; then
10993 # Hide warnings about reused PIDs.
10994 wait $am_sleep_pid 2>/dev/null
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10997 $as_echo "done" >&6; }
10998 if test -n "$EXEEXT"; then
10999 am__EXEEXT_TRUE=
11000 am__EXEEXT_FALSE='#'
11001 else
11002 am__EXEEXT_TRUE='#'
11003 am__EXEEXT_FALSE=
11004 fi
11005
11006 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11007 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11009 fi
11010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11011 as_fn_error $? "conditional \"AMDEP\" was never defined.
11012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11013 fi
11014 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11015 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11017 fi
11018
11019 : "${CONFIG_STATUS=./config.status}"
11020 ac_write_fail=0
11021 ac_clean_files_save=$ac_clean_files
11022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11024 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11025 as_write_fail=0
11026 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11027 #! $SHELL
11028 # Generated by $as_me.
11029 # Run this file to recreate the current configuration.
11030 # Compiler output produced by configure, useful for debugging
11031 # configure, is in config.log if it exists.
11032
11033 debug=false
11034 ac_cs_recheck=false
11035 ac_cs_silent=false
11036
11037 SHELL=\${CONFIG_SHELL-$SHELL}
11038 export SHELL
11039 _ASEOF
11040 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11041 ## -------------------- ##
11042 ## M4sh Initialization. ##
11043 ## -------------------- ##
11044
11045 # Be more Bourne compatible
11046 DUALCASE=1; export DUALCASE # for MKS sh
11047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11048 emulate sh
11049 NULLCMD=:
11050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11051 # is contrary to our usage. Disable this feature.
11052 alias -g '${1+"$@"}'='"$@"'
11053 setopt NO_GLOB_SUBST
11054 else
11055 case `(set -o) 2>/dev/null` in #(
11056 *posix*) :
11057 set -o posix ;; #(
11058 *) :
11059 ;;
11060 esac
11061 fi
11062
11063
11064 as_nl='
11065 '
11066 export as_nl
11067 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11068 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11071 # Prefer a ksh shell builtin over an external printf program on Solaris,
11072 # but without wasting forks for bash or zsh.
11073 if test -z "$BASH_VERSION$ZSH_VERSION" \
11074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11075 as_echo='print -r --'
11076 as_echo_n='print -rn --'
11077 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11078 as_echo='printf %s\n'
11079 as_echo_n='printf %s'
11080 else
11081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11083 as_echo_n='/usr/ucb/echo -n'
11084 else
11085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11086 as_echo_n_body='eval
11087 arg=$1;
11088 case $arg in #(
11089 *"$as_nl"*)
11090 expr "X$arg" : "X\\(.*\\)$as_nl";
11091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11092 esac;
11093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11094 '
11095 export as_echo_n_body
11096 as_echo_n='sh -c $as_echo_n_body as_echo'
11097 fi
11098 export as_echo_body
11099 as_echo='sh -c $as_echo_body as_echo'
11100 fi
11101
11102 # The user is always right.
11103 if test "${PATH_SEPARATOR+set}" != set; then
11104 PATH_SEPARATOR=:
11105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11107 PATH_SEPARATOR=';'
11108 }
11109 fi
11110
11111
11112 # IFS
11113 # We need space, tab and new line, in precisely that order. Quoting is
11114 # there to prevent editors from complaining about space-tab.
11115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11116 # splitting by setting IFS to empty value.)
11117 IFS=" "" $as_nl"
11118
11119 # Find who we are. Look in the path if we contain no directory separator.
11120 as_myself=
11121 case $0 in #((
11122 *[\\/]* ) as_myself=$0 ;;
11123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11129 done
11130 IFS=$as_save_IFS
11131
11132 ;;
11133 esac
11134 # We did not find ourselves, most probably we were run as `sh COMMAND'
11135 # in which case we are not to be found in the path.
11136 if test "x$as_myself" = x; then
11137 as_myself=$0
11138 fi
11139 if test ! -f "$as_myself"; then
11140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11141 exit 1
11142 fi
11143
11144 # Unset variables that we do not need and which cause bugs (e.g. in
11145 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11146 # suppresses any "Segmentation fault" message there. '((' could
11147 # trigger a bug in pdksh 5.2.14.
11148 for as_var in BASH_ENV ENV MAIL MAILPATH
11149 do eval test x\${$as_var+set} = xset \
11150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11151 done
11152 PS1='$ '
11153 PS2='> '
11154 PS4='+ '
11155
11156 # NLS nuisances.
11157 LC_ALL=C
11158 export LC_ALL
11159 LANGUAGE=C
11160 export LANGUAGE
11161
11162 # CDPATH.
11163 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11164
11165
11166 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11167 # ----------------------------------------
11168 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11169 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11170 # script with STATUS, using 1 if that was 0.
11171 as_fn_error ()
11172 {
11173 as_status=$1; test $as_status -eq 0 && as_status=1
11174 if test "$4"; then
11175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11177 fi
11178 $as_echo "$as_me: error: $2" >&2
11179 as_fn_exit $as_status
11180 } # as_fn_error
11181
11182
11183 # as_fn_set_status STATUS
11184 # -----------------------
11185 # Set $? to STATUS, without forking.
11186 as_fn_set_status ()
11187 {
11188 return $1
11189 } # as_fn_set_status
11190
11191 # as_fn_exit STATUS
11192 # -----------------
11193 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11194 as_fn_exit ()
11195 {
11196 set +e
11197 as_fn_set_status $1
11198 exit $1
11199 } # as_fn_exit
11200
11201 # as_fn_unset VAR
11202 # ---------------
11203 # Portably unset VAR.
11204 as_fn_unset ()
11205 {
11206 { eval $1=; unset $1;}
11207 }
11208 as_unset=as_fn_unset
11209 # as_fn_append VAR VALUE
11210 # ----------------------
11211 # Append the text in VALUE to the end of the definition contained in VAR. Take
11212 # advantage of any shell optimizations that allow amortized linear growth over
11213 # repeated appends, instead of the typical quadratic growth present in naive
11214 # implementations.
11215 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11216 eval 'as_fn_append ()
11217 {
11218 eval $1+=\$2
11219 }'
11220 else
11221 as_fn_append ()
11222 {
11223 eval $1=\$$1\$2
11224 }
11225 fi # as_fn_append
11226
11227 # as_fn_arith ARG...
11228 # ------------------
11229 # Perform arithmetic evaluation on the ARGs, and store the result in the
11230 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11231 # must be portable across $(()) and expr.
11232 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11233 eval 'as_fn_arith ()
11234 {
11235 as_val=$(( $* ))
11236 }'
11237 else
11238 as_fn_arith ()
11239 {
11240 as_val=`expr "$@" || test $? -eq 1`
11241 }
11242 fi # as_fn_arith
11243
11244
11245 if expr a : '\(a\)' >/dev/null 2>&1 &&
11246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11247 as_expr=expr
11248 else
11249 as_expr=false
11250 fi
11251
11252 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11253 as_basename=basename
11254 else
11255 as_basename=false
11256 fi
11257
11258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11259 as_dirname=dirname
11260 else
11261 as_dirname=false
11262 fi
11263
11264 as_me=`$as_basename -- "$0" ||
11265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11266 X"$0" : 'X\(//\)$' \| \
11267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11268 $as_echo X/"$0" |
11269 sed '/^.*\/\([^/][^/]*\)\/*$/{
11270 s//\1/
11271 q
11272 }
11273 /^X\/\(\/\/\)$/{
11274 s//\1/
11275 q
11276 }
11277 /^X\/\(\/\).*/{
11278 s//\1/
11279 q
11280 }
11281 s/.*/./; q'`
11282
11283 # Avoid depending upon Character Ranges.
11284 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11285 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11286 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11287 as_cr_digits='0123456789'
11288 as_cr_alnum=$as_cr_Letters$as_cr_digits
11289
11290 ECHO_C= ECHO_N= ECHO_T=
11291 case `echo -n x` in #(((((
11292 -n*)
11293 case `echo 'xy\c'` in
11294 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11295 xy) ECHO_C='\c';;
11296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11297 ECHO_T=' ';;
11298 esac;;
11299 *)
11300 ECHO_N='-n';;
11301 esac
11302
11303 rm -f conf$$ conf$$.exe conf$$.file
11304 if test -d conf$$.dir; then
11305 rm -f conf$$.dir/conf$$.file
11306 else
11307 rm -f conf$$.dir
11308 mkdir conf$$.dir 2>/dev/null
11309 fi
11310 if (echo >conf$$.file) 2>/dev/null; then
11311 if ln -s conf$$.file conf$$ 2>/dev/null; then
11312 as_ln_s='ln -s'
11313 # ... but there are two gotchas:
11314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11316 # In both cases, we have to default to `cp -pR'.
11317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11318 as_ln_s='cp -pR'
11319 elif ln conf$$.file conf$$ 2>/dev/null; then
11320 as_ln_s=ln
11321 else
11322 as_ln_s='cp -pR'
11323 fi
11324 else
11325 as_ln_s='cp -pR'
11326 fi
11327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11328 rmdir conf$$.dir 2>/dev/null
11329
11330
11331 # as_fn_mkdir_p
11332 # -------------
11333 # Create "$as_dir" as a directory, including parents if necessary.
11334 as_fn_mkdir_p ()
11335 {
11336
11337 case $as_dir in #(
11338 -*) as_dir=./$as_dir;;
11339 esac
11340 test -d "$as_dir" || eval $as_mkdir_p || {
11341 as_dirs=
11342 while :; do
11343 case $as_dir in #(
11344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11345 *) as_qdir=$as_dir;;
11346 esac
11347 as_dirs="'$as_qdir' $as_dirs"
11348 as_dir=`$as_dirname -- "$as_dir" ||
11349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11350 X"$as_dir" : 'X\(//\)[^/]' \| \
11351 X"$as_dir" : 'X\(//\)$' \| \
11352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11353 $as_echo X"$as_dir" |
11354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11355 s//\1/
11356 q
11357 }
11358 /^X\(\/\/\)[^/].*/{
11359 s//\1/
11360 q
11361 }
11362 /^X\(\/\/\)$/{
11363 s//\1/
11364 q
11365 }
11366 /^X\(\/\).*/{
11367 s//\1/
11368 q
11369 }
11370 s/.*/./; q'`
11371 test -d "$as_dir" && break
11372 done
11373 test -z "$as_dirs" || eval "mkdir $as_dirs"
11374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11375
11376
11377 } # as_fn_mkdir_p
11378 if mkdir -p . 2>/dev/null; then
11379 as_mkdir_p='mkdir -p "$as_dir"'
11380 else
11381 test -d ./-p && rmdir ./-p
11382 as_mkdir_p=false
11383 fi
11384
11385
11386 # as_fn_executable_p FILE
11387 # -----------------------
11388 # Test if FILE is an executable regular file.
11389 as_fn_executable_p ()
11390 {
11391 test -f "$1" && test -x "$1"
11392 } # as_fn_executable_p
11393 as_test_x='test -x'
11394 as_executable_p=as_fn_executable_p
11395
11396 # Sed expression to map a string onto a valid CPP name.
11397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11398
11399 # Sed expression to map a string onto a valid variable name.
11400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11401
11402
11403 exec 6>&1
11404 ## ----------------------------------- ##
11405 ## Main body of $CONFIG_STATUS script. ##
11406 ## ----------------------------------- ##
11407 _ASEOF
11408 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11409
11410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11411 # Save the log message, to keep $0 and so on meaningful, and to
11412 # report actual input values of CONFIG_FILES etc. instead of their
11413 # values after options handling.
11414 ac_log="
11415 This file was extended by rendercheck $as_me 1.5, which was
11416 generated by GNU Autoconf 2.69. Invocation command line was
11417
11418 CONFIG_FILES = $CONFIG_FILES
11419 CONFIG_HEADERS = $CONFIG_HEADERS
11420 CONFIG_LINKS = $CONFIG_LINKS
11421 CONFIG_COMMANDS = $CONFIG_COMMANDS
11422 $ $0 $@
11423
11424 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11425 "
11426
11427 _ACEOF
11428
11429 case $ac_config_files in *"
11430 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11431 esac
11432
11433
11434
11435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11436 # Files that config.status was made for.
11437 config_files="$ac_config_files"
11438 config_commands="$ac_config_commands"
11439
11440 _ACEOF
11441
11442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11443 ac_cs_usage="\
11444 \`$as_me' instantiates files and other configuration actions
11445 from templates according to the current configuration. Unless the files
11446 and actions are specified as TAGs, all are instantiated by default.
11447
11448 Usage: $0 [OPTION]... [TAG]...
11449
11450 -h, --help print this help, then exit
11451 -V, --version print version number and configuration settings, then exit
11452 --config print configuration, then exit
11453 -q, --quiet, --silent
11454 do not print progress messages
11455 -d, --debug don't remove temporary files
11456 --recheck update $as_me by reconfiguring in the same conditions
11457 --file=FILE[:TEMPLATE]
11458 instantiate the configuration file FILE
11459
11460 Configuration files:
11461 $config_files
11462
11463 Configuration commands:
11464 $config_commands
11465
11466 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11467
11468 _ACEOF
11469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11470 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11471 ac_cs_version="\\
11472 rendercheck config.status 1.5
11473 configured by $0, generated by GNU Autoconf 2.69,
11474 with options \\"\$ac_cs_config\\"
11475
11476 Copyright (C) 2012 Free Software Foundation, Inc.
11477 This config.status script is free software; the Free Software Foundation
11478 gives unlimited permission to copy, distribute and modify it."
11479
11480 ac_pwd='$ac_pwd'
11481 srcdir='$srcdir'
11482 INSTALL='$INSTALL'
11483 MKDIR_P='$MKDIR_P'
11484 AWK='$AWK'
11485 test -n "\$AWK" || AWK=awk
11486 _ACEOF
11487
11488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11489 # The default lists apply if the user does not specify any file.
11490 ac_need_defaults=:
11491 while test $# != 0
11492 do
11493 case $1 in
11494 --*=?*)
11495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11497 ac_shift=:
11498 ;;
11499 --*=)
11500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11501 ac_optarg=
11502 ac_shift=:
11503 ;;
11504 *)
11505 ac_option=$1
11506 ac_optarg=$2
11507 ac_shift=shift
11508 ;;
11509 esac
11510
11511 case $ac_option in
11512 # Handling of the options.
11513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11514 ac_cs_recheck=: ;;
11515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11516 $as_echo "$ac_cs_version"; exit ;;
11517 --config | --confi | --conf | --con | --co | --c )
11518 $as_echo "$ac_cs_config"; exit ;;
11519 --debug | --debu | --deb | --de | --d | -d )
11520 debug=: ;;
11521 --file | --fil | --fi | --f )
11522 $ac_shift
11523 case $ac_optarg in
11524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11525 '') as_fn_error $? "missing file argument" ;;
11526 esac
11527 as_fn_append CONFIG_FILES " '$ac_optarg'"
11528 ac_need_defaults=false;;
11529 --he | --h | --help | --hel | -h )
11530 $as_echo "$ac_cs_usage"; exit ;;
11531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11533 ac_cs_silent=: ;;
11534
11535 # This is an error.
11536 -*) as_fn_error $? "unrecognized option: \`$1'
11537 Try \`$0 --help' for more information." ;;
11538
11539 *) as_fn_append ac_config_targets " $1"
11540 ac_need_defaults=false ;;
11541
11542 esac
11543 shift
11544 done
11545
11546 ac_configure_extra_args=
11547
11548 if $ac_cs_silent; then
11549 exec 6>/dev/null
11550 ac_configure_extra_args="$ac_configure_extra_args --silent"
11551 fi
11552
11553 _ACEOF
11554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11555 if \$ac_cs_recheck; then
11556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11557 shift
11558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11559 CONFIG_SHELL='$SHELL'
11560 export CONFIG_SHELL
11561 exec "\$@"
11562 fi
11563
11564 _ACEOF
11565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11566 exec 5>>config.log
11567 {
11568 echo
11569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11570 ## Running $as_me. ##
11571 _ASBOX
11572 $as_echo "$ac_log"
11573 } >&5
11574
11575 _ACEOF
11576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11577 #
11578 # INIT-COMMANDS
11579 #
11580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11581
11582 _ACEOF
11583
11584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11585
11586 # Handling of arguments.
11587 for ac_config_target in $ac_config_targets
11588 do
11589 case $ac_config_target in
11590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11592 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11593
11594 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11595 esac
11596 done
11597
11598
11599 # If the user did not use the arguments to specify the items to instantiate,
11600 # then the envvar interface is used. Set only those that are not.
11601 # We use the long form for the default assignment because of an extremely
11602 # bizarre bug on SunOS 4.1.3.
11603 if $ac_need_defaults; then
11604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11606 fi
11607
11608 # Have a temporary directory for convenience. Make it in the build tree
11609 # simply because there is no reason against having it here, and in addition,
11610 # creating and moving files from /tmp can sometimes cause problems.
11611 # Hook for its removal unless debugging.
11612 # Note that there is a small window in which the directory will not be cleaned:
11613 # after its creation but before its name has been assigned to `$tmp'.
11614 $debug ||
11615 {
11616 tmp= ac_tmp=
11617 trap 'exit_status=$?
11618 : "${ac_tmp:=$tmp}"
11619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11620 ' 0
11621 trap 'as_fn_exit 1' 1 2 13 15
11622 }
11623 # Create a (secure) tmp directory for tmp files.
11624
11625 {
11626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11627 test -d "$tmp"
11628 } ||
11629 {
11630 tmp=./conf$$-$RANDOM
11631 (umask 077 && mkdir "$tmp")
11632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11633 ac_tmp=$tmp
11634
11635 # Set up the scripts for CONFIG_FILES section.
11636 # No need to generate them if there are no CONFIG_FILES.
11637 # This happens for instance with `./config.status config.h'.
11638 if test -n "$CONFIG_FILES"; then
11639
11640
11641 ac_cr=`echo X | tr X '\015'`
11642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11643 # But we know of no other shell where ac_cr would be empty at this
11644 # point, so we can use a bashism as a fallback.
11645 if test "x$ac_cr" = x; then
11646 eval ac_cr=\$\'\\r\'
11647 fi
11648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11650 ac_cs_awk_cr='\\r'
11651 else
11652 ac_cs_awk_cr=$ac_cr
11653 fi
11654
11655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11656 _ACEOF
11657
11658
11659 {
11660 echo "cat >conf$$subs.awk <<_ACEOF" &&
11661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11662 echo "_ACEOF"
11663 } >conf$$subs.sh ||
11664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11666 ac_delim='%!_!# '
11667 for ac_last_try in false false false false false :; do
11668 . ./conf$$subs.sh ||
11669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11670
11671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11672 if test $ac_delim_n = $ac_delim_num; then
11673 break
11674 elif $ac_last_try; then
11675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11676 else
11677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11678 fi
11679 done
11680 rm -f conf$$subs.sh
11681
11682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11683 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11684 _ACEOF
11685 sed -n '
11686 h
11687 s/^/S["/; s/!.*/"]=/
11688 p
11689 g
11690 s/^[^!]*!//
11691 :repl
11692 t repl
11693 s/'"$ac_delim"'$//
11694 t delim
11695 :nl
11696 h
11697 s/\(.\{148\}\)..*/\1/
11698 t more1
11699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11700 p
11701 n
11702 b repl
11703 :more1
11704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11705 p
11706 g
11707 s/.\{148\}//
11708 t nl
11709 :delim
11710 h
11711 s/\(.\{148\}\)..*/\1/
11712 t more2
11713 s/["\\]/\\&/g; s/^/"/; s/$/"/
11714 p
11715 b
11716 :more2
11717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11718 p
11719 g
11720 s/.\{148\}//
11721 t delim
11722 ' <conf$$subs.awk | sed '
11723 /^[^""]/{
11724 N
11725 s/\n//
11726 }
11727 ' >>$CONFIG_STATUS || ac_write_fail=1
11728 rm -f conf$$subs.awk
11729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11730 _ACAWK
11731 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11732 for (key in S) S_is_set[key] = 1
11733 FS = ""
11734
11735 }
11736 {
11737 line = $ 0
11738 nfields = split(line, field, "@")
11739 substed = 0
11740 len = length(field[1])
11741 for (i = 2; i < nfields; i++) {
11742 key = field[i]
11743 keylen = length(key)
11744 if (S_is_set[key]) {
11745 value = S[key]
11746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11747 len += length(value) + length(field[++i])
11748 substed = 1
11749 } else
11750 len += 1 + keylen
11751 }
11752
11753 print line
11754 }
11755
11756 _ACAWK
11757 _ACEOF
11758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11761 else
11762 cat
11763 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11765 _ACEOF
11766
11767 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11768 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11769 # trailing colons and then remove the whole line if VPATH becomes empty
11770 # (actually we leave an empty line to preserve line numbers).
11771 if test "x$srcdir" = x.; then
11772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11773 h
11774 s///
11775 s/^/:/
11776 s/[ ]*$/:/
11777 s/:\$(srcdir):/:/g
11778 s/:\${srcdir}:/:/g
11779 s/:@srcdir@:/:/g
11780 s/^:*//
11781 s/:*$//
11782 x
11783 s/\(=[ ]*\).*/\1/
11784 G
11785 s/\n//
11786 s/^[^=]*=[ ]*$//
11787 }'
11788 fi
11789
11790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11791 fi # test -n "$CONFIG_FILES"
11792
11793
11794 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11795 shift
11796 for ac_tag
11797 do
11798 case $ac_tag in
11799 :[FHLC]) ac_mode=$ac_tag; continue;;
11800 esac
11801 case $ac_mode$ac_tag in
11802 :[FHL]*:*);;
11803 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11804 :[FH]-) ac_tag=-:-;;
11805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11806 esac
11807 ac_save_IFS=$IFS
11808 IFS=:
11809 set x $ac_tag
11810 IFS=$ac_save_IFS
11811 shift
11812 ac_file=$1
11813 shift
11814
11815 case $ac_mode in
11816 :L) ac_source=$1;;
11817 :[FH])
11818 ac_file_inputs=
11819 for ac_f
11820 do
11821 case $ac_f in
11822 -) ac_f="$ac_tmp/stdin";;
11823 *) # Look for the file first in the build tree, then in the source tree
11824 # (if the path is not absolute). The absolute path cannot be DOS-style,
11825 # because $ac_f cannot contain `:'.
11826 test -f "$ac_f" ||
11827 case $ac_f in
11828 [\\/$]*) false;;
11829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11830 esac ||
11831 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11832 esac
11833 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11834 as_fn_append ac_file_inputs " '$ac_f'"
11835 done
11836
11837 # Let's still pretend it is `configure' which instantiates (i.e., don't
11838 # use $as_me), people would be surprised to read:
11839 # /* config.h. Generated by config.status. */
11840 configure_input='Generated from '`
11841 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11842 `' by configure.'
11843 if test x"$ac_file" != x-; then
11844 configure_input="$ac_file. $configure_input"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11846 $as_echo "$as_me: creating $ac_file" >&6;}
11847 fi
11848 # Neutralize special characters interpreted by sed in replacement strings.
11849 case $configure_input in #(
11850 *\&* | *\|* | *\\* )
11851 ac_sed_conf_input=`$as_echo "$configure_input" |
11852 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11853 *) ac_sed_conf_input=$configure_input;;
11854 esac
11855
11856 case $ac_tag in
11857 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11859 esac
11860 ;;
11861 esac
11862
11863 ac_dir=`$as_dirname -- "$ac_file" ||
11864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11865 X"$ac_file" : 'X\(//\)[^/]' \| \
11866 X"$ac_file" : 'X\(//\)$' \| \
11867 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11868 $as_echo X"$ac_file" |
11869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11870 s//\1/
11871 q
11872 }
11873 /^X\(\/\/\)[^/].*/{
11874 s//\1/
11875 q
11876 }
11877 /^X\(\/\/\)$/{
11878 s//\1/
11879 q
11880 }
11881 /^X\(\/\).*/{
11882 s//\1/
11883 q
11884 }
11885 s/.*/./; q'`
11886 as_dir="$ac_dir"; as_fn_mkdir_p
11887 ac_builddir=.
11888
11889 case "$ac_dir" in
11890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11891 *)
11892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11893 # A ".." for each directory in $ac_dir_suffix.
11894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11895 case $ac_top_builddir_sub in
11896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11898 esac ;;
11899 esac
11900 ac_abs_top_builddir=$ac_pwd
11901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11902 # for backward compatibility:
11903 ac_top_builddir=$ac_top_build_prefix
11904
11905 case $srcdir in
11906 .) # We are building in place.
11907 ac_srcdir=.
11908 ac_top_srcdir=$ac_top_builddir_sub
11909 ac_abs_top_srcdir=$ac_pwd ;;
11910 [\\/]* | ?:[\\/]* ) # Absolute name.
11911 ac_srcdir=$srcdir$ac_dir_suffix;
11912 ac_top_srcdir=$srcdir
11913 ac_abs_top_srcdir=$srcdir ;;
11914 *) # Relative name.
11915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11916 ac_top_srcdir=$ac_top_build_prefix$srcdir
11917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11918 esac
11919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11920
11921
11922 case $ac_mode in
11923 :F)
11924 #
11925 # CONFIG_FILE
11926 #
11927
11928 case $INSTALL in
11929 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11930 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11931 esac
11932 ac_MKDIR_P=$MKDIR_P
11933 case $MKDIR_P in
11934 [\\/$]* | ?:[\\/]* ) ;;
11935 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11936 esac
11937 _ACEOF
11938
11939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11940 # If the template does not know about datarootdir, expand it.
11941 # FIXME: This hack should be removed a few years after 2.60.
11942 ac_datarootdir_hack=; ac_datarootdir_seen=
11943 ac_sed_dataroot='
11944 /datarootdir/ {
11945 p
11946 q
11947 }
11948 /@datadir@/p
11949 /@docdir@/p
11950 /@infodir@/p
11951 /@localedir@/p
11952 /@mandir@/p'
11953 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11954 *datarootdir*) ac_datarootdir_seen=yes;;
11955 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11957 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11958 _ACEOF
11959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11960 ac_datarootdir_hack='
11961 s&@datadir@&$datadir&g
11962 s&@docdir@&$docdir&g
11963 s&@infodir@&$infodir&g
11964 s&@localedir@&$localedir&g
11965 s&@mandir@&$mandir&g
11966 s&\\\${datarootdir}&$datarootdir&g' ;;
11967 esac
11968 _ACEOF
11969
11970 # Neutralize VPATH when `$srcdir' = `.'.
11971 # Shell code in configure.ac might set extrasub.
11972 # FIXME: do we really want to maintain this feature?
11973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11974 ac_sed_extra="$ac_vpsub
11975 $extrasub
11976 _ACEOF
11977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11978 :t
11979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11980 s|@configure_input@|$ac_sed_conf_input|;t t
11981 s&@top_builddir@&$ac_top_builddir_sub&;t t
11982 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11983 s&@srcdir@&$ac_srcdir&;t t
11984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11985 s&@top_srcdir@&$ac_top_srcdir&;t t
11986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11987 s&@builddir@&$ac_builddir&;t t
11988 s&@abs_builddir@&$ac_abs_builddir&;t t
11989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11990 s&@INSTALL@&$ac_INSTALL&;t t
11991 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11992 $ac_datarootdir_hack
11993 "
11994 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11995 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11996
11997 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11998 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12000 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12002 which seems to be undefined. Please make sure it is defined" >&5
12003 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12004 which seems to be undefined. Please make sure it is defined" >&2;}
12005
12006 rm -f "$ac_tmp/stdin"
12007 case $ac_file in
12008 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12009 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12010 esac \
12011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12012 ;;
12013
12014
12015 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12016 $as_echo "$as_me: executing $ac_file commands" >&6;}
12017 ;;
12018 esac
12019
12020
12021 case $ac_file$ac_mode in
12022 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12023 # Older Autoconf quotes --file arguments for eval, but not when files
12024 # are listed without --file. Let's play safe and only enable the eval
12025 # if we detect the quoting.
12026 case $CONFIG_FILES in
12027 *\'*) eval set x "$CONFIG_FILES" ;;
12028 *) set x $CONFIG_FILES ;;
12029 esac
12030 shift
12031 for mf
12032 do
12033 # Strip MF so we end up with the name of the file.
12034 mf=`echo "$mf" | sed -e 's/:.*$//'`
12035 # Check whether this is an Automake generated Makefile or not.
12036 # We used to match only the files named 'Makefile.in', but
12037 # some people rename them; so instead we look at the file content.
12038 # Grep'ing the first line is not enough: some people post-process
12039 # each Makefile.in and add a new line on top of each file to say so.
12040 # Grep'ing the whole file is not good either: AIX grep has a line
12041 # limit of 2048, but all sed's we know have understand at least 4000.
12042 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12043 dirpart=`$as_dirname -- "$mf" ||
12044 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12045 X"$mf" : 'X\(//\)[^/]' \| \
12046 X"$mf" : 'X\(//\)$' \| \
12047 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12048 $as_echo X"$mf" |
12049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12050 s//\1/
12051 q
12052 }
12053 /^X\(\/\/\)[^/].*/{
12054 s//\1/
12055 q
12056 }
12057 /^X\(\/\/\)$/{
12058 s//\1/
12059 q
12060 }
12061 /^X\(\/\).*/{
12062 s//\1/
12063 q
12064 }
12065 s/.*/./; q'`
12066 else
12067 continue
12068 fi
12069 # Extract the definition of DEPDIR, am__include, and am__quote
12070 # from the Makefile without running 'make'.
12071 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12072 test -z "$DEPDIR" && continue
12073 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12074 test -z "$am__include" && continue
12075 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12076 # Find all dependency output files, they are included files with
12077 # $(DEPDIR) in their names. We invoke sed twice because it is the
12078 # simplest approach to changing $(DEPDIR) to its actual value in the
12079 # expansion.
12080 for file in `sed -n "
12081 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12082 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12083 # Make sure the directory exists.
12084 test -f "$dirpart/$file" && continue
12085 fdir=`$as_dirname -- "$file" ||
12086 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12087 X"$file" : 'X\(//\)[^/]' \| \
12088 X"$file" : 'X\(//\)$' \| \
12089 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12090 $as_echo X"$file" |
12091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12092 s//\1/
12093 q
12094 }
12095 /^X\(\/\/\)[^/].*/{
12096 s//\1/
12097 q
12098 }
12099 /^X\(\/\/\)$/{
12100 s//\1/
12101 q
12102 }
12103 /^X\(\/\).*/{
12104 s//\1/
12105 q
12106 }
12107 s/.*/./; q'`
12108 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12109 # echo "creating $dirpart/$file"
12110 echo '# dummy' > "$dirpart/$file"
12111 done
12112 done
12113 }
12114 ;;
12115
12116 esac
12117 done # for ac_tag
12118
12119
12120 as_fn_exit 0
12121 _ACEOF
12122 ac_clean_files=$ac_clean_files_save
12123
12124 test $ac_write_fail = 0 ||
12125 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12126
12127
12128 # configure is writing to config.log, and then calls config.status.
12129 # config.status does its own redirection, appending to config.log.
12130 # Unfortunately, on DOS this fails, as config.log is still kept open
12131 # by configure, so config.status won't be able to write to it; its
12132 # output is simply discarded. So we exec the FD to /dev/null,
12133 # effectively closing config.log, so it can be properly (re)opened and
12134 # appended to by config.status. When coming back to configure, we
12135 # need to make the FD available again.
12136 if test "$no_create" != yes; then
12137 ac_cs_success=:
12138 ac_config_status_args=
12139 test "$silent" = yes &&
12140 ac_config_status_args="$ac_config_status_args --quiet"
12141 exec 5>/dev/null
12142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12143 exec 5>>config.log
12144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12145 # would make configure fail if this is the last instruction.
12146 $ac_cs_success || as_fn_exit 1
12147 fi
12148 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12150 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12151 fi
12152