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.68 for xwud 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xwud'
563 PACKAGE_TARNAME='xwud'
564 PACKAGE_VERSION='1.0.4'
565 PACKAGE_STRING='xwud 1.0.4'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 XWUD_LIBS
611 XWUD_CFLAGS
612 AM_BACKSLASH
613 AM_DEFAULT_VERBOSITY
614 MAN_SUBSTS
615 XORG_MAN_PAGE
616 ADMIN_MAN_DIR
617 DRIVER_MAN_DIR
618 MISC_MAN_DIR
619 FILE_MAN_DIR
620 LIB_MAN_DIR
621 APP_MAN_DIR
622 ADMIN_MAN_SUFFIX
623 DRIVER_MAN_SUFFIX
624 MISC_MAN_SUFFIX
625 FILE_MAN_SUFFIX
626 LIB_MAN_SUFFIX
627 APP_MAN_SUFFIX
628 SED
629 host_os
630 host_vendor
631 host_cpu
632 host
633 build_os
634 build_vendor
635 build_cpu
636 build
637 INSTALL_CMD
638 PKG_CONFIG
639 CHANGELOG_CMD
640 STRICT_CFLAGS
641 CWARNFLAGS
642 BASE_CFLAGS
643 EGREP
644 GREP
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_maintainer_mode
731 enable_dependency_tracking
732 enable_selective_werror
733 enable_strict_compilation
734 enable_silent_rules
735 '
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP
745 PKG_CONFIG
746 XWUD_CFLAGS
747 XWUD_LIBS'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures xwud 1.0.4 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/xwud]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of xwud 1.0.4:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364 Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --enable-maintainer-mode enable make rules and dependencies not useful
1369 (and sometimes confusing) to the casual installer
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
1372 --disable-selective-werror
1373 Turn off selective compiler errors. (default:
1374 enabled)
1375 --enable-strict-compilation
1376 Enable all warnings from compiler and make them
1377 errors (default: disabled)
1378 --enable-silent-rules less verbose build output (undo: `make V=1')
1379 --disable-silent-rules verbose build output (undo: `make V=0')
1380
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1389 CPP C preprocessor
1390 PKG_CONFIG path to pkg-config utility
1391 XWUD_CFLAGS C compiler flags for XWUD, overriding pkg-config
1392 XWUD_LIBS linker flags for XWUD, overriding pkg-config
1393
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1396
1397 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1398 _ACEOF
1399 ac_status=$?
1400 fi
1401
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
1408 ac_builddir=.
1409
1410 case "$ac_dir" in
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *)
1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420 esac
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1425
1426 case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 esac
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1455 fi
1456
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1459 cat <<\_ACEOF
1460 xwud configure 1.0.4
1461 generated by GNU Autoconf 2.68
1462
1463 Copyright (C) 2010 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467 exit
1468 fi
1469
1470 ## ------------------------ ##
1471 ## Autoconf initialization. ##
1472 ## ------------------------ ##
1473
1474 # ac_fn_c_try_compile LINENO
1475 # --------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_compile ()
1478 {
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1482 case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485 esac
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1494 fi
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1500 ac_retval=0
1501 else
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1504
1505 ac_retval=1
1506 fi
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
1509
1510 } # ac_fn_c_try_compile
1511
1512 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1513 # ---------------------------------------------
1514 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1515 # accordingly.
1516 ac_fn_c_check_decl ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 as_decl_name=`echo $2|sed 's/ *(.*//'`
1520 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1522 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1523 if eval \${$3+:} false; then :
1524 $as_echo_n "(cached) " >&6
1525 else
1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527 /* end confdefs.h. */
1528 $4
1529 int
1530 main ()
1531 {
1532 #ifndef $as_decl_name
1533 #ifdef __cplusplus
1534 (void) $as_decl_use;
1535 #else
1536 (void) $as_decl_name;
1537 #endif
1538 #endif
1539
1540 ;
1541 return 0;
1542 }
1543 _ACEOF
1544 if ac_fn_c_try_compile "$LINENO"; then :
1545 eval "$3=yes"
1546 else
1547 eval "$3=no"
1548 fi
1549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1550 fi
1551 eval ac_res=\$$3
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553 $as_echo "$ac_res" >&6; }
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555
1556 } # ac_fn_c_check_decl
1557
1558 # ac_fn_c_try_cpp LINENO
1559 # ----------------------
1560 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_cpp ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } > conftest.i && {
1580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 }; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_cpp
1594
1595 # ac_fn_c_try_run LINENO
1596 # ----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1598 # that executables *can* be run.
1599 ac_fn_c_try_run ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_link"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>&5
1610 ac_status=$?
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1613 { { case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_try") 2>&5
1620 ac_status=$?
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; }; }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: program exited with status $ac_status" >&5
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=$ac_status
1630 fi
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_run
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655 eval "$3=yes"
1656 else
1657 eval "$3=no"
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 fi
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666 } # ac_fn_c_check_header_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 $as_test_x conftest$ac_exeext
1696 }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_link
1713 cat >config.log <<_ACEOF
1714 This file contains any messages produced by compilers while
1715 running configure, to aid debugging if configure makes a mistake.
1716
1717 It was created by xwud $as_me 1.0.4, which was
1718 generated by GNU Autoconf 2.68. Invocation command line was
1719
1720 $ $0 $@
1721
1722 _ACEOF
1723 exec 5>>config.log
1724 {
1725 cat <<_ASUNAME
1726 ## --------- ##
1727 ## Platform. ##
1728 ## --------- ##
1729
1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738
1739 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1743 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746
1747 _ASUNAME
1748
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 $as_echo "PATH: $as_dir"
1755 done
1756 IFS=$as_save_IFS
1757
1758 } >&5
1759
1760 cat >&5 <<_ACEOF
1761
1762
1763 ## ----------- ##
1764 ## Core tests. ##
1765 ## ----------- ##
1766
1767 _ACEOF
1768
1769
1770 # Keep a trace of the command line.
1771 # Strip out --no-create and --no-recursion so they do not pile up.
1772 # Strip out --silent because we don't want to record it for future runs.
1773 # Also quote any args containing shell meta-characters.
1774 # Make two passes to allow for proper duplicate-argument suppression.
1775 ac_configure_args=
1776 ac_configure_args0=
1777 ac_configure_args1=
1778 ac_must_keep_next=false
1779 for ac_pass in 1 2
1780 do
1781 for ac_arg
1782 do
1783 case $ac_arg in
1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786 | -silent | --silent | --silen | --sile | --sil)
1787 continue ;;
1788 *\'*)
1789 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790 esac
1791 case $ac_pass in
1792 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1793 2)
1794 as_fn_append ac_configure_args1 " '$ac_arg'"
1795 if test $ac_must_keep_next = true; then
1796 ac_must_keep_next=false # Got value, back to normal.
1797 else
1798 case $ac_arg in
1799 *=* | --config-cache | -C | -disable-* | --disable-* \
1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802 | -with-* | --with-* | -without-* | --without-* | --x)
1803 case "$ac_configure_args0 " in
1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1805 esac
1806 ;;
1807 -* ) ac_must_keep_next=true ;;
1808 esac
1809 fi
1810 as_fn_append ac_configure_args " '$ac_arg'"
1811 ;;
1812 esac
1813 done
1814 done
1815 { ac_configure_args0=; unset ac_configure_args0;}
1816 { ac_configure_args1=; unset ac_configure_args1;}
1817
1818 # When interrupted or exit'd, cleanup temporary files, and complete
1819 # config.log. We remove comments because anyway the quotes in there
1820 # would cause problems or look ugly.
1821 # WARNING: Use '\'' to represent an apostrophe within the trap.
1822 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823 trap 'exit_status=$?
1824 # Save into config.log some information that might help in debugging.
1825 {
1826 echo
1827
1828 $as_echo "## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##"
1831 echo
1832 # The following way of writing the cache mishandles newlines in values,
1833 (
1834 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in #(
1837 *${as_nl}*)
1838 case $ac_var in #(
1839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1841 esac
1842 case $ac_var in #(
1843 _ | IFS | as_nl) ;; #(
1844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1845 *) { eval $ac_var=; unset $ac_var;} ;;
1846 esac ;;
1847 esac
1848 done
1849 (set) 2>&1 |
1850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1851 *${as_nl}ac_space=\ *)
1852 sed -n \
1853 "s/'\''/'\''\\\\'\'''\''/g;
1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1855 ;; #(
1856 *)
1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1858 ;;
1859 esac |
1860 sort
1861 )
1862 echo
1863
1864 $as_echo "## ----------------- ##
1865 ## Output variables. ##
1866 ## ----------------- ##"
1867 echo
1868 for ac_var in $ac_subst_vars
1869 do
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 $as_echo "$ac_var='\''$ac_val'\''"
1875 done | sort
1876 echo
1877
1878 if test -n "$ac_subst_files"; then
1879 $as_echo "## ------------------- ##
1880 ## File substitutions. ##
1881 ## ------------------- ##"
1882 echo
1883 for ac_var in $ac_subst_files
1884 do
1885 eval ac_val=\$$ac_var
1886 case $ac_val in
1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 esac
1889 $as_echo "$ac_var='\''$ac_val'\''"
1890 done | sort
1891 echo
1892 fi
1893
1894 if test -s confdefs.h; then
1895 $as_echo "## ----------- ##
1896 ## confdefs.h. ##
1897 ## ----------- ##"
1898 echo
1899 cat confdefs.h
1900 echo
1901 fi
1902 test "$ac_signal" != 0 &&
1903 $as_echo "$as_me: caught signal $ac_signal"
1904 $as_echo "$as_me: exit $exit_status"
1905 } >&5
1906 rm -f core *.core core.conftest.* &&
1907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1908 exit $exit_status
1909 ' 0
1910 for ac_signal in 1 2 13 15; do
1911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1912 done
1913 ac_signal=0
1914
1915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1916 rm -f -r conftest* confdefs.h
1917
1918 $as_echo "/* confdefs.h */" > confdefs.h
1919
1920 # Predefined preprocessor variables.
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_NAME "$PACKAGE_NAME"
1924 _ACEOF
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1928 _ACEOF
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1932 _ACEOF
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_STRING "$PACKAGE_STRING"
1936 _ACEOF
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_URL "$PACKAGE_URL"
1944 _ACEOF
1945
1946
1947 # Let the site file select an alternate cache file if it wants to.
1948 # Prefer an explicitly selected file to automatically selected ones.
1949 ac_site_file1=NONE
1950 ac_site_file2=NONE
1951 if test -n "$CONFIG_SITE"; then
1952 # We do not want a PATH search for config.site.
1953 case $CONFIG_SITE in #((
1954 -*) ac_site_file1=./$CONFIG_SITE;;
1955 */*) ac_site_file1=$CONFIG_SITE;;
1956 *) ac_site_file1=./$CONFIG_SITE;;
1957 esac
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1961 else
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967 test "x$ac_site_file" = xNONE && continue
1968 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file" \
1973 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1975 as_fn_error $? "failed to load site script $ac_site_file
1976 See \`config.log' for more details" "$LINENO" 5; }
1977 fi
1978 done
1979
1980 if test -r "$cache_file"; then
1981 # Some versions of bash will fail to source /dev/null (special files
1982 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1983 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1985 $as_echo "$as_me: loading cache $cache_file" >&6;}
1986 case $cache_file in
1987 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988 *) . "./$cache_file";;
1989 esac
1990 fi
1991 else
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1993 $as_echo "$as_me: creating cache $cache_file" >&6;}
1994 >$cache_file
1995 fi
1996
1997 # Check that the precious variables saved in the cache have kept the same
1998 # value.
1999 ac_cache_corrupted=false
2000 for ac_var in $ac_precious_vars; do
2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002 eval ac_new_set=\$ac_env_${ac_var}_set
2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004 eval ac_new_val=\$ac_env_${ac_var}_value
2005 case $ac_old_set,$ac_new_set in
2006 set,)
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,set)
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2012 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2013 ac_cache_corrupted=: ;;
2014 ,);;
2015 *)
2016 if test "x$ac_old_val" != "x$ac_new_val"; then
2017 # differences in whitespace do not lead to failure.
2018 ac_old_val_w=`echo x $ac_old_val`
2019 ac_new_val_w=`echo x $ac_new_val`
2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2022 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2023 ac_cache_corrupted=:
2024 else
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2026 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027 eval $ac_var=\$ac_old_val
2028 fi
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2030 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2032 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2033 fi;;
2034 esac
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2037 case $ac_new_val in
2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2040 esac
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2044 esac
2045 fi
2046 done
2047 if $ac_cache_corrupted; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2051 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2053 fi
2054 ## -------------------- ##
2055 ## Main body of script. ##
2056 ## -------------------- ##
2057
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063
2064
2065
2066 ac_config_headers="$ac_config_headers config.h"
2067
2068
2069 # Initialize Automake
2070 am__api_version='1.11'
2071
2072 ac_aux_dir=
2073 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2074 if test -f "$ac_dir/install-sh"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2077 break
2078 elif test -f "$ac_dir/install.sh"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2081 break
2082 elif test -f "$ac_dir/shtool"; then
2083 ac_aux_dir=$ac_dir
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2085 break
2086 fi
2087 done
2088 if test -z "$ac_aux_dir"; then
2089 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2090 fi
2091
2092 # These three variables are undocumented and unsupported,
2093 # and are intended to be withdrawn in a future Autoconf release.
2094 # They can cause serious problems if a builder's source tree is in a directory
2095 # whose full name contains unusual characters.
2096 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2099
2100
2101 # Find a good install program. We prefer a C program (faster),
2102 # so one script is as good as another. But avoid the broken or
2103 # incompatible versions:
2104 # SysV /etc/install, /usr/sbin/install
2105 # SunOS /usr/etc/install
2106 # IRIX /sbin/install
2107 # AIX /bin/install
2108 # AmigaOS /C/install, which installs bootblocks on floppy discs
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # OS/2's system install, which has a completely different semantic
2113 # ./install, which can be erroneously created by make from ./install.sh.
2114 # Reject install programs that cannot install multiple files.
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2116 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2117 if test -z "$INSTALL"; then
2118 if ${ac_cv_path_install+:} false; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 # Account for people who put trailing slashes in PATH elements.
2127 case $as_dir/ in #((
2128 ./ | .// | /[cC]/* | \
2129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2130 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2131 /usr/ucb/* ) ;;
2132 *)
2133 # OSF1 and SCO ODT 3.0 have their own names for install.
2134 # Don't use installbsd from OSF since it installs stuff as root
2135 # by default.
2136 for ac_prog in ginstall scoinst install; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2139 if test $ac_prog = install &&
2140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141 # AIX install. It has an incompatible calling convention.
2142 :
2143 elif test $ac_prog = install &&
2144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145 # program-specific install script used by HP pwplus--don't use.
2146 :
2147 else
2148 rm -rf conftest.one conftest.two conftest.dir
2149 echo one > conftest.one
2150 echo two > conftest.two
2151 mkdir conftest.dir
2152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2153 test -s conftest.one && test -s conftest.two &&
2154 test -s conftest.dir/conftest.one &&
2155 test -s conftest.dir/conftest.two
2156 then
2157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158 break 3
2159 fi
2160 fi
2161 fi
2162 done
2163 done
2164 ;;
2165 esac
2166
2167 done
2168 IFS=$as_save_IFS
2169
2170 rm -rf conftest.one conftest.two conftest.dir
2171
2172 fi
2173 if test "${ac_cv_path_install+set}" = set; then
2174 INSTALL=$ac_cv_path_install
2175 else
2176 # As a last resort, use the slow shell script. Don't cache a
2177 # value for INSTALL within a source directory, because that will
2178 # break other packages using the cache if that directory is
2179 # removed, or if the value is a relative name.
2180 INSTALL=$ac_install_sh
2181 fi
2182 fi
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2184 $as_echo "$INSTALL" >&6; }
2185
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2195 $as_echo_n "checking whether build environment is sane... " >&6; }
2196 # Just in case
2197 sleep 1
2198 echo timestamp > conftest.file
2199 # Reject unsafe characters in $srcdir or the absolute working directory
2200 # name. Accept space and tab only in the latter.
2201 am_lf='
2202 '
2203 case `pwd` in
2204 *[\\\"\#\$\&\'\`$am_lf]*)
2205 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2206 esac
2207 case $srcdir in
2208 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2209 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2210 esac
2211
2212 # Do `set' in a subshell so we don't clobber the current shell's
2213 # arguments. Must try -L first in case configure is actually a
2214 # symlink; some systems play weird games with the mod time of symlinks
2215 # (eg FreeBSD returns the mod time of the symlink's containing
2216 # directory).
2217 if (
2218 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2219 if test "$*" = "X"; then
2220 # -L didn't work.
2221 set X `ls -t "$srcdir/configure" conftest.file`
2222 fi
2223 rm -f conftest.file
2224 if test "$*" != "X $srcdir/configure conftest.file" \
2225 && test "$*" != "X conftest.file $srcdir/configure"; then
2226
2227 # If neither matched, then we have a broken ls. This can happen
2228 # if, for instance, CONFIG_SHELL is bash and it inherits a
2229 # broken ls alias from the environment. This has actually
2230 # happened. Such a system could not be considered "sane".
2231 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2232 alias in your environment" "$LINENO" 5
2233 fi
2234
2235 test "$2" = conftest.file
2236 )
2237 then
2238 # Ok.
2239 :
2240 else
2241 as_fn_error $? "newly created file is older than distributed files!
2242 Check your system clock" "$LINENO" 5
2243 fi
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2245 $as_echo "yes" >&6; }
2246 test "$program_prefix" != NONE &&
2247 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2248 # Use a double $ so make ignores it.
2249 test "$program_suffix" != NONE &&
2250 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2251 # Double any \ or $.
2252 # By default was `s,x,x', remove it if useless.
2253 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2254 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2255
2256 # expand $ac_aux_dir to an absolute path
2257 am_aux_dir=`cd $ac_aux_dir && pwd`
2258
2259 if test x"${MISSING+set}" != xset; then
2260 case $am_aux_dir in
2261 *\ * | *\ *)
2262 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2263 *)
2264 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2265 esac
2266 fi
2267 # Use eval to expand $SHELL
2268 if eval "$MISSING --run true"; then
2269 am_missing_run="$MISSING --run "
2270 else
2271 am_missing_run=
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2273 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274 fi
2275
2276 if test x"${install_sh}" != xset; then
2277 case $am_aux_dir in
2278 *\ * | *\ *)
2279 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2280 *)
2281 install_sh="\${SHELL} $am_aux_dir/install-sh"
2282 esac
2283 fi
2284
2285 # Installed binaries are usually stripped using `strip' when the user
2286 # run `make install-strip'. However `strip' might not be the right
2287 # tool to use in cross-compilation environments, therefore Automake
2288 # will honor the `STRIP' environment variable to overrule this program.
2289 if test "$cross_compiling" != no; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294 $as_echo_n "checking for $ac_word... " >&6; }
2295 if ${ac_cv_prog_STRIP+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 if test -n "$STRIP"; then
2299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 STRIP=$ac_cv_prog_STRIP
2319 if test -n "$STRIP"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2321 $as_echo "$STRIP" >&6; }
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2325 fi
2326
2327
2328 fi
2329 if test -z "$ac_cv_prog_STRIP"; then
2330 ac_ct_STRIP=$STRIP
2331 # Extract the first word of "strip", so it can be a program name with args.
2332 set dummy strip; ac_word=$2
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 if test -n "$ac_ct_STRIP"; then
2339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_ac_ct_STRIP="strip"
2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2359 if test -n "$ac_ct_STRIP"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2361 $as_echo "$ac_ct_STRIP" >&6; }
2362 else
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2364 $as_echo "no" >&6; }
2365 fi
2366
2367 if test "x$ac_ct_STRIP" = x; then
2368 STRIP=":"
2369 else
2370 case $cross_compiling:$ac_tool_warned in
2371 yes:)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374 ac_tool_warned=yes ;;
2375 esac
2376 STRIP=$ac_ct_STRIP
2377 fi
2378 else
2379 STRIP="$ac_cv_prog_STRIP"
2380 fi
2381
2382 fi
2383 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2386 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2387 if test -z "$MKDIR_P"; then
2388 if ${ac_cv_path_mkdir+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2393 do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_prog in mkdir gmkdir; do
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2399 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2400 'mkdir (GNU coreutils) '* | \
2401 'mkdir (coreutils) '* | \
2402 'mkdir (fileutils) '4.1*)
2403 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2404 break 3;;
2405 esac
2406 done
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412
2413 test -d ./--version && rmdir ./--version
2414 if test "${ac_cv_path_mkdir+set}" = set; then
2415 MKDIR_P="$ac_cv_path_mkdir -p"
2416 else
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for MKDIR_P within a source directory, because that will
2419 # break other packages using the cache if that directory is
2420 # removed, or if the value is a relative name.
2421 MKDIR_P="$ac_install_sh -d"
2422 fi
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2425 $as_echo "$MKDIR_P" >&6; }
2426
2427 mkdir_p="$MKDIR_P"
2428 case $mkdir_p in
2429 [\\/$]* | ?:[\\/]*) ;;
2430 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2431 esac
2432
2433 for ac_prog in gawk mawk nawk awk
2434 do
2435 # Extract the first word of "$ac_prog", so it can be a program name with args.
2436 set dummy $ac_prog; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_AWK+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 if test -n "$AWK"; then
2443 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_AWK="$ac_prog"
2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 AWK=$ac_cv_prog_AWK
2463 if test -n "$AWK"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2465 $as_echo "$AWK" >&6; }
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2469 fi
2470
2471
2472 test -n "$AWK" && break
2473 done
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2476 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2477 set x ${MAKE-make}
2478 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2479 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 cat >conftest.make <<\_ACEOF
2483 SHELL = /bin/sh
2484 all:
2485 @echo '@@@%%%=$(MAKE)=@@@%%%'
2486 _ACEOF
2487 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2488 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2489 *@@@%%%=?*=@@@%%%*)
2490 eval ac_cv_prog_make_${ac_make}_set=yes;;
2491 *)
2492 eval ac_cv_prog_make_${ac_make}_set=no;;
2493 esac
2494 rm -f conftest.make
2495 fi
2496 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498 $as_echo "yes" >&6; }
2499 SET_MAKE=
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2503 SET_MAKE="MAKE=${MAKE-make}"
2504 fi
2505
2506 rm -rf .tst 2>/dev/null
2507 mkdir .tst 2>/dev/null
2508 if test -d .tst; then
2509 am__leading_dot=.
2510 else
2511 am__leading_dot=_
2512 fi
2513 rmdir .tst 2>/dev/null
2514
2515 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2516 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2517 # is not polluted with repeated "-I."
2518 am__isrc=' -I$(srcdir)'
2519 # test to see if srcdir already configured
2520 if test -f $srcdir/config.status; then
2521 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2522 fi
2523 fi
2524
2525 # test whether we have cygpath
2526 if test -z "$CYGPATH_W"; then
2527 if (cygpath --version) >/dev/null 2>/dev/null; then
2528 CYGPATH_W='cygpath -w'
2529 else
2530 CYGPATH_W=echo
2531 fi
2532 fi
2533
2534
2535 # Define the identity of the package.
2536 PACKAGE='xwud'
2537 VERSION='1.0.4'
2538
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE "$PACKAGE"
2542 _ACEOF
2543
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define VERSION "$VERSION"
2547 _ACEOF
2548
2549 # Some tools Automake needs.
2550
2551 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2552
2553
2554 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2555
2556
2557 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2558
2559
2560 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2561
2562
2563 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2564
2565 # We need awk for the "check" target. The system "awk" is bad on
2566 # some platforms.
2567 # Always define AMTAR for backward compatibility.
2568
2569 AMTAR=${AMTAR-"${am_missing_run}tar"}
2570
2571 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2572
2573
2574
2575
2576
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580 # Check whether --enable-maintainer-mode was given.
2581 if test "${enable_maintainer_mode+set}" = set; then :
2582 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2583 else
2584 USE_MAINTAINER_MODE=no
2585 fi
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2588 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2589 if test $USE_MAINTAINER_MODE = yes; then
2590 MAINTAINER_MODE_TRUE=
2591 MAINTAINER_MODE_FALSE='#'
2592 else
2593 MAINTAINER_MODE_TRUE='#'
2594 MAINTAINER_MODE_FALSE=
2595 fi
2596
2597 MAINT=$MAINTAINER_MODE_TRUE
2598
2599
2600
2601 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613 DEPDIR="${am__leading_dot}deps"
2614
2615 ac_config_commands="$ac_config_commands depfiles"
2616
2617
2618 am_make=${MAKE-make}
2619 cat > confinc << 'END'
2620 am__doit:
2621 @echo this is the am__doit target
2622 .PHONY: am__doit
2623 END
2624 # If we don't find an include directive, just comment out the code.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2626 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2627 am__include="#"
2628 am__quote=
2629 _am_result=none
2630 # First try GNU make style include.
2631 echo "include confinc" > confmf
2632 # Ignore all kinds of additional output from `make'.
2633 case `$am_make -s -f confmf 2> /dev/null` in #(
2634 *the\ am__doit\ target*)
2635 am__include=include
2636 am__quote=
2637 _am_result=GNU
2638 ;;
2639 esac
2640 # Now try BSD make style include.
2641 if test "$am__include" = "#"; then
2642 echo '.include "confinc"' > confmf
2643 case `$am_make -s -f confmf 2> /dev/null` in #(
2644 *the\ am__doit\ target*)
2645 am__include=.include
2646 am__quote="\""
2647 _am_result=BSD
2648 ;;
2649 esac
2650 fi
2651
2652
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2654 $as_echo "$_am_result" >&6; }
2655 rm -f confinc confmf
2656
2657 # Check whether --enable-dependency-tracking was given.
2658 if test "${enable_dependency_tracking+set}" = set; then :
2659 enableval=$enable_dependency_tracking;
2660 fi
2661
2662 if test "x$enable_dependency_tracking" != xno; then
2663 am_depcomp="$ac_aux_dir/depcomp"
2664 AMDEPBACKSLASH='\'
2665 am__nodep='_no'
2666 fi
2667 if test "x$enable_dependency_tracking" != xno; then
2668 AMDEP_TRUE=
2669 AMDEP_FALSE='#'
2670 else
2671 AMDEP_TRUE='#'
2672 AMDEP_FALSE=
2673 fi
2674
2675
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_CC+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719 fi
2720 if test -z "$ac_cv_prog_CC"; then
2721 ac_ct_CC=$CC
2722 # Extract the first word of "gcc", so it can be a program name with args.
2723 set dummy gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752 $as_echo "$ac_ct_CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758 if test "x$ac_ct_CC" = x; then
2759 CC=""
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 CC=$ac_ct_CC
2768 fi
2769 else
2770 CC="$ac_cv_prog_CC"
2771 fi
2772
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812 fi
2813 fi
2814 if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816 set dummy cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 ac_prog_rejected=no
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2835 continue
2836 fi
2837 ac_cv_prog_CC="cc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2848 shift
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2853 shift
2854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2855 fi
2856 fi
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 fi
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in cl.exe
2873 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 test -n "$CC" && break
2912 done
2913 fi
2914 if test -z "$CC"; then
2915 ac_ct_CC=$CC
2916 for ac_prog in cl.exe
2917 do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2953
2954
2955 test -n "$ac_ct_CC" && break
2956 done
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 CC=$ac_ct_CC
2968 fi
2969 fi
2970
2971 fi
2972
2973
2974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $? "no acceptable C compiler found in \$PATH
2977 See \`config.log' for more details" "$LINENO" 5; }
2978
2979 # Provide some information about the compiler.
2980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981 set X $ac_compile
2982 ac_compiler=$2
2983 for ac_option in --version -v -V -qversion; do
2984 { { ac_try="$ac_compiler $ac_option >&5"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2992 ac_status=$?
2993 if test -s conftest.err; then
2994 sed '10a\
2995 ... rest of stderr output deleted ...
2996 10q' conftest.err >conftest.er1
2997 cat conftest.er1 >&5
2998 fi
2999 rm -f conftest.er1 conftest.err
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }
3002 done
3003
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006
3007 int
3008 main ()
3009 {
3010
3011 ;
3012 return 0;
3013 }
3014 _ACEOF
3015 ac_clean_files_save=$ac_clean_files
3016 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017 # Try to create an executable without -o first, disregard a.out.
3018 # It will help us diagnose broken compilers, and finding out an intuition
3019 # of exeext.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023
3024 # The possible output files:
3025 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3026
3027 ac_rmfiles=
3028 for ac_file in $ac_files
3029 do
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3033 esac
3034 done
3035 rm -f $ac_rmfiles
3036
3037 if { { ac_try="$ac_link_default"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link_default") 2>&5
3045 ac_status=$?
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3051 # so that the user can short-circuit this test for compilers unknown to
3052 # Autoconf.
3053 for ac_file in $ac_files ''
3054 do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3058 ;;
3059 [ab].out )
3060 # We found the default executable, but exeext='' is most
3061 # certainly right.
3062 break;;
3063 *.* )
3064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065 then :; else
3066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 fi
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3072 # actually working.
3073 break;;
3074 * )
3075 break;;
3076 esac
3077 done
3078 test "$ac_cv_exeext" = no && ac_cv_exeext=
3079
3080 else
3081 ac_file=''
3082 fi
3083 if test -z "$ac_file"; then :
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error 77 "C compiler cannot create executables
3092 See \`config.log' for more details" "$LINENO" 5; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3096 fi
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098 $as_echo_n "checking for C compiler default output file name... " >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100 $as_echo "$ac_file" >&6; }
3101 ac_exeext=$ac_cv_exeext
3102
3103 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3104 ac_clean_files=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 break;;
3128 * ) break;;
3129 esac
3130 done
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details" "$LINENO" 5; }
3136 fi
3137 rm -f conftest conftest$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3140
3141 rm -f conftest.$ac_ext
3142 EXEEXT=$ac_cv_exeext
3143 ac_exeext=$EXEEXT
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146 #include <stdio.h>
3147 int
3148 main ()
3149 {
3150 FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3152
3153 ;
3154 return 0;
3155 }
3156 _ACEOF
3157 ac_clean_files="$ac_clean_files conftest.out"
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161 $as_echo_n "checking whether we are cross compiling... " >&6; }
3162 if test "$cross_compiling" != yes; then
3163 { { ac_try="$ac_link"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 if { ac_try='./conftest$ac_cv_exeext'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details" "$LINENO" 5; }
3195 fi
3196 fi
3197 fi
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199 $as_echo "$cross_compiling" >&6; }
3200
3201 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204 $as_echo_n "checking for suffix of object files... " >&6; }
3205 if ${ac_cv_objext+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.o conftest.obj
3220 if { { ac_try="$ac_compile"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compile") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
3231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3236 break;;
3237 esac
3238 done
3239 else
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details" "$LINENO" 5; }
3247 fi
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251 $as_echo "$ac_cv_objext" >&6; }
3252 OBJEXT=$ac_cv_objext
3253 ac_objext=$OBJEXT
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256 if ${ac_cv_c_compiler_gnu+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_compiler_gnu=yes
3275 else
3276 ac_compiler_gnu=no
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284 if test $ac_compiler_gnu = yes; then
3285 GCC=yes
3286 else
3287 GCC=
3288 fi
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3293 if ${ac_cv_prog_cc_g+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3298 ac_cv_prog_cc_g=no
3299 CFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_g=yes
3313 else
3314 CFLAGS=""
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327
3328 else
3329 ac_c_werror_flag=$ac_save_c_werror_flag
3330 CFLAGS="-g"
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333
3334 int
3335 main ()
3336 {
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_cv_prog_cc_g=yes
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 fi
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3361 fi
3362 else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3367 fi
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if ${ac_cv_prog_cc_c89+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 ac_cv_prog_cc_c89=no
3375 ac_save_CC=$CC
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <stdarg.h>
3379 #include <stdio.h>
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3386 char **p;
3387 int i;
3388 {
3389 return p[i];
3390 }
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3392 {
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3399 }
3400
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3412 #define FOO(x) 'x'
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419 int argc;
3420 char **argv;
3421 int
3422 main ()
3423 {
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3431 do
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
3438 done
3439 rm -f conftest.$ac_ext
3440 CC=$ac_save_CC
3441
3442 fi
3443 # AC_CACHE_VAL
3444 case "x$ac_cv_prog_cc_c89" in
3445 x)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447 $as_echo "none needed" >&6; } ;;
3448 xno)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3451 *)
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3455 esac
3456 if test "x$ac_cv_prog_cc_c89" != xno; then :
3457
3458 fi
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466 depcc="$CC" am_compiler_list=
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3469 $as_echo_n "checking dependency style of $depcc... " >&6; }
3470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3474 # We make a subdir and do the tests there. Otherwise we can end up
3475 # making bogus files that we don't know about and never remove. For
3476 # instance it was reported that on HP-UX the gcc test will end up
3477 # making a dummy file named `D' -- because `-MD' means `put the output
3478 # in D'.
3479 rm -rf conftest.dir
3480 mkdir conftest.dir
3481 # Copy depcomp to subdir because otherwise we won't find it if we're
3482 # using a relative directory.
3483 cp "$am_depcomp" conftest.dir
3484 cd conftest.dir
3485 # We will build objects and dependencies in a subdirectory because
3486 # it helps to detect inapplicable dependency modes. For instance
3487 # both Tru64's cc and ICC support -MD to output dependencies as a
3488 # side effect of compilation, but ICC will put the dependencies in
3489 # the current directory while Tru64 will put them in the object
3490 # directory.
3491 mkdir sub
3492
3493 am_cv_CC_dependencies_compiler_type=none
3494 if test "$am_compiler_list" = ""; then
3495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3496 fi
3497 am__universal=false
3498 case " $depcc " in #(
3499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3500 esac
3501
3502 for depmode in $am_compiler_list; do
3503 # Setup a source with many dependencies, because some compilers
3504 # like to wrap large dependency lists on column 80 (with \), and
3505 # we should not choose a depcomp mode which is confused by this.
3506 #
3507 # We need to recreate these files for each test, as the compiler may
3508 # overwrite some of them when testing with obscure command lines.
3509 # This happens at least with the AIX C compiler.
3510 : > sub/conftest.c
3511 for i in 1 2 3 4 5 6; do
3512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3514 # Solaris 8's {/usr,}/bin/sh.
3515 touch sub/conftst$i.h
3516 done
3517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3518
3519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3520 # mode. It turns out that the SunPro C++ compiler does not properly
3521 # handle `-M -o', and we need to detect this. Also, some Intel
3522 # versions had trouble with output in subdirs
3523 am__obj=sub/conftest.${OBJEXT-o}
3524 am__minus_obj="-o $am__obj"
3525 case $depmode in
3526 gcc)
3527 # This depmode causes a compiler race in universal mode.
3528 test "$am__universal" = false || continue
3529 ;;
3530 nosideeffect)
3531 # after this tag, mechanisms are not by side-effect, so they'll
3532 # only be used when explicitly requested
3533 if test "x$enable_dependency_tracking" = xyes; then
3534 continue
3535 else
3536 break
3537 fi
3538 ;;
3539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3540 # This compiler won't grok `-c -o', but also, the minuso test has
3541 # not run yet. These depmodes are late enough in the game, and
3542 # so weak that their functioning should not be impacted.
3543 am__obj=conftest.${OBJEXT-o}
3544 am__minus_obj=
3545 ;;
3546 none) break ;;
3547 esac
3548 if depmode=$depmode \
3549 source=sub/conftest.c object=$am__obj \
3550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3552 >/dev/null 2>conftest.err &&
3553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3557 # icc doesn't choke on unknown options, it will just issue warnings
3558 # or remarks (even with -Werror). So we grep stderr for any message
3559 # that says an option was ignored or not supported.
3560 # When given -MP, icc 7.0 and 7.1 complain thusly:
3561 # icc: Command line warning: ignoring option '-M'; no argument required
3562 # The diagnosis changed in icc 8.0:
3563 # icc: Command line remark: option '-MP' not supported
3564 if (grep 'ignoring option' conftest.err ||
3565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3566 am_cv_CC_dependencies_compiler_type=$depmode
3567 break
3568 fi
3569 fi
3570 done
3571
3572 cd ..
3573 rm -rf conftest.dir
3574 else
3575 am_cv_CC_dependencies_compiler_type=none
3576 fi
3577
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582
3583 if
3584 test "x$enable_dependency_tracking" != xno \
3585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3586 am__fastdepCC_TRUE=
3587 am__fastdepCC_FALSE='#'
3588 else
3589 am__fastdepCC_TRUE='#'
3590 am__fastdepCC_FALSE=
3591 fi
3592
3593
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3595 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3596 if ${ac_cv_prog_cc_c99+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 ac_cv_prog_cc_c99=no
3600 ac_save_CC=$CC
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 #include <stdarg.h>
3604 #include <stdbool.h>
3605 #include <stdlib.h>
3606 #include <wchar.h>
3607 #include <stdio.h>
3608
3609 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3610 #define debug(...) fprintf (stderr, __VA_ARGS__)
3611 #define showlist(...) puts (#__VA_ARGS__)
3612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3613 static void
3614 test_varargs_macros (void)
3615 {
3616 int x = 1234;
3617 int y = 5678;
3618 debug ("Flag");
3619 debug ("X = %d\n", x);
3620 showlist (The first, second, and third items.);
3621 report (x>y, "x is %d but y is %d", x, y);
3622 }
3623
3624 // Check long long types.
3625 #define BIG64 18446744073709551615ull
3626 #define BIG32 4294967295ul
3627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3628 #if !BIG_OK
3629 your preprocessor is broken;
3630 #endif
3631 #if BIG_OK
3632 #else
3633 your preprocessor is broken;
3634 #endif
3635 static long long int bignum = -9223372036854775807LL;
3636 static unsigned long long int ubignum = BIG64;
3637
3638 struct incomplete_array
3639 {
3640 int datasize;
3641 double data[];
3642 };
3643
3644 struct named_init {
3645 int number;
3646 const wchar_t *name;
3647 double average;
3648 };
3649
3650 typedef const char *ccp;
3651
3652 static inline int
3653 test_restrict (ccp restrict text)
3654 {
3655 // See if C++-style comments work.
3656 // Iterate through items via the restricted pointer.
3657 // Also check for declarations in for loops.
3658 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3659 continue;
3660 return 0;
3661 }
3662
3663 // Check varargs and va_copy.
3664 static void
3665 test_varargs (const char *format, ...)
3666 {
3667 va_list args;
3668 va_start (args, format);
3669 va_list args_copy;
3670 va_copy (args_copy, args);
3671
3672 const char *str;
3673 int number;
3674 float fnumber;
3675
3676 while (*format)
3677 {
3678 switch (*format++)
3679 {
3680 case 's': // string
3681 str = va_arg (args_copy, const char *);
3682 break;
3683 case 'd': // int
3684 number = va_arg (args_copy, int);
3685 break;
3686 case 'f': // float
3687 fnumber = va_arg (args_copy, double);
3688 break;
3689 default:
3690 break;
3691 }
3692 }
3693 va_end (args_copy);
3694 va_end (args);
3695 }
3696
3697 int
3698 main ()
3699 {
3700
3701 // Check bool.
3702 _Bool success = false;
3703
3704 // Check restrict.
3705 if (test_restrict ("String literal") == 0)
3706 success = true;
3707 char *restrict newvar = "Another string";
3708
3709 // Check varargs.
3710 test_varargs ("s, d' f .", "string", 65, 34.234);
3711 test_varargs_macros ();
3712
3713 // Check flexible array members.
3714 struct incomplete_array *ia =
3715 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3716 ia->datasize = 10;
3717 for (int i = 0; i < ia->datasize; ++i)
3718 ia->data[i] = i * 1.234;
3719
3720 // Check named initializers.
3721 struct named_init ni = {
3722 .number = 34,
3723 .name = L"Test wide string",
3724 .average = 543.34343,
3725 };
3726
3727 ni.number = 58;
3728
3729 int dynamic_array[ni.number];
3730 dynamic_array[ni.number - 1] = 543;
3731
3732 // work around unused variable warnings
3733 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3734 || dynamic_array[ni.number - 1] != 543);
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3741 do
3742 CC="$ac_save_CC $ac_arg"
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_c99=$ac_arg
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext
3747 test "x$ac_cv_prog_cc_c99" != "xno" && break
3748 done
3749 rm -f conftest.$ac_ext
3750 CC=$ac_save_CC
3751
3752 fi
3753 # AC_CACHE_VAL
3754 case "x$ac_cv_prog_cc_c99" in
3755 x)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757 $as_echo "none needed" >&6; } ;;
3758 xno)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760 $as_echo "unsupported" >&6; } ;;
3761 *)
3762 CC="$CC $ac_cv_prog_cc_c99"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3764 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3765 esac
3766 if test "x$ac_cv_prog_cc_c99" != xno; then :
3767
3768 fi
3769
3770
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3778 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3779 # On Suns, sometimes $CPP names a directory.
3780 if test -n "$CPP" && test -d "$CPP"; then
3781 CPP=
3782 fi
3783 if test -z "$CPP"; then
3784 if ${ac_cv_prog_CPP+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 # Double quotes because CPP needs to be expanded
3788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3789 do
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if ac_fn_c_try_cpp "$LINENO"; then :
3809
3810 else
3811 # Broken: fails on valid input.
3812 continue
3813 fi
3814 rm -f conftest.err conftest.i conftest.$ac_ext
3815
3816 # OK, works on sane cases. Now check whether nonexistent headers
3817 # can be detected and how.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if ac_fn_c_try_cpp "$LINENO"; then :
3823 # Broken: success on invalid input.
3824 continue
3825 else
3826 # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3829 fi
3830 rm -f conftest.err conftest.i conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.i conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then :
3836 break
3837 fi
3838
3839 done
3840 ac_cv_prog_CPP=$CPP
3841
3842 fi
3843 CPP=$ac_cv_prog_CPP
3844 else
3845 ac_cv_prog_CPP=$CPP
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3848 $as_echo "$CPP" >&6; }
3849 ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865 Syntax error
3866 _ACEOF
3867 if ac_fn_c_try_cpp "$LINENO"; then :
3868
3869 else
3870 # Broken: fails on valid input.
3871 continue
3872 fi
3873 rm -f conftest.err conftest.i conftest.$ac_ext
3874
3875 # OK, works on sane cases. Now check whether nonexistent headers
3876 # can be detected and how.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <ac_nonexistent.h>
3880 _ACEOF
3881 if ac_fn_c_try_cpp "$LINENO"; then :
3882 # Broken: success on invalid input.
3883 continue
3884 else
3885 # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3888 fi
3889 rm -f conftest.err conftest.i conftest.$ac_ext
3890
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.i conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then :
3895
3896 else
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details" "$LINENO" 5; }
3901 fi
3902
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3911 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3912 if ${ac_cv_path_GREP+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -z "$GREP"; then
3916 ac_path_GREP_found=false
3917 # Loop through the user's path and test for each of PROGNAME-LIST
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in grep ggrep; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3926 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3927 # Check for GNU ac_path_GREP and select it if it is found.
3928 # Check for GNU $ac_path_GREP
3929 case `"$ac_path_GREP" --version 2>&1` in
3930 *GNU*)
3931 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3932 *)
3933 ac_count=0
3934 $as_echo_n 0123456789 >"conftest.in"
3935 while :
3936 do
3937 cat "conftest.in" "conftest.in" >"conftest.tmp"
3938 mv "conftest.tmp" "conftest.in"
3939 cp "conftest.in" "conftest.nl"
3940 $as_echo 'GREP' >> "conftest.nl"
3941 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943 as_fn_arith $ac_count + 1 && ac_count=$as_val
3944 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3945 # Best one so far, save it but keep looking for a better one
3946 ac_cv_path_GREP="$ac_path_GREP"
3947 ac_path_GREP_max=$ac_count
3948 fi
3949 # 10*(2^10) chars as input seems more than enough
3950 test $ac_count -gt 10 && break
3951 done
3952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 esac
3954
3955 $ac_path_GREP_found && break 3
3956 done
3957 done
3958 done
3959 IFS=$as_save_IFS
3960 if test -z "$ac_cv_path_GREP"; then
3961 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3962 fi
3963 else
3964 ac_cv_path_GREP=$GREP
3965 fi
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3969 $as_echo "$ac_cv_path_GREP" >&6; }
3970 GREP="$ac_cv_path_GREP"
3971
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3974 $as_echo_n "checking for egrep... " >&6; }
3975 if ${ac_cv_path_EGREP+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3979 then ac_cv_path_EGREP="$GREP -E"
3980 else
3981 if test -z "$EGREP"; then
3982 ac_path_EGREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in egrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3993 # Check for GNU ac_path_EGREP and select it if it is found.
3994 # Check for GNU $ac_path_EGREP
3995 case `"$ac_path_EGREP" --version 2>&1` in
3996 *GNU*)
3997 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3998 *)
3999 ac_count=0
4000 $as_echo_n 0123456789 >"conftest.in"
4001 while :
4002 do
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'EGREP' >> "conftest.nl"
4007 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 as_fn_arith $ac_count + 1 && ac_count=$as_val
4010 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_EGREP="$ac_path_EGREP"
4013 ac_path_EGREP_max=$ac_count
4014 fi
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4020
4021 $ac_path_EGREP_found && break 3
4022 done
4023 done
4024 done
4025 IFS=$as_save_IFS
4026 if test -z "$ac_cv_path_EGREP"; then
4027 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 fi
4029 else
4030 ac_cv_path_EGREP=$EGREP
4031 fi
4032
4033 fi
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4036 $as_echo "$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4041 $as_echo_n "checking for ANSI C header files... " >&6; }
4042 if ${ac_cv_header_stdc+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <stdlib.h>
4048 #include <stdarg.h>
4049 #include <string.h>
4050 #include <float.h>
4051
4052 int
4053 main ()
4054 {
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_header_stdc=yes
4062 else
4063 ac_cv_header_stdc=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066
4067 if test $ac_cv_header_stdc = yes; then
4068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <string.h>
4072
4073 _ACEOF
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev/null 2>&1; then :
4076
4077 else
4078 ac_cv_header_stdc=no
4079 fi
4080 rm -f conftest*
4081
4082 fi
4083
4084 if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <stdlib.h>
4089
4090 _ACEOF
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "free" >/dev/null 2>&1; then :
4093
4094 else
4095 ac_cv_header_stdc=no
4096 fi
4097 rm -f conftest*
4098
4099 fi
4100
4101 if test $ac_cv_header_stdc = yes; then
4102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4103 if test "$cross_compiling" = yes; then :
4104 :
4105 else
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <ctype.h>
4109 #include <stdlib.h>
4110 #if ((' ' & 0x0FF) == 0x020)
4111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4113 #else
4114 # define ISLOWER(c) \
4115 (('a' <= (c) && (c) <= 'i') \
4116 || ('j' <= (c) && (c) <= 'r') \
4117 || ('s' <= (c) && (c) <= 'z'))
4118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4119 #endif
4120
4121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4122 int
4123 main ()
4124 {
4125 int i;
4126 for (i = 0; i < 256; i++)
4127 if (XOR (islower (i), ISLOWER (i))
4128 || toupper (i) != TOUPPER (i))
4129 return 2;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_run "$LINENO"; then :
4134
4135 else
4136 ac_cv_header_stdc=no
4137 fi
4138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4139 conftest.$ac_objext conftest.beam conftest.$ac_ext
4140 fi
4141
4142 fi
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4145 $as_echo "$ac_cv_header_stdc" >&6; }
4146 if test $ac_cv_header_stdc = yes; then
4147
4148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4149
4150 fi
4151
4152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4154 inttypes.h stdint.h unistd.h
4155 do :
4156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4158 "
4159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4160 cat >>confdefs.h <<_ACEOF
4161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4162 _ACEOF
4163
4164 fi
4165
4166 done
4167
4168
4169
4170
4171
4172
4173 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4174 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4175 CLANGCC="yes"
4176 else
4177 CLANGCC="no"
4178 fi
4179
4180 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4181 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4182 INTELCC="yes"
4183 else
4184 INTELCC="no"
4185 fi
4186
4187 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4188 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4189 SUNCC="yes"
4190 else
4191 SUNCC="no"
4192 fi
4193
4194
4195
4196
4197 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 case $PKG_CONFIG in
4207 [\\/]* | ?:[\\/]*)
4208 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4209 ;;
4210 *)
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 ;;
4227 esac
4228 fi
4229 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4230 if test -n "$PKG_CONFIG"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4232 $as_echo "$PKG_CONFIG" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_path_PKG_CONFIG"; then
4241 ac_pt_PKG_CONFIG=$PKG_CONFIG
4242 # Extract the first word of "pkg-config", so it can be a program name with args.
4243 set dummy pkg-config; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 case $ac_pt_PKG_CONFIG in
4250 [\\/]* | ?:[\\/]*)
4251 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4252 ;;
4253 *)
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 ;;
4270 esac
4271 fi
4272 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4273 if test -n "$ac_pt_PKG_CONFIG"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4275 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281 if test "x$ac_pt_PKG_CONFIG" = x; then
4282 PKG_CONFIG=""
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285 yes:)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288 ac_tool_warned=yes ;;
4289 esac
4290 PKG_CONFIG=$ac_pt_PKG_CONFIG
4291 fi
4292 else
4293 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4294 fi
4295
4296 fi
4297 if test -n "$PKG_CONFIG"; then
4298 _pkg_min_version=0.9.0
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4300 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4301 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4303 $as_echo "yes" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 PKG_CONFIG=""
4308 fi
4309
4310 fi
4311 # Make sure we can run config.sub.
4312 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4313 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4316 $as_echo_n "checking build system type... " >&6; }
4317 if ${ac_cv_build+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 ac_build_alias=$build_alias
4321 test "x$ac_build_alias" = x &&
4322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4323 test "x$ac_build_alias" = x &&
4324 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4325 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4330 $as_echo "$ac_cv_build" >&6; }
4331 case $ac_cv_build in
4332 *-*-*) ;;
4333 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4334 esac
4335 build=$ac_cv_build
4336 ac_save_IFS=$IFS; IFS='-'
4337 set x $ac_cv_build
4338 shift
4339 build_cpu=$1
4340 build_vendor=$2
4341 shift; shift
4342 # Remember, the first character of IFS is used to create $*,
4343 # except with old shells:
4344 build_os=$*
4345 IFS=$ac_save_IFS
4346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4347
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4350 $as_echo_n "checking host system type... " >&6; }
4351 if ${ac_cv_host+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test "x$host_alias" = x; then
4355 ac_cv_host=$ac_cv_build
4356 else
4357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4359 fi
4360
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4363 $as_echo "$ac_cv_host" >&6; }
4364 case $ac_cv_host in
4365 *-*-*) ;;
4366 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4367 esac
4368 host=$ac_cv_host
4369 ac_save_IFS=$IFS; IFS='-'
4370 set x $ac_cv_host
4371 shift
4372 host_cpu=$1
4373 host_vendor=$2
4374 shift; shift
4375 # Remember, the first character of IFS is used to create $*,
4376 # except with old shells:
4377 host_os=$*
4378 IFS=$ac_save_IFS
4379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4383 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4384 if ${ac_cv_path_SED+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4388 for ac_i in 1 2 3 4 5 6 7; do
4389 ac_script="$ac_script$as_nl$ac_script"
4390 done
4391 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4392 { ac_script=; unset ac_script;}
4393 if test -z "$SED"; then
4394 ac_path_SED_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in sed gsed; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4404 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4405 # Check for GNU ac_path_SED and select it if it is found.
4406 # Check for GNU $ac_path_SED
4407 case `"$ac_path_SED" --version 2>&1` in
4408 *GNU*)
4409 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4410 *)
4411 ac_count=0
4412 $as_echo_n 0123456789 >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 $as_echo '' >> "conftest.nl"
4419 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 as_fn_arith $ac_count + 1 && ac_count=$as_val
4422 if test $ac_count -gt ${ac_path_SED_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_SED="$ac_path_SED"
4425 ac_path_SED_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431 esac
4432
4433 $ac_path_SED_found && break 3
4434 done
4435 done
4436 done
4437 IFS=$as_save_IFS
4438 if test -z "$ac_cv_path_SED"; then
4439 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4440 fi
4441 else
4442 ac_cv_path_SED=$SED
4443 fi
4444
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4447 $as_echo "$ac_cv_path_SED" >&6; }
4448 SED="$ac_cv_path_SED"
4449 rm -f conftest.sed
4450
4451
4452
4453
4454
4455
4456 # Check whether --enable-selective-werror was given.
4457 if test "${enable_selective_werror+set}" = set; then :
4458 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4459 else
4460 SELECTIVE_WERROR=yes
4461 fi
4462
4463
4464
4465
4466
4467 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4468 if test "x$SUNCC" = "xyes"; then
4469 BASE_CFLAGS="-v"
4470 else
4471 BASE_CFLAGS=""
4472 fi
4473
4474 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 xorg_testset_save_CFLAGS="$CFLAGS"
4489
4490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4493 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4494 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 int i;
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 xorg_cv_cc_flag_unknown_warning_option=yes
4503 else
4504 xorg_cv_cc_flag_unknown_warning_option=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4509 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4511 CFLAGS="$xorg_testset_save_CFLAGS"
4512 fi
4513
4514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4517 fi
4518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4520 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4521 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 int i;
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529 xorg_cv_cc_flag_unused_command_line_argument=yes
4530 else
4531 xorg_cv_cc_flag_unused_command_line_argument=no
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4536 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4538 CFLAGS="$xorg_testset_save_CFLAGS"
4539 fi
4540
4541 found="no"
4542
4543 if test $found = "no" ; then
4544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4546 fi
4547
4548 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4550 fi
4551
4552 CFLAGS="$CFLAGS -Wall"
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4555 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4556 cacheid=xorg_cv_cc_flag__Wall
4557 if eval \${$cacheid+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 int i;
4563 int
4564 main ()
4565 {
4566
4567 ;
4568 return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_link "$LINENO"; then :
4572 eval $cacheid=yes
4573 else
4574 eval $cacheid=no
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext \
4577 conftest$ac_exeext conftest.$ac_ext
4578 fi
4579
4580
4581 CFLAGS="$xorg_testset_save_CFLAGS"
4582
4583 eval supported=\$$cacheid
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4585 $as_echo "$supported" >&6; }
4586 if test "$supported" = "yes" ; then
4587 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4588 found="yes"
4589 fi
4590 fi
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 xorg_testset_save_CFLAGS="$CFLAGS"
4607
4608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 int i;
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 xorg_cv_cc_flag_unknown_warning_option=yes
4621 else
4622 xorg_cv_cc_flag_unknown_warning_option=no
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4629 CFLAGS="$xorg_testset_save_CFLAGS"
4630 fi
4631
4632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4635 fi
4636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 int i;
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 xorg_cv_cc_flag_unused_command_line_argument=yes
4648 else
4649 xorg_cv_cc_flag_unused_command_line_argument=no
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4656 CFLAGS="$xorg_testset_save_CFLAGS"
4657 fi
4658
4659 found="no"
4660
4661 if test $found = "no" ; then
4662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4664 fi
4665
4666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4668 fi
4669
4670 CFLAGS="$CFLAGS -Wpointer-arith"
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4673 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4674 cacheid=xorg_cv_cc_flag__Wpointer_arith
4675 if eval \${$cacheid+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 int i;
4681 int
4682 main ()
4683 {
4684
4685 ;
4686 return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_link "$LINENO"; then :
4690 eval $cacheid=yes
4691 else
4692 eval $cacheid=no
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext conftest.$ac_ext
4696 fi
4697
4698
4699 CFLAGS="$xorg_testset_save_CFLAGS"
4700
4701 eval supported=\$$cacheid
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4703 $as_echo "$supported" >&6; }
4704 if test "$supported" = "yes" ; then
4705 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4706 found="yes"
4707 fi
4708 fi
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 xorg_testset_save_CFLAGS="$CFLAGS"
4725
4726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 int i;
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 xorg_cv_cc_flag_unknown_warning_option=yes
4739 else
4740 xorg_cv_cc_flag_unknown_warning_option=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4747 CFLAGS="$xorg_testset_save_CFLAGS"
4748 fi
4749
4750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4753 fi
4754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 int i;
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 xorg_cv_cc_flag_unused_command_line_argument=yes
4766 else
4767 xorg_cv_cc_flag_unused_command_line_argument=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4774 CFLAGS="$xorg_testset_save_CFLAGS"
4775 fi
4776
4777 found="no"
4778
4779 if test $found = "no" ; then
4780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4782 fi
4783
4784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4786 fi
4787
4788 CFLAGS="$CFLAGS -Wmissing-declarations"
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4791 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4792 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4793 if eval \${$cacheid+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 int i;
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_link "$LINENO"; then :
4808 eval $cacheid=yes
4809 else
4810 eval $cacheid=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 fi
4815
4816
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4818
4819 eval supported=\$$cacheid
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4821 $as_echo "$supported" >&6; }
4822 if test "$supported" = "yes" ; then
4823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4824 found="yes"
4825 fi
4826 fi
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 xorg_testset_save_CFLAGS="$CFLAGS"
4843
4844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 int i;
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 xorg_cv_cc_flag_unknown_warning_option=yes
4857 else
4858 xorg_cv_cc_flag_unknown_warning_option=no
4859 fi
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4865 CFLAGS="$xorg_testset_save_CFLAGS"
4866 fi
4867
4868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4871 fi
4872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 int i;
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 xorg_cv_cc_flag_unused_command_line_argument=yes
4884 else
4885 xorg_cv_cc_flag_unused_command_line_argument=no
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4892 CFLAGS="$xorg_testset_save_CFLAGS"
4893 fi
4894
4895 found="no"
4896
4897 if test $found = "no" ; then
4898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900 fi
4901
4902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904 fi
4905
4906 CFLAGS="$CFLAGS -Wformat=2"
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4909 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4910 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4911 if eval \${$cacheid+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int i;
4917 int
4918 main ()
4919 {
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_link "$LINENO"; then :
4926 eval $cacheid=yes
4927 else
4928 eval $cacheid=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext \
4931 conftest$ac_exeext conftest.$ac_ext
4932 fi
4933
4934
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936
4937 eval supported=\$$cacheid
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4939 $as_echo "$supported" >&6; }
4940 if test "$supported" = "yes" ; then
4941 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4942 found="yes"
4943 fi
4944 fi
4945
4946 if test $found = "no" ; then
4947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 fi
4950
4951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 fi
4954
4955 CFLAGS="$CFLAGS -Wformat"
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4958 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
4959 cacheid=xorg_cv_cc_flag__Wformat
4960 if eval \${$cacheid+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 int i;
4966 int
4967 main ()
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 if ac_fn_c_try_link "$LINENO"; then :
4975 eval $cacheid=yes
4976 else
4977 eval $cacheid=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4981 fi
4982
4983
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986 eval supported=\$$cacheid
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988 $as_echo "$supported" >&6; }
4989 if test "$supported" = "yes" ; then
4990 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4991 found="yes"
4992 fi
4993 fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 xorg_testset_save_CFLAGS="$CFLAGS"
5012
5013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 int i;
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 xorg_cv_cc_flag_unknown_warning_option=yes
5026 else
5027 xorg_cv_cc_flag_unknown_warning_option=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5034 CFLAGS="$xorg_testset_save_CFLAGS"
5035 fi
5036
5037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 fi
5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 int i;
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 xorg_cv_cc_flag_unused_command_line_argument=yes
5053 else
5054 xorg_cv_cc_flag_unused_command_line_argument=no
5055 fi
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5061 CFLAGS="$xorg_testset_save_CFLAGS"
5062 fi
5063
5064 found="no"
5065
5066 if test $found = "no" ; then
5067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069 fi
5070
5071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5073 fi
5074
5075 CFLAGS="$CFLAGS -Wstrict-prototypes"
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5078 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5079 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5080 if eval \${$cacheid+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int i;
5086 int
5087 main ()
5088 {
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_link "$LINENO"; then :
5095 eval $cacheid=yes
5096 else
5097 eval $cacheid=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext \
5100 conftest$ac_exeext conftest.$ac_ext
5101 fi
5102
5103
5104 CFLAGS="$xorg_testset_save_CFLAGS"
5105
5106 eval supported=\$$cacheid
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5108 $as_echo "$supported" >&6; }
5109 if test "$supported" = "yes" ; then
5110 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5111 found="yes"
5112 fi
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 xorg_testset_save_CFLAGS="$CFLAGS"
5130
5131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5134 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5135 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 int i;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 xorg_cv_cc_flag_unknown_warning_option=yes
5144 else
5145 xorg_cv_cc_flag_unknown_warning_option=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5150 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5152 CFLAGS="$xorg_testset_save_CFLAGS"
5153 fi
5154
5155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 fi
5159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5161 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5162 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 int i;
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 xorg_cv_cc_flag_unused_command_line_argument=yes
5171 else
5172 xorg_cv_cc_flag_unused_command_line_argument=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5177 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5179 CFLAGS="$xorg_testset_save_CFLAGS"
5180 fi
5181
5182 found="no"
5183
5184 if test $found = "no" ; then
5185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187 fi
5188
5189 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191 fi
5192
5193 CFLAGS="$CFLAGS -Wmissing-prototypes"
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5196 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5197 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5198 if eval \${$cacheid+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 int i;
5204 int
5205 main ()
5206 {
5207
5208 ;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_link "$LINENO"; then :
5213 eval $cacheid=yes
5214 else
5215 eval $cacheid=no
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 fi
5220
5221
5222 CFLAGS="$xorg_testset_save_CFLAGS"
5223
5224 eval supported=\$$cacheid
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5226 $as_echo "$supported" >&6; }
5227 if test "$supported" = "yes" ; then
5228 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5229 found="yes"
5230 fi
5231 fi
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 int i;
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 xorg_cv_cc_flag_unknown_warning_option=yes
5262 else
5263 xorg_cv_cc_flag_unknown_warning_option=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5270 CFLAGS="$xorg_testset_save_CFLAGS"
5271 fi
5272
5273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276 fi
5277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 int i;
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 xorg_cv_cc_flag_unused_command_line_argument=yes
5289 else
5290 xorg_cv_cc_flag_unused_command_line_argument=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5297 CFLAGS="$xorg_testset_save_CFLAGS"
5298 fi
5299
5300 found="no"
5301
5302 if test $found = "no" ; then
5303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305 fi
5306
5307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309 fi
5310
5311 CFLAGS="$CFLAGS -Wnested-externs"
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5314 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5315 cacheid=xorg_cv_cc_flag__Wnested_externs
5316 if eval \${$cacheid+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 int
5323 main ()
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"; then :
5331 eval $cacheid=yes
5332 else
5333 eval $cacheid=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
5337 fi
5338
5339
5340 CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342 eval supported=\$$cacheid
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344 $as_echo "$supported" >&6; }
5345 if test "$supported" = "yes" ; then
5346 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5347 found="yes"
5348 fi
5349 fi
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 xorg_testset_save_CFLAGS="$CFLAGS"
5366
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 int i;
5377 _ACEOF
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 xorg_cv_cc_flag_unknown_warning_option=yes
5380 else
5381 xorg_cv_cc_flag_unknown_warning_option=no
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5388 CFLAGS="$xorg_testset_save_CFLAGS"
5389 fi
5390
5391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394 fi
5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 int i;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 xorg_cv_cc_flag_unused_command_line_argument=yes
5407 else
5408 xorg_cv_cc_flag_unused_command_line_argument=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416 fi
5417
5418 found="no"
5419
5420 if test $found = "no" ; then
5421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423 fi
5424
5425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427 fi
5428
5429 CFLAGS="$CFLAGS -Wbad-function-cast"
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5432 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5433 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5434 if eval \${$cacheid+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 int
5441 main ()
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"; then :
5449 eval $cacheid=yes
5450 else
5451 eval $cacheid=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5455 fi
5456
5457
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460 eval supported=\$$cacheid
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462 $as_echo "$supported" >&6; }
5463 if test "$supported" = "yes" ; then
5464 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5465 found="yes"
5466 fi
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 xorg_testset_save_CFLAGS="$CFLAGS"
5484
5485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 int i;
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 xorg_cv_cc_flag_unknown_warning_option=yes
5498 else
5499 xorg_cv_cc_flag_unknown_warning_option=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507 fi
5508
5509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512 fi
5513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 xorg_cv_cc_flag_unused_command_line_argument=yes
5525 else
5526 xorg_cv_cc_flag_unused_command_line_argument=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534 fi
5535
5536 found="no"
5537
5538 if test $found = "no" ; then
5539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 fi
5542
5543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545 fi
5546
5547 CFLAGS="$CFLAGS -Wold-style-definition"
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5550 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5551 cacheid=xorg_cv_cc_flag__Wold_style_definition
5552 if eval \${$cacheid+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 int i;
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_link "$LINENO"; then :
5567 eval $cacheid=yes
5568 else
5569 eval $cacheid=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext \
5572 conftest$ac_exeext conftest.$ac_ext
5573 fi
5574
5575
5576 CFLAGS="$xorg_testset_save_CFLAGS"
5577
5578 eval supported=\$$cacheid
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5580 $as_echo "$supported" >&6; }
5581 if test "$supported" = "yes" ; then
5582 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5583 found="yes"
5584 fi
5585 fi
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 xorg_testset_save_CFLAGS="$CFLAGS"
5602
5603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 int i;
5613 _ACEOF
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615 xorg_cv_cc_flag_unknown_warning_option=yes
5616 else
5617 xorg_cv_cc_flag_unknown_warning_option=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5624 CFLAGS="$xorg_testset_save_CFLAGS"
5625 fi
5626
5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630 fi
5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 xorg_cv_cc_flag_unused_command_line_argument=yes
5643 else
5644 xorg_cv_cc_flag_unused_command_line_argument=no
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5651 CFLAGS="$xorg_testset_save_CFLAGS"
5652 fi
5653
5654 found="no"
5655
5656 if test $found = "no" ; then
5657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 fi
5660
5661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663 fi
5664
5665 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5668 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5669 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5670 if eval \${$cacheid+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 eval $cacheid=yes
5686 else
5687 eval $cacheid=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 fi
5692
5693
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695
5696 eval supported=\$$cacheid
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5698 $as_echo "$supported" >&6; }
5699 if test "$supported" = "yes" ; then
5700 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5701 found="yes"
5702 fi
5703 fi
5704
5705
5706
5707
5708
5709 # This chunk adds additional warnings that could catch undesired effects.
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 xorg_testset_save_CFLAGS="$CFLAGS"
5724
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 int i;
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737 xorg_cv_cc_flag_unknown_warning_option=yes
5738 else
5739 xorg_cv_cc_flag_unknown_warning_option=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5746 CFLAGS="$xorg_testset_save_CFLAGS"
5747 fi
5748
5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 fi
5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 xorg_cv_cc_flag_unused_command_line_argument=yes
5765 else
5766 xorg_cv_cc_flag_unused_command_line_argument=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 found="no"
5777
5778 if test $found = "no" ; then
5779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782
5783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785 fi
5786
5787 CFLAGS="$CFLAGS -Wunused"
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5790 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5791 cacheid=xorg_cv_cc_flag__Wunused
5792 if eval \${$cacheid+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 int i;
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_link "$LINENO"; then :
5807 eval $cacheid=yes
5808 else
5809 eval $cacheid=no
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 fi
5814
5815
5816 CFLAGS="$xorg_testset_save_CFLAGS"
5817
5818 eval supported=\$$cacheid
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5820 $as_echo "$supported" >&6; }
5821 if test "$supported" = "yes" ; then
5822 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5823 found="yes"
5824 fi
5825 fi
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 xorg_testset_save_CFLAGS="$CFLAGS"
5842
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855 xorg_cv_cc_flag_unknown_warning_option=yes
5856 else
5857 xorg_cv_cc_flag_unknown_warning_option=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5864 CFLAGS="$xorg_testset_save_CFLAGS"
5865 fi
5866
5867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870 fi
5871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 xorg_cv_cc_flag_unused_command_line_argument=yes
5883 else
5884 xorg_cv_cc_flag_unused_command_line_argument=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5892 fi
5893
5894 found="no"
5895
5896 if test $found = "no" ; then
5897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900
5901 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903 fi
5904
5905 CFLAGS="$CFLAGS -Wuninitialized"
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5908 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5909 cacheid=xorg_cv_cc_flag__Wuninitialized
5910 if eval \${$cacheid+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 int i;
5916 int
5917 main ()
5918 {
5919
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_c_try_link "$LINENO"; then :
5925 eval $cacheid=yes
5926 else
5927 eval $cacheid=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
5931 fi
5932
5933
5934 CFLAGS="$xorg_testset_save_CFLAGS"
5935
5936 eval supported=\$$cacheid
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5938 $as_echo "$supported" >&6; }
5939 if test "$supported" = "yes" ; then
5940 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5941 found="yes"
5942 fi
5943 fi
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959 xorg_testset_save_CFLAGS="$CFLAGS"
5960
5961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 int i;
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 xorg_cv_cc_flag_unknown_warning_option=yes
5974 else
5975 xorg_cv_cc_flag_unknown_warning_option=no
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 int i;
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"; then :
6000 xorg_cv_cc_flag_unused_command_line_argument=yes
6001 else
6002 xorg_cv_cc_flag_unused_command_line_argument=no
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009 CFLAGS="$xorg_testset_save_CFLAGS"
6010 fi
6011
6012 found="no"
6013
6014 if test $found = "no" ; then
6015 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017 fi
6018
6019 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021 fi
6022
6023 CFLAGS="$CFLAGS -Wshadow"
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6026 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6027 cacheid=xorg_cv_cc_flag__Wshadow
6028 if eval \${$cacheid+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 int i;
6034 int
6035 main ()
6036 {
6037
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_link "$LINENO"; then :
6043 eval $cacheid=yes
6044 else
6045 eval $cacheid=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6049 fi
6050
6051
6052 CFLAGS="$xorg_testset_save_CFLAGS"
6053
6054 eval supported=\$$cacheid
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056 $as_echo "$supported" >&6; }
6057 if test "$supported" = "yes" ; then
6058 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6059 found="yes"
6060 fi
6061 fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 xorg_testset_save_CFLAGS="$CFLAGS"
6078
6079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 _ACEOF
6090 if ac_fn_c_try_compile "$LINENO"; then :
6091 xorg_cv_cc_flag_unknown_warning_option=yes
6092 else
6093 xorg_cv_cc_flag_unknown_warning_option=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106 fi
6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 int i;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 xorg_cv_cc_flag_unused_command_line_argument=yes
6119 else
6120 xorg_cv_cc_flag_unused_command_line_argument=no
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6127 CFLAGS="$xorg_testset_save_CFLAGS"
6128 fi
6129
6130 found="no"
6131
6132 if test $found = "no" ; then
6133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135 fi
6136
6137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139 fi
6140
6141 CFLAGS="$CFLAGS -Wcast-qual"
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6144 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6145 cacheid=xorg_cv_cc_flag__Wcast_qual
6146 if eval \${$cacheid+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 int
6153 main ()
6154 {
6155
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_link "$LINENO"; then :
6161 eval $cacheid=yes
6162 else
6163 eval $cacheid=no
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167 fi
6168
6169
6170 CFLAGS="$xorg_testset_save_CFLAGS"
6171
6172 eval supported=\$$cacheid
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6174 $as_echo "$supported" >&6; }
6175 if test "$supported" = "yes" ; then
6176 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6177 found="yes"
6178 fi
6179 fi
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 xorg_testset_save_CFLAGS="$CFLAGS"
6196
6197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 int i;
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 xorg_cv_cc_flag_unknown_warning_option=yes
6210 else
6211 xorg_cv_cc_flag_unknown_warning_option=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218 CFLAGS="$xorg_testset_save_CFLAGS"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224 fi
6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 int i;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 xorg_cv_cc_flag_unused_command_line_argument=yes
6237 else
6238 xorg_cv_cc_flag_unused_command_line_argument=no
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6245 CFLAGS="$xorg_testset_save_CFLAGS"
6246 fi
6247
6248 found="no"
6249
6250 if test $found = "no" ; then
6251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253 fi
6254
6255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6257 fi
6258
6259 CFLAGS="$CFLAGS -Wmissing-noreturn"
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6262 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6263 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6264 if eval \${$cacheid+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 int i;
6270 int
6271 main ()
6272 {
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"; then :
6279 eval $cacheid=yes
6280 else
6281 eval $cacheid=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext \
6284 conftest$ac_exeext conftest.$ac_ext
6285 fi
6286
6287
6288 CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290 eval supported=\$$cacheid
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292 $as_echo "$supported" >&6; }
6293 if test "$supported" = "yes" ; then
6294 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6295 found="yes"
6296 fi
6297 fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int i;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 xorg_cv_cc_flag_unknown_warning_option=yes
6328 else
6329 xorg_cv_cc_flag_unknown_warning_option=no
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6337 fi
6338
6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342 fi
6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 int i;
6352 _ACEOF
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354 xorg_cv_cc_flag_unused_command_line_argument=yes
6355 else
6356 xorg_cv_cc_flag_unused_command_line_argument=no
6357 fi
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6363 CFLAGS="$xorg_testset_save_CFLAGS"
6364 fi
6365
6366 found="no"
6367
6368 if test $found = "no" ; then
6369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371 fi
6372
6373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375 fi
6376
6377 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6380 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6381 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6382 if eval \${$cacheid+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 int
6389 main ()
6390 {
6391
6392 ;
6393 return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397 eval $cacheid=yes
6398 else
6399 eval $cacheid=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext \
6402 conftest$ac_exeext conftest.$ac_ext
6403 fi
6404
6405
6406 CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408 eval supported=\$$cacheid
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410 $as_echo "$supported" >&6; }
6411 if test "$supported" = "yes" ; then
6412 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6413 found="yes"
6414 fi
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 int i;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 xorg_cv_cc_flag_unknown_warning_option=yes
6446 else
6447 xorg_cv_cc_flag_unknown_warning_option=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6452 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460 fi
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6463 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6464 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 int i;
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 xorg_cv_cc_flag_unused_command_line_argument=yes
6473 else
6474 xorg_cv_cc_flag_unused_command_line_argument=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6479 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 found="no"
6485
6486 if test $found = "no" ; then
6487 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 fi
6490
6491 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493 fi
6494
6495 CFLAGS="$CFLAGS -Wredundant-decls"
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6498 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6499 cacheid=xorg_cv_cc_flag__Wredundant_decls
6500 if eval \${$cacheid+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 int i;
6506 int
6507 main ()
6508 {
6509
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 if ac_fn_c_try_link "$LINENO"; then :
6515 eval $cacheid=yes
6516 else
6517 eval $cacheid=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 fi
6522
6523
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6525
6526 eval supported=\$$cacheid
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6528 $as_echo "$supported" >&6; }
6529 if test "$supported" = "yes" ; then
6530 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6531 found="yes"
6532 fi
6533 fi
6534
6535
6536
6537 # These are currently disabled because they are noisy. They will be enabled
6538 # in the future once the codebase is sufficiently modernized to silence
6539 # them. For now, I don't want them to drown out the other warnings.
6540 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6541 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6542 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6543
6544 # Turn some warnings into errors, so we don't accidently get successful builds
6545 # when there are problems that should be fixed.
6546
6547 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 xorg_testset_save_CFLAGS="$CFLAGS"
6562
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 int i;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 xorg_cv_cc_flag_unknown_warning_option=yes
6576 else
6577 xorg_cv_cc_flag_unknown_warning_option=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6584 CFLAGS="$xorg_testset_save_CFLAGS"
6585 fi
6586
6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6590 fi
6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 int i;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 xorg_cv_cc_flag_unused_command_line_argument=yes
6603 else
6604 xorg_cv_cc_flag_unused_command_line_argument=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612 fi
6613
6614 found="no"
6615
6616 if test $found = "no" ; then
6617 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619 fi
6620
6621 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623 fi
6624
6625 CFLAGS="$CFLAGS -Werror=implicit"
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6628 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6629 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6630 if eval \${$cacheid+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 int i;
6636 int
6637 main ()
6638 {
6639
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 if ac_fn_c_try_link "$LINENO"; then :
6645 eval $cacheid=yes
6646 else
6647 eval $cacheid=no
6648 fi
6649 rm -f core conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext conftest.$ac_ext
6651 fi
6652
6653
6654 CFLAGS="$xorg_testset_save_CFLAGS"
6655
6656 eval supported=\$$cacheid
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6658 $as_echo "$supported" >&6; }
6659 if test "$supported" = "yes" ; then
6660 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6661 found="yes"
6662 fi
6663 fi
6664
6665 if test $found = "no" ; then
6666 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6668 fi
6669
6670 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672 fi
6673
6674 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6677 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6678 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6679 if eval \${$cacheid+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 int
6686 main ()
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_link "$LINENO"; then :
6694 eval $cacheid=yes
6695 else
6696 eval $cacheid=no
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 fi
6701
6702
6703 CFLAGS="$xorg_testset_save_CFLAGS"
6704
6705 eval supported=\$$cacheid
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6707 $as_echo "$supported" >&6; }
6708 if test "$supported" = "yes" ; then
6709 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6710 found="yes"
6711 fi
6712 fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728 xorg_testset_save_CFLAGS="$CFLAGS"
6729
6730 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6733 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6734 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 int i;
6740 _ACEOF
6741 if ac_fn_c_try_compile "$LINENO"; then :
6742 xorg_cv_cc_flag_unknown_warning_option=yes
6743 else
6744 xorg_cv_cc_flag_unknown_warning_option=no
6745 fi
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6749 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6751 CFLAGS="$xorg_testset_save_CFLAGS"
6752 fi
6753
6754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757 fi
6758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6760 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6761 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 int i;
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 xorg_cv_cc_flag_unused_command_line_argument=yes
6770 else
6771 xorg_cv_cc_flag_unused_command_line_argument=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 fi
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6776 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6778 CFLAGS="$xorg_testset_save_CFLAGS"
6779 fi
6780
6781 found="no"
6782
6783 if test $found = "no" ; then
6784 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6786 fi
6787
6788 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790 fi
6791
6792 CFLAGS="$CFLAGS -Werror=nonnull"
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6795 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6796 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6797 if eval \${$cacheid+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 int i;
6803 int
6804 main ()
6805 {
6806
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 if ac_fn_c_try_link "$LINENO"; then :
6812 eval $cacheid=yes
6813 else
6814 eval $cacheid=no
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 fi
6819
6820
6821 CFLAGS="$xorg_testset_save_CFLAGS"
6822
6823 eval supported=\$$cacheid
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6825 $as_echo "$supported" >&6; }
6826 if test "$supported" = "yes" ; then
6827 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6828 found="yes"
6829 fi
6830 fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 xorg_testset_save_CFLAGS="$CFLAGS"
6847
6848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6851 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6852 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 xorg_cv_cc_flag_unknown_warning_option=yes
6861 else
6862 xorg_cv_cc_flag_unknown_warning_option=no
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 fi
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int i;
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 xorg_cv_cc_flag_unused_command_line_argument=yes
6888 else
6889 xorg_cv_cc_flag_unused_command_line_argument=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6894 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 found="no"
6900
6901 if test $found = "no" ; then
6902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904 fi
6905
6906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908 fi
6909
6910 CFLAGS="$CFLAGS -Werror=init-self"
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6913 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6914 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6915 if eval \${$cacheid+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int i;
6921 int
6922 main ()
6923 {
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 eval $cacheid=yes
6931 else
6932 eval $cacheid=no
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 fi
6937
6938
6939 CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941 eval supported=\$$cacheid
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943 $as_echo "$supported" >&6; }
6944 if test "$supported" = "yes" ; then
6945 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6946 found="yes"
6947 fi
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 int i;
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"; then :
6978 xorg_cv_cc_flag_unknown_warning_option=yes
6979 else
6980 xorg_cv_cc_flag_unknown_warning_option=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987 CFLAGS="$xorg_testset_save_CFLAGS"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993 fi
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 int i;
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 xorg_cv_cc_flag_unused_command_line_argument=yes
7006 else
7007 xorg_cv_cc_flag_unused_command_line_argument=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7014 CFLAGS="$xorg_testset_save_CFLAGS"
7015 fi
7016
7017 found="no"
7018
7019 if test $found = "no" ; then
7020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022 fi
7023
7024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026 fi
7027
7028 CFLAGS="$CFLAGS -Werror=main"
7029
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7031 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7032 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7033 if eval \${$cacheid+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 int
7040 main ()
7041 {
7042
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 eval $cacheid=yes
7049 else
7050 eval $cacheid=no
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 fi
7055
7056
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059 eval supported=\$$cacheid
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061 $as_echo "$supported" >&6; }
7062 if test "$supported" = "yes" ; then
7063 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7064 found="yes"
7065 fi
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 xorg_cv_cc_flag_unknown_warning_option=yes
7097 else
7098 xorg_cv_cc_flag_unknown_warning_option=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111 fi
7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 int i;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 xorg_cv_cc_flag_unused_command_line_argument=yes
7124 else
7125 xorg_cv_cc_flag_unused_command_line_argument=no
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 found="no"
7136
7137 if test $found = "no" ; then
7138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141
7142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 fi
7145
7146 CFLAGS="$CFLAGS -Werror=missing-braces"
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7149 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7150 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7151 if eval \${$cacheid+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 int
7158 main ()
7159 {
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 eval $cacheid=yes
7167 else
7168 eval $cacheid=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 $as_echo "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7182 found="yes"
7183 fi
7184 fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 int i;
7212 _ACEOF
7213 if ac_fn_c_try_compile "$LINENO"; then :
7214 xorg_cv_cc_flag_unknown_warning_option=yes
7215 else
7216 xorg_cv_cc_flag_unknown_warning_option=no
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224 fi
7225
7226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229 fi
7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int i;
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 xorg_cv_cc_flag_unused_command_line_argument=yes
7242 else
7243 xorg_cv_cc_flag_unused_command_line_argument=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7250 CFLAGS="$xorg_testset_save_CFLAGS"
7251 fi
7252
7253 found="no"
7254
7255 if test $found = "no" ; then
7256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258 fi
7259
7260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262 fi
7263
7264 CFLAGS="$CFLAGS -Werror=sequence-point"
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7267 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7268 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7269 if eval \${$cacheid+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 int
7276 main ()
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"; then :
7284 eval $cacheid=yes
7285 else
7286 eval $cacheid=no
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 fi
7291
7292
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295 eval supported=\$$cacheid
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297 $as_echo "$supported" >&6; }
7298 if test "$supported" = "yes" ; then
7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7300 found="yes"
7301 fi
7302 fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 xorg_cv_cc_flag_unknown_warning_option=yes
7333 else
7334 xorg_cv_cc_flag_unknown_warning_option=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7341 CFLAGS="$xorg_testset_save_CFLAGS"
7342 fi
7343
7344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347 fi
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 int i;
7357 _ACEOF
7358 if ac_fn_c_try_compile "$LINENO"; then :
7359 xorg_cv_cc_flag_unused_command_line_argument=yes
7360 else
7361 xorg_cv_cc_flag_unused_command_line_argument=no
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7369 fi
7370
7371 found="no"
7372
7373 if test $found = "no" ; then
7374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376 fi
7377
7378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7380 fi
7381
7382 CFLAGS="$CFLAGS -Werror=return-type"
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7385 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7386 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7387 if eval \${$cacheid+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 int
7394 main ()
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 eval $cacheid=yes
7403 else
7404 eval $cacheid=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
7408 fi
7409
7410
7411 CFLAGS="$xorg_testset_save_CFLAGS"
7412
7413 eval supported=\$$cacheid
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7415 $as_echo "$supported" >&6; }
7416 if test "$supported" = "yes" ; then
7417 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7418 found="yes"
7419 fi
7420 fi
7421
7422 if test $found = "no" ; then
7423 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425 fi
7426
7427 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429 fi
7430
7431 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7434 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7435 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7436 if eval \${$cacheid+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 int
7443 main ()
7444 {
7445
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 eval $cacheid=yes
7452 else
7453 eval $cacheid=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 fi
7458
7459
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7461
7462 eval supported=\$$cacheid
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7464 $as_echo "$supported" >&6; }
7465 if test "$supported" = "yes" ; then
7466 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7467 found="yes"
7468 fi
7469 fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485 xorg_testset_save_CFLAGS="$CFLAGS"
7486
7487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 int i;
7497 _ACEOF
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 xorg_cv_cc_flag_unknown_warning_option=yes
7500 else
7501 xorg_cv_cc_flag_unknown_warning_option=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7509 fi
7510
7511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514 fi
7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 int i;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 xorg_cv_cc_flag_unused_command_line_argument=yes
7527 else
7528 xorg_cv_cc_flag_unused_command_line_argument=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 found="no"
7539
7540 if test $found = "no" ; then
7541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 fi
7544
7545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547 fi
7548
7549 CFLAGS="$CFLAGS -Werror=trigraphs"
7550
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7552 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7553 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7554 if eval \${$cacheid+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 int i;
7560 int
7561 main ()
7562 {
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 eval $cacheid=yes
7570 else
7571 eval $cacheid=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 fi
7576
7577
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580 eval supported=\$$cacheid
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582 $as_echo "$supported" >&6; }
7583 if test "$supported" = "yes" ; then
7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7585 found="yes"
7586 fi
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 xorg_testset_save_CFLAGS="$CFLAGS"
7604
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 xorg_cv_cc_flag_unknown_warning_option=yes
7618 else
7619 xorg_cv_cc_flag_unknown_warning_option=no
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7626 CFLAGS="$xorg_testset_save_CFLAGS"
7627 fi
7628
7629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 fi
7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 int i;
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 xorg_cv_cc_flag_unused_command_line_argument=yes
7645 else
7646 xorg_cv_cc_flag_unused_command_line_argument=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654 fi
7655
7656 found="no"
7657
7658 if test $found = "no" ; then
7659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 fi
7662
7663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665 fi
7666
7667 CFLAGS="$CFLAGS -Werror=array-bounds"
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7670 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7671 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7672 if eval \${$cacheid+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 int
7679 main ()
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 eval $cacheid=yes
7688 else
7689 eval $cacheid=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 fi
7694
7695
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698 eval supported=\$$cacheid
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700 $as_echo "$supported" >&6; }
7701 if test "$supported" = "yes" ; then
7702 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7703 found="yes"
7704 fi
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 xorg_testset_save_CFLAGS="$CFLAGS"
7722
7723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 int i;
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"; then :
7735 xorg_cv_cc_flag_unknown_warning_option=yes
7736 else
7737 xorg_cv_cc_flag_unknown_warning_option=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7744 CFLAGS="$xorg_testset_save_CFLAGS"
7745 fi
7746
7747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750 fi
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 xorg_cv_cc_flag_unused_command_line_argument=yes
7763 else
7764 xorg_cv_cc_flag_unused_command_line_argument=no
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771 CFLAGS="$xorg_testset_save_CFLAGS"
7772 fi
7773
7774 found="no"
7775
7776 if test $found = "no" ; then
7777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779 fi
7780
7781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783 fi
7784
7785 CFLAGS="$CFLAGS -Werror=write-strings"
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7788 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7789 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7790 if eval \${$cacheid+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 int i;
7796 int
7797 main ()
7798 {
7799
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 eval $cacheid=yes
7806 else
7807 eval $cacheid=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 fi
7812
7813
7814 CFLAGS="$xorg_testset_save_CFLAGS"
7815
7816 eval supported=\$$cacheid
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7818 $as_echo "$supported" >&6; }
7819 if test "$supported" = "yes" ; then
7820 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7821 found="yes"
7822 fi
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 xorg_testset_save_CFLAGS="$CFLAGS"
7840
7841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7844 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7845 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 int i;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 xorg_cv_cc_flag_unknown_warning_option=yes
7854 else
7855 xorg_cv_cc_flag_unknown_warning_option=no
7856 fi
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7860 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7862 CFLAGS="$xorg_testset_save_CFLAGS"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 fi
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7871 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7872 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"; then :
7880 xorg_cv_cc_flag_unused_command_line_argument=yes
7881 else
7882 xorg_cv_cc_flag_unused_command_line_argument=no
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7887 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7889 CFLAGS="$xorg_testset_save_CFLAGS"
7890 fi
7891
7892 found="no"
7893
7894 if test $found = "no" ; then
7895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897 fi
7898
7899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7901 fi
7902
7903 CFLAGS="$CFLAGS -Werror=address"
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7906 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7907 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7908 if eval \${$cacheid+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 int i;
7914 int
7915 main ()
7916 {
7917
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 eval $cacheid=yes
7924 else
7925 eval $cacheid=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 fi
7930
7931
7932 CFLAGS="$xorg_testset_save_CFLAGS"
7933
7934 eval supported=\$$cacheid
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7936 $as_echo "$supported" >&6; }
7937 if test "$supported" = "yes" ; then
7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7939 found="yes"
7940 fi
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968 int i;
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"; then :
7971 xorg_cv_cc_flag_unknown_warning_option=yes
7972 else
7973 xorg_cv_cc_flag_unknown_warning_option=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 xorg_cv_cc_flag_unused_command_line_argument=yes
7999 else
8000 xorg_cv_cc_flag_unused_command_line_argument=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008 fi
8009
8010 found="no"
8011
8012 if test $found = "no" ; then
8013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 fi
8016
8017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019 fi
8020
8021 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8024 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8025 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8026 if eval \${$cacheid+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 int
8033 main ()
8034 {
8035
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"; then :
8041 eval $cacheid=yes
8042 else
8043 eval $cacheid=no
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
8047 fi
8048
8049
8050 CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052 eval supported=\$$cacheid
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054 $as_echo "$supported" >&6; }
8055 if test "$supported" = "yes" ; then
8056 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8057 found="yes"
8058 fi
8059 fi
8060
8061 if test $found = "no" ; then
8062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 fi
8065
8066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068 fi
8069
8070 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8073 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8074 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8075 if eval \${$cacheid+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 int i;
8081 int
8082 main ()
8083 {
8084
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_link "$LINENO"; then :
8090 eval $cacheid=yes
8091 else
8092 eval $cacheid=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8096 fi
8097
8098
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8100
8101 eval supported=\$$cacheid
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8103 $as_echo "$supported" >&6; }
8104 if test "$supported" = "yes" ; then
8105 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8106 found="yes"
8107 fi
8108 fi
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 xorg_testset_save_CFLAGS="$CFLAGS"
8125
8126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 int i;
8136 _ACEOF
8137 if ac_fn_c_try_compile "$LINENO"; then :
8138 xorg_cv_cc_flag_unknown_warning_option=yes
8139 else
8140 xorg_cv_cc_flag_unknown_warning_option=no
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8147 CFLAGS="$xorg_testset_save_CFLAGS"
8148 fi
8149
8150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153 fi
8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 xorg_cv_cc_flag_unused_command_line_argument=yes
8166 else
8167 xorg_cv_cc_flag_unused_command_line_argument=no
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8174 CFLAGS="$xorg_testset_save_CFLAGS"
8175 fi
8176
8177 found="no"
8178
8179 if test $found = "no" ; then
8180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182 fi
8183
8184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186 fi
8187
8188 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8191 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8192 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8193 if eval \${$cacheid+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 int i;
8199 int
8200 main ()
8201 {
8202
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_link "$LINENO"; then :
8208 eval $cacheid=yes
8209 else
8210 eval $cacheid=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 fi
8215
8216
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218
8219 eval supported=\$$cacheid
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8221 $as_echo "$supported" >&6; }
8222 if test "$supported" = "yes" ; then
8223 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8224 found="yes"
8225 fi
8226 fi
8227
8228 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8229 else
8230 { $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
8231 $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;}
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 xorg_testset_save_CFLAGS="$CFLAGS"
8246
8247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8250 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8251 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"; then :
8259 xorg_cv_cc_flag_unknown_warning_option=yes
8260 else
8261 xorg_cv_cc_flag_unknown_warning_option=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8266 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8268 CFLAGS="$xorg_testset_save_CFLAGS"
8269 fi
8270
8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274 fi
8275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8277 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8278 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 int i;
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"; then :
8286 xorg_cv_cc_flag_unused_command_line_argument=yes
8287 else
8288 xorg_cv_cc_flag_unused_command_line_argument=no
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8293 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8295 CFLAGS="$xorg_testset_save_CFLAGS"
8296 fi
8297
8298 found="no"
8299
8300 if test $found = "no" ; then
8301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304
8305 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307 fi
8308
8309 CFLAGS="$CFLAGS -Wimplicit"
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8312 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8313 cacheid=xorg_cv_cc_flag__Wimplicit
8314 if eval \${$cacheid+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 int i;
8320 int
8321 main ()
8322 {
8323
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 eval $cacheid=yes
8330 else
8331 eval $cacheid=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335 fi
8336
8337
8338 CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340 eval supported=\$$cacheid
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342 $as_echo "$supported" >&6; }
8343 if test "$supported" = "yes" ; then
8344 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8345 found="yes"
8346 fi
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 int i;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 xorg_cv_cc_flag_unknown_warning_option=yes
8378 else
8379 xorg_cv_cc_flag_unknown_warning_option=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386 CFLAGS="$xorg_testset_save_CFLAGS"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392 fi
8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 int i;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8404 xorg_cv_cc_flag_unused_command_line_argument=yes
8405 else
8406 xorg_cv_cc_flag_unused_command_line_argument=no
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413 CFLAGS="$xorg_testset_save_CFLAGS"
8414 fi
8415
8416 found="no"
8417
8418 if test $found = "no" ; then
8419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422
8423 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 fi
8426
8427 CFLAGS="$CFLAGS -Wnonnull"
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8430 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8431 cacheid=xorg_cv_cc_flag__Wnonnull
8432 if eval \${$cacheid+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int i;
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval $cacheid=yes
8448 else
8449 eval $cacheid=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 fi
8454
8455
8456 CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458 eval supported=\$$cacheid
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460 $as_echo "$supported" >&6; }
8461 if test "$supported" = "yes" ; then
8462 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8463 found="yes"
8464 fi
8465 fi
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 xorg_testset_save_CFLAGS="$CFLAGS"
8482
8483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 xorg_cv_cc_flag_unknown_warning_option=yes
8496 else
8497 xorg_cv_cc_flag_unknown_warning_option=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 fi
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8504 CFLAGS="$xorg_testset_save_CFLAGS"
8505 fi
8506
8507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510 fi
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 xorg_cv_cc_flag_unused_command_line_argument=yes
8523 else
8524 xorg_cv_cc_flag_unused_command_line_argument=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532 fi
8533
8534 found="no"
8535
8536 if test $found = "no" ; then
8537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540
8541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543 fi
8544
8545 CFLAGS="$CFLAGS -Winit-self"
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8548 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8549 cacheid=xorg_cv_cc_flag__Winit_self
8550 if eval \${$cacheid+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 int i;
8556 int
8557 main ()
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 eval $cacheid=yes
8566 else
8567 eval $cacheid=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 $as_echo "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 int i;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else
8615 xorg_cv_cc_flag_unknown_warning_option=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 xorg_cv_cc_flag_unused_command_line_argument=yes
8641 else
8642 xorg_cv_cc_flag_unused_command_line_argument=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8649 CFLAGS="$xorg_testset_save_CFLAGS"
8650 fi
8651
8652 found="no"
8653
8654 if test $found = "no" ; then
8655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 fi
8658
8659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8661 fi
8662
8663 CFLAGS="$CFLAGS -Wmain"
8664
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8666 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8667 cacheid=xorg_cv_cc_flag__Wmain
8668 if eval \${$cacheid+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 int
8675 main ()
8676 {
8677
8678 ;
8679 return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 eval $cacheid=yes
8684 else
8685 eval $cacheid=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 fi
8690
8691
8692 CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694 eval supported=\$$cacheid
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696 $as_echo "$supported" >&6; }
8697 if test "$supported" = "yes" ; then
8698 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8699 found="yes"
8700 fi
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 int i;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"; then :
8731 xorg_cv_cc_flag_unknown_warning_option=yes
8732 else
8733 xorg_cv_cc_flag_unknown_warning_option=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740 CFLAGS="$xorg_testset_save_CFLAGS"
8741 fi
8742
8743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 fi
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 int i;
8756 _ACEOF
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758 xorg_cv_cc_flag_unused_command_line_argument=yes
8759 else
8760 xorg_cv_cc_flag_unused_command_line_argument=no
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767 CFLAGS="$xorg_testset_save_CFLAGS"
8768 fi
8769
8770 found="no"
8771
8772 if test $found = "no" ; then
8773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775 fi
8776
8777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779 fi
8780
8781 CFLAGS="$CFLAGS -Wmissing-braces"
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8784 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8785 cacheid=xorg_cv_cc_flag__Wmissing_braces
8786 if eval \${$cacheid+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 int
8793 main ()
8794 {
8795
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801 eval $cacheid=yes
8802 else
8803 eval $cacheid=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 fi
8808
8809
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812 eval supported=\$$cacheid
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814 $as_echo "$supported" >&6; }
8815 if test "$supported" = "yes" ; then
8816 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8817 found="yes"
8818 fi
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 int i;
8847 _ACEOF
8848 if ac_fn_c_try_compile "$LINENO"; then :
8849 xorg_cv_cc_flag_unknown_warning_option=yes
8850 else
8851 xorg_cv_cc_flag_unknown_warning_option=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859 fi
8860
8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 fi
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 int i;
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 xorg_cv_cc_flag_unused_command_line_argument=yes
8877 else
8878 xorg_cv_cc_flag_unused_command_line_argument=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886 fi
8887
8888 found="no"
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -Wsequence-point"
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8902 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8903 cacheid=xorg_cv_cc_flag__Wsequence_point
8904 if eval \${$cacheid+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 int
8911 main ()
8912 {
8913
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 eval $cacheid=yes
8920 else
8921 eval $cacheid=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 fi
8926
8927
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930 eval supported=\$$cacheid
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932 $as_echo "$supported" >&6; }
8933 if test "$supported" = "yes" ; then
8934 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8935 found="yes"
8936 fi
8937 fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953 xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"; then :
8967 xorg_cv_cc_flag_unknown_warning_option=yes
8968 else
8969 xorg_cv_cc_flag_unknown_warning_option=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8976 CFLAGS="$xorg_testset_save_CFLAGS"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982 fi
8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 int i;
8992 _ACEOF
8993 if ac_fn_c_try_compile "$LINENO"; then :
8994 xorg_cv_cc_flag_unused_command_line_argument=yes
8995 else
8996 xorg_cv_cc_flag_unused_command_line_argument=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9003 CFLAGS="$xorg_testset_save_CFLAGS"
9004 fi
9005
9006 found="no"
9007
9008 if test $found = "no" ; then
9009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 fi
9012
9013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015 fi
9016
9017 CFLAGS="$CFLAGS -Wreturn-type"
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9020 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9021 cacheid=xorg_cv_cc_flag__Wreturn_type
9022 if eval \${$cacheid+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 int
9029 main ()
9030 {
9031
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 eval $cacheid=yes
9038 else
9039 eval $cacheid=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 fi
9044
9045
9046 CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048 eval supported=\$$cacheid
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050 $as_echo "$supported" >&6; }
9051 if test "$supported" = "yes" ; then
9052 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9053 found="yes"
9054 fi
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071 xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 int i;
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085 xorg_cv_cc_flag_unknown_warning_option=yes
9086 else
9087 xorg_cv_cc_flag_unknown_warning_option=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9094 CFLAGS="$xorg_testset_save_CFLAGS"
9095 fi
9096
9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100 fi
9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 _ACEOF
9111 if ac_fn_c_try_compile "$LINENO"; then :
9112 xorg_cv_cc_flag_unused_command_line_argument=yes
9113 else
9114 xorg_cv_cc_flag_unused_command_line_argument=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122 fi
9123
9124 found="no"
9125
9126 if test $found = "no" ; then
9127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130
9131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 fi
9134
9135 CFLAGS="$CFLAGS -Wtrigraphs"
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9138 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9139 cacheid=xorg_cv_cc_flag__Wtrigraphs
9140 if eval \${$cacheid+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 int
9147 main ()
9148 {
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 eval $cacheid=yes
9156 else
9157 eval $cacheid=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 fi
9162
9163
9164 CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166 eval supported=\$$cacheid
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9168 $as_echo "$supported" >&6; }
9169 if test "$supported" = "yes" ; then
9170 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9171 found="yes"
9172 fi
9173 fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189 xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"; then :
9203 xorg_cv_cc_flag_unknown_warning_option=yes
9204 else
9205 xorg_cv_cc_flag_unknown_warning_option=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212 CFLAGS="$xorg_testset_save_CFLAGS"
9213 fi
9214
9215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218 fi
9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"; then :
9230 xorg_cv_cc_flag_unused_command_line_argument=yes
9231 else
9232 xorg_cv_cc_flag_unused_command_line_argument=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 found="no"
9243
9244 if test $found = "no" ; then
9245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248
9249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 fi
9252
9253 CFLAGS="$CFLAGS -Warray-bounds"
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9256 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9257 cacheid=xorg_cv_cc_flag__Warray_bounds
9258 if eval \${$cacheid+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 int
9265 main ()
9266 {
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 eval $cacheid=yes
9274 else
9275 eval $cacheid=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 fi
9280
9281
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284 eval supported=\$$cacheid
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286 $as_echo "$supported" >&6; }
9287 if test "$supported" = "yes" ; then
9288 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9289 found="yes"
9290 fi
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int i;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321 xorg_cv_cc_flag_unknown_warning_option=yes
9322 else
9323 xorg_cv_cc_flag_unknown_warning_option=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 fi
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 xorg_cv_cc_flag_unused_command_line_argument=yes
9349 else
9350 xorg_cv_cc_flag_unused_command_line_argument=no
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9357 CFLAGS="$xorg_testset_save_CFLAGS"
9358 fi
9359
9360 found="no"
9361
9362 if test $found = "no" ; then
9363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365 fi
9366
9367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369 fi
9370
9371 CFLAGS="$CFLAGS -Wwrite-strings"
9372
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9374 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9375 cacheid=xorg_cv_cc_flag__Wwrite_strings
9376 if eval \${$cacheid+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 int
9383 main ()
9384 {
9385
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 eval $cacheid=yes
9392 else
9393 eval $cacheid=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 fi
9398
9399
9400 CFLAGS="$xorg_testset_save_CFLAGS"
9401
9402 eval supported=\$$cacheid
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9404 $as_echo "$supported" >&6; }
9405 if test "$supported" = "yes" ; then
9406 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9407 found="yes"
9408 fi
9409 fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425 xorg_testset_save_CFLAGS="$CFLAGS"
9426
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 int i;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 xorg_cv_cc_flag_unknown_warning_option=yes
9440 else
9441 xorg_cv_cc_flag_unknown_warning_option=no
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9448 CFLAGS="$xorg_testset_save_CFLAGS"
9449 fi
9450
9451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454 fi
9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 xorg_cv_cc_flag_unused_command_line_argument=yes
9467 else
9468 xorg_cv_cc_flag_unused_command_line_argument=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476 fi
9477
9478 found="no"
9479
9480 if test $found = "no" ; then
9481 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483 fi
9484
9485 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487 fi
9488
9489 CFLAGS="$CFLAGS -Waddress"
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9492 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9493 cacheid=xorg_cv_cc_flag__Waddress
9494 if eval \${$cacheid+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 int
9501 main ()
9502 {
9503
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 eval $cacheid=yes
9510 else
9511 eval $cacheid=no
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 fi
9516
9517
9518 CFLAGS="$xorg_testset_save_CFLAGS"
9519
9520 eval supported=\$$cacheid
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9522 $as_echo "$supported" >&6; }
9523 if test "$supported" = "yes" ; then
9524 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9525 found="yes"
9526 fi
9527 fi
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 xorg_testset_save_CFLAGS="$CFLAGS"
9544
9545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 int i;
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 xorg_cv_cc_flag_unknown_warning_option=yes
9558 else
9559 xorg_cv_cc_flag_unknown_warning_option=no
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9567 fi
9568
9569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unused_command_line_argument=yes
9585 else
9586 xorg_cv_cc_flag_unused_command_line_argument=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 found="no"
9597
9598 if test $found = "no" ; then
9599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601 fi
9602
9603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605 fi
9606
9607 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9610 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9611 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9612 if eval \${$cacheid+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main ()
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 eval $cacheid=yes
9628 else
9629 eval $cacheid=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 fi
9634
9635
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638 eval supported=\$$cacheid
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640 $as_echo "$supported" >&6; }
9641 if test "$supported" = "yes" ; then
9642 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9643 found="yes"
9644 fi
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661 xorg_testset_save_CFLAGS="$CFLAGS"
9662
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 int i;
9673 _ACEOF
9674 if ac_fn_c_try_compile "$LINENO"; then :
9675 xorg_cv_cc_flag_unknown_warning_option=yes
9676 else
9677 xorg_cv_cc_flag_unknown_warning_option=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9684 CFLAGS="$xorg_testset_save_CFLAGS"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690 fi
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 xorg_cv_cc_flag_unused_command_line_argument=yes
9703 else
9704 xorg_cv_cc_flag_unused_command_line_argument=no
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9711 CFLAGS="$xorg_testset_save_CFLAGS"
9712 fi
9713
9714 found="no"
9715
9716 if test $found = "no" ; then
9717 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719 fi
9720
9721 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723 fi
9724
9725 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9728 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9729 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9730 if eval \${$cacheid+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 int
9737 main ()
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"; then :
9745 eval $cacheid=yes
9746 else
9747 eval $cacheid=no
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752
9753
9754 CFLAGS="$xorg_testset_save_CFLAGS"
9755
9756 eval supported=\$$cacheid
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9758 $as_echo "$supported" >&6; }
9759 if test "$supported" = "yes" ; then
9760 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9761 found="yes"
9762 fi
9763 fi
9764
9765
9766 fi
9767
9768
9769
9770
9771
9772
9773
9774 CWARNFLAGS="$BASE_CFLAGS"
9775 if test "x$GCC" = xyes ; then
9776 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9777 fi
9778
9779
9780
9781
9782
9783
9784
9785
9786 # Check whether --enable-strict-compilation was given.
9787 if test "${enable_strict_compilation+set}" = set; then :
9788 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9789 else
9790 STRICT_COMPILE=no
9791 fi
9792
9793
9794
9795
9796
9797
9798 STRICT_CFLAGS=""
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812 xorg_testset_save_CFLAGS="$CFLAGS"
9813
9814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9817 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9818 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 int i;
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826 xorg_cv_cc_flag_unknown_warning_option=yes
9827 else
9828 xorg_cv_cc_flag_unknown_warning_option=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9833 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9836 fi
9837
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841 fi
9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9844 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9845 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 int i;
9851 _ACEOF
9852 if ac_fn_c_try_compile "$LINENO"; then :
9853 xorg_cv_cc_flag_unused_command_line_argument=yes
9854 else
9855 xorg_cv_cc_flag_unused_command_line_argument=no
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9860 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9862 CFLAGS="$xorg_testset_save_CFLAGS"
9863 fi
9864
9865 found="no"
9866
9867 if test $found = "no" ; then
9868 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870 fi
9871
9872 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9874 fi
9875
9876 CFLAGS="$CFLAGS -pedantic"
9877
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9879 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9880 cacheid=xorg_cv_cc_flag__pedantic
9881 if eval \${$cacheid+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 int i;
9887 int
9888 main ()
9889 {
9890
9891 ;
9892 return 0;
9893 }
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896 eval $cacheid=yes
9897 else
9898 eval $cacheid=no
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 fi
9903
9904
9905 CFLAGS="$xorg_testset_save_CFLAGS"
9906
9907 eval supported=\$$cacheid
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9909 $as_echo "$supported" >&6; }
9910 if test "$supported" = "yes" ; then
9911 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9912 found="yes"
9913 fi
9914 fi
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930 xorg_testset_save_CFLAGS="$CFLAGS"
9931
9932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9935 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9936 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int i;
9942 _ACEOF
9943 if ac_fn_c_try_compile "$LINENO"; then :
9944 xorg_cv_cc_flag_unknown_warning_option=yes
9945 else
9946 xorg_cv_cc_flag_unknown_warning_option=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9951 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954 fi
9955
9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 fi
9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9962 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9963 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 int i;
9969 _ACEOF
9970 if ac_fn_c_try_compile "$LINENO"; then :
9971 xorg_cv_cc_flag_unused_command_line_argument=yes
9972 else
9973 xorg_cv_cc_flag_unused_command_line_argument=no
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 fi
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9978 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9980 CFLAGS="$xorg_testset_save_CFLAGS"
9981 fi
9982
9983 found="no"
9984
9985 if test $found = "no" ; then
9986 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988 fi
9989
9990 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992 fi
9993
9994 CFLAGS="$CFLAGS -Werror"
9995
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9997 $as_echo_n "checking if $CC supports-Werror... " >&6; }
9998 cacheid=xorg_cv_cc_flag__Werror
9999 if eval \${$cacheid+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 int i;
10005 int
10006 main ()
10007 {
10008
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 if ac_fn_c_try_link "$LINENO"; then :
10014 eval $cacheid=yes
10015 else
10016 eval $cacheid=no
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 fi
10021
10022
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024
10025 eval supported=\$$cacheid
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10027 $as_echo "$supported" >&6; }
10028 if test "$supported" = "yes" ; then
10029 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10030 found="yes"
10031 fi
10032 fi
10033
10034 if test $found = "no" ; then
10035 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037 fi
10038
10039 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041 fi
10042
10043 CFLAGS="$CFLAGS -errwarn"
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10046 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10047 cacheid=xorg_cv_cc_flag__errwarn
10048 if eval \${$cacheid+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int i;
10054 int
10055 main ()
10056 {
10057
10058 ;
10059 return 0;
10060 }
10061 _ACEOF
10062 if ac_fn_c_try_link "$LINENO"; then :
10063 eval $cacheid=yes
10064 else
10065 eval $cacheid=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 fi
10070
10071
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10073
10074 eval supported=\$$cacheid
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10076 $as_echo "$supported" >&6; }
10077 if test "$supported" = "yes" ; then
10078 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10079 found="yes"
10080 fi
10081 fi
10082
10083
10084
10085 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10086 # activate it with -Werror, so we add it here explicitly.
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 xorg_testset_save_CFLAGS="$CFLAGS"
10101
10102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111 int i;
10112 _ACEOF
10113 if ac_fn_c_try_compile "$LINENO"; then :
10114 xorg_cv_cc_flag_unknown_warning_option=yes
10115 else
10116 xorg_cv_cc_flag_unknown_warning_option=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10123 CFLAGS="$xorg_testset_save_CFLAGS"
10124 fi
10125
10126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 fi
10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138 int i;
10139 _ACEOF
10140 if ac_fn_c_try_compile "$LINENO"; then :
10141 xorg_cv_cc_flag_unused_command_line_argument=yes
10142 else
10143 xorg_cv_cc_flag_unused_command_line_argument=no
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146 fi
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150 CFLAGS="$xorg_testset_save_CFLAGS"
10151 fi
10152
10153 found="no"
10154
10155 if test $found = "no" ; then
10156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158 fi
10159
10160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162 fi
10163
10164 CFLAGS="$CFLAGS -Werror=attributes"
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10167 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10168 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10169 if eval \${$cacheid+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 int i;
10175 int
10176 main ()
10177 {
10178
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 eval $cacheid=yes
10185 else
10186 eval $cacheid=no
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 fi
10191
10192
10193 CFLAGS="$xorg_testset_save_CFLAGS"
10194
10195 eval supported=\$$cacheid
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10197 $as_echo "$supported" >&6; }
10198 if test "$supported" = "yes" ; then
10199 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10200 found="yes"
10201 fi
10202 fi
10203
10204
10205
10206 if test "x$STRICT_COMPILE" = "xyes"; then
10207 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10208 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10209 fi
10210
10211
10212
10213
10214
10215
10216 cat >>confdefs.h <<_ACEOF
10217 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10218 _ACEOF
10219
10220 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10221 if test "x$PVM" = "x"; then
10222 PVM="0"
10223 fi
10224
10225 cat >>confdefs.h <<_ACEOF
10226 #define PACKAGE_VERSION_MINOR $PVM
10227 _ACEOF
10228
10229 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10230 if test "x$PVP" = "x"; then
10231 PVP="0"
10232 fi
10233
10234 cat >>confdefs.h <<_ACEOF
10235 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10236 _ACEOF
10237
10238
10239
10240 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10241 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10242 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10243 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10244
10245
10246
10247
10248 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10249 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10250 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10251 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10252 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10253
10254
10255
10256
10257
10258
10259 if test x$APP_MAN_SUFFIX = x ; then
10260 APP_MAN_SUFFIX=1
10261 fi
10262 if test x$APP_MAN_DIR = x ; then
10263 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10264 fi
10265
10266 if test x$LIB_MAN_SUFFIX = x ; then
10267 LIB_MAN_SUFFIX=3
10268 fi
10269 if test x$LIB_MAN_DIR = x ; then
10270 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10271 fi
10272
10273 if test x$FILE_MAN_SUFFIX = x ; then
10274 case $host_os in
10275 solaris*) FILE_MAN_SUFFIX=4 ;;
10276 *) FILE_MAN_SUFFIX=5 ;;
10277 esac
10278 fi
10279 if test x$FILE_MAN_DIR = x ; then
10280 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10281 fi
10282
10283 if test x$MISC_MAN_SUFFIX = x ; then
10284 case $host_os in
10285 solaris*) MISC_MAN_SUFFIX=5 ;;
10286 *) MISC_MAN_SUFFIX=7 ;;
10287 esac
10288 fi
10289 if test x$MISC_MAN_DIR = x ; then
10290 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10291 fi
10292
10293 if test x$DRIVER_MAN_SUFFIX = x ; then
10294 case $host_os in
10295 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10296 *) DRIVER_MAN_SUFFIX=4 ;;
10297 esac
10298 fi
10299 if test x$DRIVER_MAN_DIR = x ; then
10300 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10301 fi
10302
10303 if test x$ADMIN_MAN_SUFFIX = x ; then
10304 case $host_os in
10305 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10306 *) ADMIN_MAN_SUFFIX=8 ;;
10307 esac
10308 fi
10309 if test x$ADMIN_MAN_DIR = x ; then
10310 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10311 fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 XORG_MAN_PAGE="X Version 11"
10328
10329 MAN_SUBSTS="\
10330 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10331 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10332 -e 's|__xservername__|Xorg|g' \
10333 -e 's|__xconfigfile__|xorg.conf|g' \
10334 -e 's|__projectroot__|\$(prefix)|g' \
10335 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10336 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10337 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10338 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10339 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10340 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10341 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10342
10343
10344
10345 # Check whether --enable-silent-rules was given.
10346 if test "${enable_silent_rules+set}" = set; then :
10347 enableval=$enable_silent_rules;
10348 fi
10349
10350 case $enable_silent_rules in
10351 yes) AM_DEFAULT_VERBOSITY=0;;
10352 no) AM_DEFAULT_VERBOSITY=1;;
10353 *) AM_DEFAULT_VERBOSITY=0;;
10354 esac
10355 AM_BACKSLASH='\'
10356
10357
10358
10359 # Checks for pkg-config packages
10360
10361 pkg_failed=no
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWUD" >&5
10363 $as_echo_n "checking for XWUD... " >&6; }
10364
10365 if test -n "$XWUD_CFLAGS"; then
10366 pkg_cv_XWUD_CFLAGS="$XWUD_CFLAGS"
10367 elif test -n "$PKG_CONFIG"; then
10368 if test -n "$PKG_CONFIG" && \
10369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10370 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10371 ac_status=$?
10372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10373 test $ac_status = 0; }; then
10374 pkg_cv_XWUD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10375 else
10376 pkg_failed=yes
10377 fi
10378 else
10379 pkg_failed=untried
10380 fi
10381 if test -n "$XWUD_LIBS"; then
10382 pkg_cv_XWUD_LIBS="$XWUD_LIBS"
10383 elif test -n "$PKG_CONFIG"; then
10384 if test -n "$PKG_CONFIG" && \
10385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10386 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10387 ac_status=$?
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }; then
10390 pkg_cv_XWUD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10391 else
10392 pkg_failed=yes
10393 fi
10394 else
10395 pkg_failed=untried
10396 fi
10397
10398
10399
10400 if test $pkg_failed = yes; then
10401
10402 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10403 _pkg_short_errors_supported=yes
10404 else
10405 _pkg_short_errors_supported=no
10406 fi
10407 if test $_pkg_short_errors_supported = yes; then
10408 XWUD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
10409 else
10410 XWUD_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
10411 fi
10412 # Put the nasty error message in config.log where it belongs
10413 echo "$XWUD_PKG_ERRORS" >&5
10414
10415 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
10416
10417 $XWUD_PKG_ERRORS
10418
10419 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10420 installed software in a non-standard prefix.
10421
10422 Alternatively, you may set the environment variables XWUD_CFLAGS
10423 and XWUD_LIBS to avoid the need to call pkg-config.
10424 See the pkg-config man page for more details.
10425 " "$LINENO" 5
10426 elif test $pkg_failed = untried; then
10427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10429 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10430 is in your PATH or set the PKG_CONFIG environment variable to the full
10431 path to pkg-config.
10432
10433 Alternatively, you may set the environment variables XWUD_CFLAGS
10434 and XWUD_LIBS to avoid the need to call pkg-config.
10435 See the pkg-config man page for more details.
10436
10437 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10438 See \`config.log' for more details" "$LINENO" 5; }
10439 else
10440 XWUD_CFLAGS=$pkg_cv_XWUD_CFLAGS
10441 XWUD_LIBS=$pkg_cv_XWUD_LIBS
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10443 $as_echo "yes" >&6; }
10444 :
10445 fi
10446
10447 ac_config_files="$ac_config_files Makefile man/Makefile"
10448
10449 cat >confcache <<\_ACEOF
10450 # This file is a shell script that caches the results of configure
10451 # tests run on this system so they can be shared between configure
10452 # scripts and configure runs, see configure's option --config-cache.
10453 # It is not useful on other systems. If it contains results you don't
10454 # want to keep, you may remove or edit it.
10455 #
10456 # config.status only pays attention to the cache file if you give it
10457 # the --recheck option to rerun configure.
10458 #
10459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10461 # following values.
10462
10463 _ACEOF
10464
10465 # The following way of writing the cache mishandles newlines in values,
10466 # but we know of no workaround that is simple, portable, and efficient.
10467 # So, we kill variables containing newlines.
10468 # Ultrix sh set writes to stderr and can't be redirected directly,
10469 # and sets the high bit in the cache file unless we assign to the vars.
10470 (
10471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10472 eval ac_val=\$$ac_var
10473 case $ac_val in #(
10474 *${as_nl}*)
10475 case $ac_var in #(
10476 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10478 esac
10479 case $ac_var in #(
10480 _ | IFS | as_nl) ;; #(
10481 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10482 *) { eval $ac_var=; unset $ac_var;} ;;
10483 esac ;;
10484 esac
10485 done
10486
10487 (set) 2>&1 |
10488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10489 *${as_nl}ac_space=\ *)
10490 # `set' does not quote correctly, so add quotes: double-quote
10491 # substitution turns \\\\ into \\, and sed turns \\ into \.
10492 sed -n \
10493 "s/'/'\\\\''/g;
10494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10495 ;; #(
10496 *)
10497 # `set' quotes correctly as required by POSIX, so do not add quotes.
10498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10499 ;;
10500 esac |
10501 sort
10502 ) |
10503 sed '
10504 /^ac_cv_env_/b end
10505 t clear
10506 :clear
10507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10508 t end
10509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10510 :end' >>confcache
10511 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10512 if test -w "$cache_file"; then
10513 if test "x$cache_file" != "x/dev/null"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10515 $as_echo "$as_me: updating cache $cache_file" >&6;}
10516 if test ! -f "$cache_file" || test -h "$cache_file"; then
10517 cat confcache >"$cache_file"
10518 else
10519 case $cache_file in #(
10520 */* | ?:*)
10521 mv -f confcache "$cache_file"$$ &&
10522 mv -f "$cache_file"$$ "$cache_file" ;; #(
10523 *)
10524 mv -f confcache "$cache_file" ;;
10525 esac
10526 fi
10527 fi
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10531 fi
10532 fi
10533 rm -f confcache
10534
10535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10536 # Let make expand exec_prefix.
10537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10538
10539 DEFS=-DHAVE_CONFIG_H
10540
10541 ac_libobjs=
10542 ac_ltlibobjs=
10543 U=
10544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10545 # 1. Remove the extension, and $U if already installed.
10546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10549 # will be set to the directory where LIBOBJS objects are built.
10550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10551 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10552 done
10553 LIBOBJS=$ac_libobjs
10554
10555 LTLIBOBJS=$ac_ltlibobjs
10556
10557
10558 if test -n "$EXEEXT"; then
10559 am__EXEEXT_TRUE=
10560 am__EXEEXT_FALSE='#'
10561 else
10562 am__EXEEXT_TRUE='#'
10563 am__EXEEXT_FALSE=
10564 fi
10565
10566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10567 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10569 fi
10570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10571 as_fn_error $? "conditional \"AMDEP\" was never defined.
10572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10573 fi
10574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10575 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10577 fi
10578
10579 : "${CONFIG_STATUS=./config.status}"
10580 ac_write_fail=0
10581 ac_clean_files_save=$ac_clean_files
10582 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10585 as_write_fail=0
10586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10587 #! $SHELL
10588 # Generated by $as_me.
10589 # Run this file to recreate the current configuration.
10590 # Compiler output produced by configure, useful for debugging
10591 # configure, is in config.log if it exists.
10592
10593 debug=false
10594 ac_cs_recheck=false
10595 ac_cs_silent=false
10596
10597 SHELL=\${CONFIG_SHELL-$SHELL}
10598 export SHELL
10599 _ASEOF
10600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10601 ## -------------------- ##
10602 ## M4sh Initialization. ##
10603 ## -------------------- ##
10604
10605 # Be more Bourne compatible
10606 DUALCASE=1; export DUALCASE # for MKS sh
10607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10608 emulate sh
10609 NULLCMD=:
10610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10611 # is contrary to our usage. Disable this feature.
10612 alias -g '${1+"$@"}'='"$@"'
10613 setopt NO_GLOB_SUBST
10614 else
10615 case `(set -o) 2>/dev/null` in #(
10616 *posix*) :
10617 set -o posix ;; #(
10618 *) :
10619 ;;
10620 esac
10621 fi
10622
10623
10624 as_nl='
10625 '
10626 export as_nl
10627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10631 # Prefer a ksh shell builtin over an external printf program on Solaris,
10632 # but without wasting forks for bash or zsh.
10633 if test -z "$BASH_VERSION$ZSH_VERSION" \
10634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10635 as_echo='print -r --'
10636 as_echo_n='print -rn --'
10637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10638 as_echo='printf %s\n'
10639 as_echo_n='printf %s'
10640 else
10641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10643 as_echo_n='/usr/ucb/echo -n'
10644 else
10645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10646 as_echo_n_body='eval
10647 arg=$1;
10648 case $arg in #(
10649 *"$as_nl"*)
10650 expr "X$arg" : "X\\(.*\\)$as_nl";
10651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10652 esac;
10653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10654 '
10655 export as_echo_n_body
10656 as_echo_n='sh -c $as_echo_n_body as_echo'
10657 fi
10658 export as_echo_body
10659 as_echo='sh -c $as_echo_body as_echo'
10660 fi
10661
10662 # The user is always right.
10663 if test "${PATH_SEPARATOR+set}" != set; then
10664 PATH_SEPARATOR=:
10665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10667 PATH_SEPARATOR=';'
10668 }
10669 fi
10670
10671
10672 # IFS
10673 # We need space, tab and new line, in precisely that order. Quoting is
10674 # there to prevent editors from complaining about space-tab.
10675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10676 # splitting by setting IFS to empty value.)
10677 IFS=" "" $as_nl"
10678
10679 # Find who we are. Look in the path if we contain no directory separator.
10680 as_myself=
10681 case $0 in #((
10682 *[\\/]* ) as_myself=$0 ;;
10683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10689 done
10690 IFS=$as_save_IFS
10691
10692 ;;
10693 esac
10694 # We did not find ourselves, most probably we were run as `sh COMMAND'
10695 # in which case we are not to be found in the path.
10696 if test "x$as_myself" = x; then
10697 as_myself=$0
10698 fi
10699 if test ! -f "$as_myself"; then
10700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10701 exit 1
10702 fi
10703
10704 # Unset variables that we do not need and which cause bugs (e.g. in
10705 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10706 # suppresses any "Segmentation fault" message there. '((' could
10707 # trigger a bug in pdksh 5.2.14.
10708 for as_var in BASH_ENV ENV MAIL MAILPATH
10709 do eval test x\${$as_var+set} = xset \
10710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10711 done
10712 PS1='$ '
10713 PS2='> '
10714 PS4='+ '
10715
10716 # NLS nuisances.
10717 LC_ALL=C
10718 export LC_ALL
10719 LANGUAGE=C
10720 export LANGUAGE
10721
10722 # CDPATH.
10723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10724
10725
10726 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10727 # ----------------------------------------
10728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10730 # script with STATUS, using 1 if that was 0.
10731 as_fn_error ()
10732 {
10733 as_status=$1; test $as_status -eq 0 && as_status=1
10734 if test "$4"; then
10735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10737 fi
10738 $as_echo "$as_me: error: $2" >&2
10739 as_fn_exit $as_status
10740 } # as_fn_error
10741
10742
10743 # as_fn_set_status STATUS
10744 # -----------------------
10745 # Set $? to STATUS, without forking.
10746 as_fn_set_status ()
10747 {
10748 return $1
10749 } # as_fn_set_status
10750
10751 # as_fn_exit STATUS
10752 # -----------------
10753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10754 as_fn_exit ()
10755 {
10756 set +e
10757 as_fn_set_status $1
10758 exit $1
10759 } # as_fn_exit
10760
10761 # as_fn_unset VAR
10762 # ---------------
10763 # Portably unset VAR.
10764 as_fn_unset ()
10765 {
10766 { eval $1=; unset $1;}
10767 }
10768 as_unset=as_fn_unset
10769 # as_fn_append VAR VALUE
10770 # ----------------------
10771 # Append the text in VALUE to the end of the definition contained in VAR. Take
10772 # advantage of any shell optimizations that allow amortized linear growth over
10773 # repeated appends, instead of the typical quadratic growth present in naive
10774 # implementations.
10775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10776 eval 'as_fn_append ()
10777 {
10778 eval $1+=\$2
10779 }'
10780 else
10781 as_fn_append ()
10782 {
10783 eval $1=\$$1\$2
10784 }
10785 fi # as_fn_append
10786
10787 # as_fn_arith ARG...
10788 # ------------------
10789 # Perform arithmetic evaluation on the ARGs, and store the result in the
10790 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10791 # must be portable across $(()) and expr.
10792 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10793 eval 'as_fn_arith ()
10794 {
10795 as_val=$(( $* ))
10796 }'
10797 else
10798 as_fn_arith ()
10799 {
10800 as_val=`expr "$@" || test $? -eq 1`
10801 }
10802 fi # as_fn_arith
10803
10804
10805 if expr a : '\(a\)' >/dev/null 2>&1 &&
10806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10807 as_expr=expr
10808 else
10809 as_expr=false
10810 fi
10811
10812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10813 as_basename=basename
10814 else
10815 as_basename=false
10816 fi
10817
10818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10819 as_dirname=dirname
10820 else
10821 as_dirname=false
10822 fi
10823
10824 as_me=`$as_basename -- "$0" ||
10825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10826 X"$0" : 'X\(//\)$' \| \
10827 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10828 $as_echo X/"$0" |
10829 sed '/^.*\/\([^/][^/]*\)\/*$/{
10830 s//\1/
10831 q
10832 }
10833 /^X\/\(\/\/\)$/{
10834 s//\1/
10835 q
10836 }
10837 /^X\/\(\/\).*/{
10838 s//\1/
10839 q
10840 }
10841 s/.*/./; q'`
10842
10843 # Avoid depending upon Character Ranges.
10844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10847 as_cr_digits='0123456789'
10848 as_cr_alnum=$as_cr_Letters$as_cr_digits
10849
10850 ECHO_C= ECHO_N= ECHO_T=
10851 case `echo -n x` in #(((((
10852 -n*)
10853 case `echo 'xy\c'` in
10854 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10855 xy) ECHO_C='\c';;
10856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10857 ECHO_T=' ';;
10858 esac;;
10859 *)
10860 ECHO_N='-n';;
10861 esac
10862
10863 rm -f conf$$ conf$$.exe conf$$.file
10864 if test -d conf$$.dir; then
10865 rm -f conf$$.dir/conf$$.file
10866 else
10867 rm -f conf$$.dir
10868 mkdir conf$$.dir 2>/dev/null
10869 fi
10870 if (echo >conf$$.file) 2>/dev/null; then
10871 if ln -s conf$$.file conf$$ 2>/dev/null; then
10872 as_ln_s='ln -s'
10873 # ... but there are two gotchas:
10874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10876 # In both cases, we have to default to `cp -p'.
10877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10878 as_ln_s='cp -p'
10879 elif ln conf$$.file conf$$ 2>/dev/null; then
10880 as_ln_s=ln
10881 else
10882 as_ln_s='cp -p'
10883 fi
10884 else
10885 as_ln_s='cp -p'
10886 fi
10887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10888 rmdir conf$$.dir 2>/dev/null
10889
10890
10891 # as_fn_mkdir_p
10892 # -------------
10893 # Create "$as_dir" as a directory, including parents if necessary.
10894 as_fn_mkdir_p ()
10895 {
10896
10897 case $as_dir in #(
10898 -*) as_dir=./$as_dir;;
10899 esac
10900 test -d "$as_dir" || eval $as_mkdir_p || {
10901 as_dirs=
10902 while :; do
10903 case $as_dir in #(
10904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10905 *) as_qdir=$as_dir;;
10906 esac
10907 as_dirs="'$as_qdir' $as_dirs"
10908 as_dir=`$as_dirname -- "$as_dir" ||
10909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10910 X"$as_dir" : 'X\(//\)[^/]' \| \
10911 X"$as_dir" : 'X\(//\)$' \| \
10912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10913 $as_echo X"$as_dir" |
10914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10915 s//\1/
10916 q
10917 }
10918 /^X\(\/\/\)[^/].*/{
10919 s//\1/
10920 q
10921 }
10922 /^X\(\/\/\)$/{
10923 s//\1/
10924 q
10925 }
10926 /^X\(\/\).*/{
10927 s//\1/
10928 q
10929 }
10930 s/.*/./; q'`
10931 test -d "$as_dir" && break
10932 done
10933 test -z "$as_dirs" || eval "mkdir $as_dirs"
10934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10935
10936
10937 } # as_fn_mkdir_p
10938 if mkdir -p . 2>/dev/null; then
10939 as_mkdir_p='mkdir -p "$as_dir"'
10940 else
10941 test -d ./-p && rmdir ./-p
10942 as_mkdir_p=false
10943 fi
10944
10945 if test -x / >/dev/null 2>&1; then
10946 as_test_x='test -x'
10947 else
10948 if ls -dL / >/dev/null 2>&1; then
10949 as_ls_L_option=L
10950 else
10951 as_ls_L_option=
10952 fi
10953 as_test_x='
10954 eval sh -c '\''
10955 if test -d "$1"; then
10956 test -d "$1/.";
10957 else
10958 case $1 in #(
10959 -*)set "./$1";;
10960 esac;
10961 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10962 ???[sx]*):;;*)false;;esac;fi
10963 '\'' sh
10964 '
10965 fi
10966 as_executable_p=$as_test_x
10967
10968 # Sed expression to map a string onto a valid CPP name.
10969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10970
10971 # Sed expression to map a string onto a valid variable name.
10972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10973
10974
10975 exec 6>&1
10976 ## ----------------------------------- ##
10977 ## Main body of $CONFIG_STATUS script. ##
10978 ## ----------------------------------- ##
10979 _ASEOF
10980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10981
10982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10983 # Save the log message, to keep $0 and so on meaningful, and to
10984 # report actual input values of CONFIG_FILES etc. instead of their
10985 # values after options handling.
10986 ac_log="
10987 This file was extended by xwud $as_me 1.0.4, which was
10988 generated by GNU Autoconf 2.68. Invocation command line was
10989
10990 CONFIG_FILES = $CONFIG_FILES
10991 CONFIG_HEADERS = $CONFIG_HEADERS
10992 CONFIG_LINKS = $CONFIG_LINKS
10993 CONFIG_COMMANDS = $CONFIG_COMMANDS
10994 $ $0 $@
10995
10996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10997 "
10998
10999 _ACEOF
11000
11001 case $ac_config_files in *"
11002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11003 esac
11004
11005 case $ac_config_headers in *"
11006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11007 esac
11008
11009
11010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11011 # Files that config.status was made for.
11012 config_files="$ac_config_files"
11013 config_headers="$ac_config_headers"
11014 config_commands="$ac_config_commands"
11015
11016 _ACEOF
11017
11018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11019 ac_cs_usage="\
11020 \`$as_me' instantiates files and other configuration actions
11021 from templates according to the current configuration. Unless the files
11022 and actions are specified as TAGs, all are instantiated by default.
11023
11024 Usage: $0 [OPTION]... [TAG]...
11025
11026 -h, --help print this help, then exit
11027 -V, --version print version number and configuration settings, then exit
11028 --config print configuration, then exit
11029 -q, --quiet, --silent
11030 do not print progress messages
11031 -d, --debug don't remove temporary files
11032 --recheck update $as_me by reconfiguring in the same conditions
11033 --file=FILE[:TEMPLATE]
11034 instantiate the configuration file FILE
11035 --header=FILE[:TEMPLATE]
11036 instantiate the configuration header FILE
11037
11038 Configuration files:
11039 $config_files
11040
11041 Configuration headers:
11042 $config_headers
11043
11044 Configuration commands:
11045 $config_commands
11046
11047 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11048
11049 _ACEOF
11050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11052 ac_cs_version="\\
11053 xwud config.status 1.0.4
11054 configured by $0, generated by GNU Autoconf 2.68,
11055 with options \\"\$ac_cs_config\\"
11056
11057 Copyright (C) 2010 Free Software Foundation, Inc.
11058 This config.status script is free software; the Free Software Foundation
11059 gives unlimited permission to copy, distribute and modify it."
11060
11061 ac_pwd='$ac_pwd'
11062 srcdir='$srcdir'
11063 INSTALL='$INSTALL'
11064 MKDIR_P='$MKDIR_P'
11065 AWK='$AWK'
11066 test -n "\$AWK" || AWK=awk
11067 _ACEOF
11068
11069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11070 # The default lists apply if the user does not specify any file.
11071 ac_need_defaults=:
11072 while test $# != 0
11073 do
11074 case $1 in
11075 --*=?*)
11076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11078 ac_shift=:
11079 ;;
11080 --*=)
11081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11082 ac_optarg=
11083 ac_shift=:
11084 ;;
11085 *)
11086 ac_option=$1
11087 ac_optarg=$2
11088 ac_shift=shift
11089 ;;
11090 esac
11091
11092 case $ac_option in
11093 # Handling of the options.
11094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11095 ac_cs_recheck=: ;;
11096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11097 $as_echo "$ac_cs_version"; exit ;;
11098 --config | --confi | --conf | --con | --co | --c )
11099 $as_echo "$ac_cs_config"; exit ;;
11100 --debug | --debu | --deb | --de | --d | -d )
11101 debug=: ;;
11102 --file | --fil | --fi | --f )
11103 $ac_shift
11104 case $ac_optarg in
11105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11106 '') as_fn_error $? "missing file argument" ;;
11107 esac
11108 as_fn_append CONFIG_FILES " '$ac_optarg'"
11109 ac_need_defaults=false;;
11110 --header | --heade | --head | --hea )
11111 $ac_shift
11112 case $ac_optarg in
11113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11114 esac
11115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11116 ac_need_defaults=false;;
11117 --he | --h)
11118 # Conflict between --help and --header
11119 as_fn_error $? "ambiguous option: \`$1'
11120 Try \`$0 --help' for more information.";;
11121 --help | --hel | -h )
11122 $as_echo "$ac_cs_usage"; exit ;;
11123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11125 ac_cs_silent=: ;;
11126
11127 # This is an error.
11128 -*) as_fn_error $? "unrecognized option: \`$1'
11129 Try \`$0 --help' for more information." ;;
11130
11131 *) as_fn_append ac_config_targets " $1"
11132 ac_need_defaults=false ;;
11133
11134 esac
11135 shift
11136 done
11137
11138 ac_configure_extra_args=
11139
11140 if $ac_cs_silent; then
11141 exec 6>/dev/null
11142 ac_configure_extra_args="$ac_configure_extra_args --silent"
11143 fi
11144
11145 _ACEOF
11146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11147 if \$ac_cs_recheck; then
11148 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11149 shift
11150 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11151 CONFIG_SHELL='$SHELL'
11152 export CONFIG_SHELL
11153 exec "\$@"
11154 fi
11155
11156 _ACEOF
11157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11158 exec 5>>config.log
11159 {
11160 echo
11161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11162 ## Running $as_me. ##
11163 _ASBOX
11164 $as_echo "$ac_log"
11165 } >&5
11166
11167 _ACEOF
11168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11169 #
11170 # INIT-COMMANDS
11171 #
11172 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11173
11174 _ACEOF
11175
11176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11177
11178 # Handling of arguments.
11179 for ac_config_target in $ac_config_targets
11180 do
11181 case $ac_config_target in
11182 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11183 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11184 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11185 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11186
11187 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11188 esac
11189 done
11190
11191
11192 # If the user did not use the arguments to specify the items to instantiate,
11193 # then the envvar interface is used. Set only those that are not.
11194 # We use the long form for the default assignment because of an extremely
11195 # bizarre bug on SunOS 4.1.3.
11196 if $ac_need_defaults; then
11197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11200 fi
11201
11202 # Have a temporary directory for convenience. Make it in the build tree
11203 # simply because there is no reason against having it here, and in addition,
11204 # creating and moving files from /tmp can sometimes cause problems.
11205 # Hook for its removal unless debugging.
11206 # Note that there is a small window in which the directory will not be cleaned:
11207 # after its creation but before its name has been assigned to `$tmp'.
11208 $debug ||
11209 {
11210 tmp= ac_tmp=
11211 trap 'exit_status=$?
11212 : "${ac_tmp:=$tmp}"
11213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11214 ' 0
11215 trap 'as_fn_exit 1' 1 2 13 15
11216 }
11217 # Create a (secure) tmp directory for tmp files.
11218
11219 {
11220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11221 test -d "$tmp"
11222 } ||
11223 {
11224 tmp=./conf$$-$RANDOM
11225 (umask 077 && mkdir "$tmp")
11226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11227 ac_tmp=$tmp
11228
11229 # Set up the scripts for CONFIG_FILES section.
11230 # No need to generate them if there are no CONFIG_FILES.
11231 # This happens for instance with `./config.status config.h'.
11232 if test -n "$CONFIG_FILES"; then
11233
11234
11235 ac_cr=`echo X | tr X '\015'`
11236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11237 # But we know of no other shell where ac_cr would be empty at this
11238 # point, so we can use a bashism as a fallback.
11239 if test "x$ac_cr" = x; then
11240 eval ac_cr=\$\'\\r\'
11241 fi
11242 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11244 ac_cs_awk_cr='\\r'
11245 else
11246 ac_cs_awk_cr=$ac_cr
11247 fi
11248
11249 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11250 _ACEOF
11251
11252
11253 {
11254 echo "cat >conf$$subs.awk <<_ACEOF" &&
11255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11256 echo "_ACEOF"
11257 } >conf$$subs.sh ||
11258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11259 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11260 ac_delim='%!_!# '
11261 for ac_last_try in false false false false false :; do
11262 . ./conf$$subs.sh ||
11263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11264
11265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11266 if test $ac_delim_n = $ac_delim_num; then
11267 break
11268 elif $ac_last_try; then
11269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11270 else
11271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11272 fi
11273 done
11274 rm -f conf$$subs.sh
11275
11276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11277 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11278 _ACEOF
11279 sed -n '
11280 h
11281 s/^/S["/; s/!.*/"]=/
11282 p
11283 g
11284 s/^[^!]*!//
11285 :repl
11286 t repl
11287 s/'"$ac_delim"'$//
11288 t delim
11289 :nl
11290 h
11291 s/\(.\{148\}\)..*/\1/
11292 t more1
11293 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11294 p
11295 n
11296 b repl
11297 :more1
11298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11299 p
11300 g
11301 s/.\{148\}//
11302 t nl
11303 :delim
11304 h
11305 s/\(.\{148\}\)..*/\1/
11306 t more2
11307 s/["\\]/\\&/g; s/^/"/; s/$/"/
11308 p
11309 b
11310 :more2
11311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11312 p
11313 g
11314 s/.\{148\}//
11315 t delim
11316 ' <conf$$subs.awk | sed '
11317 /^[^""]/{
11318 N
11319 s/\n//
11320 }
11321 ' >>$CONFIG_STATUS || ac_write_fail=1
11322 rm -f conf$$subs.awk
11323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324 _ACAWK
11325 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11326 for (key in S) S_is_set[key] = 1
11327 FS = ""
11328
11329 }
11330 {
11331 line = $ 0
11332 nfields = split(line, field, "@")
11333 substed = 0
11334 len = length(field[1])
11335 for (i = 2; i < nfields; i++) {
11336 key = field[i]
11337 keylen = length(key)
11338 if (S_is_set[key]) {
11339 value = S[key]
11340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11341 len += length(value) + length(field[++i])
11342 substed = 1
11343 } else
11344 len += 1 + keylen
11345 }
11346
11347 print line
11348 }
11349
11350 _ACAWK
11351 _ACEOF
11352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11355 else
11356 cat
11357 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11359 _ACEOF
11360
11361 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11362 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11363 # trailing colons and then remove the whole line if VPATH becomes empty
11364 # (actually we leave an empty line to preserve line numbers).
11365 if test "x$srcdir" = x.; then
11366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11367 h
11368 s///
11369 s/^/:/
11370 s/[ ]*$/:/
11371 s/:\$(srcdir):/:/g
11372 s/:\${srcdir}:/:/g
11373 s/:@srcdir@:/:/g
11374 s/^:*//
11375 s/:*$//
11376 x
11377 s/\(=[ ]*\).*/\1/
11378 G
11379 s/\n//
11380 s/^[^=]*=[ ]*$//
11381 }'
11382 fi
11383
11384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11385 fi # test -n "$CONFIG_FILES"
11386
11387 # Set up the scripts for CONFIG_HEADERS section.
11388 # No need to generate them if there are no CONFIG_HEADERS.
11389 # This happens for instance with `./config.status Makefile'.
11390 if test -n "$CONFIG_HEADERS"; then
11391 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11392 BEGIN {
11393 _ACEOF
11394
11395 # Transform confdefs.h into an awk script `defines.awk', embedded as
11396 # here-document in config.status, that substitutes the proper values into
11397 # config.h.in to produce config.h.
11398
11399 # Create a delimiter string that does not exist in confdefs.h, to ease
11400 # handling of long lines.
11401 ac_delim='%!_!# '
11402 for ac_last_try in false false :; do
11403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11404 if test -z "$ac_tt"; then
11405 break
11406 elif $ac_last_try; then
11407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11408 else
11409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11410 fi
11411 done
11412
11413 # For the awk script, D is an array of macro values keyed by name,
11414 # likewise P contains macro parameters if any. Preserve backslash
11415 # newline sequences.
11416
11417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11418 sed -n '
11419 s/.\{148\}/&'"$ac_delim"'/g
11420 t rset
11421 :rset
11422 s/^[ ]*#[ ]*define[ ][ ]*/ /
11423 t def
11424 d
11425 :def
11426 s/\\$//
11427 t bsnl
11428 s/["\\]/\\&/g
11429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11430 D["\1"]=" \3"/p
11431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11432 d
11433 :bsnl
11434 s/["\\]/\\&/g
11435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11436 D["\1"]=" \3\\\\\\n"\\/p
11437 t cont
11438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11439 t cont
11440 d
11441 :cont
11442 n
11443 s/.\{148\}/&'"$ac_delim"'/g
11444 t clear
11445 :clear
11446 s/\\$//
11447 t bsnlc
11448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11449 d
11450 :bsnlc
11451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11452 b cont
11453 ' <confdefs.h | sed '
11454 s/'"$ac_delim"'/"\\\
11455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11456
11457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11458 for (key in D) D_is_set[key] = 1
11459 FS = ""
11460 }
11461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11462 line = \$ 0
11463 split(line, arg, " ")
11464 if (arg[1] == "#") {
11465 defundef = arg[2]
11466 mac1 = arg[3]
11467 } else {
11468 defundef = substr(arg[1], 2)
11469 mac1 = arg[2]
11470 }
11471 split(mac1, mac2, "(") #)
11472 macro = mac2[1]
11473 prefix = substr(line, 1, index(line, defundef) - 1)
11474 if (D_is_set[macro]) {
11475 # Preserve the white space surrounding the "#".
11476 print prefix "define", macro P[macro] D[macro]
11477 next
11478 } else {
11479 # Replace #undef with comments. This is necessary, for example,
11480 # in the case of _POSIX_SOURCE, which is predefined and required
11481 # on some systems where configure will not decide to define it.
11482 if (defundef == "undef") {
11483 print "/*", prefix defundef, macro, "*/"
11484 next
11485 }
11486 }
11487 }
11488 { print }
11489 _ACAWK
11490 _ACEOF
11491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11493 fi # test -n "$CONFIG_HEADERS"
11494
11495
11496 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11497 shift
11498 for ac_tag
11499 do
11500 case $ac_tag in
11501 :[FHLC]) ac_mode=$ac_tag; continue;;
11502 esac
11503 case $ac_mode$ac_tag in
11504 :[FHL]*:*);;
11505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11506 :[FH]-) ac_tag=-:-;;
11507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11508 esac
11509 ac_save_IFS=$IFS
11510 IFS=:
11511 set x $ac_tag
11512 IFS=$ac_save_IFS
11513 shift
11514 ac_file=$1
11515 shift
11516
11517 case $ac_mode in
11518 :L) ac_source=$1;;
11519 :[FH])
11520 ac_file_inputs=
11521 for ac_f
11522 do
11523 case $ac_f in
11524 -) ac_f="$ac_tmp/stdin";;
11525 *) # Look for the file first in the build tree, then in the source tree
11526 # (if the path is not absolute). The absolute path cannot be DOS-style,
11527 # because $ac_f cannot contain `:'.
11528 test -f "$ac_f" ||
11529 case $ac_f in
11530 [\\/$]*) false;;
11531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11532 esac ||
11533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11534 esac
11535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11536 as_fn_append ac_file_inputs " '$ac_f'"
11537 done
11538
11539 # Let's still pretend it is `configure' which instantiates (i.e., don't
11540 # use $as_me), people would be surprised to read:
11541 # /* config.h. Generated by config.status. */
11542 configure_input='Generated from '`
11543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11544 `' by configure.'
11545 if test x"$ac_file" != x-; then
11546 configure_input="$ac_file. $configure_input"
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11548 $as_echo "$as_me: creating $ac_file" >&6;}
11549 fi
11550 # Neutralize special characters interpreted by sed in replacement strings.
11551 case $configure_input in #(
11552 *\&* | *\|* | *\\* )
11553 ac_sed_conf_input=`$as_echo "$configure_input" |
11554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11555 *) ac_sed_conf_input=$configure_input;;
11556 esac
11557
11558 case $ac_tag in
11559 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11561 esac
11562 ;;
11563 esac
11564
11565 ac_dir=`$as_dirname -- "$ac_file" ||
11566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11567 X"$ac_file" : 'X\(//\)[^/]' \| \
11568 X"$ac_file" : 'X\(//\)$' \| \
11569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11570 $as_echo X"$ac_file" |
11571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11572 s//\1/
11573 q
11574 }
11575 /^X\(\/\/\)[^/].*/{
11576 s//\1/
11577 q
11578 }
11579 /^X\(\/\/\)$/{
11580 s//\1/
11581 q
11582 }
11583 /^X\(\/\).*/{
11584 s//\1/
11585 q
11586 }
11587 s/.*/./; q'`
11588 as_dir="$ac_dir"; as_fn_mkdir_p
11589 ac_builddir=.
11590
11591 case "$ac_dir" in
11592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11593 *)
11594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11595 # A ".." for each directory in $ac_dir_suffix.
11596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11597 case $ac_top_builddir_sub in
11598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11600 esac ;;
11601 esac
11602 ac_abs_top_builddir=$ac_pwd
11603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11604 # for backward compatibility:
11605 ac_top_builddir=$ac_top_build_prefix
11606
11607 case $srcdir in
11608 .) # We are building in place.
11609 ac_srcdir=.
11610 ac_top_srcdir=$ac_top_builddir_sub
11611 ac_abs_top_srcdir=$ac_pwd ;;
11612 [\\/]* | ?:[\\/]* ) # Absolute name.
11613 ac_srcdir=$srcdir$ac_dir_suffix;
11614 ac_top_srcdir=$srcdir
11615 ac_abs_top_srcdir=$srcdir ;;
11616 *) # Relative name.
11617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11618 ac_top_srcdir=$ac_top_build_prefix$srcdir
11619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11620 esac
11621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11622
11623
11624 case $ac_mode in
11625 :F)
11626 #
11627 # CONFIG_FILE
11628 #
11629
11630 case $INSTALL in
11631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11633 esac
11634 ac_MKDIR_P=$MKDIR_P
11635 case $MKDIR_P in
11636 [\\/$]* | ?:[\\/]* ) ;;
11637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11638 esac
11639 _ACEOF
11640
11641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11642 # If the template does not know about datarootdir, expand it.
11643 # FIXME: This hack should be removed a few years after 2.60.
11644 ac_datarootdir_hack=; ac_datarootdir_seen=
11645 ac_sed_dataroot='
11646 /datarootdir/ {
11647 p
11648 q
11649 }
11650 /@datadir@/p
11651 /@docdir@/p
11652 /@infodir@/p
11653 /@localedir@/p
11654 /@mandir@/p'
11655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11656 *datarootdir*) ac_datarootdir_seen=yes;;
11657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11660 _ACEOF
11661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11662 ac_datarootdir_hack='
11663 s&@datadir@&$datadir&g
11664 s&@docdir@&$docdir&g
11665 s&@infodir@&$infodir&g
11666 s&@localedir@&$localedir&g
11667 s&@mandir@&$mandir&g
11668 s&\\\${datarootdir}&$datarootdir&g' ;;
11669 esac
11670 _ACEOF
11671
11672 # Neutralize VPATH when `$srcdir' = `.'.
11673 # Shell code in configure.ac might set extrasub.
11674 # FIXME: do we really want to maintain this feature?
11675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11676 ac_sed_extra="$ac_vpsub
11677 $extrasub
11678 _ACEOF
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 :t
11681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11682 s|@configure_input@|$ac_sed_conf_input|;t t
11683 s&@top_builddir@&$ac_top_builddir_sub&;t t
11684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11685 s&@srcdir@&$ac_srcdir&;t t
11686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11687 s&@top_srcdir@&$ac_top_srcdir&;t t
11688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11689 s&@builddir@&$ac_builddir&;t t
11690 s&@abs_builddir@&$ac_abs_builddir&;t t
11691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11692 s&@INSTALL@&$ac_INSTALL&;t t
11693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11694 $ac_datarootdir_hack
11695 "
11696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11698
11699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11704 which seems to be undefined. Please make sure it is defined" >&5
11705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11706 which seems to be undefined. Please make sure it is defined" >&2;}
11707
11708 rm -f "$ac_tmp/stdin"
11709 case $ac_file in
11710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11712 esac \
11713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11714 ;;
11715 :H)
11716 #
11717 # CONFIG_HEADER
11718 #
11719 if test x"$ac_file" != x-; then
11720 {
11721 $as_echo "/* $configure_input */" \
11722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11723 } >"$ac_tmp/config.h" \
11724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11728 else
11729 rm -f "$ac_file"
11730 mv "$ac_tmp/config.h" "$ac_file" \
11731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11732 fi
11733 else
11734 $as_echo "/* $configure_input */" \
11735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11736 || as_fn_error $? "could not create -" "$LINENO" 5
11737 fi
11738 # Compute "$ac_file"'s index in $config_headers.
11739 _am_arg="$ac_file"
11740 _am_stamp_count=1
11741 for _am_header in $config_headers :; do
11742 case $_am_header in
11743 $_am_arg | $_am_arg:* )
11744 break ;;
11745 * )
11746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11747 esac
11748 done
11749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11751 X"$_am_arg" : 'X\(//\)[^/]' \| \
11752 X"$_am_arg" : 'X\(//\)$' \| \
11753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11754 $as_echo X"$_am_arg" |
11755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11756 s//\1/
11757 q
11758 }
11759 /^X\(\/\/\)[^/].*/{
11760 s//\1/
11761 q
11762 }
11763 /^X\(\/\/\)$/{
11764 s//\1/
11765 q
11766 }
11767 /^X\(\/\).*/{
11768 s//\1/
11769 q
11770 }
11771 s/.*/./; q'`/stamp-h$_am_stamp_count
11772 ;;
11773
11774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11775 $as_echo "$as_me: executing $ac_file commands" >&6;}
11776 ;;
11777 esac
11778
11779
11780 case $ac_file$ac_mode in
11781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11782 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11783 # are listed without --file. Let's play safe and only enable the eval
11784 # if we detect the quoting.
11785 case $CONFIG_FILES in
11786 *\'*) eval set x "$CONFIG_FILES" ;;
11787 *) set x $CONFIG_FILES ;;
11788 esac
11789 shift
11790 for mf
11791 do
11792 # Strip MF so we end up with the name of the file.
11793 mf=`echo "$mf" | sed -e 's/:.*$//'`
11794 # Check whether this is an Automake generated Makefile or not.
11795 # We used to match only the files named `Makefile.in', but
11796 # some people rename them; so instead we look at the file content.
11797 # Grep'ing the first line is not enough: some people post-process
11798 # each Makefile.in and add a new line on top of each file to say so.
11799 # Grep'ing the whole file is not good either: AIX grep has a line
11800 # limit of 2048, but all sed's we know have understand at least 4000.
11801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11802 dirpart=`$as_dirname -- "$mf" ||
11803 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11804 X"$mf" : 'X\(//\)[^/]' \| \
11805 X"$mf" : 'X\(//\)$' \| \
11806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11807 $as_echo X"$mf" |
11808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11809 s//\1/
11810 q
11811 }
11812 /^X\(\/\/\)[^/].*/{
11813 s//\1/
11814 q
11815 }
11816 /^X\(\/\/\)$/{
11817 s//\1/
11818 q
11819 }
11820 /^X\(\/\).*/{
11821 s//\1/
11822 q
11823 }
11824 s/.*/./; q'`
11825 else
11826 continue
11827 fi
11828 # Extract the definition of DEPDIR, am__include, and am__quote
11829 # from the Makefile without running `make'.
11830 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11831 test -z "$DEPDIR" && continue
11832 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11833 test -z "am__include" && continue
11834 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11835 # When using ansi2knr, U may be empty or an underscore; expand it
11836 U=`sed -n 's/^U = //p' < "$mf"`
11837 # Find all dependency output files, they are included files with
11838 # $(DEPDIR) in their names. We invoke sed twice because it is the
11839 # simplest approach to changing $(DEPDIR) to its actual value in the
11840 # expansion.
11841 for file in `sed -n "
11842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11844 # Make sure the directory exists.
11845 test -f "$dirpart/$file" && continue
11846 fdir=`$as_dirname -- "$file" ||
11847 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11848 X"$file" : 'X\(//\)[^/]' \| \
11849 X"$file" : 'X\(//\)$' \| \
11850 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11851 $as_echo X"$file" |
11852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11853 s//\1/
11854 q
11855 }
11856 /^X\(\/\/\)[^/].*/{
11857 s//\1/
11858 q
11859 }
11860 /^X\(\/\/\)$/{
11861 s//\1/
11862 q
11863 }
11864 /^X\(\/\).*/{
11865 s//\1/
11866 q
11867 }
11868 s/.*/./; q'`
11869 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11870 # echo "creating $dirpart/$file"
11871 echo '# dummy' > "$dirpart/$file"
11872 done
11873 done
11874 }
11875 ;;
11876
11877 esac
11878 done # for ac_tag
11879
11880
11881 as_fn_exit 0
11882 _ACEOF
11883 ac_clean_files=$ac_clean_files_save
11884
11885 test $ac_write_fail = 0 ||
11886 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11887
11888
11889 # configure is writing to config.log, and then calls config.status.
11890 # config.status does its own redirection, appending to config.log.
11891 # Unfortunately, on DOS this fails, as config.log is still kept open
11892 # by configure, so config.status won't be able to write to it; its
11893 # output is simply discarded. So we exec the FD to /dev/null,
11894 # effectively closing config.log, so it can be properly (re)opened and
11895 # appended to by config.status. When coming back to configure, we
11896 # need to make the FD available again.
11897 if test "$no_create" != yes; then
11898 ac_cs_success=:
11899 ac_config_status_args=
11900 test "$silent" = yes &&
11901 ac_config_status_args="$ac_config_status_args --quiet"
11902 exec 5>/dev/null
11903 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11904 exec 5>>config.log
11905 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11906 # would make configure fail if this is the last instruction.
11907 $ac_cs_success || as_fn_exit 1
11908 fi
11909 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11911 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11912 fi
11913
11914