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