configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xfsinfo 1.0.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 bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
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='xfsinfo'
583 PACKAGE_TARNAME='xfsinfo'
584 PACKAGE_VERSION='1.0.5'
585 PACKAGE_STRING='xfsinfo 1.0.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 XFSINFO_LIBS
631 XFSINFO_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
657 CHANGELOG_CMD
658 STRICT_CFLAGS
659 CWARNFLAGS
660 BASE_CFLAGS
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_silent_rules
750 enable_dependency_tracking
751 enable_selective_werror
752 enable_strict_compilation
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 PKG_CONFIG
764 XFSINFO_CFLAGS
765 XFSINFO_LIBS'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174 done
1175
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194 do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures xfsinfo 1.0.5 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/xfsinfo]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of xfsinfo 1.0.5:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-silent-rules less verbose build output (undo: "make V=1")
1385 --disable-silent-rules verbose build output (undo: "make V=0")
1386 --enable-dependency-tracking
1387 do not reject slow dependency extractors
1388 --disable-dependency-tracking
1389 speeds up one-time build
1390 --disable-selective-werror
1391 Turn off selective compiler errors. (default:
1392 enabled)
1393 --enable-strict-compilation
1394 Enable all warnings from compiler and make them
1395 errors (default: disabled)
1396
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CPP C preprocessor
1406 PKG_CONFIG path to pkg-config utility
1407 XFSINFO_CFLAGS
1408 C compiler flags for XFSINFO, overriding pkg-config
1409 XFSINFO_LIBS
1410 linker flags for XFSINFO, overriding pkg-config
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 xfsinfo configure 1.0.5
1479 generated by GNU Autoconf 2.69
1480
1481 Copyright (C) 2012 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524 fi
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 # accordingly.
1534 ac_fn_c_check_decl ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1543 else
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 $4
1547 int
1548 main ()
1549 {
1550 #ifndef $as_decl_name
1551 #ifdef __cplusplus
1552 (void) $as_decl_use;
1553 #else
1554 (void) $as_decl_name;
1555 #endif
1556 #endif
1557
1558 ;
1559 return 0;
1560 }
1561 _ACEOF
1562 if ac_fn_c_try_compile "$LINENO"; then :
1563 eval "$3=yes"
1564 else
1565 eval "$3=no"
1566 fi
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573
1574 } # ac_fn_c_check_decl
1575
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_cpp ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i && {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_cpp
1612
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1617 ac_fn_c_try_run ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1628 ac_status=$?
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1638 ac_status=$?
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=$ac_status
1648 fi
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_run
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 test -x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_link
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1734
1735 It was created by xfsinfo $as_me 1.0.5, which was
1736 generated by GNU Autoconf 2.69. Invocation command line was
1737
1738 $ $0 $@
1739
1740 _ACEOF
1741 exec 5>>config.log
1742 {
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1747
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764
1765 _ASUNAME
1766
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 $as_echo "PATH: $as_dir"
1773 done
1774 IFS=$as_save_IFS
1775
1776 } >&5
1777
1778 cat >&5 <<_ACEOF
1779
1780
1781 ## ----------- ##
1782 ## Core tests. ##
1783 ## ----------- ##
1784
1785 _ACEOF
1786
1787
1788 # Keep a trace of the command line.
1789 # Strip out --no-create and --no-recursion so they do not pile up.
1790 # Strip out --silent because we don't want to record it for future runs.
1791 # Also quote any args containing shell meta-characters.
1792 # Make two passes to allow for proper duplicate-argument suppression.
1793 ac_configure_args=
1794 ac_configure_args0=
1795 ac_configure_args1=
1796 ac_must_keep_next=false
1797 for ac_pass in 1 2
1798 do
1799 for ac_arg
1800 do
1801 case $ac_arg in
1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1804 | -silent | --silent | --silen | --sile | --sil)
1805 continue ;;
1806 *\'*)
1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 esac
1809 case $ac_pass in
1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1811 2)
1812 as_fn_append ac_configure_args1 " '$ac_arg'"
1813 if test $ac_must_keep_next = true; then
1814 ac_must_keep_next=false # Got value, back to normal.
1815 else
1816 case $ac_arg in
1817 *=* | --config-cache | -C | -disable-* | --disable-* \
1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1820 | -with-* | --with-* | -without-* | --without-* | --x)
1821 case "$ac_configure_args0 " in
1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 esac
1824 ;;
1825 -* ) ac_must_keep_next=true ;;
1826 esac
1827 fi
1828 as_fn_append ac_configure_args " '$ac_arg'"
1829 ;;
1830 esac
1831 done
1832 done
1833 { ac_configure_args0=; unset ac_configure_args0;}
1834 { ac_configure_args1=; unset ac_configure_args1;}
1835
1836 # When interrupted or exit'd, cleanup temporary files, and complete
1837 # config.log. We remove comments because anyway the quotes in there
1838 # would cause problems or look ugly.
1839 # WARNING: Use '\'' to represent an apostrophe within the trap.
1840 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1841 trap 'exit_status=$?
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 $as_echo "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 $as_echo "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 $as_echo "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 $as_echo "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 $as_echo "$as_me: caught signal $ac_signal"
1922 $as_echo "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 $as_echo "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 _ACEOF
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 _ACEOF
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_URL "$PACKAGE_URL"
1962 _ACEOF
1963
1964
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1967 ac_site_file1=NONE
1968 ac_site_file2=NONE
1969 if test -n "$CONFIG_SITE"; then
1970 # We do not want a PATH search for config.site.
1971 case $CONFIG_SITE in #((
1972 -*) ac_site_file1=./$CONFIG_SITE;;
1973 */*) ac_site_file1=$CONFIG_SITE;;
1974 *) ac_site_file1=./$CONFIG_SITE;;
1975 esac
1976 elif test "x$prefix" != xNONE; then
1977 ac_site_file1=$prefix/share/config.site
1978 ac_site_file2=$prefix/etc/config.site
1979 else
1980 ac_site_file1=$ac_default_prefix/share/config.site
1981 ac_site_file2=$ac_default_prefix/etc/config.site
1982 fi
1983 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1984 do
1985 test "x$ac_site_file" = xNONE && continue
1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1988 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1989 sed 's/^/| /' "$ac_site_file" >&5
1990 . "$ac_site_file" \
1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993 as_fn_error $? "failed to load site script $ac_site_file
1994 See \`config.log' for more details" "$LINENO" 5; }
1995 fi
1996 done
1997
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special files
2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2008 fi
2009 else
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2013 fi
2014
2015 # Check that the precious variables saved in the cache have kept the same
2016 # value.
2017 ac_cache_corrupted=false
2018 for ac_var in $ac_precious_vars; do
2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020 eval ac_new_set=\$ac_env_${ac_var}_set
2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022 eval ac_new_val=\$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2024 set,)
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2028 ,set)
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted=: ;;
2032 ,);;
2033 *)
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w=`echo x $ac_old_val`
2037 ac_new_val_w=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted=:
2042 else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\$ac_old_val
2046 fi
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 fi;;
2052 esac
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2055 case $ac_new_val in
2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg=$ac_var=$ac_new_val ;;
2058 esac
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2062 esac
2063 fi
2064 done
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2071 fi
2072 ## -------------------- ##
2073 ## Main body of script. ##
2074 ## -------------------- ##
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083
2084 ac_config_headers="$ac_config_headers config.h"
2085
2086
2087 # Initialize Automake
2088 am__api_version='1.14'
2089
2090 ac_aux_dir=
2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105 done
2106 if test -z "$ac_aux_dir"; then
2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Find a good install program. We prefer a C program (faster),
2120 # so one script is as good as another. But avoid the broken or
2121 # incompatible versions:
2122 # SysV /etc/install, /usr/sbin/install
2123 # SunOS /usr/etc/install
2124 # IRIX /sbin/install
2125 # AIX /bin/install
2126 # AmigaOS /C/install, which installs bootblocks on floppy discs
2127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2130 # OS/2's system install, which has a completely different semantic
2131 # ./install, which can be erroneously created by make from ./install.sh.
2132 # Reject install programs that cannot install multiple files.
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2134 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2135 if test -z "$INSTALL"; then
2136 if ${ac_cv_path_install+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 # Account for people who put trailing slashes in PATH elements.
2145 case $as_dir/ in #((
2146 ./ | .// | /[cC]/* | \
2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2149 /usr/ucb/* ) ;;
2150 *)
2151 # OSF1 and SCO ODT 3.0 have their own names for install.
2152 # Don't use installbsd from OSF since it installs stuff as root
2153 # by default.
2154 for ac_prog in ginstall scoinst install; do
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2157 if test $ac_prog = install &&
2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159 # AIX install. It has an incompatible calling convention.
2160 :
2161 elif test $ac_prog = install &&
2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # program-specific install script used by HP pwplus--don't use.
2164 :
2165 else
2166 rm -rf conftest.one conftest.two conftest.dir
2167 echo one > conftest.one
2168 echo two > conftest.two
2169 mkdir conftest.dir
2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2171 test -s conftest.one && test -s conftest.two &&
2172 test -s conftest.dir/conftest.one &&
2173 test -s conftest.dir/conftest.two
2174 then
2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2176 break 3
2177 fi
2178 fi
2179 fi
2180 done
2181 done
2182 ;;
2183 esac
2184
2185 done
2186 IFS=$as_save_IFS
2187
2188 rm -rf conftest.one conftest.two conftest.dir
2189
2190 fi
2191 if test "${ac_cv_path_install+set}" = set; then
2192 INSTALL=$ac_cv_path_install
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for INSTALL within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 INSTALL=$ac_install_sh
2199 fi
2200 fi
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2202 $as_echo "$INSTALL" >&6; }
2203
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2213 $as_echo_n "checking whether build environment is sane... " >&6; }
2214 # Reject unsafe characters in $srcdir or the absolute working directory
2215 # name. Accept space and tab only in the latter.
2216 am_lf='
2217 '
2218 case `pwd` in
2219 *[\\\"\#\$\&\'\`$am_lf]*)
2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2221 esac
2222 case $srcdir in
2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2225 esac
2226
2227 # Do 'set' in a subshell so we don't clobber the current shell's
2228 # arguments. Must try -L first in case configure is actually a
2229 # symlink; some systems play weird games with the mod time of symlinks
2230 # (eg FreeBSD returns the mod time of the symlink's containing
2231 # directory).
2232 if (
2233 am_has_slept=no
2234 for am_try in 1 2; do
2235 echo "timestamp, slept: $am_has_slept" > conftest.file
2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2237 if test "$*" = "X"; then
2238 # -L didn't work.
2239 set X `ls -t "$srcdir/configure" conftest.file`
2240 fi
2241 if test "$*" != "X $srcdir/configure conftest.file" \
2242 && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244 # If neither matched, then we have a broken ls. This can happen
2245 # if, for instance, CONFIG_SHELL is bash and it inherits a
2246 # broken ls alias from the environment. This has actually
2247 # happened. Such a system could not be considered "sane".
2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2249 alias in your environment" "$LINENO" 5
2250 fi
2251 if test "$2" = conftest.file || test $am_try -eq 2; then
2252 break
2253 fi
2254 # Just in case.
2255 sleep 1
2256 am_has_slept=yes
2257 done
2258 test "$2" = conftest.file
2259 )
2260 then
2261 # Ok.
2262 :
2263 else
2264 as_fn_error $? "newly created file is older than distributed files!
2265 Check your system clock" "$LINENO" 5
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2268 $as_echo "yes" >&6; }
2269 # If we didn't sleep, we still need to ensure time stamps of config.status and
2270 # generated files are strictly newer.
2271 am_sleep_pid=
2272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2273 ( sleep 1 ) &
2274 am_sleep_pid=$!
2275 fi
2276
2277 rm -f conftest.file
2278
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $.
2285 # By default was `s,x,x', remove it if useless.
2286 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2287 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2288
2289 # expand $ac_aux_dir to an absolute path
2290 am_aux_dir=`cd $ac_aux_dir && pwd`
2291
2292 if test x"${MISSING+set}" != xset; then
2293 case $am_aux_dir in
2294 *\ * | *\ *)
2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2296 *)
2297 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2298 esac
2299 fi
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --is-lightweight"; then
2302 am_missing_run="$MISSING "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2307 fi
2308
2309 if test x"${install_sh}" != xset; then
2310 case $am_aux_dir in
2311 *\ * | *\ *)
2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2313 *)
2314 install_sh="\${SHELL} $am_aux_dir/install-sh"
2315 esac
2316 fi
2317
2318 # Installed binaries are usually stripped using 'strip' when the user
2319 # run "make install-strip". However 'strip' might not be the right
2320 # tool to use in cross-compilation environments, therefore Automake
2321 # will honor the 'STRIP' environment variable to overrule this program.
2322 if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if ${ac_cv_prog_STRIP+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 STRIP=$ac_cv_prog_STRIP
2352 if test -n "$STRIP"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2354 $as_echo "$STRIP" >&6; }
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2358 fi
2359
2360
2361 fi
2362 if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365 set dummy strip; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390 fi
2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392 if test -n "$ac_ct_STRIP"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2394 $as_echo "$ac_ct_STRIP" >&6; }
2395 else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2398 fi
2399
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 STRIP=$ac_ct_STRIP
2410 fi
2411 else
2412 STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420 if test -z "$MKDIR_P"; then
2421 if ${ac_cv_path_mkdir+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_prog in mkdir gmkdir; do
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433 'mkdir (GNU coreutils) '* | \
2434 'mkdir (coreutils) '* | \
2435 'mkdir (fileutils) '4.1*)
2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2437 break 3;;
2438 esac
2439 done
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445
2446 test -d ./--version && rmdir ./--version
2447 if test "${ac_cv_path_mkdir+set}" = set; then
2448 MKDIR_P="$ac_cv_path_mkdir -p"
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for MKDIR_P within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 MKDIR_P="$ac_install_sh -d"
2455 fi
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2458 $as_echo "$MKDIR_P" >&6; }
2459
2460 for ac_prog in gawk mawk nawk awk
2461 do
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 AWK=$ac_cv_prog_AWK
2490 if test -n "$AWK"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498
2499 test -n "$AWK" && break
2500 done
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2504 set x ${MAKE-make}
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat >conftest.make <<\_ACEOF
2510 SHELL = /bin/sh
2511 all:
2512 @echo '@@@%%%=$(MAKE)=@@@%%%'
2513 _ACEOF
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2516 *@@@%%%=?*=@@@%%%*)
2517 eval ac_cv_prog_make_${ac_make}_set=yes;;
2518 *)
2519 eval ac_cv_prog_make_${ac_make}_set=no;;
2520 esac
2521 rm -f conftest.make
2522 fi
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 SET_MAKE=
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 SET_MAKE="MAKE=${MAKE-make}"
2531 fi
2532
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2536 am__leading_dot=.
2537 else
2538 am__leading_dot=_
2539 fi
2540 rmdir .tst 2>/dev/null
2541
2542 # Check whether --enable-silent-rules was given.
2543 if test "${enable_silent_rules+set}" = set; then :
2544 enableval=$enable_silent_rules;
2545 fi
2546
2547 case $enable_silent_rules in # (((
2548 yes) AM_DEFAULT_VERBOSITY=0;;
2549 no) AM_DEFAULT_VERBOSITY=1;;
2550 *) AM_DEFAULT_VERBOSITY=1;;
2551 esac
2552 am_make=${MAKE-make}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2555 if ${am_cv_make_support_nested_variables+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if $as_echo 'TRUE=$(BAR$(V))
2559 BAR0=false
2560 BAR1=true
2561 V=1
2562 am__doit:
2563 @$(TRUE)
2564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2565 am_cv_make_support_nested_variables=yes
2566 else
2567 am_cv_make_support_nested_variables=no
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2571 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2572 if test $am_cv_make_support_nested_variables = yes; then
2573 AM_V='$(V)'
2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2575 else
2576 AM_V=$AM_DEFAULT_VERBOSITY
2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2578 fi
2579 AM_BACKSLASH='\'
2580
2581 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2583 # is not polluted with repeated "-I."
2584 am__isrc=' -I$(srcdir)'
2585 # test to see if srcdir already configured
2586 if test -f $srcdir/config.status; then
2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2588 fi
2589 fi
2590
2591 # test whether we have cygpath
2592 if test -z "$CYGPATH_W"; then
2593 if (cygpath --version) >/dev/null 2>/dev/null; then
2594 CYGPATH_W='cygpath -w'
2595 else
2596 CYGPATH_W=echo
2597 fi
2598 fi
2599
2600
2601 # Define the identity of the package.
2602 PACKAGE='xfsinfo'
2603 VERSION='1.0.5'
2604
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE "$PACKAGE"
2608 _ACEOF
2609
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define VERSION "$VERSION"
2613 _ACEOF
2614
2615 # Some tools Automake needs.
2616
2617 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2618
2619
2620 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2621
2622
2623 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2624
2625
2626 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2627
2628
2629 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2631 # For better backward compatibility. To be removed once Automake 1.9.x
2632 # dies out for good. For more background, see:
2633 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2634 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2635 mkdir_p='$(MKDIR_P)'
2636
2637 # We need awk for the "check" target. The system "awk" is bad on
2638 # some platforms.
2639 # Always define AMTAR for backward compatibility. Yes, it's still used
2640 # in the wild :-( We should find a proper way to deprecate it ...
2641 AMTAR='$${TAR-tar}'
2642
2643
2644 # We'll loop over all known methods to create a tar archive until one works.
2645 _am_tools='gnutar pax cpio none'
2646
2647 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2648
2649
2650
2651
2652
2653
2654 # POSIX will say in a future version that running "rm -f" with no argument
2655 # is OK; and we want to be able to make that assumption in our Makefile
2656 # recipes. So use an aggressive probe to check that the usage we want is
2657 # actually supported "in the wild" to an acceptable degree.
2658 # See automake bug#10828.
2659 # To make any issue more visible, cause the running configure to be aborted
2660 # by default if the 'rm' program in use doesn't match our expectations; the
2661 # user can still override this though.
2662 if rm -f && rm -fr && rm -rf; then : OK; else
2663 cat >&2 <<'END'
2664 Oops!
2665
2666 Your 'rm' program seems unable to run without file operands specified
2667 on the command line, even when the '-f' option is present. This is contrary
2668 to the behaviour of most rm programs out there, and not conforming with
2669 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2670
2671 Please tell bug-automake@gnu.org about your system, including the value
2672 of your $PATH and any error possibly output before this message. This
2673 can help us improve future automake versions.
2674
2675 END
2676 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2677 echo 'Configuration will proceed anyway, since you have set the' >&2
2678 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2679 echo >&2
2680 else
2681 cat >&2 <<'END'
2682 Aborting the configuration process, to ensure you take notice of the issue.
2683
2684 You can download and install GNU coreutils to get an 'rm' implementation
2685 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2686
2687 If you want to complete the configuration process using your problematic
2688 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2689 to "yes", and re-run configure.
2690
2691 END
2692 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2693 fi
2694 fi
2695
2696 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708 DEPDIR="${am__leading_dot}deps"
2709
2710 ac_config_commands="$ac_config_commands depfiles"
2711
2712
2713 am_make=${MAKE-make}
2714 cat > confinc << 'END'
2715 am__doit:
2716 @echo this is the am__doit target
2717 .PHONY: am__doit
2718 END
2719 # If we don't find an include directive, just comment out the code.
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2721 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2722 am__include="#"
2723 am__quote=
2724 _am_result=none
2725 # First try GNU make style include.
2726 echo "include confinc" > confmf
2727 # Ignore all kinds of additional output from 'make'.
2728 case `$am_make -s -f confmf 2> /dev/null` in #(
2729 *the\ am__doit\ target*)
2730 am__include=include
2731 am__quote=
2732 _am_result=GNU
2733 ;;
2734 esac
2735 # Now try BSD make style include.
2736 if test "$am__include" = "#"; then
2737 echo '.include "confinc"' > confmf
2738 case `$am_make -s -f confmf 2> /dev/null` in #(
2739 *the\ am__doit\ target*)
2740 am__include=.include
2741 am__quote="\""
2742 _am_result=BSD
2743 ;;
2744 esac
2745 fi
2746
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2749 $as_echo "$_am_result" >&6; }
2750 rm -f confinc confmf
2751
2752 # Check whether --enable-dependency-tracking was given.
2753 if test "${enable_dependency_tracking+set}" = set; then :
2754 enableval=$enable_dependency_tracking;
2755 fi
2756
2757 if test "x$enable_dependency_tracking" != xno; then
2758 am_depcomp="$ac_aux_dir/depcomp"
2759 AMDEPBACKSLASH='\'
2760 am__nodep='_no'
2761 fi
2762 if test "x$enable_dependency_tracking" != xno; then
2763 AMDEP_TRUE=
2764 AMDEP_FALSE='#'
2765 else
2766 AMDEP_TRUE='#'
2767 AMDEP_FALSE=
2768 fi
2769
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 CC=$ac_cv_prog_CC
2805 if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 fi
2815 if test -z "$ac_cv_prog_CC"; then
2816 ac_ct_CC=$CC
2817 # Extract the first word of "gcc", so it can be a program name with args.
2818 set dummy gcc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="gcc"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847 $as_echo "$ac_ct_CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_CC" = x; then
2854 CC=""
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 CC=$ac_ct_CC
2863 fi
2864 else
2865 CC="$ac_cv_prog_CC"
2866 fi
2867
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}cc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 fi
2909 if test -z "$CC"; then
2910 # Extract the first word of "cc", so it can be a program name with args.
2911 set dummy cc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 ac_prog_rejected=no
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2929 ac_prog_rejected=yes
2930 continue
2931 fi
2932 ac_cv_prog_CC="cc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 if test $ac_prog_rejected = yes; then
2941 # We found a bogon in the path, so make sure we never use it.
2942 set dummy $ac_cv_prog_CC
2943 shift
2944 if test $# != 0; then
2945 # We chose a different compiler from the bogus one.
2946 # However, it has the same basename, so the bogon will be chosen
2947 # first if we set CC to just the basename; use the full file name.
2948 shift
2949 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 fi
2951 fi
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$CC"; then
2966 if test -n "$ac_tool_prefix"; then
2967 for ac_prog in cl.exe
2968 do
2969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006 test -n "$CC" && break
3007 done
3008 fi
3009 if test -z "$CC"; then
3010 ac_ct_CC=$CC
3011 for ac_prog in cl.exe
3012 do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_CC="$ac_prog"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 test -n "$ac_ct_CC" && break
3051 done
3052
3053 if test "x$ac_ct_CC" = x; then
3054 CC=""
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057 yes:)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned=yes ;;
3061 esac
3062 CC=$ac_ct_CC
3063 fi
3064 fi
3065
3066 fi
3067
3068
3069 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "no acceptable C compiler found in \$PATH
3072 See \`config.log' for more details" "$LINENO" 5; }
3073
3074 # Provide some information about the compiler.
3075 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3076 set X $ac_compile
3077 ac_compiler=$2
3078 for ac_option in --version -v -V -qversion; do
3079 { { ac_try="$ac_compiler $ac_option >&5"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3087 ac_status=$?
3088 if test -s conftest.err; then
3089 sed '10a\
3090 ... rest of stderr output deleted ...
3091 10q' conftest.err >conftest.er1
3092 cat conftest.er1 >&5
3093 fi
3094 rm -f conftest.er1 conftest.err
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }
3097 done
3098
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3101
3102 int
3103 main ()
3104 {
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 ac_clean_files_save=$ac_clean_files
3111 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3112 # Try to create an executable without -o first, disregard a.out.
3113 # It will help us diagnose broken compilers, and finding out an intuition
3114 # of exeext.
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3116 $as_echo_n "checking whether the C compiler works... " >&6; }
3117 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118
3119 # The possible output files:
3120 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3121
3122 ac_rmfiles=
3123 for ac_file in $ac_files
3124 do
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3128 esac
3129 done
3130 rm -f $ac_rmfiles
3131
3132 if { { ac_try="$ac_link_default"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link_default") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; then :
3143 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3144 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3145 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3146 # so that the user can short-circuit this test for compilers unknown to
3147 # Autoconf.
3148 for ac_file in $ac_files ''
3149 do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3153 ;;
3154 [ab].out )
3155 # We found the default executable, but exeext='' is most
3156 # certainly right.
3157 break;;
3158 *.* )
3159 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3160 then :; else
3161 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162 fi
3163 # We set ac_cv_exeext here because the later test for it is not
3164 # safe: cross compilers may not add the suffix if given an `-o'
3165 # argument, so we may need to know it at that point already.
3166 # Even if this section looks crufty: it has the advantage of
3167 # actually working.
3168 break;;
3169 * )
3170 break;;
3171 esac
3172 done
3173 test "$ac_cv_exeext" = no && ac_cv_exeext=
3174
3175 else
3176 ac_file=''
3177 fi
3178 if test -z "$ac_file"; then :
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error 77 "C compiler cannot create executables
3187 See \`config.log' for more details" "$LINENO" 5; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190 $as_echo "yes" >&6; }
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3193 $as_echo_n "checking for C compiler default output file name... " >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3195 $as_echo "$ac_file" >&6; }
3196 ac_exeext=$ac_cv_exeext
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3201 $as_echo_n "checking for suffix of executables... " >&6; }
3202 if { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215 # work properly (i.e., refer to `conftest.exe'), while it won't with
3216 # `rm'.
3217 for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 break;;
3223 * ) break;;
3224 esac
3225 done
3226 else
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details" "$LINENO" 5; }
3231 fi
3232 rm -f conftest conftest$ac_cv_exeext
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3234 $as_echo "$ac_cv_exeext" >&6; }
3235
3236 rm -f conftest.$ac_ext
3237 EXEEXT=$ac_cv_exeext
3238 ac_exeext=$EXEEXT
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <stdio.h>
3242 int
3243 main ()
3244 {
3245 FILE *f = fopen ("conftest.out", "w");
3246 return ferror (f) || fclose (f) != 0;
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 ac_clean_files="$ac_clean_files conftest.out"
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3256 $as_echo_n "checking whether we are cross compiling... " >&6; }
3257 if test "$cross_compiling" != yes; then
3258 { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 if { ac_try='./conftest$ac_cv_exeext'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details" "$LINENO" 5; }
3290 fi
3291 fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3295
3296 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3299 $as_echo_n "checking for suffix of object files... " >&6; }
3300 if ${ac_cv_objext+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.o conftest.obj
3315 if { { ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compile") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 for ac_file in conftest.o conftest.obj conftest.*; do
3327 test -f "$ac_file" || continue;
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3331 break;;
3332 esac
3333 done
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of object files: cannot compile
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3346 $as_echo "$ac_cv_objext" >&6; }
3347 OBJEXT=$ac_cv_objext
3348 ac_objext=$OBJEXT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3351 if ${ac_cv_c_compiler_gnu+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360 #ifndef __GNUC__
3361 choke me
3362 #endif
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_compiler_gnu=yes
3370 else
3371 ac_compiler_gnu=no
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3378 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3379 if test $ac_compiler_gnu = yes; then
3380 GCC=yes
3381 else
3382 GCC=
3383 fi
3384 ac_test_CFLAGS=${CFLAGS+set}
3385 ac_save_CFLAGS=$CFLAGS
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3387 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3388 if ${ac_cv_prog_cc_g+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407 ac_cv_prog_cc_g=yes
3408 else
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422
3423 else
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_g=yes
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3448 $as_echo "$ac_cv_prog_cc_g" >&6; }
3449 if test "$ac_test_CFLAGS" = set; then
3450 CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457 else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3465 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3466 if ${ac_cv_prog_cc_c89+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_cv_prog_cc_c89=no
3470 ac_save_CC=$CC
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473 #include <stdarg.h>
3474 #include <stdio.h>
3475 struct stat;
3476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3477 struct buf { int x; };
3478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3479 static char *e (p, i)
3480 char **p;
3481 int i;
3482 {
3483 return p[i];
3484 }
3485 static char *f (char * (*g) (char **, int), char **p, ...)
3486 {
3487 char *s;
3488 va_list v;
3489 va_start (v,p);
3490 s = g (p, va_arg (v,int));
3491 va_end (v);
3492 return s;
3493 }
3494
3495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3496 function prototypes and stuff, but not '\xHH' hex character constants.
3497 These don't provoke an error unfortunately, instead are silently treated
3498 as 'x'. The following induces an error, until -std is added to get
3499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3500 array size at least. It's necessary to write '\x00'==0 to get something
3501 that's true only with -std. */
3502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3503
3504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3505 inside strings and character constants. */
3506 #define FOO(x) 'x'
3507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3508
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3515 int
3516 main ()
3517 {
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 do
3526 CC="$ac_save_CC $ac_arg"
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_c89=$ac_arg
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext
3531 test "x$ac_cv_prog_cc_c89" != "xno" && break
3532 done
3533 rm -f conftest.$ac_ext
3534 CC=$ac_save_CC
3535
3536 fi
3537 # AC_CACHE_VAL
3538 case "x$ac_cv_prog_cc_c89" in
3539 x)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3541 $as_echo "none needed" >&6; } ;;
3542 xno)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 $as_echo "unsupported" >&6; } ;;
3545 *)
3546 CC="$CC $ac_cv_prog_cc_c89"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549 esac
3550 if test "x$ac_cv_prog_cc_c89" != xno; then :
3551
3552 fi
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560 ac_ext=c
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3566 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3567 if ${am_cv_prog_cc_c_o+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 # Make sure it works both with $CC and with simple cc.
3582 # Following AC_PROG_CC_C_O, we do the test twice because some
3583 # compilers refuse to overwrite an existing .o file with -o,
3584 # though they will create one.
3585 am_cv_prog_cc_c_o=yes
3586 for am_i in 1 2; do
3587 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3588 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } \
3592 && test -f conftest2.$ac_objext; then
3593 : OK
3594 else
3595 am_cv_prog_cc_c_o=no
3596 break
3597 fi
3598 done
3599 rm -f core conftest*
3600 unset am_i
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3603 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3604 if test "$am_cv_prog_cc_c_o" != yes; then
3605 # Losing compiler, so override with the script.
3606 # FIXME: It is wrong to rewrite CC.
3607 # But if we don't then we get into trouble of one sort or another.
3608 # A longer-term fix would be to have automake use am__CC in this case,
3609 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3610 CC="$am_aux_dir/compile $CC"
3611 fi
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619 depcc="$CC" am_compiler_list=
3620
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3622 $as_echo_n "checking dependency style of $depcc... " >&6; }
3623 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3627 # We make a subdir and do the tests there. Otherwise we can end up
3628 # making bogus files that we don't know about and never remove. For
3629 # instance it was reported that on HP-UX the gcc test will end up
3630 # making a dummy file named 'D' -- because '-MD' means "put the output
3631 # in D".
3632 rm -rf conftest.dir
3633 mkdir conftest.dir
3634 # Copy depcomp to subdir because otherwise we won't find it if we're
3635 # using a relative directory.
3636 cp "$am_depcomp" conftest.dir
3637 cd conftest.dir
3638 # We will build objects and dependencies in a subdirectory because
3639 # it helps to detect inapplicable dependency modes. For instance
3640 # both Tru64's cc and ICC support -MD to output dependencies as a
3641 # side effect of compilation, but ICC will put the dependencies in
3642 # the current directory while Tru64 will put them in the object
3643 # directory.
3644 mkdir sub
3645
3646 am_cv_CC_dependencies_compiler_type=none
3647 if test "$am_compiler_list" = ""; then
3648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3649 fi
3650 am__universal=false
3651 case " $depcc " in #(
3652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3653 esac
3654
3655 for depmode in $am_compiler_list; do
3656 # Setup a source with many dependencies, because some compilers
3657 # like to wrap large dependency lists on column 80 (with \), and
3658 # we should not choose a depcomp mode which is confused by this.
3659 #
3660 # We need to recreate these files for each test, as the compiler may
3661 # overwrite some of them when testing with obscure command lines.
3662 # This happens at least with the AIX C compiler.
3663 : > sub/conftest.c
3664 for i in 1 2 3 4 5 6; do
3665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3667 # Solaris 10 /bin/sh.
3668 echo '/* dummy */' > sub/conftst$i.h
3669 done
3670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3671
3672 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3673 # mode. It turns out that the SunPro C++ compiler does not properly
3674 # handle '-M -o', and we need to detect this. Also, some Intel
3675 # versions had trouble with output in subdirs.
3676 am__obj=sub/conftest.${OBJEXT-o}
3677 am__minus_obj="-o $am__obj"
3678 case $depmode in
3679 gcc)
3680 # This depmode causes a compiler race in universal mode.
3681 test "$am__universal" = false || continue
3682 ;;
3683 nosideeffect)
3684 # After this tag, mechanisms are not by side-effect, so they'll
3685 # only be used when explicitly requested.
3686 if test "x$enable_dependency_tracking" = xyes; then
3687 continue
3688 else
3689 break
3690 fi
3691 ;;
3692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3693 # This compiler won't grok '-c -o', but also, the minuso test has
3694 # not run yet. These depmodes are late enough in the game, and
3695 # so weak that their functioning should not be impacted.
3696 am__obj=conftest.${OBJEXT-o}
3697 am__minus_obj=
3698 ;;
3699 none) break ;;
3700 esac
3701 if depmode=$depmode \
3702 source=sub/conftest.c object=$am__obj \
3703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3705 >/dev/null 2>conftest.err &&
3706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3710 # icc doesn't choke on unknown options, it will just issue warnings
3711 # or remarks (even with -Werror). So we grep stderr for any message
3712 # that says an option was ignored or not supported.
3713 # When given -MP, icc 7.0 and 7.1 complain thusly:
3714 # icc: Command line warning: ignoring option '-M'; no argument required
3715 # The diagnosis changed in icc 8.0:
3716 # icc: Command line remark: option '-MP' not supported
3717 if (grep 'ignoring option' conftest.err ||
3718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3719 am_cv_CC_dependencies_compiler_type=$depmode
3720 break
3721 fi
3722 fi
3723 done
3724
3725 cd ..
3726 rm -rf conftest.dir
3727 else
3728 am_cv_CC_dependencies_compiler_type=none
3729 fi
3730
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3733 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3734 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3735
3736 if
3737 test "x$enable_dependency_tracking" != xno \
3738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3739 am__fastdepCC_TRUE=
3740 am__fastdepCC_FALSE='#'
3741 else
3742 am__fastdepCC_TRUE='#'
3743 am__fastdepCC_FALSE=
3744 fi
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3748 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3749 if ${ac_cv_prog_cc_c99+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_cv_prog_cc_c99=no
3753 ac_save_CC=$CC
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #include <stdarg.h>
3757 #include <stdbool.h>
3758 #include <stdlib.h>
3759 #include <wchar.h>
3760 #include <stdio.h>
3761
3762 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3763 #define debug(...) fprintf (stderr, __VA_ARGS__)
3764 #define showlist(...) puts (#__VA_ARGS__)
3765 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3766 static void
3767 test_varargs_macros (void)
3768 {
3769 int x = 1234;
3770 int y = 5678;
3771 debug ("Flag");
3772 debug ("X = %d\n", x);
3773 showlist (The first, second, and third items.);
3774 report (x>y, "x is %d but y is %d", x, y);
3775 }
3776
3777 // Check long long types.
3778 #define BIG64 18446744073709551615ull
3779 #define BIG32 4294967295ul
3780 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3781 #if !BIG_OK
3782 your preprocessor is broken;
3783 #endif
3784 #if BIG_OK
3785 #else
3786 your preprocessor is broken;
3787 #endif
3788 static long long int bignum = -9223372036854775807LL;
3789 static unsigned long long int ubignum = BIG64;
3790
3791 struct incomplete_array
3792 {
3793 int datasize;
3794 double data[];
3795 };
3796
3797 struct named_init {
3798 int number;
3799 const wchar_t *name;
3800 double average;
3801 };
3802
3803 typedef const char *ccp;
3804
3805 static inline int
3806 test_restrict (ccp restrict text)
3807 {
3808 // See if C++-style comments work.
3809 // Iterate through items via the restricted pointer.
3810 // Also check for declarations in for loops.
3811 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3812 continue;
3813 return 0;
3814 }
3815
3816 // Check varargs and va_copy.
3817 static void
3818 test_varargs (const char *format, ...)
3819 {
3820 va_list args;
3821 va_start (args, format);
3822 va_list args_copy;
3823 va_copy (args_copy, args);
3824
3825 const char *str;
3826 int number;
3827 float fnumber;
3828
3829 while (*format)
3830 {
3831 switch (*format++)
3832 {
3833 case 's': // string
3834 str = va_arg (args_copy, const char *);
3835 break;
3836 case 'd': // int
3837 number = va_arg (args_copy, int);
3838 break;
3839 case 'f': // float
3840 fnumber = va_arg (args_copy, double);
3841 break;
3842 default:
3843 break;
3844 }
3845 }
3846 va_end (args_copy);
3847 va_end (args);
3848 }
3849
3850 int
3851 main ()
3852 {
3853
3854 // Check bool.
3855 _Bool success = false;
3856
3857 // Check restrict.
3858 if (test_restrict ("String literal") == 0)
3859 success = true;
3860 char *restrict newvar = "Another string";
3861
3862 // Check varargs.
3863 test_varargs ("s, d' f .", "string", 65, 34.234);
3864 test_varargs_macros ();
3865
3866 // Check flexible array members.
3867 struct incomplete_array *ia =
3868 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3869 ia->datasize = 10;
3870 for (int i = 0; i < ia->datasize; ++i)
3871 ia->data[i] = i * 1.234;
3872
3873 // Check named initializers.
3874 struct named_init ni = {
3875 .number = 34,
3876 .name = L"Test wide string",
3877 .average = 543.34343,
3878 };
3879
3880 ni.number = 58;
3881
3882 int dynamic_array[ni.number];
3883 dynamic_array[ni.number - 1] = 543;
3884
3885 // work around unused variable warnings
3886 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3887 || dynamic_array[ni.number - 1] != 543);
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3894 do
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c99=$ac_arg
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c99" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3904
3905 fi
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c99" in
3908 x)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911 xno)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3914 *)
3915 CC="$CC $ac_cv_prog_cc_c99"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3917 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c99" != xno; then :
3920
3921 fi
3922
3923
3924
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3931 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3932 # On Suns, sometimes $CPP names a directory.
3933 if test -n "$CPP" && test -d "$CPP"; then
3934 CPP=
3935 fi
3936 if test -z "$CPP"; then
3937 if ${ac_cv_prog_CPP+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 # Double quotes because CPP needs to be expanded
3941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3942 do
3943 ac_preproc_ok=false
3944 for ac_c_preproc_warn_flag in '' yes
3945 do
3946 # Use a header file that comes with gcc, so configuring glibc
3947 # with a fresh cross-compiler works.
3948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3949 # <limits.h> exists even on freestanding compilers.
3950 # On the NeXT, cc -E runs the code through the compiler's parser,
3951 # not just through cpp. "Syntax error" is here to catch this case.
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959 Syntax error
3960 _ACEOF
3961 if ac_fn_c_try_cpp "$LINENO"; then :
3962
3963 else
3964 # Broken: fails on valid input.
3965 continue
3966 fi
3967 rm -f conftest.err conftest.i conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether nonexistent headers
3970 # can be detected and how.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <ac_nonexistent.h>
3974 _ACEOF
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3976 # Broken: success on invalid input.
3977 continue
3978 else
3979 # Passes both tests.
3980 ac_preproc_ok=:
3981 break
3982 fi
3983 rm -f conftest.err conftest.i conftest.$ac_ext
3984
3985 done
3986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3987 rm -f conftest.i conftest.err conftest.$ac_ext
3988 if $ac_preproc_ok; then :
3989 break
3990 fi
3991
3992 done
3993 ac_cv_prog_CPP=$CPP
3994
3995 fi
3996 CPP=$ac_cv_prog_CPP
3997 else
3998 ac_cv_prog_CPP=$CPP
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4001 $as_echo "$CPP" >&6; }
4002 ac_preproc_ok=false
4003 for ac_c_preproc_warn_flag in '' yes
4004 do
4005 # Use a header file that comes with gcc, so configuring glibc
4006 # with a fresh cross-compiler works.
4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4008 # <limits.h> exists even on freestanding compilers.
4009 # On the NeXT, cc -E runs the code through the compiler's parser,
4010 # not just through cpp. "Syntax error" is here to catch this case.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #ifdef __STDC__
4014 # include <limits.h>
4015 #else
4016 # include <assert.h>
4017 #endif
4018 Syntax error
4019 _ACEOF
4020 if ac_fn_c_try_cpp "$LINENO"; then :
4021
4022 else
4023 # Broken: fails on valid input.
4024 continue
4025 fi
4026 rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032 #include <ac_nonexistent.h>
4033 _ACEOF
4034 if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4036 continue
4037 else
4038 # Passes both tests.
4039 ac_preproc_ok=:
4040 break
4041 fi
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044 done
4045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046 rm -f conftest.i conftest.err conftest.$ac_ext
4047 if $ac_preproc_ok; then :
4048
4049 else
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4053 See \`config.log' for more details" "$LINENO" 5; }
4054 fi
4055
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4064 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4065 if ${ac_cv_path_GREP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if test -z "$GREP"; then
4069 ac_path_GREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in grep ggrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4079 as_fn_executable_p "$ac_path_GREP" || continue
4080 # Check for GNU ac_path_GREP and select it if it is found.
4081 # Check for GNU $ac_path_GREP
4082 case `"$ac_path_GREP" --version 2>&1` in
4083 *GNU*)
4084 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4085 *)
4086 ac_count=0
4087 $as_echo_n 0123456789 >"conftest.in"
4088 while :
4089 do
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 $as_echo 'GREP' >> "conftest.nl"
4094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 as_fn_arith $ac_count + 1 && ac_count=$as_val
4097 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_GREP="$ac_path_GREP"
4100 ac_path_GREP_max=$ac_count
4101 fi
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4104 done
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108 $ac_path_GREP_found && break 3
4109 done
4110 done
4111 done
4112 IFS=$as_save_IFS
4113 if test -z "$ac_cv_path_GREP"; then
4114 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4115 fi
4116 else
4117 ac_cv_path_GREP=$GREP
4118 fi
4119
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4122 $as_echo "$ac_cv_path_GREP" >&6; }
4123 GREP="$ac_cv_path_GREP"
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4127 $as_echo_n "checking for egrep... " >&6; }
4128 if ${ac_cv_path_EGREP+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4132 then ac_cv_path_EGREP="$GREP -E"
4133 else
4134 if test -z "$EGREP"; then
4135 ac_path_EGREP_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in egrep; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4145 as_fn_executable_p "$ac_path_EGREP" || continue
4146 # Check for GNU ac_path_EGREP and select it if it is found.
4147 # Check for GNU $ac_path_EGREP
4148 case `"$ac_path_EGREP" --version 2>&1` in
4149 *GNU*)
4150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4151 *)
4152 ac_count=0
4153 $as_echo_n 0123456789 >"conftest.in"
4154 while :
4155 do
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo 'EGREP' >> "conftest.nl"
4160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_EGREP="$ac_path_EGREP"
4166 ac_path_EGREP_max=$ac_count
4167 fi
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174 $ac_path_EGREP_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
4179 if test -z "$ac_cv_path_EGREP"; then
4180 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181 fi
4182 else
4183 ac_cv_path_EGREP=$EGREP
4184 fi
4185
4186 fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4189 $as_echo "$ac_cv_path_EGREP" >&6; }
4190 EGREP="$ac_cv_path_EGREP"
4191
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4194 $as_echo_n "checking for ANSI C header files... " >&6; }
4195 if ${ac_cv_header_stdc+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <stdlib.h>
4201 #include <stdarg.h>
4202 #include <string.h>
4203 #include <float.h>
4204
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_header_stdc=yes
4215 else
4216 ac_cv_header_stdc=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219
4220 if test $ac_cv_header_stdc = yes; then
4221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <string.h>
4225
4226 _ACEOF
4227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4228 $EGREP "memchr" >/dev/null 2>&1; then :
4229
4230 else
4231 ac_cv_header_stdc=no
4232 fi
4233 rm -f conftest*
4234
4235 fi
4236
4237 if test $ac_cv_header_stdc = yes; then
4238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <stdlib.h>
4242
4243 _ACEOF
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 $EGREP "free" >/dev/null 2>&1; then :
4246
4247 else
4248 ac_cv_header_stdc=no
4249 fi
4250 rm -f conftest*
4251
4252 fi
4253
4254 if test $ac_cv_header_stdc = yes; then
4255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4256 if test "$cross_compiling" = yes; then :
4257 :
4258 else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <ctype.h>
4262 #include <stdlib.h>
4263 #if ((' ' & 0x0FF) == 0x020)
4264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4266 #else
4267 # define ISLOWER(c) \
4268 (('a' <= (c) && (c) <= 'i') \
4269 || ('j' <= (c) && (c) <= 'r') \
4270 || ('s' <= (c) && (c) <= 'z'))
4271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4272 #endif
4273
4274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4275 int
4276 main ()
4277 {
4278 int i;
4279 for (i = 0; i < 256; i++)
4280 if (XOR (islower (i), ISLOWER (i))
4281 || toupper (i) != TOUPPER (i))
4282 return 2;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_run "$LINENO"; then :
4287
4288 else
4289 ac_cv_header_stdc=no
4290 fi
4291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4292 conftest.$ac_objext conftest.beam conftest.$ac_ext
4293 fi
4294
4295 fi
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4298 $as_echo "$ac_cv_header_stdc" >&6; }
4299 if test $ac_cv_header_stdc = yes; then
4300
4301 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4302
4303 fi
4304
4305 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4307 inttypes.h stdint.h unistd.h
4308 do :
4309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4310 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4311 "
4312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4313 cat >>confdefs.h <<_ACEOF
4314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315 _ACEOF
4316
4317 fi
4318
4319 done
4320
4321
4322
4323
4324
4325
4326 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4327 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4328 CLANGCC="yes"
4329 else
4330 CLANGCC="no"
4331 fi
4332
4333 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4334 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4335 INTELCC="yes"
4336 else
4337 INTELCC="no"
4338 fi
4339
4340 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4341 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4342 SUNCC="yes"
4343 else
4344 SUNCC="no"
4345 fi
4346
4347
4348
4349
4350 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 case $PKG_CONFIG in
4360 [\\/]* | ?:[\\/]*)
4361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4362 ;;
4363 *)
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 ;;
4380 esac
4381 fi
4382 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4383 if test -n "$PKG_CONFIG"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4385 $as_echo "$PKG_CONFIG" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 fi
4393 if test -z "$ac_cv_path_PKG_CONFIG"; then
4394 ac_pt_PKG_CONFIG=$PKG_CONFIG
4395 # Extract the first word of "pkg-config", so it can be a program name with args.
4396 set dummy pkg-config; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 case $ac_pt_PKG_CONFIG in
4403 [\\/]* | ?:[\\/]*)
4404 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4405 ;;
4406 *)
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 ;;
4423 esac
4424 fi
4425 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4426 if test -n "$ac_pt_PKG_CONFIG"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4428 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434 if test "x$ac_pt_PKG_CONFIG" = x; then
4435 PKG_CONFIG=""
4436 else
4437 case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443 PKG_CONFIG=$ac_pt_PKG_CONFIG
4444 fi
4445 else
4446 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4447 fi
4448
4449 fi
4450 if test -n "$PKG_CONFIG"; then
4451 _pkg_min_version=0.9.0
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4453 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4454 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456 $as_echo "yes" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 PKG_CONFIG=""
4461 fi
4462
4463 fi
4464 # Make sure we can run config.sub.
4465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4469 $as_echo_n "checking build system type... " >&6; }
4470 if ${ac_cv_build+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_build_alias=$build_alias
4474 test "x$ac_build_alias" = x &&
4475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4476 test "x$ac_build_alias" = x &&
4477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4480
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4483 $as_echo "$ac_cv_build" >&6; }
4484 case $ac_cv_build in
4485 *-*-*) ;;
4486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4487 esac
4488 build=$ac_cv_build
4489 ac_save_IFS=$IFS; IFS='-'
4490 set x $ac_cv_build
4491 shift
4492 build_cpu=$1
4493 build_vendor=$2
4494 shift; shift
4495 # Remember, the first character of IFS is used to create $*,
4496 # except with old shells:
4497 build_os=$*
4498 IFS=$ac_save_IFS
4499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4500
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4503 $as_echo_n "checking host system type... " >&6; }
4504 if ${ac_cv_host+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test "x$host_alias" = x; then
4508 ac_cv_host=$ac_cv_build
4509 else
4510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4512 fi
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4516 $as_echo "$ac_cv_host" >&6; }
4517 case $ac_cv_host in
4518 *-*-*) ;;
4519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4520 esac
4521 host=$ac_cv_host
4522 ac_save_IFS=$IFS; IFS='-'
4523 set x $ac_cv_host
4524 shift
4525 host_cpu=$1
4526 host_vendor=$2
4527 shift; shift
4528 # Remember, the first character of IFS is used to create $*,
4529 # except with old shells:
4530 host_os=$*
4531 IFS=$ac_save_IFS
4532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4536 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4537 if ${ac_cv_path_SED+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4541 for ac_i in 1 2 3 4 5 6 7; do
4542 ac_script="$ac_script$as_nl$ac_script"
4543 done
4544 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4545 { ac_script=; unset ac_script;}
4546 if test -z "$SED"; then
4547 ac_path_SED_found=false
4548 # Loop through the user's path and test for each of PROGNAME-LIST
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_prog in sed gsed; do
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4557 as_fn_executable_p "$ac_path_SED" || continue
4558 # Check for GNU ac_path_SED and select it if it is found.
4559 # Check for GNU $ac_path_SED
4560 case `"$ac_path_SED" --version 2>&1` in
4561 *GNU*)
4562 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4563 *)
4564 ac_count=0
4565 $as_echo_n 0123456789 >"conftest.in"
4566 while :
4567 do
4568 cat "conftest.in" "conftest.in" >"conftest.tmp"
4569 mv "conftest.tmp" "conftest.in"
4570 cp "conftest.in" "conftest.nl"
4571 $as_echo '' >> "conftest.nl"
4572 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574 as_fn_arith $ac_count + 1 && ac_count=$as_val
4575 if test $ac_count -gt ${ac_path_SED_max-0}; then
4576 # Best one so far, save it but keep looking for a better one
4577 ac_cv_path_SED="$ac_path_SED"
4578 ac_path_SED_max=$ac_count
4579 fi
4580 # 10*(2^10) chars as input seems more than enough
4581 test $ac_count -gt 10 && break
4582 done
4583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 esac
4585
4586 $ac_path_SED_found && break 3
4587 done
4588 done
4589 done
4590 IFS=$as_save_IFS
4591 if test -z "$ac_cv_path_SED"; then
4592 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4593 fi
4594 else
4595 ac_cv_path_SED=$SED
4596 fi
4597
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4600 $as_echo "$ac_cv_path_SED" >&6; }
4601 SED="$ac_cv_path_SED"
4602 rm -f conftest.sed
4603
4604
4605
4606
4607
4608
4609 # Check whether --enable-selective-werror was given.
4610 if test "${enable_selective_werror+set}" = set; then :
4611 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4612 else
4613 SELECTIVE_WERROR=yes
4614 fi
4615
4616
4617
4618
4619
4620 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4621 if test "x$SUNCC" = "xyes"; then
4622 BASE_CFLAGS="-v"
4623 else
4624 BASE_CFLAGS=""
4625 fi
4626
4627 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 xorg_testset_save_CFLAGS="$CFLAGS"
4642
4643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 int i;
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655 xorg_cv_cc_flag_unknown_warning_option=yes
4656 else
4657 xorg_cv_cc_flag_unknown_warning_option=no
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4664 CFLAGS="$xorg_testset_save_CFLAGS"
4665 fi
4666
4667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4670 fi
4671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 int i;
4680 _ACEOF
4681 if ac_fn_c_try_compile "$LINENO"; then :
4682 xorg_cv_cc_flag_unused_command_line_argument=yes
4683 else
4684 xorg_cv_cc_flag_unused_command_line_argument=no
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4691 CFLAGS="$xorg_testset_save_CFLAGS"
4692 fi
4693
4694 found="no"
4695
4696 if test $found = "no" ; then
4697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4699 fi
4700
4701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4703 fi
4704
4705 CFLAGS="$CFLAGS -Wall"
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4708 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4709 cacheid=xorg_cv_cc_flag__Wall
4710 if eval \${$cacheid+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 int i;
4716 int
4717 main ()
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_link "$LINENO"; then :
4725 eval $cacheid=yes
4726 else
4727 eval $cacheid=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 fi
4732
4733
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4735
4736 eval supported=\$$cacheid
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4738 $as_echo "$supported" >&6; }
4739 if test "$supported" = "yes" ; then
4740 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4741 found="yes"
4742 fi
4743 fi
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 xorg_testset_save_CFLAGS="$CFLAGS"
4760
4761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 int i;
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 xorg_cv_cc_flag_unknown_warning_option=yes
4774 else
4775 xorg_cv_cc_flag_unknown_warning_option=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4782 CFLAGS="$xorg_testset_save_CFLAGS"
4783 fi
4784
4785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788 fi
4789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 int i;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 xorg_cv_cc_flag_unused_command_line_argument=yes
4801 else
4802 xorg_cv_cc_flag_unused_command_line_argument=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4809 CFLAGS="$xorg_testset_save_CFLAGS"
4810 fi
4811
4812 found="no"
4813
4814 if test $found = "no" ; then
4815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4817 fi
4818
4819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4821 fi
4822
4823 CFLAGS="$CFLAGS -Wpointer-arith"
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4826 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4827 cacheid=xorg_cv_cc_flag__Wpointer_arith
4828 if eval \${$cacheid+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 int i;
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_link "$LINENO"; then :
4843 eval $cacheid=yes
4844 else
4845 eval $cacheid=no
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext \
4848 conftest$ac_exeext conftest.$ac_ext
4849 fi
4850
4851
4852 CFLAGS="$xorg_testset_save_CFLAGS"
4853
4854 eval supported=\$$cacheid
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4856 $as_echo "$supported" >&6; }
4857 if test "$supported" = "yes" ; then
4858 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4859 found="yes"
4860 fi
4861 fi
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877 xorg_testset_save_CFLAGS="$CFLAGS"
4878
4879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 int i;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 xorg_cv_cc_flag_unknown_warning_option=yes
4892 else
4893 xorg_cv_cc_flag_unknown_warning_option=no
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4900 CFLAGS="$xorg_testset_save_CFLAGS"
4901 fi
4902
4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906 fi
4907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 xorg_cv_cc_flag_unused_command_line_argument=yes
4919 else
4920 xorg_cv_cc_flag_unused_command_line_argument=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928 fi
4929
4930 found="no"
4931
4932 if test $found = "no" ; then
4933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935 fi
4936
4937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4939 fi
4940
4941 CFLAGS="$CFLAGS -Wmissing-declarations"
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4944 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4945 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4946 if eval \${$cacheid+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int i;
4952 int
4953 main ()
4954 {
4955
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_link "$LINENO"; then :
4961 eval $cacheid=yes
4962 else
4963 eval $cacheid=no
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 fi
4968
4969
4970 CFLAGS="$xorg_testset_save_CFLAGS"
4971
4972 eval supported=\$$cacheid
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4974 $as_echo "$supported" >&6; }
4975 if test "$supported" = "yes" ; then
4976 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4977 found="yes"
4978 fi
4979 fi
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 xorg_testset_save_CFLAGS="$CFLAGS"
4996
4997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5000 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5001 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 int i;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 xorg_cv_cc_flag_unknown_warning_option=yes
5010 else
5011 xorg_cv_cc_flag_unknown_warning_option=no
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5016 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5018 CFLAGS="$xorg_testset_save_CFLAGS"
5019 fi
5020
5021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024 fi
5025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5027 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5028 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 int i;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 xorg_cv_cc_flag_unused_command_line_argument=yes
5037 else
5038 xorg_cv_cc_flag_unused_command_line_argument=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5043 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5045 CFLAGS="$xorg_testset_save_CFLAGS"
5046 fi
5047
5048 found="no"
5049
5050 if test $found = "no" ; then
5051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053 fi
5054
5055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5057 fi
5058
5059 CFLAGS="$CFLAGS -Wformat=2"
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5062 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5063 cacheid=xorg_cv_cc_flag__Wformat_2
5064 if eval \${$cacheid+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 int i;
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_link "$LINENO"; then :
5079 eval $cacheid=yes
5080 else
5081 eval $cacheid=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5085 fi
5086
5087
5088 CFLAGS="$xorg_testset_save_CFLAGS"
5089
5090 eval supported=\$$cacheid
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5092 $as_echo "$supported" >&6; }
5093 if test "$supported" = "yes" ; then
5094 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5095 found="yes"
5096 fi
5097 fi
5098
5099 if test $found = "no" ; then
5100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102 fi
5103
5104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5106 fi
5107
5108 CFLAGS="$CFLAGS -Wformat"
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5111 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5112 cacheid=xorg_cv_cc_flag__Wformat
5113 if eval \${$cacheid+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 int i;
5119 int
5120 main ()
5121 {
5122
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 if ac_fn_c_try_link "$LINENO"; then :
5128 eval $cacheid=yes
5129 else
5130 eval $cacheid=no
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext conftest.$ac_ext
5134 fi
5135
5136
5137 CFLAGS="$xorg_testset_save_CFLAGS"
5138
5139 eval supported=\$$cacheid
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5141 $as_echo "$supported" >&6; }
5142 if test "$supported" = "yes" ; then
5143 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5144 found="yes"
5145 fi
5146 fi
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 xorg_testset_save_CFLAGS="$CFLAGS"
5165
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 int i;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 xorg_cv_cc_flag_unknown_warning_option=yes
5179 else
5180 xorg_cv_cc_flag_unknown_warning_option=no
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5187 CFLAGS="$xorg_testset_save_CFLAGS"
5188 fi
5189
5190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5193 fi
5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int i;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 xorg_cv_cc_flag_unused_command_line_argument=yes
5206 else
5207 xorg_cv_cc_flag_unused_command_line_argument=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5214 CFLAGS="$xorg_testset_save_CFLAGS"
5215 fi
5216
5217 found="no"
5218
5219 if test $found = "no" ; then
5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222 fi
5223
5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5226 fi
5227
5228 CFLAGS="$CFLAGS -Wstrict-prototypes"
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5231 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5232 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5233 if eval \${$cacheid+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 int i;
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_link "$LINENO"; then :
5248 eval $cacheid=yes
5249 else
5250 eval $cacheid=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 fi
5255
5256
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5258
5259 eval supported=\$$cacheid
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5261 $as_echo "$supported" >&6; }
5262 if test "$supported" = "yes" ; then
5263 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5264 found="yes"
5265 fi
5266 fi
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 xorg_testset_save_CFLAGS="$CFLAGS"
5283
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5287 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5288 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296 xorg_cv_cc_flag_unknown_warning_option=yes
5297 else
5298 xorg_cv_cc_flag_unknown_warning_option=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5303 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5305 CFLAGS="$xorg_testset_save_CFLAGS"
5306 fi
5307
5308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311 fi
5312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 int i;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 xorg_cv_cc_flag_unused_command_line_argument=yes
5324 else
5325 xorg_cv_cc_flag_unused_command_line_argument=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5330 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333 fi
5334
5335 found="no"
5336
5337 if test $found = "no" ; then
5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 fi
5341
5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344 fi
5345
5346 CFLAGS="$CFLAGS -Wmissing-prototypes"
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5349 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5350 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5351 if eval \${$cacheid+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 int i;
5357 int
5358 main ()
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_link "$LINENO"; then :
5366 eval $cacheid=yes
5367 else
5368 eval $cacheid=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5372 fi
5373
5374
5375 CFLAGS="$xorg_testset_save_CFLAGS"
5376
5377 eval supported=\$$cacheid
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5379 $as_echo "$supported" >&6; }
5380 if test "$supported" = "yes" ; then
5381 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5382 found="yes"
5383 fi
5384 fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 int i;
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 xorg_cv_cc_flag_unknown_warning_option=yes
5415 else
5416 xorg_cv_cc_flag_unknown_warning_option=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5423 CFLAGS="$xorg_testset_save_CFLAGS"
5424 fi
5425
5426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429 fi
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 xorg_cv_cc_flag_unused_command_line_argument=yes
5442 else
5443 xorg_cv_cc_flag_unused_command_line_argument=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451 fi
5452
5453 found="no"
5454
5455 if test $found = "no" ; then
5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458 fi
5459
5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462 fi
5463
5464 CFLAGS="$CFLAGS -Wnested-externs"
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5467 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5468 cacheid=xorg_cv_cc_flag__Wnested_externs
5469 if eval \${$cacheid+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 int
5476 main ()
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 eval $cacheid=yes
5485 else
5486 eval $cacheid=no
5487 fi
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5490 fi
5491
5492
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494
5495 eval supported=\$$cacheid
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5497 $as_echo "$supported" >&6; }
5498 if test "$supported" = "yes" ; then
5499 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5500 found="yes"
5501 fi
5502 fi
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 xorg_testset_save_CFLAGS="$CFLAGS"
5519
5520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 int i;
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 xorg_cv_cc_flag_unknown_warning_option=yes
5533 else
5534 xorg_cv_cc_flag_unknown_warning_option=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5542 fi
5543
5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 fi
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 int i;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 xorg_cv_cc_flag_unused_command_line_argument=yes
5560 else
5561 xorg_cv_cc_flag_unused_command_line_argument=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 found="no"
5572
5573 if test $found = "no" ; then
5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 fi
5577
5578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580 fi
5581
5582 CFLAGS="$CFLAGS -Wbad-function-cast"
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5585 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5586 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5587 if eval \${$cacheid+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 int i;
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 eval $cacheid=yes
5603 else
5604 eval $cacheid=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 fi
5609
5610
5611 CFLAGS="$xorg_testset_save_CFLAGS"
5612
5613 eval supported=\$$cacheid
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615 $as_echo "$supported" >&6; }
5616 if test "$supported" = "yes" ; then
5617 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5618 found="yes"
5619 fi
5620 fi
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636 xorg_testset_save_CFLAGS="$CFLAGS"
5637
5638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 int i;
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 xorg_cv_cc_flag_unknown_warning_option=yes
5651 else
5652 xorg_cv_cc_flag_unknown_warning_option=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5660 fi
5661
5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665 fi
5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int i;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 xorg_cv_cc_flag_unused_command_line_argument=yes
5678 else
5679 xorg_cv_cc_flag_unused_command_line_argument=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687 fi
5688
5689 found="no"
5690
5691 if test $found = "no" ; then
5692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 fi
5695
5696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 fi
5699
5700 CFLAGS="$CFLAGS -Wold-style-definition"
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5703 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5704 cacheid=xorg_cv_cc_flag__Wold_style_definition
5705 if eval \${$cacheid+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 int i;
5711 int
5712 main ()
5713 {
5714
5715 ;
5716 return 0;
5717 }
5718 _ACEOF
5719 if ac_fn_c_try_link "$LINENO"; then :
5720 eval $cacheid=yes
5721 else
5722 eval $cacheid=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5726 fi
5727
5728
5729 CFLAGS="$xorg_testset_save_CFLAGS"
5730
5731 eval supported=\$$cacheid
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5733 $as_echo "$supported" >&6; }
5734 if test "$supported" = "yes" ; then
5735 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5736 found="yes"
5737 fi
5738 fi
5739
5740 if test $found = "no" ; then
5741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743 fi
5744
5745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5747 fi
5748
5749 CFLAGS="$CFLAGS -fd"
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5752 $as_echo_n "checking if $CC supports -fd... " >&6; }
5753 cacheid=xorg_cv_cc_flag__fd
5754 if eval \${$cacheid+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 int i;
5760 int
5761 main ()
5762 {
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_link "$LINENO"; then :
5769 eval $cacheid=yes
5770 else
5771 eval $cacheid=no
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext \
5774 conftest$ac_exeext conftest.$ac_ext
5775 fi
5776
5777
5778 CFLAGS="$xorg_testset_save_CFLAGS"
5779
5780 eval supported=\$$cacheid
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5782 $as_echo "$supported" >&6; }
5783 if test "$supported" = "yes" ; then
5784 BASE_CFLAGS="$BASE_CFLAGS -fd"
5785 found="yes"
5786 fi
5787 fi
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 xorg_testset_save_CFLAGS="$CFLAGS"
5804
5805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5808 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5809 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"; then :
5817 xorg_cv_cc_flag_unknown_warning_option=yes
5818 else
5819 xorg_cv_cc_flag_unknown_warning_option=no
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5824 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5826 CFLAGS="$xorg_testset_save_CFLAGS"
5827 fi
5828
5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5832 fi
5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5835 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5836 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 int i;
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 xorg_cv_cc_flag_unused_command_line_argument=yes
5845 else
5846 xorg_cv_cc_flag_unused_command_line_argument=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5851 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854 fi
5855
5856 found="no"
5857
5858 if test $found = "no" ; then
5859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5861 fi
5862
5863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5865 fi
5866
5867 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5870 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5871 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5872 if eval \${$cacheid+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 int i;
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_c_try_link "$LINENO"; then :
5887 eval $cacheid=yes
5888 else
5889 eval $cacheid=no
5890 fi
5891 rm -f core conftest.err conftest.$ac_objext \
5892 conftest$ac_exeext conftest.$ac_ext
5893 fi
5894
5895
5896 CFLAGS="$xorg_testset_save_CFLAGS"
5897
5898 eval supported=\$$cacheid
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5900 $as_echo "$supported" >&6; }
5901 if test "$supported" = "yes" ; then
5902 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5903 found="yes"
5904 fi
5905 fi
5906
5907
5908
5909
5910
5911 # This chunk adds additional warnings that could catch undesired effects.
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 xorg_testset_save_CFLAGS="$CFLAGS"
5926
5927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 int i;
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939 xorg_cv_cc_flag_unknown_warning_option=yes
5940 else
5941 xorg_cv_cc_flag_unknown_warning_option=no
5942 fi
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5948 CFLAGS="$xorg_testset_save_CFLAGS"
5949 fi
5950
5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5954 fi
5955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 int i;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966 xorg_cv_cc_flag_unused_command_line_argument=yes
5967 else
5968 xorg_cv_cc_flag_unused_command_line_argument=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5975 CFLAGS="$xorg_testset_save_CFLAGS"
5976 fi
5977
5978 found="no"
5979
5980 if test $found = "no" ; then
5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987 fi
5988
5989 CFLAGS="$CFLAGS -Wunused"
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5992 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5993 cacheid=xorg_cv_cc_flag__Wunused
5994 if eval \${$cacheid+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 int
6001 main ()
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 eval $cacheid=yes
6010 else
6011 eval $cacheid=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 fi
6016
6017
6018 CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020 eval supported=\$$cacheid
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022 $as_echo "$supported" >&6; }
6023 if test "$supported" = "yes" ; then
6024 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6025 found="yes"
6026 fi
6027 fi
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 xorg_testset_save_CFLAGS="$CFLAGS"
6044
6045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 int i;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 xorg_cv_cc_flag_unknown_warning_option=yes
6058 else
6059 xorg_cv_cc_flag_unknown_warning_option=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6064 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067 fi
6068
6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072 fi
6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6075 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6076 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 int i;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 xorg_cv_cc_flag_unused_command_line_argument=yes
6085 else
6086 xorg_cv_cc_flag_unused_command_line_argument=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 found="no"
6097
6098 if test $found = "no" ; then
6099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105 fi
6106
6107 CFLAGS="$CFLAGS -Wuninitialized"
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6110 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6111 cacheid=xorg_cv_cc_flag__Wuninitialized
6112 if eval \${$cacheid+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 int i;
6118 int
6119 main ()
6120 {
6121
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 if ac_fn_c_try_link "$LINENO"; then :
6127 eval $cacheid=yes
6128 else
6129 eval $cacheid=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 fi
6134
6135
6136 CFLAGS="$xorg_testset_save_CFLAGS"
6137
6138 eval supported=\$$cacheid
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6140 $as_echo "$supported" >&6; }
6141 if test "$supported" = "yes" ; then
6142 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6143 found="yes"
6144 fi
6145 fi
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 xorg_testset_save_CFLAGS="$CFLAGS"
6162
6163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6166 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6167 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 int i;
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 xorg_cv_cc_flag_unknown_warning_option=yes
6176 else
6177 xorg_cv_cc_flag_unknown_warning_option=no
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6182 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6184 CFLAGS="$xorg_testset_save_CFLAGS"
6185 fi
6186
6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190 fi
6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6193 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6194 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 int i;
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 xorg_cv_cc_flag_unused_command_line_argument=yes
6203 else
6204 xorg_cv_cc_flag_unused_command_line_argument=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6209 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 found="no"
6215
6216 if test $found = "no" ; then
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223 fi
6224
6225 CFLAGS="$CFLAGS -Wshadow"
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6228 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6229 cacheid=xorg_cv_cc_flag__Wshadow
6230 if eval \${$cacheid+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 int i;
6236 int
6237 main ()
6238 {
6239
6240 ;
6241 return 0;
6242 }
6243 _ACEOF
6244 if ac_fn_c_try_link "$LINENO"; then :
6245 eval $cacheid=yes
6246 else
6247 eval $cacheid=no
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 fi
6252
6253
6254 CFLAGS="$xorg_testset_save_CFLAGS"
6255
6256 eval supported=\$$cacheid
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6258 $as_echo "$supported" >&6; }
6259 if test "$supported" = "yes" ; then
6260 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6261 found="yes"
6262 fi
6263 fi
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 xorg_testset_save_CFLAGS="$CFLAGS"
6280
6281 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6284 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6285 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 int i;
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293 xorg_cv_cc_flag_unknown_warning_option=yes
6294 else
6295 xorg_cv_cc_flag_unknown_warning_option=no
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6300 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6302 CFLAGS="$xorg_testset_save_CFLAGS"
6303 fi
6304
6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6308 fi
6309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6311 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6312 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 int i;
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 xorg_cv_cc_flag_unused_command_line_argument=yes
6321 else
6322 xorg_cv_cc_flag_unused_command_line_argument=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6327 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330 fi
6331
6332 found="no"
6333
6334 if test $found = "no" ; then
6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337 fi
6338
6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6341 fi
6342
6343 CFLAGS="$CFLAGS -Wmissing-noreturn"
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6346 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6347 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6348 if eval \${$cacheid+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 int i;
6354 int
6355 main ()
6356 {
6357
6358 ;
6359 return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_link "$LINENO"; then :
6363 eval $cacheid=yes
6364 else
6365 eval $cacheid=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext \
6368 conftest$ac_exeext conftest.$ac_ext
6369 fi
6370
6371
6372 CFLAGS="$xorg_testset_save_CFLAGS"
6373
6374 eval supported=\$$cacheid
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6376 $as_echo "$supported" >&6; }
6377 if test "$supported" = "yes" ; then
6378 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6379 found="yes"
6380 fi
6381 fi
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 xorg_testset_save_CFLAGS="$CFLAGS"
6398
6399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 xorg_cv_cc_flag_unknown_warning_option=yes
6412 else
6413 xorg_cv_cc_flag_unknown_warning_option=no
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6420 CFLAGS="$xorg_testset_save_CFLAGS"
6421 fi
6422
6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426 fi
6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 xorg_cv_cc_flag_unused_command_line_argument=yes
6439 else
6440 xorg_cv_cc_flag_unused_command_line_argument=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448 fi
6449
6450 found="no"
6451
6452 if test $found = "no" ; then
6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455 fi
6456
6457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6459 fi
6460
6461 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6464 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6465 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6466 if eval \${$cacheid+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 int i;
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_link "$LINENO"; then :
6481 eval $cacheid=yes
6482 else
6483 eval $cacheid=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 fi
6488
6489
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6491
6492 eval supported=\$$cacheid
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6494 $as_echo "$supported" >&6; }
6495 if test "$supported" = "yes" ; then
6496 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6497 found="yes"
6498 fi
6499 fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515 xorg_testset_save_CFLAGS="$CFLAGS"
6516
6517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6520 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6521 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 int i;
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 xorg_cv_cc_flag_unknown_warning_option=yes
6530 else
6531 xorg_cv_cc_flag_unknown_warning_option=no
6532 fi
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6536 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6538 CFLAGS="$xorg_testset_save_CFLAGS"
6539 fi
6540
6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544 fi
6545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6547 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6548 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 int i;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 xorg_cv_cc_flag_unused_command_line_argument=yes
6557 else
6558 xorg_cv_cc_flag_unused_command_line_argument=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6563 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566 fi
6567
6568 found="no"
6569
6570 if test $found = "no" ; then
6571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573 fi
6574
6575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6577 fi
6578
6579 CFLAGS="$CFLAGS -Wredundant-decls"
6580
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6582 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6583 cacheid=xorg_cv_cc_flag__Wredundant_decls
6584 if eval \${$cacheid+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 int i;
6590 int
6591 main ()
6592 {
6593
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 if ac_fn_c_try_link "$LINENO"; then :
6599 eval $cacheid=yes
6600 else
6601 eval $cacheid=no
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605 fi
6606
6607
6608 CFLAGS="$xorg_testset_save_CFLAGS"
6609
6610 eval supported=\$$cacheid
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6612 $as_echo "$supported" >&6; }
6613 if test "$supported" = "yes" ; then
6614 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6615 found="yes"
6616 fi
6617 fi
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 xorg_testset_save_CFLAGS="$CFLAGS"
6634
6635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6638 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6639 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 _ACEOF
6646 if ac_fn_c_try_compile "$LINENO"; then :
6647 xorg_cv_cc_flag_unknown_warning_option=yes
6648 else
6649 xorg_cv_cc_flag_unknown_warning_option=no
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 fi
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6654 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6656 CFLAGS="$xorg_testset_save_CFLAGS"
6657 fi
6658
6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6662 fi
6663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6665 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6666 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int i;
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"; then :
6674 xorg_cv_cc_flag_unused_command_line_argument=yes
6675 else
6676 xorg_cv_cc_flag_unused_command_line_argument=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6681 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684 fi
6685
6686 found="no"
6687
6688 if test $found = "no" ; then
6689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691 fi
6692
6693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6695 fi
6696
6697 CFLAGS="$CFLAGS -Wlogical-op"
6698
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6700 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6701 cacheid=xorg_cv_cc_flag__Wlogical_op
6702 if eval \${$cacheid+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 int
6709 main ()
6710 {
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 if ac_fn_c_try_link "$LINENO"; then :
6717 eval $cacheid=yes
6718 else
6719 eval $cacheid=no
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6723 fi
6724
6725
6726 CFLAGS="$xorg_testset_save_CFLAGS"
6727
6728 eval supported=\$$cacheid
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6730 $as_echo "$supported" >&6; }
6731 if test "$supported" = "yes" ; then
6732 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6733 found="yes"
6734 fi
6735 fi
6736
6737
6738
6739 # These are currently disabled because they are noisy. They will be enabled
6740 # in the future once the codebase is sufficiently modernized to silence
6741 # them. For now, I don't want them to drown out the other warnings.
6742 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6743 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6744 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6745
6746 # Turn some warnings into errors, so we don't accidently get successful builds
6747 # when there are problems that should be fixed.
6748
6749 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 xorg_testset_save_CFLAGS="$CFLAGS"
6764
6765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6768 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6769 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 xorg_cv_cc_flag_unknown_warning_option=yes
6778 else
6779 xorg_cv_cc_flag_unknown_warning_option=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6784 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6786 CFLAGS="$xorg_testset_save_CFLAGS"
6787 fi
6788
6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792 fi
6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6795 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6796 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 int i;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 xorg_cv_cc_flag_unused_command_line_argument=yes
6805 else
6806 xorg_cv_cc_flag_unused_command_line_argument=no
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6811 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814 fi
6815
6816 found="no"
6817
6818 if test $found = "no" ; then
6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821 fi
6822
6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6825 fi
6826
6827 CFLAGS="$CFLAGS -Werror=implicit"
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6830 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6831 cacheid=xorg_cv_cc_flag__Werror_implicit
6832 if eval \${$cacheid+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int i;
6838 int
6839 main ()
6840 {
6841
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847 eval $cacheid=yes
6848 else
6849 eval $cacheid=no
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854
6855
6856 CFLAGS="$xorg_testset_save_CFLAGS"
6857
6858 eval supported=\$$cacheid
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6860 $as_echo "$supported" >&6; }
6861 if test "$supported" = "yes" ; then
6862 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6863 found="yes"
6864 fi
6865 fi
6866
6867 if test $found = "no" ; then
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874 fi
6875
6876 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6879 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6880 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6881 if eval \${$cacheid+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 int i;
6887 int
6888 main ()
6889 {
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"; then :
6896 eval $cacheid=yes
6897 else
6898 eval $cacheid=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902 fi
6903
6904
6905 CFLAGS="$xorg_testset_save_CFLAGS"
6906
6907 eval supported=\$$cacheid
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6909 $as_echo "$supported" >&6; }
6910 if test "$supported" = "yes" ; then
6911 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6912 found="yes"
6913 fi
6914 fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 xorg_testset_save_CFLAGS="$CFLAGS"
6931
6932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int i;
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 xorg_cv_cc_flag_unknown_warning_option=yes
6945 else
6946 xorg_cv_cc_flag_unknown_warning_option=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954 fi
6955
6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6959 fi
6960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int i;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"; then :
6971 xorg_cv_cc_flag_unused_command_line_argument=yes
6972 else
6973 xorg_cv_cc_flag_unused_command_line_argument=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6980 CFLAGS="$xorg_testset_save_CFLAGS"
6981 fi
6982
6983 found="no"
6984
6985 if test $found = "no" ; then
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6992 fi
6993
6994 CFLAGS="$CFLAGS -Werror=nonnull"
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6997 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6998 cacheid=xorg_cv_cc_flag__Werror_nonnull
6999 if eval \${$cacheid+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014 eval $cacheid=yes
7015 else
7016 eval $cacheid=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 fi
7021
7022
7023 CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025 eval supported=\$$cacheid
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027 $as_echo "$supported" >&6; }
7028 if test "$supported" = "yes" ; then
7029 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7030 found="yes"
7031 fi
7032 fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 xorg_testset_save_CFLAGS="$CFLAGS"
7049
7050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7053 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7054 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 int i;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 xorg_cv_cc_flag_unknown_warning_option=yes
7063 else
7064 xorg_cv_cc_flag_unknown_warning_option=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7069 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7071 CFLAGS="$xorg_testset_save_CFLAGS"
7072 fi
7073
7074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7077 fi
7078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7080 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7081 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int i;
7087 _ACEOF
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 xorg_cv_cc_flag_unused_command_line_argument=yes
7090 else
7091 xorg_cv_cc_flag_unused_command_line_argument=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7096 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7098 CFLAGS="$xorg_testset_save_CFLAGS"
7099 fi
7100
7101 found="no"
7102
7103 if test $found = "no" ; then
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110 fi
7111
7112 CFLAGS="$CFLAGS -Werror=init-self"
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7115 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7116 cacheid=xorg_cv_cc_flag__Werror_init_self
7117 if eval \${$cacheid+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 int i;
7123 int
7124 main ()
7125 {
7126
7127 ;
7128 return 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_link "$LINENO"; then :
7132 eval $cacheid=yes
7133 else
7134 eval $cacheid=no
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7138 fi
7139
7140
7141 CFLAGS="$xorg_testset_save_CFLAGS"
7142
7143 eval supported=\$$cacheid
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7145 $as_echo "$supported" >&6; }
7146 if test "$supported" = "yes" ; then
7147 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7148 found="yes"
7149 fi
7150 fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 xorg_testset_save_CFLAGS="$CFLAGS"
7167
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7171 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7172 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 xorg_cv_cc_flag_unknown_warning_option=yes
7181 else
7182 xorg_cv_cc_flag_unknown_warning_option=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7187 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7189 CFLAGS="$xorg_testset_save_CFLAGS"
7190 fi
7191
7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195 fi
7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7198 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7199 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 int i;
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"; then :
7207 xorg_cv_cc_flag_unused_command_line_argument=yes
7208 else
7209 xorg_cv_cc_flag_unused_command_line_argument=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7214 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217 fi
7218
7219 found="no"
7220
7221 if test $found = "no" ; then
7222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228 fi
7229
7230 CFLAGS="$CFLAGS -Werror=main"
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7233 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7234 cacheid=xorg_cv_cc_flag__Werror_main
7235 if eval \${$cacheid+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 int i;
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 eval $cacheid=yes
7251 else
7252 eval $cacheid=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 fi
7257
7258
7259 CFLAGS="$xorg_testset_save_CFLAGS"
7260
7261 eval supported=\$$cacheid
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7263 $as_echo "$supported" >&6; }
7264 if test "$supported" = "yes" ; then
7265 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7266 found="yes"
7267 fi
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 xorg_testset_save_CFLAGS="$CFLAGS"
7285
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7289 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7290 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 xorg_cv_cc_flag_unknown_warning_option=yes
7299 else
7300 xorg_cv_cc_flag_unknown_warning_option=no
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7305 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7307 CFLAGS="$xorg_testset_save_CFLAGS"
7308 fi
7309
7310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 fi
7314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7316 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7317 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 int i;
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 xorg_cv_cc_flag_unused_command_line_argument=yes
7326 else
7327 xorg_cv_cc_flag_unused_command_line_argument=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7332 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335 fi
7336
7337 found="no"
7338
7339 if test $found = "no" ; then
7340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346 fi
7347
7348 CFLAGS="$CFLAGS -Werror=missing-braces"
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7351 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7352 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7353 if eval \${$cacheid+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 int i;
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_link "$LINENO"; then :
7368 eval $cacheid=yes
7369 else
7370 eval $cacheid=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 fi
7375
7376
7377 CFLAGS="$xorg_testset_save_CFLAGS"
7378
7379 eval supported=\$$cacheid
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7381 $as_echo "$supported" >&6; }
7382 if test "$supported" = "yes" ; then
7383 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7384 found="yes"
7385 fi
7386 fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 xorg_testset_save_CFLAGS="$CFLAGS"
7403
7404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7407 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7408 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 int i;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_cv_cc_flag_unknown_warning_option=yes
7417 else
7418 xorg_cv_cc_flag_unknown_warning_option=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7423 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426 fi
7427
7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 fi
7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7434 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7435 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 int i;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 xorg_cv_cc_flag_unused_command_line_argument=yes
7444 else
7445 xorg_cv_cc_flag_unused_command_line_argument=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7450 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453 fi
7454
7455 found="no"
7456
7457 if test $found = "no" ; then
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 fi
7461
7462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464 fi
7465
7466 CFLAGS="$CFLAGS -Werror=sequence-point"
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7469 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7470 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7471 if eval \${$cacheid+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 int
7478 main ()
7479 {
7480
7481 ;
7482 return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 eval $cacheid=yes
7487 else
7488 eval $cacheid=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7492 fi
7493
7494
7495 CFLAGS="$xorg_testset_save_CFLAGS"
7496
7497 eval supported=\$$cacheid
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7499 $as_echo "$supported" >&6; }
7500 if test "$supported" = "yes" ; then
7501 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7502 found="yes"
7503 fi
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 xorg_testset_save_CFLAGS="$CFLAGS"
7521
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7525 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7526 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 xorg_cv_cc_flag_unknown_warning_option=yes
7535 else
7536 xorg_cv_cc_flag_unknown_warning_option=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7541 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7543 CFLAGS="$xorg_testset_save_CFLAGS"
7544 fi
7545
7546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7549 fi
7550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7552 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7553 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561 xorg_cv_cc_flag_unused_command_line_argument=yes
7562 else
7563 xorg_cv_cc_flag_unused_command_line_argument=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7568 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571 fi
7572
7573 found="no"
7574
7575 if test $found = "no" ; then
7576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578 fi
7579
7580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7582 fi
7583
7584 CFLAGS="$CFLAGS -Werror=return-type"
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7587 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7588 cacheid=xorg_cv_cc_flag__Werror_return_type
7589 if eval \${$cacheid+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 int
7596 main ()
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"; then :
7604 eval $cacheid=yes
7605 else
7606 eval $cacheid=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 fi
7611
7612
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614
7615 eval supported=\$$cacheid
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7617 $as_echo "$supported" >&6; }
7618 if test "$supported" = "yes" ; then
7619 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7620 found="yes"
7621 fi
7622 fi
7623
7624 if test $found = "no" ; then
7625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627 fi
7628
7629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7631 fi
7632
7633 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7634
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7636 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7637 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7638 if eval \${$cacheid+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 int i;
7644 int
7645 main ()
7646 {
7647
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 eval $cacheid=yes
7654 else
7655 eval $cacheid=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 fi
7660
7661
7662 CFLAGS="$xorg_testset_save_CFLAGS"
7663
7664 eval supported=\$$cacheid
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666 $as_echo "$supported" >&6; }
7667 if test "$supported" = "yes" ; then
7668 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7669 found="yes"
7670 fi
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 xorg_testset_save_CFLAGS="$CFLAGS"
7688
7689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 int i;
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"; then :
7701 xorg_cv_cc_flag_unknown_warning_option=yes
7702 else
7703 xorg_cv_cc_flag_unknown_warning_option=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 fi
7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 int i;
7726 _ACEOF
7727 if ac_fn_c_try_compile "$LINENO"; then :
7728 xorg_cv_cc_flag_unused_command_line_argument=yes
7729 else
7730 xorg_cv_cc_flag_unused_command_line_argument=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7737 CFLAGS="$xorg_testset_save_CFLAGS"
7738 fi
7739
7740 found="no"
7741
7742 if test $found = "no" ; then
7743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745 fi
7746
7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749 fi
7750
7751 CFLAGS="$CFLAGS -Werror=trigraphs"
7752
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7754 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7755 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7756 if eval \${$cacheid+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761 int i;
7762 int
7763 main ()
7764 {
7765
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_link "$LINENO"; then :
7771 eval $cacheid=yes
7772 else
7773 eval $cacheid=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777 fi
7778
7779
7780 CFLAGS="$xorg_testset_save_CFLAGS"
7781
7782 eval supported=\$$cacheid
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7784 $as_echo "$supported" >&6; }
7785 if test "$supported" = "yes" ; then
7786 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7787 found="yes"
7788 fi
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 xorg_testset_save_CFLAGS="$CFLAGS"
7806
7807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 xorg_cv_cc_flag_unknown_warning_option=yes
7820 else
7821 xorg_cv_cc_flag_unknown_warning_option=no
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7828 CFLAGS="$xorg_testset_save_CFLAGS"
7829 fi
7830
7831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7834 fi
7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846 xorg_cv_cc_flag_unused_command_line_argument=yes
7847 else
7848 xorg_cv_cc_flag_unused_command_line_argument=no
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855 CFLAGS="$xorg_testset_save_CFLAGS"
7856 fi
7857
7858 found="no"
7859
7860 if test $found = "no" ; then
7861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867 fi
7868
7869 CFLAGS="$CFLAGS -Werror=array-bounds"
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7872 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7873 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7874 if eval \${$cacheid+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 int i;
7880 int
7881 main ()
7882 {
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 eval $cacheid=yes
7890 else
7891 eval $cacheid=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 fi
7896
7897
7898 CFLAGS="$xorg_testset_save_CFLAGS"
7899
7900 eval supported=\$$cacheid
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7902 $as_echo "$supported" >&6; }
7903 if test "$supported" = "yes" ; then
7904 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7905 found="yes"
7906 fi
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923 xorg_testset_save_CFLAGS="$CFLAGS"
7924
7925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 xorg_cv_cc_flag_unknown_warning_option=yes
7938 else
7939 xorg_cv_cc_flag_unknown_warning_option=no
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7946 CFLAGS="$xorg_testset_save_CFLAGS"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7952 fi
7953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 xorg_cv_cc_flag_unused_command_line_argument=yes
7965 else
7966 xorg_cv_cc_flag_unused_command_line_argument=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974 fi
7975
7976 found="no"
7977
7978 if test $found = "no" ; then
7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985 fi
7986
7987 CFLAGS="$CFLAGS -Werror=write-strings"
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7990 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7991 cacheid=xorg_cv_cc_flag__Werror_write_strings
7992 if eval \${$cacheid+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 int i;
7998 int
7999 main ()
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 eval $cacheid=yes
8008 else
8009 eval $cacheid=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 fi
8014
8015
8016 CFLAGS="$xorg_testset_save_CFLAGS"
8017
8018 eval supported=\$$cacheid
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8020 $as_echo "$supported" >&6; }
8021 if test "$supported" = "yes" ; then
8022 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8023 found="yes"
8024 fi
8025 fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041 xorg_testset_save_CFLAGS="$CFLAGS"
8042
8043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 int i;
8053 _ACEOF
8054 if ac_fn_c_try_compile "$LINENO"; then :
8055 xorg_cv_cc_flag_unknown_warning_option=yes
8056 else
8057 xorg_cv_cc_flag_unknown_warning_option=no
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8064 CFLAGS="$xorg_testset_save_CFLAGS"
8065 fi
8066
8067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070 fi
8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 int i;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 xorg_cv_cc_flag_unused_command_line_argument=yes
8083 else
8084 xorg_cv_cc_flag_unused_command_line_argument=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8091 CFLAGS="$xorg_testset_save_CFLAGS"
8092 fi
8093
8094 found="no"
8095
8096 if test $found = "no" ; then
8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099 fi
8100
8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103 fi
8104
8105 CFLAGS="$CFLAGS -Werror=address"
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8108 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8109 cacheid=xorg_cv_cc_flag__Werror_address
8110 if eval \${$cacheid+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 int i;
8116 int
8117 main ()
8118 {
8119
8120 ;
8121 return 0;
8122 }
8123 _ACEOF
8124 if ac_fn_c_try_link "$LINENO"; then :
8125 eval $cacheid=yes
8126 else
8127 eval $cacheid=no
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 fi
8132
8133
8134 CFLAGS="$xorg_testset_save_CFLAGS"
8135
8136 eval supported=\$$cacheid
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8138 $as_echo "$supported" >&6; }
8139 if test "$supported" = "yes" ; then
8140 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8141 found="yes"
8142 fi
8143 fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 xorg_testset_save_CFLAGS="$CFLAGS"
8160
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8164 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8165 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 int i;
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 xorg_cv_cc_flag_unknown_warning_option=yes
8174 else
8175 xorg_cv_cc_flag_unknown_warning_option=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8180 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183 fi
8184
8185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188 fi
8189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8191 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8192 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int i;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 xorg_cv_cc_flag_unused_command_line_argument=yes
8201 else
8202 xorg_cv_cc_flag_unused_command_line_argument=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8207 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210 fi
8211
8212 found="no"
8213
8214 if test $found = "no" ; then
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 fi
8218
8219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221 fi
8222
8223 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8226 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8227 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8228 if eval \${$cacheid+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 int
8235 main ()
8236 {
8237
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 eval $cacheid=yes
8244 else
8245 eval $cacheid=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 fi
8250
8251
8252 CFLAGS="$xorg_testset_save_CFLAGS"
8253
8254 eval supported=\$$cacheid
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8256 $as_echo "$supported" >&6; }
8257 if test "$supported" = "yes" ; then
8258 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8259 found="yes"
8260 fi
8261 fi
8262
8263 if test $found = "no" ; then
8264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266 fi
8267
8268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8270 fi
8271
8272 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8273
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8275 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8276 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8277 if eval \${$cacheid+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 int i;
8283 int
8284 main ()
8285 {
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 eval $cacheid=yes
8293 else
8294 eval $cacheid=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 fi
8299
8300
8301 CFLAGS="$xorg_testset_save_CFLAGS"
8302
8303 eval supported=\$$cacheid
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8305 $as_echo "$supported" >&6; }
8306 if test "$supported" = "yes" ; then
8307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8308 found="yes"
8309 fi
8310 fi
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 xorg_testset_save_CFLAGS="$CFLAGS"
8327
8328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 _ACEOF
8339 if ac_fn_c_try_compile "$LINENO"; then :
8340 xorg_cv_cc_flag_unknown_warning_option=yes
8341 else
8342 xorg_cv_cc_flag_unknown_warning_option=no
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8349 CFLAGS="$xorg_testset_save_CFLAGS"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 fi
8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 xorg_cv_cc_flag_unused_command_line_argument=yes
8368 else
8369 xorg_cv_cc_flag_unused_command_line_argument=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377 fi
8378
8379 found="no"
8380
8381 if test $found = "no" ; then
8382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384 fi
8385
8386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388 fi
8389
8390 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8393 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8394 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8395 if eval \${$cacheid+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 int i;
8401 int
8402 main ()
8403 {
8404
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_link "$LINENO"; then :
8410 eval $cacheid=yes
8411 else
8412 eval $cacheid=no
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8416 fi
8417
8418
8419 CFLAGS="$xorg_testset_save_CFLAGS"
8420
8421 eval supported=\$$cacheid
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8423 $as_echo "$supported" >&6; }
8424 if test "$supported" = "yes" ; then
8425 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8426 found="yes"
8427 fi
8428 fi
8429
8430 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8431 else
8432 { $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
8433 $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;}
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447 xorg_testset_save_CFLAGS="$CFLAGS"
8448
8449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8452 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8453 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 int i;
8459 _ACEOF
8460 if ac_fn_c_try_compile "$LINENO"; then :
8461 xorg_cv_cc_flag_unknown_warning_option=yes
8462 else
8463 xorg_cv_cc_flag_unknown_warning_option=no
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8468 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8470 CFLAGS="$xorg_testset_save_CFLAGS"
8471 fi
8472
8473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476 fi
8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8479 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8480 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 int i;
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"; then :
8488 xorg_cv_cc_flag_unused_command_line_argument=yes
8489 else
8490 xorg_cv_cc_flag_unused_command_line_argument=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8495 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498 fi
8499
8500 found="no"
8501
8502 if test $found = "no" ; then
8503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8505 fi
8506
8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8509 fi
8510
8511 CFLAGS="$CFLAGS -Wimplicit"
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8514 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8515 cacheid=xorg_cv_cc_flag__Wimplicit
8516 if eval \${$cacheid+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 int
8523 main ()
8524 {
8525
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 if ac_fn_c_try_link "$LINENO"; then :
8531 eval $cacheid=yes
8532 else
8533 eval $cacheid=no
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8537 fi
8538
8539
8540 CFLAGS="$xorg_testset_save_CFLAGS"
8541
8542 eval supported=\$$cacheid
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8544 $as_echo "$supported" >&6; }
8545 if test "$supported" = "yes" ; then
8546 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8547 found="yes"
8548 fi
8549 fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 xorg_testset_save_CFLAGS="$CFLAGS"
8566
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8570 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8571 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 int i;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 xorg_cv_cc_flag_unknown_warning_option=yes
8580 else
8581 xorg_cv_cc_flag_unknown_warning_option=no
8582 fi
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8586 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8588 CFLAGS="$xorg_testset_save_CFLAGS"
8589 fi
8590
8591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594 fi
8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8597 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8598 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 int i;
8604 _ACEOF
8605 if ac_fn_c_try_compile "$LINENO"; then :
8606 xorg_cv_cc_flag_unused_command_line_argument=yes
8607 else
8608 xorg_cv_cc_flag_unused_command_line_argument=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8613 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8615 CFLAGS="$xorg_testset_save_CFLAGS"
8616 fi
8617
8618 found="no"
8619
8620 if test $found = "no" ; then
8621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8627 fi
8628
8629 CFLAGS="$CFLAGS -Wnonnull"
8630
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8632 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8633 cacheid=xorg_cv_cc_flag__Wnonnull
8634 if eval \${$cacheid+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 int
8641 main ()
8642 {
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649 eval $cacheid=yes
8650 else
8651 eval $cacheid=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 fi
8656
8657
8658 CFLAGS="$xorg_testset_save_CFLAGS"
8659
8660 eval supported=\$$cacheid
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8662 $as_echo "$supported" >&6; }
8663 if test "$supported" = "yes" ; then
8664 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8665 found="yes"
8666 fi
8667 fi
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 xorg_testset_save_CFLAGS="$CFLAGS"
8684
8685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8688 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8689 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 int i;
8695 _ACEOF
8696 if ac_fn_c_try_compile "$LINENO"; then :
8697 xorg_cv_cc_flag_unknown_warning_option=yes
8698 else
8699 xorg_cv_cc_flag_unknown_warning_option=no
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8704 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8706 CFLAGS="$xorg_testset_save_CFLAGS"
8707 fi
8708
8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712 fi
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8715 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8716 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 int i;
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724 xorg_cv_cc_flag_unused_command_line_argument=yes
8725 else
8726 xorg_cv_cc_flag_unused_command_line_argument=no
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8731 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8733 CFLAGS="$xorg_testset_save_CFLAGS"
8734 fi
8735
8736 found="no"
8737
8738 if test $found = "no" ; then
8739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8741 fi
8742
8743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8745 fi
8746
8747 CFLAGS="$CFLAGS -Winit-self"
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8750 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8751 cacheid=xorg_cv_cc_flag__Winit_self
8752 if eval \${$cacheid+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 int
8759 main ()
8760 {
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767 eval $cacheid=yes
8768 else
8769 eval $cacheid=no
8770 fi
8771 rm -f core conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 fi
8774
8775
8776 CFLAGS="$xorg_testset_save_CFLAGS"
8777
8778 eval supported=\$$cacheid
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8780 $as_echo "$supported" >&6; }
8781 if test "$supported" = "yes" ; then
8782 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8783 found="yes"
8784 fi
8785 fi
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801 xorg_testset_save_CFLAGS="$CFLAGS"
8802
8803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8806 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8807 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 int i;
8813 _ACEOF
8814 if ac_fn_c_try_compile "$LINENO"; then :
8815 xorg_cv_cc_flag_unknown_warning_option=yes
8816 else
8817 xorg_cv_cc_flag_unknown_warning_option=no
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8822 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8824 CFLAGS="$xorg_testset_save_CFLAGS"
8825 fi
8826
8827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830 fi
8831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8833 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8834 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 int i;
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"; then :
8842 xorg_cv_cc_flag_unused_command_line_argument=yes
8843 else
8844 xorg_cv_cc_flag_unused_command_line_argument=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8849 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8851 CFLAGS="$xorg_testset_save_CFLAGS"
8852 fi
8853
8854 found="no"
8855
8856 if test $found = "no" ; then
8857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859 fi
8860
8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8863 fi
8864
8865 CFLAGS="$CFLAGS -Wmain"
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8868 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8869 cacheid=xorg_cv_cc_flag__Wmain
8870 if eval \${$cacheid+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 int
8877 main ()
8878 {
8879
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_link "$LINENO"; then :
8885 eval $cacheid=yes
8886 else
8887 eval $cacheid=no
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 fi
8892
8893
8894 CFLAGS="$xorg_testset_save_CFLAGS"
8895
8896 eval supported=\$$cacheid
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8898 $as_echo "$supported" >&6; }
8899 if test "$supported" = "yes" ; then
8900 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8901 found="yes"
8902 fi
8903 fi
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919 xorg_testset_save_CFLAGS="$CFLAGS"
8920
8921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 int i;
8931 _ACEOF
8932 if ac_fn_c_try_compile "$LINENO"; then :
8933 xorg_cv_cc_flag_unknown_warning_option=yes
8934 else
8935 xorg_cv_cc_flag_unknown_warning_option=no
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8942 CFLAGS="$xorg_testset_save_CFLAGS"
8943 fi
8944
8945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948 fi
8949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 int i;
8958 _ACEOF
8959 if ac_fn_c_try_compile "$LINENO"; then :
8960 xorg_cv_cc_flag_unused_command_line_argument=yes
8961 else
8962 xorg_cv_cc_flag_unused_command_line_argument=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970 fi
8971
8972 found="no"
8973
8974 if test $found = "no" ; then
8975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981 fi
8982
8983 CFLAGS="$CFLAGS -Wmissing-braces"
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8986 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8987 cacheid=xorg_cv_cc_flag__Wmissing_braces
8988 if eval \${$cacheid+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 int i;
8994 int
8995 main ()
8996 {
8997
8998 ;
8999 return 0;
9000 }
9001 _ACEOF
9002 if ac_fn_c_try_link "$LINENO"; then :
9003 eval $cacheid=yes
9004 else
9005 eval $cacheid=no
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 fi
9010
9011
9012 CFLAGS="$xorg_testset_save_CFLAGS"
9013
9014 eval supported=\$$cacheid
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9016 $as_echo "$supported" >&6; }
9017 if test "$supported" = "yes" ; then
9018 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9019 found="yes"
9020 fi
9021 fi
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 xorg_testset_save_CFLAGS="$CFLAGS"
9038
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 _ACEOF
9050 if ac_fn_c_try_compile "$LINENO"; then :
9051 xorg_cv_cc_flag_unknown_warning_option=yes
9052 else
9053 xorg_cv_cc_flag_unknown_warning_option=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9060 CFLAGS="$xorg_testset_save_CFLAGS"
9061 fi
9062
9063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9066 fi
9067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 int i;
9076 _ACEOF
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 xorg_cv_cc_flag_unused_command_line_argument=yes
9079 else
9080 xorg_cv_cc_flag_unused_command_line_argument=no
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9087 CFLAGS="$xorg_testset_save_CFLAGS"
9088 fi
9089
9090 found="no"
9091
9092 if test $found = "no" ; then
9093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095 fi
9096
9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9099 fi
9100
9101 CFLAGS="$CFLAGS -Wsequence-point"
9102
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9104 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9105 cacheid=xorg_cv_cc_flag__Wsequence_point
9106 if eval \${$cacheid+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int i;
9112 int
9113 main ()
9114 {
9115
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 if ac_fn_c_try_link "$LINENO"; then :
9121 eval $cacheid=yes
9122 else
9123 eval $cacheid=no
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 fi
9128
9129
9130 CFLAGS="$xorg_testset_save_CFLAGS"
9131
9132 eval supported=\$$cacheid
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9134 $as_echo "$supported" >&6; }
9135 if test "$supported" = "yes" ; then
9136 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9137 found="yes"
9138 fi
9139 fi
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 xorg_testset_save_CFLAGS="$CFLAGS"
9156
9157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9160 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9161 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"; then :
9169 xorg_cv_cc_flag_unknown_warning_option=yes
9170 else
9171 xorg_cv_cc_flag_unknown_warning_option=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9176 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9178 CFLAGS="$xorg_testset_save_CFLAGS"
9179 fi
9180
9181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9184 fi
9185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9187 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9188 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 xorg_cv_cc_flag_unused_command_line_argument=yes
9197 else
9198 xorg_cv_cc_flag_unused_command_line_argument=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9203 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9205 CFLAGS="$xorg_testset_save_CFLAGS"
9206 fi
9207
9208 found="no"
9209
9210 if test $found = "no" ; then
9211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213 fi
9214
9215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9217 fi
9218
9219 CFLAGS="$CFLAGS -Wreturn-type"
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9222 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9223 cacheid=xorg_cv_cc_flag__Wreturn_type
9224 if eval \${$cacheid+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 int
9231 main ()
9232 {
9233
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_link "$LINENO"; then :
9239 eval $cacheid=yes
9240 else
9241 eval $cacheid=no
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 fi
9246
9247
9248 CFLAGS="$xorg_testset_save_CFLAGS"
9249
9250 eval supported=\$$cacheid
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9252 $as_echo "$supported" >&6; }
9253 if test "$supported" = "yes" ; then
9254 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9255 found="yes"
9256 fi
9257 fi
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 xorg_testset_save_CFLAGS="$CFLAGS"
9274
9275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 int i;
9285 _ACEOF
9286 if ac_fn_c_try_compile "$LINENO"; then :
9287 xorg_cv_cc_flag_unknown_warning_option=yes
9288 else
9289 xorg_cv_cc_flag_unknown_warning_option=no
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296 CFLAGS="$xorg_testset_save_CFLAGS"
9297 fi
9298
9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302 fi
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 int i;
9312 _ACEOF
9313 if ac_fn_c_try_compile "$LINENO"; then :
9314 xorg_cv_cc_flag_unused_command_line_argument=yes
9315 else
9316 xorg_cv_cc_flag_unused_command_line_argument=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9323 CFLAGS="$xorg_testset_save_CFLAGS"
9324 fi
9325
9326 found="no"
9327
9328 if test $found = "no" ; then
9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9335 fi
9336
9337 CFLAGS="$CFLAGS -Wtrigraphs"
9338
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9340 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9341 cacheid=xorg_cv_cc_flag__Wtrigraphs
9342 if eval \${$cacheid+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 int
9349 main ()
9350 {
9351
9352 ;
9353 return 0;
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_link "$LINENO"; then :
9357 eval $cacheid=yes
9358 else
9359 eval $cacheid=no
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363 fi
9364
9365
9366 CFLAGS="$xorg_testset_save_CFLAGS"
9367
9368 eval supported=\$$cacheid
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9370 $as_echo "$supported" >&6; }
9371 if test "$supported" = "yes" ; then
9372 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9373 found="yes"
9374 fi
9375 fi
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391 xorg_testset_save_CFLAGS="$CFLAGS"
9392
9393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 int i;
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"; then :
9405 xorg_cv_cc_flag_unknown_warning_option=yes
9406 else
9407 xorg_cv_cc_flag_unknown_warning_option=no
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9414 CFLAGS="$xorg_testset_save_CFLAGS"
9415 fi
9416
9417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420 fi
9421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 int i;
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"; then :
9432 xorg_cv_cc_flag_unused_command_line_argument=yes
9433 else
9434 xorg_cv_cc_flag_unused_command_line_argument=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442 fi
9443
9444 found="no"
9445
9446 if test $found = "no" ; then
9447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449 fi
9450
9451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9453 fi
9454
9455 CFLAGS="$CFLAGS -Warray-bounds"
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9458 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9459 cacheid=xorg_cv_cc_flag__Warray_bounds
9460 if eval \${$cacheid+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int i;
9466 int
9467 main ()
9468 {
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 eval $cacheid=yes
9476 else
9477 eval $cacheid=no
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 fi
9482
9483
9484 CFLAGS="$xorg_testset_save_CFLAGS"
9485
9486 eval supported=\$$cacheid
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9488 $as_echo "$supported" >&6; }
9489 if test "$supported" = "yes" ; then
9490 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9491 found="yes"
9492 fi
9493 fi
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 xorg_testset_save_CFLAGS="$CFLAGS"
9510
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 int i;
9521 _ACEOF
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523 xorg_cv_cc_flag_unknown_warning_option=yes
9524 else
9525 xorg_cv_cc_flag_unknown_warning_option=no
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9532 CFLAGS="$xorg_testset_save_CFLAGS"
9533 fi
9534
9535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538 fi
9539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547 int i;
9548 _ACEOF
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550 xorg_cv_cc_flag_unused_command_line_argument=yes
9551 else
9552 xorg_cv_cc_flag_unused_command_line_argument=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560 fi
9561
9562 found="no"
9563
9564 if test $found = "no" ; then
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 fi
9568
9569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571 fi
9572
9573 CFLAGS="$CFLAGS -Wwrite-strings"
9574
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9576 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9577 cacheid=xorg_cv_cc_flag__Wwrite_strings
9578 if eval \${$cacheid+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 int i;
9584 int
9585 main ()
9586 {
9587
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 eval $cacheid=yes
9594 else
9595 eval $cacheid=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599 fi
9600
9601
9602 CFLAGS="$xorg_testset_save_CFLAGS"
9603
9604 eval supported=\$$cacheid
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9606 $as_echo "$supported" >&6; }
9607 if test "$supported" = "yes" ; then
9608 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9609 found="yes"
9610 fi
9611 fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 xorg_testset_save_CFLAGS="$CFLAGS"
9628
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"; then :
9641 xorg_cv_cc_flag_unknown_warning_option=yes
9642 else
9643 xorg_cv_cc_flag_unknown_warning_option=no
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9650 CFLAGS="$xorg_testset_save_CFLAGS"
9651 fi
9652
9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656 fi
9657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9665 int i;
9666 _ACEOF
9667 if ac_fn_c_try_compile "$LINENO"; then :
9668 xorg_cv_cc_flag_unused_command_line_argument=yes
9669 else
9670 xorg_cv_cc_flag_unused_command_line_argument=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 fi
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678 fi
9679
9680 found="no"
9681
9682 if test $found = "no" ; then
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689 fi
9690
9691 CFLAGS="$CFLAGS -Waddress"
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9694 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9695 cacheid=xorg_cv_cc_flag__Waddress
9696 if eval \${$cacheid+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int i;
9702 int
9703 main ()
9704 {
9705
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 eval $cacheid=yes
9712 else
9713 eval $cacheid=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 fi
9718
9719
9720 CFLAGS="$xorg_testset_save_CFLAGS"
9721
9722 eval supported=\$$cacheid
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9724 $as_echo "$supported" >&6; }
9725 if test "$supported" = "yes" ; then
9726 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9727 found="yes"
9728 fi
9729 fi
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745 xorg_testset_save_CFLAGS="$CFLAGS"
9746
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 int i;
9757 _ACEOF
9758 if ac_fn_c_try_compile "$LINENO"; then :
9759 xorg_cv_cc_flag_unknown_warning_option=yes
9760 else
9761 xorg_cv_cc_flag_unknown_warning_option=no
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9768 CFLAGS="$xorg_testset_save_CFLAGS"
9769 fi
9770
9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774 fi
9775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int i;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"; then :
9786 xorg_cv_cc_flag_unused_command_line_argument=yes
9787 else
9788 xorg_cv_cc_flag_unused_command_line_argument=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796 fi
9797
9798 found="no"
9799
9800 if test $found = "no" ; then
9801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803 fi
9804
9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9807 fi
9808
9809 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9810
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9812 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9813 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9814 if eval \${$cacheid+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 int i;
9820 int
9821 main ()
9822 {
9823
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829 eval $cacheid=yes
9830 else
9831 eval $cacheid=no
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 fi
9836
9837
9838 CFLAGS="$xorg_testset_save_CFLAGS"
9839
9840 eval supported=\$$cacheid
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9842 $as_echo "$supported" >&6; }
9843 if test "$supported" = "yes" ; then
9844 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9845 found="yes"
9846 fi
9847 fi
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863 xorg_testset_save_CFLAGS="$CFLAGS"
9864
9865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9868 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9869 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 int i;
9875 _ACEOF
9876 if ac_fn_c_try_compile "$LINENO"; then :
9877 xorg_cv_cc_flag_unknown_warning_option=yes
9878 else
9879 xorg_cv_cc_flag_unknown_warning_option=no
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 fi
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9884 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9886 CFLAGS="$xorg_testset_save_CFLAGS"
9887 fi
9888
9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 fi
9893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9895 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9896 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 int i;
9902 _ACEOF
9903 if ac_fn_c_try_compile "$LINENO"; then :
9904 xorg_cv_cc_flag_unused_command_line_argument=yes
9905 else
9906 xorg_cv_cc_flag_unused_command_line_argument=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9911 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914 fi
9915
9916 found="no"
9917
9918 if test $found = "no" ; then
9919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921 fi
9922
9923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9925 fi
9926
9927 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9930 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9931 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9932 if eval \${$cacheid+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 int
9939 main ()
9940 {
9941
9942 ;
9943 return 0;
9944 }
9945 _ACEOF
9946 if ac_fn_c_try_link "$LINENO"; then :
9947 eval $cacheid=yes
9948 else
9949 eval $cacheid=no
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
9953 fi
9954
9955
9956 CFLAGS="$xorg_testset_save_CFLAGS"
9957
9958 eval supported=\$$cacheid
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9960 $as_echo "$supported" >&6; }
9961 if test "$supported" = "yes" ; then
9962 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9963 found="yes"
9964 fi
9965 fi
9966
9967
9968 fi
9969
9970
9971
9972
9973
9974
9975
9976 CWARNFLAGS="$BASE_CFLAGS"
9977 if test "x$GCC" = xyes ; then
9978 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988 # Check whether --enable-strict-compilation was given.
9989 if test "${enable_strict_compilation+set}" = set; then :
9990 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9991 else
9992 STRICT_COMPILE=no
9993 fi
9994
9995
9996
9997
9998
9999
10000 STRICT_CFLAGS=""
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014 xorg_testset_save_CFLAGS="$CFLAGS"
10015
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 int i;
10026 _ACEOF
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 xorg_cv_cc_flag_unknown_warning_option=yes
10029 else
10030 xorg_cv_cc_flag_unknown_warning_option=no
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10037 CFLAGS="$xorg_testset_save_CFLAGS"
10038 fi
10039
10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10043 fi
10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int i;
10053 _ACEOF
10054 if ac_fn_c_try_compile "$LINENO"; then :
10055 xorg_cv_cc_flag_unused_command_line_argument=yes
10056 else
10057 xorg_cv_cc_flag_unused_command_line_argument=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10065 fi
10066
10067 found="no"
10068
10069 if test $found = "no" ; then
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 fi
10073
10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076 fi
10077
10078 CFLAGS="$CFLAGS -pedantic"
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10081 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10082 cacheid=xorg_cv_cc_flag__pedantic
10083 if eval \${$cacheid+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 int i;
10089 int
10090 main ()
10091 {
10092
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10098 eval $cacheid=yes
10099 else
10100 eval $cacheid=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 fi
10105
10106
10107 CFLAGS="$xorg_testset_save_CFLAGS"
10108
10109 eval supported=\$$cacheid
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10111 $as_echo "$supported" >&6; }
10112 if test "$supported" = "yes" ; then
10113 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10114 found="yes"
10115 fi
10116 fi
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132 xorg_testset_save_CFLAGS="$CFLAGS"
10133
10134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 int i;
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 xorg_cv_cc_flag_unknown_warning_option=yes
10147 else
10148 xorg_cv_cc_flag_unknown_warning_option=no
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155 CFLAGS="$xorg_testset_save_CFLAGS"
10156 fi
10157
10158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161 fi
10162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173 xorg_cv_cc_flag_unused_command_line_argument=yes
10174 else
10175 xorg_cv_cc_flag_unused_command_line_argument=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183 fi
10184
10185 found="no"
10186
10187 if test $found = "no" ; then
10188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10190 fi
10191
10192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10194 fi
10195
10196 CFLAGS="$CFLAGS -Werror"
10197
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10199 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10200 cacheid=xorg_cv_cc_flag__Werror
10201 if eval \${$cacheid+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 int i;
10207 int
10208 main ()
10209 {
10210
10211 ;
10212 return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 eval $cacheid=yes
10217 else
10218 eval $cacheid=no
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 fi
10223
10224
10225 CFLAGS="$xorg_testset_save_CFLAGS"
10226
10227 eval supported=\$$cacheid
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10229 $as_echo "$supported" >&6; }
10230 if test "$supported" = "yes" ; then
10231 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10232 found="yes"
10233 fi
10234 fi
10235
10236 if test $found = "no" ; then
10237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239 fi
10240
10241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10243 fi
10244
10245 CFLAGS="$CFLAGS -errwarn"
10246
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10248 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10249 cacheid=xorg_cv_cc_flag__errwarn
10250 if eval \${$cacheid+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 int i;
10256 int
10257 main ()
10258 {
10259
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 eval $cacheid=yes
10266 else
10267 eval $cacheid=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 fi
10272
10273
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10275
10276 eval supported=\$$cacheid
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10278 $as_echo "$supported" >&6; }
10279 if test "$supported" = "yes" ; then
10280 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10281 found="yes"
10282 fi
10283 fi
10284
10285
10286
10287 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10288 # activate it with -Werror, so we add it here explicitly.
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 xorg_testset_save_CFLAGS="$CFLAGS"
10303
10304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 int i;
10314 _ACEOF
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 xorg_cv_cc_flag_unknown_warning_option=yes
10317 else
10318 xorg_cv_cc_flag_unknown_warning_option=no
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10325 CFLAGS="$xorg_testset_save_CFLAGS"
10326 fi
10327
10328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331 fi
10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int i;
10341 _ACEOF
10342 if ac_fn_c_try_compile "$LINENO"; then :
10343 xorg_cv_cc_flag_unused_command_line_argument=yes
10344 else
10345 xorg_cv_cc_flag_unused_command_line_argument=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353 fi
10354
10355 found="no"
10356
10357 if test $found = "no" ; then
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 fi
10361
10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10364 fi
10365
10366 CFLAGS="$CFLAGS -Werror=attributes"
10367
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10369 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10370 cacheid=xorg_cv_cc_flag__Werror_attributes
10371 if eval \${$cacheid+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 int
10378 main ()
10379 {
10380
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 eval $cacheid=yes
10387 else
10388 eval $cacheid=no
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 fi
10393
10394
10395 CFLAGS="$xorg_testset_save_CFLAGS"
10396
10397 eval supported=\$$cacheid
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10399 $as_echo "$supported" >&6; }
10400 if test "$supported" = "yes" ; then
10401 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10402 found="yes"
10403 fi
10404 fi
10405
10406
10407
10408 if test "x$STRICT_COMPILE" = "xyes"; then
10409 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10410 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10411 fi
10412
10413
10414
10415
10416
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10420 _ACEOF
10421
10422 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10423 if test "x$PVM" = "x"; then
10424 PVM="0"
10425 fi
10426
10427 cat >>confdefs.h <<_ACEOF
10428 #define PACKAGE_VERSION_MINOR $PVM
10429 _ACEOF
10430
10431 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10432 if test "x$PVP" = "x"; then
10433 PVP="0"
10434 fi
10435
10436 cat >>confdefs.h <<_ACEOF
10437 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10438 _ACEOF
10439
10440
10441
10442 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10443 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10444 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10445 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10446
10447
10448
10449
10450 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10451 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10452 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10453 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10454 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10455
10456
10457
10458
10459
10460
10461 if test x$APP_MAN_SUFFIX = x ; then
10462 APP_MAN_SUFFIX=1
10463 fi
10464 if test x$APP_MAN_DIR = x ; then
10465 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10466 fi
10467
10468 if test x$LIB_MAN_SUFFIX = x ; then
10469 LIB_MAN_SUFFIX=3
10470 fi
10471 if test x$LIB_MAN_DIR = x ; then
10472 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10473 fi
10474
10475 if test x$FILE_MAN_SUFFIX = x ; then
10476 case $host_os in
10477 solaris*) FILE_MAN_SUFFIX=4 ;;
10478 *) FILE_MAN_SUFFIX=5 ;;
10479 esac
10480 fi
10481 if test x$FILE_MAN_DIR = x ; then
10482 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10483 fi
10484
10485 if test x$MISC_MAN_SUFFIX = x ; then
10486 case $host_os in
10487 solaris*) MISC_MAN_SUFFIX=5 ;;
10488 *) MISC_MAN_SUFFIX=7 ;;
10489 esac
10490 fi
10491 if test x$MISC_MAN_DIR = x ; then
10492 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10493 fi
10494
10495 if test x$DRIVER_MAN_SUFFIX = x ; then
10496 case $host_os in
10497 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10498 *) DRIVER_MAN_SUFFIX=4 ;;
10499 esac
10500 fi
10501 if test x$DRIVER_MAN_DIR = x ; then
10502 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10503 fi
10504
10505 if test x$ADMIN_MAN_SUFFIX = x ; then
10506 case $host_os in
10507 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10508 *) ADMIN_MAN_SUFFIX=8 ;;
10509 esac
10510 fi
10511 if test x$ADMIN_MAN_DIR = x ; then
10512 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10513 fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 XORG_MAN_PAGE="X Version 11"
10530
10531 MAN_SUBSTS="\
10532 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10533 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10534 -e 's|__xservername__|Xorg|g' \
10535 -e 's|__xconfigfile__|xorg.conf|g' \
10536 -e 's|__projectroot__|\$(prefix)|g' \
10537 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10538 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10539 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10540 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10541 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10542 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10543 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10544
10545
10546
10547 # Check whether --enable-silent-rules was given.
10548 if test "${enable_silent_rules+set}" = set; then :
10549 enableval=$enable_silent_rules;
10550 fi
10551
10552 case $enable_silent_rules in # (((
10553 yes) AM_DEFAULT_VERBOSITY=0;;
10554 no) AM_DEFAULT_VERBOSITY=1;;
10555 *) AM_DEFAULT_VERBOSITY=0;;
10556 esac
10557 am_make=${MAKE-make}
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10559 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10560 if ${am_cv_make_support_nested_variables+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if $as_echo 'TRUE=$(BAR$(V))
10564 BAR0=false
10565 BAR1=true
10566 V=1
10567 am__doit:
10568 @$(TRUE)
10569 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10570 am_cv_make_support_nested_variables=yes
10571 else
10572 am_cv_make_support_nested_variables=no
10573 fi
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10576 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10577 if test $am_cv_make_support_nested_variables = yes; then
10578 AM_V='$(V)'
10579 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10580 else
10581 AM_V=$AM_DEFAULT_VERBOSITY
10582 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10583 fi
10584 AM_BACKSLASH='\'
10585
10586
10587
10588 # Checks for pkg-config packages
10589
10590 pkg_failed=no
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFSINFO" >&5
10592 $as_echo_n "checking for XFSINFO... " >&6; }
10593
10594 if test -n "$XFSINFO_CFLAGS"; then
10595 pkg_cv_XFSINFO_CFLAGS="$XFSINFO_CFLAGS"
10596 elif test -n "$PKG_CONFIG"; then
10597 if test -n "$PKG_CONFIG" && \
10598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 libfs\""; } >&5
10599 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 libfs") 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; }; then
10603 pkg_cv_XFSINFO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 libfs" 2>/dev/null`
10604 else
10605 pkg_failed=yes
10606 fi
10607 else
10608 pkg_failed=untried
10609 fi
10610 if test -n "$XFSINFO_LIBS"; then
10611 pkg_cv_XFSINFO_LIBS="$XFSINFO_LIBS"
10612 elif test -n "$PKG_CONFIG"; then
10613 if test -n "$PKG_CONFIG" && \
10614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 libfs\""; } >&5
10615 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 libfs") 2>&5
10616 ac_status=$?
10617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10618 test $ac_status = 0; }; then
10619 pkg_cv_XFSINFO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 libfs" 2>/dev/null`
10620 else
10621 pkg_failed=yes
10622 fi
10623 else
10624 pkg_failed=untried
10625 fi
10626
10627
10628
10629 if test $pkg_failed = yes; then
10630
10631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10632 _pkg_short_errors_supported=yes
10633 else
10634 _pkg_short_errors_supported=no
10635 fi
10636 if test $_pkg_short_errors_supported = yes; then
10637 XFSINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 libfs" 2>&1`
10638 else
10639 XFSINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 libfs" 2>&1`
10640 fi
10641 # Put the nasty error message in config.log where it belongs
10642 echo "$XFSINFO_PKG_ERRORS" >&5
10643
10644 as_fn_error $? "Package requirements (xproto >= 7.0.17 libfs) were not met:
10645
10646 $XFSINFO_PKG_ERRORS
10647
10648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10649 installed software in a non-standard prefix.
10650
10651 Alternatively, you may set the environment variables XFSINFO_CFLAGS
10652 and XFSINFO_LIBS to avoid the need to call pkg-config.
10653 See the pkg-config man page for more details.
10654 " "$LINENO" 5
10655 elif test $pkg_failed = untried; then
10656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10659 is in your PATH or set the PKG_CONFIG environment variable to the full
10660 path to pkg-config.
10661
10662 Alternatively, you may set the environment variables XFSINFO_CFLAGS
10663 and XFSINFO_LIBS to avoid the need to call pkg-config.
10664 See the pkg-config man page for more details.
10665
10666 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10667 See \`config.log' for more details" "$LINENO" 5; }
10668 else
10669 XFSINFO_CFLAGS=$pkg_cv_XFSINFO_CFLAGS
10670 XFSINFO_LIBS=$pkg_cv_XFSINFO_LIBS
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; }
10673 :
10674 fi
10675
10676 ac_config_files="$ac_config_files Makefile man/Makefile"
10677
10678 cat >confcache <<\_ACEOF
10679 # This file is a shell script that caches the results of configure
10680 # tests run on this system so they can be shared between configure
10681 # scripts and configure runs, see configure's option --config-cache.
10682 # It is not useful on other systems. If it contains results you don't
10683 # want to keep, you may remove or edit it.
10684 #
10685 # config.status only pays attention to the cache file if you give it
10686 # the --recheck option to rerun configure.
10687 #
10688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10690 # following values.
10691
10692 _ACEOF
10693
10694 # The following way of writing the cache mishandles newlines in values,
10695 # but we know of no workaround that is simple, portable, and efficient.
10696 # So, we kill variables containing newlines.
10697 # Ultrix sh set writes to stderr and can't be redirected directly,
10698 # and sets the high bit in the cache file unless we assign to the vars.
10699 (
10700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10701 eval ac_val=\$$ac_var
10702 case $ac_val in #(
10703 *${as_nl}*)
10704 case $ac_var in #(
10705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10707 esac
10708 case $ac_var in #(
10709 _ | IFS | as_nl) ;; #(
10710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10711 *) { eval $ac_var=; unset $ac_var;} ;;
10712 esac ;;
10713 esac
10714 done
10715
10716 (set) 2>&1 |
10717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10718 *${as_nl}ac_space=\ *)
10719 # `set' does not quote correctly, so add quotes: double-quote
10720 # substitution turns \\\\ into \\, and sed turns \\ into \.
10721 sed -n \
10722 "s/'/'\\\\''/g;
10723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10724 ;; #(
10725 *)
10726 # `set' quotes correctly as required by POSIX, so do not add quotes.
10727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10728 ;;
10729 esac |
10730 sort
10731 ) |
10732 sed '
10733 /^ac_cv_env_/b end
10734 t clear
10735 :clear
10736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10737 t end
10738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10739 :end' >>confcache
10740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10741 if test -w "$cache_file"; then
10742 if test "x$cache_file" != "x/dev/null"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10744 $as_echo "$as_me: updating cache $cache_file" >&6;}
10745 if test ! -f "$cache_file" || test -h "$cache_file"; then
10746 cat confcache >"$cache_file"
10747 else
10748 case $cache_file in #(
10749 */* | ?:*)
10750 mv -f confcache "$cache_file"$$ &&
10751 mv -f "$cache_file"$$ "$cache_file" ;; #(
10752 *)
10753 mv -f confcache "$cache_file" ;;
10754 esac
10755 fi
10756 fi
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10760 fi
10761 fi
10762 rm -f confcache
10763
10764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10765 # Let make expand exec_prefix.
10766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10767
10768 DEFS=-DHAVE_CONFIG_H
10769
10770 ac_libobjs=
10771 ac_ltlibobjs=
10772 U=
10773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10774 # 1. Remove the extension, and $U if already installed.
10775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10778 # will be set to the directory where LIBOBJS objects are built.
10779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10781 done
10782 LIBOBJS=$ac_libobjs
10783
10784 LTLIBOBJS=$ac_ltlibobjs
10785
10786
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10788 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10789 if test -n "$am_sleep_pid"; then
10790 # Hide warnings about reused PIDs.
10791 wait $am_sleep_pid 2>/dev/null
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10794 $as_echo "done" >&6; }
10795 if test -n "$EXEEXT"; then
10796 am__EXEEXT_TRUE=
10797 am__EXEEXT_FALSE='#'
10798 else
10799 am__EXEEXT_TRUE='#'
10800 am__EXEEXT_FALSE=
10801 fi
10802
10803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10804 as_fn_error $? "conditional \"AMDEP\" was never defined.
10805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10806 fi
10807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10808 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10810 fi
10811
10812 : "${CONFIG_STATUS=./config.status}"
10813 ac_write_fail=0
10814 ac_clean_files_save=$ac_clean_files
10815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10817 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10818 as_write_fail=0
10819 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10820 #! $SHELL
10821 # Generated by $as_me.
10822 # Run this file to recreate the current configuration.
10823 # Compiler output produced by configure, useful for debugging
10824 # configure, is in config.log if it exists.
10825
10826 debug=false
10827 ac_cs_recheck=false
10828 ac_cs_silent=false
10829
10830 SHELL=\${CONFIG_SHELL-$SHELL}
10831 export SHELL
10832 _ASEOF
10833 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10834 ## -------------------- ##
10835 ## M4sh Initialization. ##
10836 ## -------------------- ##
10837
10838 # Be more Bourne compatible
10839 DUALCASE=1; export DUALCASE # for MKS sh
10840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10841 emulate sh
10842 NULLCMD=:
10843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10844 # is contrary to our usage. Disable this feature.
10845 alias -g '${1+"$@"}'='"$@"'
10846 setopt NO_GLOB_SUBST
10847 else
10848 case `(set -o) 2>/dev/null` in #(
10849 *posix*) :
10850 set -o posix ;; #(
10851 *) :
10852 ;;
10853 esac
10854 fi
10855
10856
10857 as_nl='
10858 '
10859 export as_nl
10860 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10861 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10864 # Prefer a ksh shell builtin over an external printf program on Solaris,
10865 # but without wasting forks for bash or zsh.
10866 if test -z "$BASH_VERSION$ZSH_VERSION" \
10867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10868 as_echo='print -r --'
10869 as_echo_n='print -rn --'
10870 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10871 as_echo='printf %s\n'
10872 as_echo_n='printf %s'
10873 else
10874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10876 as_echo_n='/usr/ucb/echo -n'
10877 else
10878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10879 as_echo_n_body='eval
10880 arg=$1;
10881 case $arg in #(
10882 *"$as_nl"*)
10883 expr "X$arg" : "X\\(.*\\)$as_nl";
10884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10885 esac;
10886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10887 '
10888 export as_echo_n_body
10889 as_echo_n='sh -c $as_echo_n_body as_echo'
10890 fi
10891 export as_echo_body
10892 as_echo='sh -c $as_echo_body as_echo'
10893 fi
10894
10895 # The user is always right.
10896 if test "${PATH_SEPARATOR+set}" != set; then
10897 PATH_SEPARATOR=:
10898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10900 PATH_SEPARATOR=';'
10901 }
10902 fi
10903
10904
10905 # IFS
10906 # We need space, tab and new line, in precisely that order. Quoting is
10907 # there to prevent editors from complaining about space-tab.
10908 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10909 # splitting by setting IFS to empty value.)
10910 IFS=" "" $as_nl"
10911
10912 # Find who we are. Look in the path if we contain no directory separator.
10913 as_myself=
10914 case $0 in #((
10915 *[\\/]* ) as_myself=$0 ;;
10916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10918 do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10922 done
10923 IFS=$as_save_IFS
10924
10925 ;;
10926 esac
10927 # We did not find ourselves, most probably we were run as `sh COMMAND'
10928 # in which case we are not to be found in the path.
10929 if test "x$as_myself" = x; then
10930 as_myself=$0
10931 fi
10932 if test ! -f "$as_myself"; then
10933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10934 exit 1
10935 fi
10936
10937 # Unset variables that we do not need and which cause bugs (e.g. in
10938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10939 # suppresses any "Segmentation fault" message there. '((' could
10940 # trigger a bug in pdksh 5.2.14.
10941 for as_var in BASH_ENV ENV MAIL MAILPATH
10942 do eval test x\${$as_var+set} = xset \
10943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10944 done
10945 PS1='$ '
10946 PS2='> '
10947 PS4='+ '
10948
10949 # NLS nuisances.
10950 LC_ALL=C
10951 export LC_ALL
10952 LANGUAGE=C
10953 export LANGUAGE
10954
10955 # CDPATH.
10956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10957
10958
10959 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10960 # ----------------------------------------
10961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10963 # script with STATUS, using 1 if that was 0.
10964 as_fn_error ()
10965 {
10966 as_status=$1; test $as_status -eq 0 && as_status=1
10967 if test "$4"; then
10968 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10970 fi
10971 $as_echo "$as_me: error: $2" >&2
10972 as_fn_exit $as_status
10973 } # as_fn_error
10974
10975
10976 # as_fn_set_status STATUS
10977 # -----------------------
10978 # Set $? to STATUS, without forking.
10979 as_fn_set_status ()
10980 {
10981 return $1
10982 } # as_fn_set_status
10983
10984 # as_fn_exit STATUS
10985 # -----------------
10986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10987 as_fn_exit ()
10988 {
10989 set +e
10990 as_fn_set_status $1
10991 exit $1
10992 } # as_fn_exit
10993
10994 # as_fn_unset VAR
10995 # ---------------
10996 # Portably unset VAR.
10997 as_fn_unset ()
10998 {
10999 { eval $1=; unset $1;}
11000 }
11001 as_unset=as_fn_unset
11002 # as_fn_append VAR VALUE
11003 # ----------------------
11004 # Append the text in VALUE to the end of the definition contained in VAR. Take
11005 # advantage of any shell optimizations that allow amortized linear growth over
11006 # repeated appends, instead of the typical quadratic growth present in naive
11007 # implementations.
11008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11009 eval 'as_fn_append ()
11010 {
11011 eval $1+=\$2
11012 }'
11013 else
11014 as_fn_append ()
11015 {
11016 eval $1=\$$1\$2
11017 }
11018 fi # as_fn_append
11019
11020 # as_fn_arith ARG...
11021 # ------------------
11022 # Perform arithmetic evaluation on the ARGs, and store the result in the
11023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11024 # must be portable across $(()) and expr.
11025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11026 eval 'as_fn_arith ()
11027 {
11028 as_val=$(( $* ))
11029 }'
11030 else
11031 as_fn_arith ()
11032 {
11033 as_val=`expr "$@" || test $? -eq 1`
11034 }
11035 fi # as_fn_arith
11036
11037
11038 if expr a : '\(a\)' >/dev/null 2>&1 &&
11039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11040 as_expr=expr
11041 else
11042 as_expr=false
11043 fi
11044
11045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11046 as_basename=basename
11047 else
11048 as_basename=false
11049 fi
11050
11051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11052 as_dirname=dirname
11053 else
11054 as_dirname=false
11055 fi
11056
11057 as_me=`$as_basename -- "$0" ||
11058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11059 X"$0" : 'X\(//\)$' \| \
11060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11061 $as_echo X/"$0" |
11062 sed '/^.*\/\([^/][^/]*\)\/*$/{
11063 s//\1/
11064 q
11065 }
11066 /^X\/\(\/\/\)$/{
11067 s//\1/
11068 q
11069 }
11070 /^X\/\(\/\).*/{
11071 s//\1/
11072 q
11073 }
11074 s/.*/./; q'`
11075
11076 # Avoid depending upon Character Ranges.
11077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11080 as_cr_digits='0123456789'
11081 as_cr_alnum=$as_cr_Letters$as_cr_digits
11082
11083 ECHO_C= ECHO_N= ECHO_T=
11084 case `echo -n x` in #(((((
11085 -n*)
11086 case `echo 'xy\c'` in
11087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11088 xy) ECHO_C='\c';;
11089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11090 ECHO_T=' ';;
11091 esac;;
11092 *)
11093 ECHO_N='-n';;
11094 esac
11095
11096 rm -f conf$$ conf$$.exe conf$$.file
11097 if test -d conf$$.dir; then
11098 rm -f conf$$.dir/conf$$.file
11099 else
11100 rm -f conf$$.dir
11101 mkdir conf$$.dir 2>/dev/null
11102 fi
11103 if (echo >conf$$.file) 2>/dev/null; then
11104 if ln -s conf$$.file conf$$ 2>/dev/null; then
11105 as_ln_s='ln -s'
11106 # ... but there are two gotchas:
11107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11109 # In both cases, we have to default to `cp -pR'.
11110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11111 as_ln_s='cp -pR'
11112 elif ln conf$$.file conf$$ 2>/dev/null; then
11113 as_ln_s=ln
11114 else
11115 as_ln_s='cp -pR'
11116 fi
11117 else
11118 as_ln_s='cp -pR'
11119 fi
11120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11121 rmdir conf$$.dir 2>/dev/null
11122
11123
11124 # as_fn_mkdir_p
11125 # -------------
11126 # Create "$as_dir" as a directory, including parents if necessary.
11127 as_fn_mkdir_p ()
11128 {
11129
11130 case $as_dir in #(
11131 -*) as_dir=./$as_dir;;
11132 esac
11133 test -d "$as_dir" || eval $as_mkdir_p || {
11134 as_dirs=
11135 while :; do
11136 case $as_dir in #(
11137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11138 *) as_qdir=$as_dir;;
11139 esac
11140 as_dirs="'$as_qdir' $as_dirs"
11141 as_dir=`$as_dirname -- "$as_dir" ||
11142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11143 X"$as_dir" : 'X\(//\)[^/]' \| \
11144 X"$as_dir" : 'X\(//\)$' \| \
11145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11146 $as_echo X"$as_dir" |
11147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11148 s//\1/
11149 q
11150 }
11151 /^X\(\/\/\)[^/].*/{
11152 s//\1/
11153 q
11154 }
11155 /^X\(\/\/\)$/{
11156 s//\1/
11157 q
11158 }
11159 /^X\(\/\).*/{
11160 s//\1/
11161 q
11162 }
11163 s/.*/./; q'`
11164 test -d "$as_dir" && break
11165 done
11166 test -z "$as_dirs" || eval "mkdir $as_dirs"
11167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11168
11169
11170 } # as_fn_mkdir_p
11171 if mkdir -p . 2>/dev/null; then
11172 as_mkdir_p='mkdir -p "$as_dir"'
11173 else
11174 test -d ./-p && rmdir ./-p
11175 as_mkdir_p=false
11176 fi
11177
11178
11179 # as_fn_executable_p FILE
11180 # -----------------------
11181 # Test if FILE is an executable regular file.
11182 as_fn_executable_p ()
11183 {
11184 test -f "$1" && test -x "$1"
11185 } # as_fn_executable_p
11186 as_test_x='test -x'
11187 as_executable_p=as_fn_executable_p
11188
11189 # Sed expression to map a string onto a valid CPP name.
11190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11191
11192 # Sed expression to map a string onto a valid variable name.
11193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11194
11195
11196 exec 6>&1
11197 ## ----------------------------------- ##
11198 ## Main body of $CONFIG_STATUS script. ##
11199 ## ----------------------------------- ##
11200 _ASEOF
11201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11202
11203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11204 # Save the log message, to keep $0 and so on meaningful, and to
11205 # report actual input values of CONFIG_FILES etc. instead of their
11206 # values after options handling.
11207 ac_log="
11208 This file was extended by xfsinfo $as_me 1.0.5, which was
11209 generated by GNU Autoconf 2.69. Invocation command line was
11210
11211 CONFIG_FILES = $CONFIG_FILES
11212 CONFIG_HEADERS = $CONFIG_HEADERS
11213 CONFIG_LINKS = $CONFIG_LINKS
11214 CONFIG_COMMANDS = $CONFIG_COMMANDS
11215 $ $0 $@
11216
11217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11218 "
11219
11220 _ACEOF
11221
11222 case $ac_config_files in *"
11223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11224 esac
11225
11226 case $ac_config_headers in *"
11227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11228 esac
11229
11230
11231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11232 # Files that config.status was made for.
11233 config_files="$ac_config_files"
11234 config_headers="$ac_config_headers"
11235 config_commands="$ac_config_commands"
11236
11237 _ACEOF
11238
11239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11240 ac_cs_usage="\
11241 \`$as_me' instantiates files and other configuration actions
11242 from templates according to the current configuration. Unless the files
11243 and actions are specified as TAGs, all are instantiated by default.
11244
11245 Usage: $0 [OPTION]... [TAG]...
11246
11247 -h, --help print this help, then exit
11248 -V, --version print version number and configuration settings, then exit
11249 --config print configuration, then exit
11250 -q, --quiet, --silent
11251 do not print progress messages
11252 -d, --debug don't remove temporary files
11253 --recheck update $as_me by reconfiguring in the same conditions
11254 --file=FILE[:TEMPLATE]
11255 instantiate the configuration file FILE
11256 --header=FILE[:TEMPLATE]
11257 instantiate the configuration header FILE
11258
11259 Configuration files:
11260 $config_files
11261
11262 Configuration headers:
11263 $config_headers
11264
11265 Configuration commands:
11266 $config_commands
11267
11268 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11269
11270 _ACEOF
11271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11272 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11273 ac_cs_version="\\
11274 xfsinfo config.status 1.0.5
11275 configured by $0, generated by GNU Autoconf 2.69,
11276 with options \\"\$ac_cs_config\\"
11277
11278 Copyright (C) 2012 Free Software Foundation, Inc.
11279 This config.status script is free software; the Free Software Foundation
11280 gives unlimited permission to copy, distribute and modify it."
11281
11282 ac_pwd='$ac_pwd'
11283 srcdir='$srcdir'
11284 INSTALL='$INSTALL'
11285 MKDIR_P='$MKDIR_P'
11286 AWK='$AWK'
11287 test -n "\$AWK" || AWK=awk
11288 _ACEOF
11289
11290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11291 # The default lists apply if the user does not specify any file.
11292 ac_need_defaults=:
11293 while test $# != 0
11294 do
11295 case $1 in
11296 --*=?*)
11297 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11298 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11299 ac_shift=:
11300 ;;
11301 --*=)
11302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11303 ac_optarg=
11304 ac_shift=:
11305 ;;
11306 *)
11307 ac_option=$1
11308 ac_optarg=$2
11309 ac_shift=shift
11310 ;;
11311 esac
11312
11313 case $ac_option in
11314 # Handling of the options.
11315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11316 ac_cs_recheck=: ;;
11317 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11318 $as_echo "$ac_cs_version"; exit ;;
11319 --config | --confi | --conf | --con | --co | --c )
11320 $as_echo "$ac_cs_config"; exit ;;
11321 --debug | --debu | --deb | --de | --d | -d )
11322 debug=: ;;
11323 --file | --fil | --fi | --f )
11324 $ac_shift
11325 case $ac_optarg in
11326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11327 '') as_fn_error $? "missing file argument" ;;
11328 esac
11329 as_fn_append CONFIG_FILES " '$ac_optarg'"
11330 ac_need_defaults=false;;
11331 --header | --heade | --head | --hea )
11332 $ac_shift
11333 case $ac_optarg in
11334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11335 esac
11336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11337 ac_need_defaults=false;;
11338 --he | --h)
11339 # Conflict between --help and --header
11340 as_fn_error $? "ambiguous option: \`$1'
11341 Try \`$0 --help' for more information.";;
11342 --help | --hel | -h )
11343 $as_echo "$ac_cs_usage"; exit ;;
11344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11346 ac_cs_silent=: ;;
11347
11348 # This is an error.
11349 -*) as_fn_error $? "unrecognized option: \`$1'
11350 Try \`$0 --help' for more information." ;;
11351
11352 *) as_fn_append ac_config_targets " $1"
11353 ac_need_defaults=false ;;
11354
11355 esac
11356 shift
11357 done
11358
11359 ac_configure_extra_args=
11360
11361 if $ac_cs_silent; then
11362 exec 6>/dev/null
11363 ac_configure_extra_args="$ac_configure_extra_args --silent"
11364 fi
11365
11366 _ACEOF
11367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11368 if \$ac_cs_recheck; then
11369 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11370 shift
11371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11372 CONFIG_SHELL='$SHELL'
11373 export CONFIG_SHELL
11374 exec "\$@"
11375 fi
11376
11377 _ACEOF
11378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11379 exec 5>>config.log
11380 {
11381 echo
11382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11383 ## Running $as_me. ##
11384 _ASBOX
11385 $as_echo "$ac_log"
11386 } >&5
11387
11388 _ACEOF
11389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390 #
11391 # INIT-COMMANDS
11392 #
11393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11394
11395 _ACEOF
11396
11397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11398
11399 # Handling of arguments.
11400 for ac_config_target in $ac_config_targets
11401 do
11402 case $ac_config_target in
11403 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11404 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11406 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11407
11408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11409 esac
11410 done
11411
11412
11413 # If the user did not use the arguments to specify the items to instantiate,
11414 # then the envvar interface is used. Set only those that are not.
11415 # We use the long form for the default assignment because of an extremely
11416 # bizarre bug on SunOS 4.1.3.
11417 if $ac_need_defaults; then
11418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11421 fi
11422
11423 # Have a temporary directory for convenience. Make it in the build tree
11424 # simply because there is no reason against having it here, and in addition,
11425 # creating and moving files from /tmp can sometimes cause problems.
11426 # Hook for its removal unless debugging.
11427 # Note that there is a small window in which the directory will not be cleaned:
11428 # after its creation but before its name has been assigned to `$tmp'.
11429 $debug ||
11430 {
11431 tmp= ac_tmp=
11432 trap 'exit_status=$?
11433 : "${ac_tmp:=$tmp}"
11434 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11435 ' 0
11436 trap 'as_fn_exit 1' 1 2 13 15
11437 }
11438 # Create a (secure) tmp directory for tmp files.
11439
11440 {
11441 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11442 test -d "$tmp"
11443 } ||
11444 {
11445 tmp=./conf$$-$RANDOM
11446 (umask 077 && mkdir "$tmp")
11447 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11448 ac_tmp=$tmp
11449
11450 # Set up the scripts for CONFIG_FILES section.
11451 # No need to generate them if there are no CONFIG_FILES.
11452 # This happens for instance with `./config.status config.h'.
11453 if test -n "$CONFIG_FILES"; then
11454
11455
11456 ac_cr=`echo X | tr X '\015'`
11457 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11458 # But we know of no other shell where ac_cr would be empty at this
11459 # point, so we can use a bashism as a fallback.
11460 if test "x$ac_cr" = x; then
11461 eval ac_cr=\$\'\\r\'
11462 fi
11463 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11464 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11465 ac_cs_awk_cr='\\r'
11466 else
11467 ac_cs_awk_cr=$ac_cr
11468 fi
11469
11470 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11471 _ACEOF
11472
11473
11474 {
11475 echo "cat >conf$$subs.awk <<_ACEOF" &&
11476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11477 echo "_ACEOF"
11478 } >conf$$subs.sh ||
11479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11480 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11481 ac_delim='%!_!# '
11482 for ac_last_try in false false false false false :; do
11483 . ./conf$$subs.sh ||
11484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11485
11486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11487 if test $ac_delim_n = $ac_delim_num; then
11488 break
11489 elif $ac_last_try; then
11490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11491 else
11492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11493 fi
11494 done
11495 rm -f conf$$subs.sh
11496
11497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11498 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11499 _ACEOF
11500 sed -n '
11501 h
11502 s/^/S["/; s/!.*/"]=/
11503 p
11504 g
11505 s/^[^!]*!//
11506 :repl
11507 t repl
11508 s/'"$ac_delim"'$//
11509 t delim
11510 :nl
11511 h
11512 s/\(.\{148\}\)..*/\1/
11513 t more1
11514 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11515 p
11516 n
11517 b repl
11518 :more1
11519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11520 p
11521 g
11522 s/.\{148\}//
11523 t nl
11524 :delim
11525 h
11526 s/\(.\{148\}\)..*/\1/
11527 t more2
11528 s/["\\]/\\&/g; s/^/"/; s/$/"/
11529 p
11530 b
11531 :more2
11532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11533 p
11534 g
11535 s/.\{148\}//
11536 t delim
11537 ' <conf$$subs.awk | sed '
11538 /^[^""]/{
11539 N
11540 s/\n//
11541 }
11542 ' >>$CONFIG_STATUS || ac_write_fail=1
11543 rm -f conf$$subs.awk
11544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11545 _ACAWK
11546 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11547 for (key in S) S_is_set[key] = 1
11548 FS = ""
11549
11550 }
11551 {
11552 line = $ 0
11553 nfields = split(line, field, "@")
11554 substed = 0
11555 len = length(field[1])
11556 for (i = 2; i < nfields; i++) {
11557 key = field[i]
11558 keylen = length(key)
11559 if (S_is_set[key]) {
11560 value = S[key]
11561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11562 len += length(value) + length(field[++i])
11563 substed = 1
11564 } else
11565 len += 1 + keylen
11566 }
11567
11568 print line
11569 }
11570
11571 _ACAWK
11572 _ACEOF
11573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11574 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11575 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11576 else
11577 cat
11578 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11579 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11580 _ACEOF
11581
11582 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11583 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11584 # trailing colons and then remove the whole line if VPATH becomes empty
11585 # (actually we leave an empty line to preserve line numbers).
11586 if test "x$srcdir" = x.; then
11587 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11588 h
11589 s///
11590 s/^/:/
11591 s/[ ]*$/:/
11592 s/:\$(srcdir):/:/g
11593 s/:\${srcdir}:/:/g
11594 s/:@srcdir@:/:/g
11595 s/^:*//
11596 s/:*$//
11597 x
11598 s/\(=[ ]*\).*/\1/
11599 G
11600 s/\n//
11601 s/^[^=]*=[ ]*$//
11602 }'
11603 fi
11604
11605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606 fi # test -n "$CONFIG_FILES"
11607
11608 # Set up the scripts for CONFIG_HEADERS section.
11609 # No need to generate them if there are no CONFIG_HEADERS.
11610 # This happens for instance with `./config.status Makefile'.
11611 if test -n "$CONFIG_HEADERS"; then
11612 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11613 BEGIN {
11614 _ACEOF
11615
11616 # Transform confdefs.h into an awk script `defines.awk', embedded as
11617 # here-document in config.status, that substitutes the proper values into
11618 # config.h.in to produce config.h.
11619
11620 # Create a delimiter string that does not exist in confdefs.h, to ease
11621 # handling of long lines.
11622 ac_delim='%!_!# '
11623 for ac_last_try in false false :; do
11624 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11625 if test -z "$ac_tt"; then
11626 break
11627 elif $ac_last_try; then
11628 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11629 else
11630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11631 fi
11632 done
11633
11634 # For the awk script, D is an array of macro values keyed by name,
11635 # likewise P contains macro parameters if any. Preserve backslash
11636 # newline sequences.
11637
11638 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11639 sed -n '
11640 s/.\{148\}/&'"$ac_delim"'/g
11641 t rset
11642 :rset
11643 s/^[ ]*#[ ]*define[ ][ ]*/ /
11644 t def
11645 d
11646 :def
11647 s/\\$//
11648 t bsnl
11649 s/["\\]/\\&/g
11650 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11651 D["\1"]=" \3"/p
11652 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11653 d
11654 :bsnl
11655 s/["\\]/\\&/g
11656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11657 D["\1"]=" \3\\\\\\n"\\/p
11658 t cont
11659 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11660 t cont
11661 d
11662 :cont
11663 n
11664 s/.\{148\}/&'"$ac_delim"'/g
11665 t clear
11666 :clear
11667 s/\\$//
11668 t bsnlc
11669 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11670 d
11671 :bsnlc
11672 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11673 b cont
11674 ' <confdefs.h | sed '
11675 s/'"$ac_delim"'/"\\\
11676 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11677
11678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11679 for (key in D) D_is_set[key] = 1
11680 FS = ""
11681 }
11682 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11683 line = \$ 0
11684 split(line, arg, " ")
11685 if (arg[1] == "#") {
11686 defundef = arg[2]
11687 mac1 = arg[3]
11688 } else {
11689 defundef = substr(arg[1], 2)
11690 mac1 = arg[2]
11691 }
11692 split(mac1, mac2, "(") #)
11693 macro = mac2[1]
11694 prefix = substr(line, 1, index(line, defundef) - 1)
11695 if (D_is_set[macro]) {
11696 # Preserve the white space surrounding the "#".
11697 print prefix "define", macro P[macro] D[macro]
11698 next
11699 } else {
11700 # Replace #undef with comments. This is necessary, for example,
11701 # in the case of _POSIX_SOURCE, which is predefined and required
11702 # on some systems where configure will not decide to define it.
11703 if (defundef == "undef") {
11704 print "/*", prefix defundef, macro, "*/"
11705 next
11706 }
11707 }
11708 }
11709 { print }
11710 _ACAWK
11711 _ACEOF
11712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11713 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11714 fi # test -n "$CONFIG_HEADERS"
11715
11716
11717 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11718 shift
11719 for ac_tag
11720 do
11721 case $ac_tag in
11722 :[FHLC]) ac_mode=$ac_tag; continue;;
11723 esac
11724 case $ac_mode$ac_tag in
11725 :[FHL]*:*);;
11726 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11727 :[FH]-) ac_tag=-:-;;
11728 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11729 esac
11730 ac_save_IFS=$IFS
11731 IFS=:
11732 set x $ac_tag
11733 IFS=$ac_save_IFS
11734 shift
11735 ac_file=$1
11736 shift
11737
11738 case $ac_mode in
11739 :L) ac_source=$1;;
11740 :[FH])
11741 ac_file_inputs=
11742 for ac_f
11743 do
11744 case $ac_f in
11745 -) ac_f="$ac_tmp/stdin";;
11746 *) # Look for the file first in the build tree, then in the source tree
11747 # (if the path is not absolute). The absolute path cannot be DOS-style,
11748 # because $ac_f cannot contain `:'.
11749 test -f "$ac_f" ||
11750 case $ac_f in
11751 [\\/$]*) false;;
11752 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11753 esac ||
11754 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11755 esac
11756 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11757 as_fn_append ac_file_inputs " '$ac_f'"
11758 done
11759
11760 # Let's still pretend it is `configure' which instantiates (i.e., don't
11761 # use $as_me), people would be surprised to read:
11762 # /* config.h. Generated by config.status. */
11763 configure_input='Generated from '`
11764 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11765 `' by configure.'
11766 if test x"$ac_file" != x-; then
11767 configure_input="$ac_file. $configure_input"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11769 $as_echo "$as_me: creating $ac_file" >&6;}
11770 fi
11771 # Neutralize special characters interpreted by sed in replacement strings.
11772 case $configure_input in #(
11773 *\&* | *\|* | *\\* )
11774 ac_sed_conf_input=`$as_echo "$configure_input" |
11775 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11776 *) ac_sed_conf_input=$configure_input;;
11777 esac
11778
11779 case $ac_tag in
11780 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11782 esac
11783 ;;
11784 esac
11785
11786 ac_dir=`$as_dirname -- "$ac_file" ||
11787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788 X"$ac_file" : 'X\(//\)[^/]' \| \
11789 X"$ac_file" : 'X\(//\)$' \| \
11790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11791 $as_echo X"$ac_file" |
11792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11793 s//\1/
11794 q
11795 }
11796 /^X\(\/\/\)[^/].*/{
11797 s//\1/
11798 q
11799 }
11800 /^X\(\/\/\)$/{
11801 s//\1/
11802 q
11803 }
11804 /^X\(\/\).*/{
11805 s//\1/
11806 q
11807 }
11808 s/.*/./; q'`
11809 as_dir="$ac_dir"; as_fn_mkdir_p
11810 ac_builddir=.
11811
11812 case "$ac_dir" in
11813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11814 *)
11815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11816 # A ".." for each directory in $ac_dir_suffix.
11817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11818 case $ac_top_builddir_sub in
11819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11821 esac ;;
11822 esac
11823 ac_abs_top_builddir=$ac_pwd
11824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11825 # for backward compatibility:
11826 ac_top_builddir=$ac_top_build_prefix
11827
11828 case $srcdir in
11829 .) # We are building in place.
11830 ac_srcdir=.
11831 ac_top_srcdir=$ac_top_builddir_sub
11832 ac_abs_top_srcdir=$ac_pwd ;;
11833 [\\/]* | ?:[\\/]* ) # Absolute name.
11834 ac_srcdir=$srcdir$ac_dir_suffix;
11835 ac_top_srcdir=$srcdir
11836 ac_abs_top_srcdir=$srcdir ;;
11837 *) # Relative name.
11838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11839 ac_top_srcdir=$ac_top_build_prefix$srcdir
11840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11841 esac
11842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11843
11844
11845 case $ac_mode in
11846 :F)
11847 #
11848 # CONFIG_FILE
11849 #
11850
11851 case $INSTALL in
11852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11854 esac
11855 ac_MKDIR_P=$MKDIR_P
11856 case $MKDIR_P in
11857 [\\/$]* | ?:[\\/]* ) ;;
11858 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11859 esac
11860 _ACEOF
11861
11862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11863 # If the template does not know about datarootdir, expand it.
11864 # FIXME: This hack should be removed a few years after 2.60.
11865 ac_datarootdir_hack=; ac_datarootdir_seen=
11866 ac_sed_dataroot='
11867 /datarootdir/ {
11868 p
11869 q
11870 }
11871 /@datadir@/p
11872 /@docdir@/p
11873 /@infodir@/p
11874 /@localedir@/p
11875 /@mandir@/p'
11876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11877 *datarootdir*) ac_datarootdir_seen=yes;;
11878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11881 _ACEOF
11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11883 ac_datarootdir_hack='
11884 s&@datadir@&$datadir&g
11885 s&@docdir@&$docdir&g
11886 s&@infodir@&$infodir&g
11887 s&@localedir@&$localedir&g
11888 s&@mandir@&$mandir&g
11889 s&\\\${datarootdir}&$datarootdir&g' ;;
11890 esac
11891 _ACEOF
11892
11893 # Neutralize VPATH when `$srcdir' = `.'.
11894 # Shell code in configure.ac might set extrasub.
11895 # FIXME: do we really want to maintain this feature?
11896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897 ac_sed_extra="$ac_vpsub
11898 $extrasub
11899 _ACEOF
11900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11901 :t
11902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11903 s|@configure_input@|$ac_sed_conf_input|;t t
11904 s&@top_builddir@&$ac_top_builddir_sub&;t t
11905 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11906 s&@srcdir@&$ac_srcdir&;t t
11907 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11908 s&@top_srcdir@&$ac_top_srcdir&;t t
11909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11910 s&@builddir@&$ac_builddir&;t t
11911 s&@abs_builddir@&$ac_abs_builddir&;t t
11912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11913 s&@INSTALL@&$ac_INSTALL&;t t
11914 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11915 $ac_datarootdir_hack
11916 "
11917 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11918 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11919
11920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11921 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11923 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11925 which seems to be undefined. Please make sure it is defined" >&5
11926 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11927 which seems to be undefined. Please make sure it is defined" >&2;}
11928
11929 rm -f "$ac_tmp/stdin"
11930 case $ac_file in
11931 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11932 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11933 esac \
11934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11935 ;;
11936 :H)
11937 #
11938 # CONFIG_HEADER
11939 #
11940 if test x"$ac_file" != x-; then
11941 {
11942 $as_echo "/* $configure_input */" \
11943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11944 } >"$ac_tmp/config.h" \
11945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11946 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11948 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11949 else
11950 rm -f "$ac_file"
11951 mv "$ac_tmp/config.h" "$ac_file" \
11952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11953 fi
11954 else
11955 $as_echo "/* $configure_input */" \
11956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11957 || as_fn_error $? "could not create -" "$LINENO" 5
11958 fi
11959 # Compute "$ac_file"'s index in $config_headers.
11960 _am_arg="$ac_file"
11961 _am_stamp_count=1
11962 for _am_header in $config_headers :; do
11963 case $_am_header in
11964 $_am_arg | $_am_arg:* )
11965 break ;;
11966 * )
11967 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11968 esac
11969 done
11970 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11971 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11972 X"$_am_arg" : 'X\(//\)[^/]' \| \
11973 X"$_am_arg" : 'X\(//\)$' \| \
11974 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11975 $as_echo X"$_am_arg" |
11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11977 s//\1/
11978 q
11979 }
11980 /^X\(\/\/\)[^/].*/{
11981 s//\1/
11982 q
11983 }
11984 /^X\(\/\/\)$/{
11985 s//\1/
11986 q
11987 }
11988 /^X\(\/\).*/{
11989 s//\1/
11990 q
11991 }
11992 s/.*/./; q'`/stamp-h$_am_stamp_count
11993 ;;
11994
11995 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11996 $as_echo "$as_me: executing $ac_file commands" >&6;}
11997 ;;
11998 esac
11999
12000
12001 case $ac_file$ac_mode in
12002 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12003 # Older Autoconf quotes --file arguments for eval, but not when files
12004 # are listed without --file. Let's play safe and only enable the eval
12005 # if we detect the quoting.
12006 case $CONFIG_FILES in
12007 *\'*) eval set x "$CONFIG_FILES" ;;
12008 *) set x $CONFIG_FILES ;;
12009 esac
12010 shift
12011 for mf
12012 do
12013 # Strip MF so we end up with the name of the file.
12014 mf=`echo "$mf" | sed -e 's/:.*$//'`
12015 # Check whether this is an Automake generated Makefile or not.
12016 # We used to match only the files named 'Makefile.in', but
12017 # some people rename them; so instead we look at the file content.
12018 # Grep'ing the first line is not enough: some people post-process
12019 # each Makefile.in and add a new line on top of each file to say so.
12020 # Grep'ing the whole file is not good either: AIX grep has a line
12021 # limit of 2048, but all sed's we know have understand at least 4000.
12022 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12023 dirpart=`$as_dirname -- "$mf" ||
12024 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$mf" : 'X\(//\)[^/]' \| \
12026 X"$mf" : 'X\(//\)$' \| \
12027 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$mf" |
12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12030 s//\1/
12031 q
12032 }
12033 /^X\(\/\/\)[^/].*/{
12034 s//\1/
12035 q
12036 }
12037 /^X\(\/\/\)$/{
12038 s//\1/
12039 q
12040 }
12041 /^X\(\/\).*/{
12042 s//\1/
12043 q
12044 }
12045 s/.*/./; q'`
12046 else
12047 continue
12048 fi
12049 # Extract the definition of DEPDIR, am__include, and am__quote
12050 # from the Makefile without running 'make'.
12051 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12052 test -z "$DEPDIR" && continue
12053 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12054 test -z "$am__include" && continue
12055 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12056 # Find all dependency output files, they are included files with
12057 # $(DEPDIR) in their names. We invoke sed twice because it is the
12058 # simplest approach to changing $(DEPDIR) to its actual value in the
12059 # expansion.
12060 for file in `sed -n "
12061 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12062 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12063 # Make sure the directory exists.
12064 test -f "$dirpart/$file" && continue
12065 fdir=`$as_dirname -- "$file" ||
12066 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067 X"$file" : 'X\(//\)[^/]' \| \
12068 X"$file" : 'X\(//\)$' \| \
12069 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12070 $as_echo X"$file" |
12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12072 s//\1/
12073 q
12074 }
12075 /^X\(\/\/\)[^/].*/{
12076 s//\1/
12077 q
12078 }
12079 /^X\(\/\/\)$/{
12080 s//\1/
12081 q
12082 }
12083 /^X\(\/\).*/{
12084 s//\1/
12085 q
12086 }
12087 s/.*/./; q'`
12088 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12089 # echo "creating $dirpart/$file"
12090 echo '# dummy' > "$dirpart/$file"
12091 done
12092 done
12093 }
12094 ;;
12095
12096 esac
12097 done # for ac_tag
12098
12099
12100 as_fn_exit 0
12101 _ACEOF
12102 ac_clean_files=$ac_clean_files_save
12103
12104 test $ac_write_fail = 0 ||
12105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12106
12107
12108 # configure is writing to config.log, and then calls config.status.
12109 # config.status does its own redirection, appending to config.log.
12110 # Unfortunately, on DOS this fails, as config.log is still kept open
12111 # by configure, so config.status won't be able to write to it; its
12112 # output is simply discarded. So we exec the FD to /dev/null,
12113 # effectively closing config.log, so it can be properly (re)opened and
12114 # appended to by config.status. When coming back to configure, we
12115 # need to make the FD available again.
12116 if test "$no_create" != yes; then
12117 ac_cs_success=:
12118 ac_config_status_args=
12119 test "$silent" = yes &&
12120 ac_config_status_args="$ac_config_status_args --quiet"
12121 exec 5>/dev/null
12122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12123 exec 5>>config.log
12124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12125 # would make configure fail if this is the last instruction.
12126 $ac_cs_success || as_fn_exit 1
12127 fi
12128 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12130 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12131 fi
12132
12133