configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xkbcomp 1.2.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xkbcomp'
563 PACKAGE_TARNAME='xkbcomp'
564 PACKAGE_VERSION='1.2.4'
565 PACKAGE_STRING='xkbcomp 1.2.4'
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 XKBCONFIGROOT
610 REQUIRED_MODULES
611 XKBCOMP_LIBS
612 XKBCOMP_CFLAGS
613 YACC_INST
614 YFLAGS
615 YACC
616 AM_BACKSLASH
617 AM_DEFAULT_VERBOSITY
618 MAN_SUBSTS
619 XORG_MAN_PAGE
620 ADMIN_MAN_DIR
621 DRIVER_MAN_DIR
622 MISC_MAN_DIR
623 FILE_MAN_DIR
624 LIB_MAN_DIR
625 APP_MAN_DIR
626 ADMIN_MAN_SUFFIX
627 DRIVER_MAN_SUFFIX
628 MISC_MAN_SUFFIX
629 FILE_MAN_SUFFIX
630 LIB_MAN_SUFFIX
631 APP_MAN_SUFFIX
632 SED
633 host_os
634 host_vendor
635 host_cpu
636 host
637 build_os
638 build_vendor
639 build_cpu
640 build
641 INSTALL_CMD
642 PKG_CONFIG
643 CHANGELOG_CMD
644 STRICT_CFLAGS
645 CWARNFLAGS
646 BASE_CFLAGS
647 EGREP
648 GREP
649 CPP
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
674 AWK
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_selective_werror
736 enable_strict_compilation
737 enable_silent_rules
738 with_xkb_config_root
739 '
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP
749 PKG_CONFIG
750 YACC
751 YFLAGS
752 XKBCOMP_CFLAGS
753 XKBCOMP_LIBS'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *=) ac_optarg= ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868 "enable_$ac_useropt"
869 "*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=no ;;
874
875 -docdir | --docdir | --docdi | --doc | --do)
876 ac_prev=docdir ;;
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 docdir=$ac_optarg ;;
879
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 ac_prev=dvidir ;;
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 dvidir=$ac_optarg ;;
884
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=\$ac_optarg ;;
900
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
909
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
912 with_gas=yes ;;
913
914 -help | --help | --hel | --he | -h)
915 ac_init_help=long ;;
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
920
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
925
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 ac_prev=htmldir ;;
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 | --ht=*)
930 htmldir=$ac_optarg ;;
931
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
938
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 ac_prev=infodir ;;
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
943
944 -libdir | --libdir | --libdi | --libd)
945 ac_prev=libdir ;;
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 libdir=$ac_optarg ;;
948
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
955
956 -localedir | --localedir | --localedi | --localed | --locale)
957 ac_prev=localedir ;;
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
960
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
967
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 ac_prev=mandir ;;
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 mandir=$ac_optarg ;;
972
973 -nfp | --nfp | --nf)
974 # Obsolete; use --without-fp.
975 with_fp=no ;;
976
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
979 no_create=yes ;;
980
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 no_recursion=yes ;;
984
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
993
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 ac_prev=prefix ;;
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 prefix=$ac_optarg ;;
998
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1005
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1012
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 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1029
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 ac_prev=pdfdir ;;
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1034
1035 -psdir | --psdir | --psdi | --psd | --ps)
1036 ac_prev=psdir ;;
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 psdir=$ac_optarg ;;
1039
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 silent=yes ;;
1043
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 ac_prev=sbindir ;;
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 | --sbi=* | --sb=*)
1048 sbindir=$ac_optarg ;;
1049
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1053 | --sha | --sh)
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 | --sha=* | --sh=*)
1059 sharedstatedir=$ac_optarg ;;
1060
1061 -site | --site | --sit)
1062 ac_prev=site ;;
1063 -site=* | --site=* | --sit=*)
1064 site=$ac_optarg ;;
1065
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 ac_prev=srcdir ;;
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1070
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1077
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1082
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 verbose=yes ;;
1085
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1088
1089 -with-* | --with-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid package name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "with_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval with_$ac_useropt=\$ac_optarg ;;
1104
1105 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=no ;;
1120
1121 --x)
1122 # Obsolete; use --with-x.
1123 with_x=yes ;;
1124
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1131
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1138
1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1141 ;;
1142
1143 *=*)
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 esac
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1152
1153 *)
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 ;;
1160
1161 esac
1162 done
1163
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error $? "missing argument to $ac_option"
1167 fi
1168
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1171 no) ;;
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1175 fi
1176
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1182 do
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes
1213 fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225 as_fn_error $? "working directory cannot be determined"
1226 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227 as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1235 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1237 X"$as_myself" : 'X\(//\)$' \| \
1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239 $as_echo X"$as_myself" |
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)[^/].*/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\).*/{
1253 s//\1/
1254 q
1255 }
1256 s/.*/./; q'`
1257 srcdir=$ac_confdir
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 srcdir=..
1260 fi
1261 else
1262 ac_srcdir_defaulted=no
1263 fi
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 fi
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 ac_abs_confdir=`(
1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1275 fi
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1288
1289 #
1290 # Report the --help message.
1291 #
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296 \`configure' configures xkbcomp 1.2.4 to adapt to many kinds of systems.
1297
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1302
1303 Defaults for the options are specified in brackets.
1304
1305 Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking ...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1321
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1326
1327 For better control, use the options below.
1328
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1349 _ACEOF
1350
1351 cat <<\_ACEOF
1352
1353 Program names:
1354 --program-prefix=PREFIX prepend PREFIX to installed program names
1355 --program-suffix=SUFFIX append SUFFIX to installed program names
1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365 case $ac_init_help in
1366 short | recursive ) echo "Configuration of xkbcomp 1.2.4:";;
1367 esac
1368 cat <<\_ACEOF
1369
1370 Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
1378 --disable-selective-werror
1379 Turn off selective compiler errors. (default:
1380 enabled)
1381 --enable-strict-compilation
1382 Enable all warnings from compiler and make them
1383 errors (default: disabled)
1384 --enable-silent-rules less verbose build output (undo: `make V=1')
1385 --disable-silent-rules verbose build output (undo: `make V=0')
1386
1387 Optional Packages:
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-xkb-config-root=<paths>
1391 Set default XKB config root (default:
1392 ${datadir}/X11/xkb)
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 PKG_CONFIG path to pkg-config utility
1404 YACC The `Yet Another Compiler Compiler' implementation to use.
1405 Defaults to the first program found out of: `bison -y', `byacc',
1406 `yacc'.
1407 YFLAGS The list of arguments that will be passed by default to $YACC.
1408 This script will default YFLAGS to the empty string to avoid a
1409 default value of `-d' given by some make applications.
1410 XKBCOMP_CFLAGS
1411 C compiler flags for XKBCOMP, overriding pkg-config
1412 XKBCOMP_LIBS
1413 linker flags for XKBCOMP, overriding pkg-config
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 xkbcomp configure 1.2.4
1482 generated by GNU Autoconf 2.68
1483
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488 exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527 fi
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1534 # ---------------------------------------------
1535 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1536 # accordingly.
1537 ac_fn_c_check_decl ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 as_decl_name=`echo $2|sed 's/ *(.*//'`
1541 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1543 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1544 if eval \${$3+:} false; then :
1545 $as_echo_n "(cached) " >&6
1546 else
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1549 $4
1550 int
1551 main ()
1552 {
1553 #ifndef $as_decl_name
1554 #ifdef __cplusplus
1555 (void) $as_decl_use;
1556 #else
1557 (void) $as_decl_name;
1558 #endif
1559 #endif
1560
1561 ;
1562 return 0;
1563 }
1564 _ACEOF
1565 if ac_fn_c_try_compile "$LINENO"; then :
1566 eval "$3=yes"
1567 else
1568 eval "$3=no"
1569 fi
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1571 fi
1572 eval ac_res=\$$3
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574 $as_echo "$ac_res" >&6; }
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576
1577 } # ac_fn_c_check_decl
1578
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_cpp
1615
1616 # ac_fn_c_try_run LINENO
1617 # ----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619 # that executables *can* be run.
1620 ac_fn_c_try_run ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634 { { case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_try") 2>&5
1641 ac_status=$?
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; }; }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: program exited with status $ac_status" >&5
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=$ac_status
1651 fi
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_run
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 $as_test_x conftest$ac_exeext
1717 }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1756
1757 #ifdef __STDC__
1758 # include <limits.h>
1759 #else
1760 # include <assert.h>
1761 #endif
1762
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main ()
1781 {
1782 return $2 ();
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1804
1805 It was created by xkbcomp $as_me 1.2.4, which was
1806 generated by GNU Autoconf 2.68. Invocation command line was
1807
1808 $ $0 $@
1809
1810 _ACEOF
1811 exec 5>>config.log
1812 {
1813 cat <<_ASUNAME
1814 ## --------- ##
1815 ## Platform. ##
1816 ## --------- ##
1817
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834
1835 _ASUNAME
1836
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1843 done
1844 IFS=$as_save_IFS
1845
1846 } >&5
1847
1848 cat >&5 <<_ACEOF
1849
1850
1851 ## ----------- ##
1852 ## Core tests. ##
1853 ## ----------- ##
1854
1855 _ACEOF
1856
1857
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1863 ac_configure_args=
1864 ac_configure_args0=
1865 ac_configure_args1=
1866 ac_must_keep_next=false
1867 for ac_pass in 1 2
1868 do
1869 for ac_arg
1870 do
1871 case $ac_arg in
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1875 continue ;;
1876 *\'*)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 esac
1879 case $ac_pass in
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 2)
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1885 else
1886 case $ac_arg in
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893 esac
1894 ;;
1895 -* ) ac_must_keep_next=true ;;
1896 esac
1897 fi
1898 as_fn_append ac_configure_args " '$ac_arg'"
1899 ;;
1900 esac
1901 done
1902 done
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1905
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1913 {
1914 echo
1915
1916 $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1919 echo
1920 # The following way of writing the cache mishandles newlines in values,
1921 (
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in #(
1925 *${as_nl}*)
1926 case $ac_var in #(
1927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 esac
1930 case $ac_var in #(
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1934 esac ;;
1935 esac
1936 done
1937 (set) 2>&1 |
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1940 sed -n \
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943 ;; #(
1944 *)
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946 ;;
1947 esac |
1948 sort
1949 )
1950 echo
1951
1952 $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1955 echo
1956 for ac_var in $ac_subst_vars
1957 do
1958 eval ac_val=\$$ac_var
1959 case $ac_val in
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 esac
1962 $as_echo "$ac_var='\''$ac_val'\''"
1963 done | sort
1964 echo
1965
1966 if test -n "$ac_subst_files"; then
1967 $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1970 echo
1971 for ac_var in $ac_subst_files
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 $as_echo "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980 fi
1981
1982 if test -s confdefs.h; then
1983 $as_echo "## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##"
1986 echo
1987 cat confdefs.h
1988 echo
1989 fi
1990 test "$ac_signal" != 0 &&
1991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
1993 } >&5
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996 exit $exit_status
1997 ' 0
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 done
2001 ac_signal=0
2002
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2005
2006 $as_echo "/* confdefs.h */" > confdefs.h
2007
2008 # Predefined preprocessor variables.
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_NAME "$PACKAGE_NAME"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_STRING "$PACKAGE_STRING"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_URL "$PACKAGE_URL"
2032 _ACEOF
2033
2034
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2037 ac_site_file1=NONE
2038 ac_site_file2=NONE
2039 if test -n "$CONFIG_SITE"; then
2040 # We do not want a PATH search for config.site.
2041 case $CONFIG_SITE in #((
2042 -*) ac_site_file1=./$CONFIG_SITE;;
2043 */*) ac_site_file1=$CONFIG_SITE;;
2044 *) ac_site_file1=./$CONFIG_SITE;;
2045 esac
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_file1=$prefix/share/config.site
2048 ac_site_file2=$prefix/etc/config.site
2049 else
2050 ac_site_file1=$ac_default_prefix/share/config.site
2051 ac_site_file2=$ac_default_prefix/etc/config.site
2052 fi
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 do
2055 test "x$ac_site_file" = xNONE && continue
2056 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2060 . "$ac_site_file" \
2061 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2065 fi
2066 done
2067
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 case $cache_file in
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2077 esac
2078 fi
2079 else
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2082 >$cache_file
2083 fi
2084
2085 # Check that the precious variables saved in the cache have kept the same
2086 # value.
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2094 set,)
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2098 ,set)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,);;
2103 *)
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2112 else
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2116 fi
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2121 fi;;
2122 esac
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2125 case $ac_new_val in
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2128 esac
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2132 esac
2133 fi
2134 done
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 fi
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2145
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151
2152
2153 am__api_version='1.11'
2154
2155 ac_aux_dir=
2156 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157 if test -f "$ac_dir/install-sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install-sh -c"
2160 break
2161 elif test -f "$ac_dir/install.sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install.sh -c"
2164 break
2165 elif test -f "$ac_dir/shtool"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/shtool install -c"
2168 break
2169 fi
2170 done
2171 if test -z "$ac_aux_dir"; then
2172 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2173 fi
2174
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182
2183
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2190 # AIX /bin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if ${ac_cv_path_install+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in #((
2211 ./ | .// | /[cC]/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2214 /usr/ucb/* ) ;;
2215 *)
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2218 # by default.
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2225 :
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2229 :
2230 else
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2234 mkdir conftest.dir
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2239 then
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241 break 3
2242 fi
2243 fi
2244 fi
2245 done
2246 done
2247 ;;
2248 esac
2249
2250 done
2251 IFS=$as_save_IFS
2252
2253 rm -rf conftest.one conftest.two conftest.dir
2254
2255 fi
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2258 else
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2264 fi
2265 fi
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2268
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2272
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2274
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2276
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2279 # Just in case
2280 sleep 1
2281 echo timestamp > conftest.file
2282 # Reject unsafe characters in $srcdir or the absolute working directory
2283 # name. Accept space and tab only in the latter.
2284 am_lf='
2285 '
2286 case `pwd` in
2287 *[\\\"\#\$\&\'\`$am_lf]*)
2288 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2289 esac
2290 case $srcdir in
2291 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2292 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2293 esac
2294
2295 # Do `set' in a subshell so we don't clobber the current shell's
2296 # arguments. Must try -L first in case configure is actually a
2297 # symlink; some systems play weird games with the mod time of symlinks
2298 # (eg FreeBSD returns the mod time of the symlink's containing
2299 # directory).
2300 if (
2301 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2302 if test "$*" = "X"; then
2303 # -L didn't work.
2304 set X `ls -t "$srcdir/configure" conftest.file`
2305 fi
2306 rm -f conftest.file
2307 if test "$*" != "X $srcdir/configure conftest.file" \
2308 && test "$*" != "X conftest.file $srcdir/configure"; then
2309
2310 # If neither matched, then we have a broken ls. This can happen
2311 # if, for instance, CONFIG_SHELL is bash and it inherits a
2312 # broken ls alias from the environment. This has actually
2313 # happened. Such a system could not be considered "sane".
2314 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2315 alias in your environment" "$LINENO" 5
2316 fi
2317
2318 test "$2" = conftest.file
2319 )
2320 then
2321 # Ok.
2322 :
2323 else
2324 as_fn_error $? "newly created file is older than distributed files!
2325 Check your system clock" "$LINENO" 5
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2328 $as_echo "yes" >&6; }
2329 test "$program_prefix" != NONE &&
2330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2331 # Use a double $ so make ignores it.
2332 test "$program_suffix" != NONE &&
2333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334 # Double any \ or $.
2335 # By default was `s,x,x', remove it if useless.
2336 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2337 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2338
2339 # expand $ac_aux_dir to an absolute path
2340 am_aux_dir=`cd $ac_aux_dir && pwd`
2341
2342 if test x"${MISSING+set}" != xset; then
2343 case $am_aux_dir in
2344 *\ * | *\ *)
2345 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2346 *)
2347 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2348 esac
2349 fi
2350 # Use eval to expand $SHELL
2351 if eval "$MISSING --run true"; then
2352 am_missing_run="$MISSING --run "
2353 else
2354 am_missing_run=
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2356 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2357 fi
2358
2359 if test x"${install_sh}" != xset; then
2360 case $am_aux_dir in
2361 *\ * | *\ *)
2362 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2363 *)
2364 install_sh="\${SHELL} $am_aux_dir/install-sh"
2365 esac
2366 fi
2367
2368 # Installed binaries are usually stripped using `strip' when the user
2369 # run `make install-strip'. However `strip' might not be the right
2370 # tool to use in cross-compilation environments, therefore Automake
2371 # will honor the `STRIP' environment variable to overrule this program.
2372 if test "$cross_compiling" != no; then
2373 if test -n "$ac_tool_prefix"; then
2374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2375 set dummy ${ac_tool_prefix}strip; ac_word=$2
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if ${ac_cv_prog_STRIP+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 if test -n "$STRIP"; then
2382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400 fi
2401 STRIP=$ac_cv_prog_STRIP
2402 if test -n "$STRIP"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2404 $as_echo "$STRIP" >&6; }
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2408 fi
2409
2410
2411 fi
2412 if test -z "$ac_cv_prog_STRIP"; then
2413 ac_ct_STRIP=$STRIP
2414 # Extract the first word of "strip", so it can be a program name with args.
2415 set dummy strip; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$ac_ct_STRIP"; then
2422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_ac_ct_STRIP="strip"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2442 if test -n "$ac_ct_STRIP"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2444 $as_echo "$ac_ct_STRIP" >&6; }
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2448 fi
2449
2450 if test "x$ac_ct_STRIP" = x; then
2451 STRIP=":"
2452 else
2453 case $cross_compiling:$ac_tool_warned in
2454 yes:)
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2457 ac_tool_warned=yes ;;
2458 esac
2459 STRIP=$ac_ct_STRIP
2460 fi
2461 else
2462 STRIP="$ac_cv_prog_STRIP"
2463 fi
2464
2465 fi
2466 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2469 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2470 if test -z "$MKDIR_P"; then
2471 if ${ac_cv_path_mkdir+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_prog in mkdir gmkdir; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2482 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2483 'mkdir (GNU coreutils) '* | \
2484 'mkdir (coreutils) '* | \
2485 'mkdir (fileutils) '4.1*)
2486 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2487 break 3;;
2488 esac
2489 done
2490 done
2491 done
2492 IFS=$as_save_IFS
2493
2494 fi
2495
2496 test -d ./--version && rmdir ./--version
2497 if test "${ac_cv_path_mkdir+set}" = set; then
2498 MKDIR_P="$ac_cv_path_mkdir -p"
2499 else
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for MKDIR_P within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 MKDIR_P="$ac_install_sh -d"
2505 fi
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2508 $as_echo "$MKDIR_P" >&6; }
2509
2510 mkdir_p="$MKDIR_P"
2511 case $mkdir_p in
2512 [\\/$]* | ?:[\\/]*) ;;
2513 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2514 esac
2515
2516 for ac_prog in gawk mawk nawk awk
2517 do
2518 # Extract the first word of "$ac_prog", so it can be a program name with args.
2519 set dummy $ac_prog; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_AWK+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test -n "$AWK"; then
2526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_AWK="$ac_prog"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 AWK=$ac_cv_prog_AWK
2546 if test -n "$AWK"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2548 $as_echo "$AWK" >&6; }
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554
2555 test -n "$AWK" && break
2556 done
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2560 set x ${MAKE-make}
2561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 cat >conftest.make <<\_ACEOF
2566 SHELL = /bin/sh
2567 all:
2568 @echo '@@@%%%=$(MAKE)=@@@%%%'
2569 _ACEOF
2570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2572 *@@@%%%=?*=@@@%%%*)
2573 eval ac_cv_prog_make_${ac_make}_set=yes;;
2574 *)
2575 eval ac_cv_prog_make_${ac_make}_set=no;;
2576 esac
2577 rm -f conftest.make
2578 fi
2579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581 $as_echo "yes" >&6; }
2582 SET_MAKE=
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 SET_MAKE="MAKE=${MAKE-make}"
2587 fi
2588
2589 rm -rf .tst 2>/dev/null
2590 mkdir .tst 2>/dev/null
2591 if test -d .tst; then
2592 am__leading_dot=.
2593 else
2594 am__leading_dot=_
2595 fi
2596 rmdir .tst 2>/dev/null
2597
2598 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2599 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2600 # is not polluted with repeated "-I."
2601 am__isrc=' -I$(srcdir)'
2602 # test to see if srcdir already configured
2603 if test -f $srcdir/config.status; then
2604 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2605 fi
2606 fi
2607
2608 # test whether we have cygpath
2609 if test -z "$CYGPATH_W"; then
2610 if (cygpath --version) >/dev/null 2>/dev/null; then
2611 CYGPATH_W='cygpath -w'
2612 else
2613 CYGPATH_W=echo
2614 fi
2615 fi
2616
2617
2618 # Define the identity of the package.
2619 PACKAGE='xkbcomp'
2620 VERSION='1.2.4'
2621
2622
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE "$PACKAGE"
2625 _ACEOF
2626
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define VERSION "$VERSION"
2630 _ACEOF
2631
2632 # Some tools Automake needs.
2633
2634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2635
2636
2637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2638
2639
2640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2641
2642
2643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2644
2645
2646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2647
2648 # We need awk for the "check" target. The system "awk" is bad on
2649 # some platforms.
2650 # Always define AMTAR for backward compatibility.
2651
2652 AMTAR=${AMTAR-"${am_missing_run}tar"}
2653
2654 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2655
2656
2657
2658
2659
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2662 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2663 # Check whether --enable-maintainer-mode was given.
2664 if test "${enable_maintainer_mode+set}" = set; then :
2665 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2666 else
2667 USE_MAINTAINER_MODE=no
2668 fi
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2671 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2672 if test $USE_MAINTAINER_MODE = yes; then
2673 MAINTAINER_MODE_TRUE=
2674 MAINTAINER_MODE_FALSE='#'
2675 else
2676 MAINTAINER_MODE_TRUE='#'
2677 MAINTAINER_MODE_FALSE=
2678 fi
2679
2680 MAINT=$MAINTAINER_MODE_TRUE
2681
2682
2683
2684 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696 DEPDIR="${am__leading_dot}deps"
2697
2698 ac_config_commands="$ac_config_commands depfiles"
2699
2700
2701 am_make=${MAKE-make}
2702 cat > confinc << 'END'
2703 am__doit:
2704 @echo this is the am__doit target
2705 .PHONY: am__doit
2706 END
2707 # If we don't find an include directive, just comment out the code.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2710 am__include="#"
2711 am__quote=
2712 _am_result=none
2713 # First try GNU make style include.
2714 echo "include confinc" > confmf
2715 # Ignore all kinds of additional output from `make'.
2716 case `$am_make -s -f confmf 2> /dev/null` in #(
2717 *the\ am__doit\ target*)
2718 am__include=include
2719 am__quote=
2720 _am_result=GNU
2721 ;;
2722 esac
2723 # Now try BSD make style include.
2724 if test "$am__include" = "#"; then
2725 echo '.include "confinc"' > confmf
2726 case `$am_make -s -f confmf 2> /dev/null` in #(
2727 *the\ am__doit\ target*)
2728 am__include=.include
2729 am__quote="\""
2730 _am_result=BSD
2731 ;;
2732 esac
2733 fi
2734
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2737 $as_echo "$_am_result" >&6; }
2738 rm -f confinc confmf
2739
2740 # Check whether --enable-dependency-tracking was given.
2741 if test "${enable_dependency_tracking+set}" = set; then :
2742 enableval=$enable_dependency_tracking;
2743 fi
2744
2745 if test "x$enable_dependency_tracking" != xno; then
2746 am_depcomp="$ac_aux_dir/depcomp"
2747 AMDEPBACKSLASH='\'
2748 fi
2749 if test "x$enable_dependency_tracking" != xno; then
2750 AMDEP_TRUE=
2751 AMDEP_FALSE='#'
2752 else
2753 AMDEP_TRUE='#'
2754 AMDEP_FALSE=
2755 fi
2756
2757
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_CC"; then
2803 ac_ct_CC=$CC
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840 if test "x$ac_ct_CC" = x; then
2841 CC=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 CC=$ac_ct_CC
2850 fi
2851 else
2852 CC="$ac_cv_prog_CC"
2853 fi
2854
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 fi
2895 fi
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 ac_prog_rejected=no
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2917 continue
2918 fi
2919 ac_cv_prog_CC="cc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2930 shift
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2935 shift
2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2937 fi
2938 fi
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 fi
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in cl.exe
2955 do
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 test -n "$CC" && break
2994 done
2995 fi
2996 if test -z "$CC"; then
2997 ac_ct_CC=$CC
2998 for ac_prog in cl.exe
2999 do
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 test -n "$ac_ct_CC" && break
3038 done
3039
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3050 fi
3051 fi
3052
3053 fi
3054
3055
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details" "$LINENO" 5; }
3060
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3063 set X $ac_compile
3064 ac_compiler=$2
3065 for ac_option in --version -v -V -qversion; do
3066 { { ac_try="$ac_compiler $ac_option >&5"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3074 ac_status=$?
3075 if test -s conftest.err; then
3076 sed '10a\
3077 ... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
3080 fi
3081 rm -f conftest.er1 conftest.err
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 done
3085
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3088
3089 int
3090 main ()
3091 {
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3101 # of exeext.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
3109 ac_rmfiles=
3110 for ac_file in $ac_files
3111 do
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115 esac
3116 done
3117 rm -f $ac_rmfiles
3118
3119 if { { ac_try="$ac_link_default"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link_default") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3134 # Autoconf.
3135 for ac_file in $ac_files ''
3136 do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140 ;;
3141 [ab].out )
3142 # We found the default executable, but exeext='' is most
3143 # certainly right.
3144 break;;
3145 *.* )
3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3147 then :; else
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 fi
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3154 # actually working.
3155 break;;
3156 * )
3157 break;;
3158 esac
3159 done
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
3162 else
3163 ac_file=''
3164 fi
3165 if test -z "$ac_file"; then :
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error 77 "C compiler cannot create executables
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 fi
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3180 $as_echo_n "checking for C compiler default output file name... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 ac_exeext=$ac_cv_exeext
3184
3185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3186 ac_clean_files=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188 $as_echo_n "checking for suffix of executables... " >&6; }
3189 if { { ac_try="$ac_link"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 # `rm'.
3204 for ac_file in conftest.exe conftest conftest.*; do
3205 test -f "$ac_file" || continue
3206 case $ac_file in
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 break;;
3210 * ) break;;
3211 esac
3212 done
3213 else
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 fi
3219 rm -f conftest conftest$ac_cv_exeext
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221 $as_echo "$ac_cv_exeext" >&6; }
3222
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3225 ac_exeext=$EXEEXT
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #include <stdio.h>
3229 int
3230 main ()
3231 {
3232 FILE *f = fopen ("conftest.out", "w");
3233 return ferror (f) || fclose (f) != 0;
3234
3235 ;
3236 return 0;
3237 }
3238 _ACEOF
3239 ac_clean_files="$ac_clean_files conftest.out"
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 if test "$cross_compiling" != yes; then
3245 { { ac_try="$ac_link"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 if { ac_try='./conftest$ac_cv_exeext'
3257 { { case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3267 cross_compiling=no
3268 else
3269 if test "$cross_compiling" = maybe; then
3270 cross_compiling=yes
3271 else
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details" "$LINENO" 5; }
3277 fi
3278 fi
3279 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281 $as_echo "$cross_compiling" >&6; }
3282
3283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 $as_echo_n "checking for suffix of object files... " >&6; }
3287 if ${ac_cv_objext+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3292
3293 int
3294 main ()
3295 {
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 rm -f conftest.o conftest.obj
3302 if { { ac_try="$ac_compile"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compile") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 for ac_file in conftest.o conftest.obj conftest.*; do
3314 test -f "$ac_file" || continue;
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3318 break;;
3319 esac
3320 done
3321 else
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of object files: cannot compile
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 fi
3330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333 $as_echo "$ac_cv_objext" >&6; }
3334 OBJEXT=$ac_cv_objext
3335 ac_objext=$OBJEXT
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3338 if ${ac_cv_c_compiler_gnu+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347 #ifndef __GNUC__
3348 choke me
3349 #endif
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356 ac_compiler_gnu=yes
3357 else
3358 ac_compiler_gnu=no
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3366 if test $ac_compiler_gnu = yes; then
3367 GCC=yes
3368 else
3369 GCC=
3370 fi
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3375 if ${ac_cv_prog_cc_g+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3380 ac_cv_prog_cc_g=no
3381 CFLAGS="-g"
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_g=yes
3395 else
3396 CFLAGS=""
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409
3410 else
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3412 CFLAGS="-g"
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_prog_cc_g=yes
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3440 CFLAGS="-g -O2"
3441 else
3442 CFLAGS="-g"
3443 fi
3444 else
3445 if test "$GCC" = yes; then
3446 CFLAGS="-O2"
3447 else
3448 CFLAGS=
3449 fi
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if ${ac_cv_prog_cc_c89+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_cv_prog_cc_c89=no
3457 ac_save_CC=$CC
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3468 char **p;
3469 int i;
3470 {
3471 return p[i];
3472 }
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3474 {
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481 }
3482
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3494 #define FOO(x) 'x'
3495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501 int argc;
3502 char **argv;
3503 int
3504 main ()
3505 {
3506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 do
3514 CC="$ac_save_CC $ac_arg"
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_c89=$ac_arg
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext
3519 test "x$ac_cv_prog_cc_c89" != "xno" && break
3520 done
3521 rm -f conftest.$ac_ext
3522 CC=$ac_save_CC
3523
3524 fi
3525 # AC_CACHE_VAL
3526 case "x$ac_cv_prog_cc_c89" in
3527 x)
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3529 $as_echo "none needed" >&6; } ;;
3530 xno)
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3532 $as_echo "unsupported" >&6; } ;;
3533 *)
3534 CC="$CC $ac_cv_prog_cc_c89"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3537 esac
3538 if test "x$ac_cv_prog_cc_c89" != xno; then :
3539
3540 fi
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548 depcc="$CC" am_compiler_list=
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3551 $as_echo_n "checking dependency style of $depcc... " >&6; }
3552 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3556 # We make a subdir and do the tests there. Otherwise we can end up
3557 # making bogus files that we don't know about and never remove. For
3558 # instance it was reported that on HP-UX the gcc test will end up
3559 # making a dummy file named `D' -- because `-MD' means `put the output
3560 # in D'.
3561 mkdir conftest.dir
3562 # Copy depcomp to subdir because otherwise we won't find it if we're
3563 # using a relative directory.
3564 cp "$am_depcomp" conftest.dir
3565 cd conftest.dir
3566 # We will build objects and dependencies in a subdirectory because
3567 # it helps to detect inapplicable dependency modes. For instance
3568 # both Tru64's cc and ICC support -MD to output dependencies as a
3569 # side effect of compilation, but ICC will put the dependencies in
3570 # the current directory while Tru64 will put them in the object
3571 # directory.
3572 mkdir sub
3573
3574 am_cv_CC_dependencies_compiler_type=none
3575 if test "$am_compiler_list" = ""; then
3576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577 fi
3578 am__universal=false
3579 case " $depcc " in #(
3580 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3581 esac
3582
3583 for depmode in $am_compiler_list; do
3584 # Setup a source with many dependencies, because some compilers
3585 # like to wrap large dependency lists on column 80 (with \), and
3586 # we should not choose a depcomp mode which is confused by this.
3587 #
3588 # We need to recreate these files for each test, as the compiler may
3589 # overwrite some of them when testing with obscure command lines.
3590 # This happens at least with the AIX C compiler.
3591 : > sub/conftest.c
3592 for i in 1 2 3 4 5 6; do
3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595 # Solaris 8's {/usr,}/bin/sh.
3596 touch sub/conftst$i.h
3597 done
3598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3599
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this. Also, some Intel
3603 # versions had trouble with output in subdirs
3604 am__obj=sub/conftest.${OBJEXT-o}
3605 am__minus_obj="-o $am__obj"
3606 case $depmode in
3607 gcc)
3608 # This depmode causes a compiler race in universal mode.
3609 test "$am__universal" = false || continue
3610 ;;
3611 nosideeffect)
3612 # after this tag, mechanisms are not by side-effect, so they'll
3613 # only be used when explicitly requested
3614 if test "x$enable_dependency_tracking" = xyes; then
3615 continue
3616 else
3617 break
3618 fi
3619 ;;
3620 msvisualcpp | msvcmsys)
3621 # This compiler won't grok `-c -o', but also, the minuso test has
3622 # not run yet. These depmodes are late enough in the game, and
3623 # so weak that their functioning should not be impacted.
3624 am__obj=conftest.${OBJEXT-o}
3625 am__minus_obj=
3626 ;;
3627 none) break ;;
3628 esac
3629 if depmode=$depmode \
3630 source=sub/conftest.c object=$am__obj \
3631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3633 >/dev/null 2>conftest.err &&
3634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3638 # icc doesn't choke on unknown options, it will just issue warnings
3639 # or remarks (even with -Werror). So we grep stderr for any message
3640 # that says an option was ignored or not supported.
3641 # When given -MP, icc 7.0 and 7.1 complain thusly:
3642 # icc: Command line warning: ignoring option '-M'; no argument required
3643 # The diagnosis changed in icc 8.0:
3644 # icc: Command line remark: option '-MP' not supported
3645 if (grep 'ignoring option' conftest.err ||
3646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3647 am_cv_CC_dependencies_compiler_type=$depmode
3648 break
3649 fi
3650 fi
3651 done
3652
3653 cd ..
3654 rm -rf conftest.dir
3655 else
3656 am_cv_CC_dependencies_compiler_type=none
3657 fi
3658
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3661 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663
3664 if
3665 test "x$enable_dependency_tracking" != xno \
3666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3667 am__fastdepCC_TRUE=
3668 am__fastdepCC_FALSE='#'
3669 else
3670 am__fastdepCC_TRUE='#'
3671 am__fastdepCC_FALSE=
3672 fi
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3676 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3677 if ${ac_cv_prog_cc_c99+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_cv_prog_cc_c99=no
3681 ac_save_CC=$CC
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <stdarg.h>
3685 #include <stdbool.h>
3686 #include <stdlib.h>
3687 #include <wchar.h>
3688 #include <stdio.h>
3689
3690 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3691 #define debug(...) fprintf (stderr, __VA_ARGS__)
3692 #define showlist(...) puts (#__VA_ARGS__)
3693 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3694 static void
3695 test_varargs_macros (void)
3696 {
3697 int x = 1234;
3698 int y = 5678;
3699 debug ("Flag");
3700 debug ("X = %d\n", x);
3701 showlist (The first, second, and third items.);
3702 report (x>y, "x is %d but y is %d", x, y);
3703 }
3704
3705 // Check long long types.
3706 #define BIG64 18446744073709551615ull
3707 #define BIG32 4294967295ul
3708 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3709 #if !BIG_OK
3710 your preprocessor is broken;
3711 #endif
3712 #if BIG_OK
3713 #else
3714 your preprocessor is broken;
3715 #endif
3716 static long long int bignum = -9223372036854775807LL;
3717 static unsigned long long int ubignum = BIG64;
3718
3719 struct incomplete_array
3720 {
3721 int datasize;
3722 double data[];
3723 };
3724
3725 struct named_init {
3726 int number;
3727 const wchar_t *name;
3728 double average;
3729 };
3730
3731 typedef const char *ccp;
3732
3733 static inline int
3734 test_restrict (ccp restrict text)
3735 {
3736 // See if C++-style comments work.
3737 // Iterate through items via the restricted pointer.
3738 // Also check for declarations in for loops.
3739 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3740 continue;
3741 return 0;
3742 }
3743
3744 // Check varargs and va_copy.
3745 static void
3746 test_varargs (const char *format, ...)
3747 {
3748 va_list args;
3749 va_start (args, format);
3750 va_list args_copy;
3751 va_copy (args_copy, args);
3752
3753 const char *str;
3754 int number;
3755 float fnumber;
3756
3757 while (*format)
3758 {
3759 switch (*format++)
3760 {
3761 case 's': // string
3762 str = va_arg (args_copy, const char *);
3763 break;
3764 case 'd': // int
3765 number = va_arg (args_copy, int);
3766 break;
3767 case 'f': // float
3768 fnumber = va_arg (args_copy, double);
3769 break;
3770 default:
3771 break;
3772 }
3773 }
3774 va_end (args_copy);
3775 va_end (args);
3776 }
3777
3778 int
3779 main ()
3780 {
3781
3782 // Check bool.
3783 _Bool success = false;
3784
3785 // Check restrict.
3786 if (test_restrict ("String literal") == 0)
3787 success = true;
3788 char *restrict newvar = "Another string";
3789
3790 // Check varargs.
3791 test_varargs ("s, d' f .", "string", 65, 34.234);
3792 test_varargs_macros ();
3793
3794 // Check flexible array members.
3795 struct incomplete_array *ia =
3796 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3797 ia->datasize = 10;
3798 for (int i = 0; i < ia->datasize; ++i)
3799 ia->data[i] = i * 1.234;
3800
3801 // Check named initializers.
3802 struct named_init ni = {
3803 .number = 34,
3804 .name = L"Test wide string",
3805 .average = 543.34343,
3806 };
3807
3808 ni.number = 58;
3809
3810 int dynamic_array[ni.number];
3811 dynamic_array[ni.number - 1] = 543;
3812
3813 // work around unused variable warnings
3814 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3815 || dynamic_array[ni.number - 1] != 543);
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3822 do
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c99=$ac_arg
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c99" != "xno" && break
3829 done
3830 rm -f conftest.$ac_ext
3831 CC=$ac_save_CC
3832
3833 fi
3834 # AC_CACHE_VAL
3835 case "x$ac_cv_prog_cc_c99" in
3836 x)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3839 xno)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3842 *)
3843 CC="$CC $ac_cv_prog_cc_c99"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3845 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3846 esac
3847 if test "x$ac_cv_prog_cc_c99" != xno; then :
3848
3849 fi
3850
3851
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3862 CPP=
3863 fi
3864 if test -z "$CPP"; then
3865 if ${ac_cv_prog_CPP+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 # Double quotes because CPP needs to be expanded
3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3870 do
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3873 do
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #ifdef __STDC__
3883 # include <limits.h>
3884 #else
3885 # include <assert.h>
3886 #endif
3887 Syntax error
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3890
3891 else
3892 # Broken: fails on valid input.
3893 continue
3894 fi
3895 rm -f conftest.err conftest.i conftest.$ac_ext
3896
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3905 continue
3906 else
3907 # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3910 fi
3911 rm -f conftest.err conftest.i conftest.$ac_ext
3912
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.i conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3917 break
3918 fi
3919
3920 done
3921 ac_cv_prog_CPP=$CPP
3922
3923 fi
3924 CPP=$ac_cv_prog_CPP
3925 else
3926 ac_cv_prog_CPP=$CPP
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3929 $as_echo "$CPP" >&6; }
3930 ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3932 do
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #ifdef __STDC__
3942 # include <limits.h>
3943 #else
3944 # include <assert.h>
3945 #endif
3946 Syntax error
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3949
3950 else
3951 # Broken: fails on valid input.
3952 continue
3953 fi
3954 rm -f conftest.err conftest.i conftest.$ac_ext
3955
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3964 continue
3965 else
3966 # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970 rm -f conftest.err conftest.i conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.i conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3976
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3993 if ${ac_cv_path_GREP+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -z "$GREP"; then
3997 ac_path_GREP_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in grep ggrep; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4008 # Check for GNU ac_path_GREP and select it if it is found.
4009 # Check for GNU $ac_path_GREP
4010 case `"$ac_path_GREP" --version 2>&1` in
4011 *GNU*)
4012 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4013 *)
4014 ac_count=0
4015 $as_echo_n 0123456789 >"conftest.in"
4016 while :
4017 do
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'GREP' >> "conftest.nl"
4022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 as_fn_arith $ac_count + 1 && ac_count=$as_val
4025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_GREP="$ac_path_GREP"
4028 ac_path_GREP_max=$ac_count
4029 fi
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4032 done
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 esac
4035
4036 $ac_path_GREP_found && break 3
4037 done
4038 done
4039 done
4040 IFS=$as_save_IFS
4041 if test -z "$ac_cv_path_GREP"; then
4042 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4043 fi
4044 else
4045 ac_cv_path_GREP=$GREP
4046 fi
4047
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4050 $as_echo "$ac_cv_path_GREP" >&6; }
4051 GREP="$ac_cv_path_GREP"
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4055 $as_echo_n "checking for egrep... " >&6; }
4056 if ${ac_cv_path_EGREP+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4060 then ac_cv_path_EGREP="$GREP -E"
4061 else
4062 if test -z "$EGREP"; then
4063 ac_path_EGREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in egrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4074 # Check for GNU ac_path_EGREP and select it if it is found.
4075 # Check for GNU $ac_path_EGREP
4076 case `"$ac_path_EGREP" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4079 *)
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'EGREP' >> "conftest.nl"
4088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
4091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_EGREP="$ac_path_EGREP"
4094 ac_path_EGREP_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102 $ac_path_EGREP_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_EGREP"; then
4108 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4109 fi
4110 else
4111 ac_cv_path_EGREP=$EGREP
4112 fi
4113
4114 fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4122 $as_echo_n "checking for ANSI C header files... " >&6; }
4123 if ${ac_cv_header_stdc+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <stdlib.h>
4129 #include <stdarg.h>
4130 #include <string.h>
4131 #include <float.h>
4132
4133 int
4134 main ()
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_header_stdc=yes
4143 else
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <string.h>
4153
4154 _ACEOF
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "memchr" >/dev/null 2>&1; then :
4157
4158 else
4159 ac_cv_header_stdc=no
4160 fi
4161 rm -f conftest*
4162
4163 fi
4164
4165 if test $ac_cv_header_stdc = yes; then
4166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4170
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev/null 2>&1; then :
4174
4175 else
4176 ac_cv_header_stdc=no
4177 fi
4178 rm -f conftest*
4179
4180 fi
4181
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then :
4185 :
4186 else
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <ctype.h>
4190 #include <stdlib.h>
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194 #else
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #endif
4201
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 int
4204 main ()
4205 {
4206 int i;
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4210 return 2;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_c_try_run "$LINENO"; then :
4215
4216 else
4217 ac_cv_header_stdc=no
4218 fi
4219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4220 conftest.$ac_objext conftest.beam conftest.$ac_ext
4221 fi
4222
4223 fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4226 $as_echo "$ac_cv_header_stdc" >&6; }
4227 if test $ac_cv_header_stdc = yes; then
4228
4229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4230
4231 fi
4232
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4235 inttypes.h stdint.h unistd.h
4236 do :
4237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4239 "
4240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4241 cat >>confdefs.h <<_ACEOF
4242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4243 _ACEOF
4244
4245 fi
4246
4247 done
4248
4249
4250
4251
4252
4253
4254 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4255 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4256 CLANGCC="yes"
4257 else
4258 CLANGCC="no"
4259 fi
4260
4261 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4262 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4263 INTELCC="yes"
4264 else
4265 INTELCC="no"
4266 fi
4267
4268 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4269 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4270 SUNCC="yes"
4271 else
4272 SUNCC="no"
4273 fi
4274
4275
4276
4277
4278 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4279 if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4281 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 case $PKG_CONFIG in
4288 [\\/]* | ?:[\\/]*)
4289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4290 ;;
4291 *)
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 ;;
4308 esac
4309 fi
4310 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4311 if test -n "$PKG_CONFIG"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4313 $as_echo "$PKG_CONFIG" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320 fi
4321 if test -z "$ac_cv_path_PKG_CONFIG"; then
4322 ac_pt_PKG_CONFIG=$PKG_CONFIG
4323 # Extract the first word of "pkg-config", so it can be a program name with args.
4324 set dummy pkg-config; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 case $ac_pt_PKG_CONFIG in
4331 [\\/]* | ?:[\\/]*)
4332 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4333 ;;
4334 *)
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4345 fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 ;;
4351 esac
4352 fi
4353 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4354 if test -n "$ac_pt_PKG_CONFIG"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4356 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362 if test "x$ac_pt_PKG_CONFIG" = x; then
4363 PKG_CONFIG=""
4364 else
4365 case $cross_compiling:$ac_tool_warned in
4366 yes:)
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369 ac_tool_warned=yes ;;
4370 esac
4371 PKG_CONFIG=$ac_pt_PKG_CONFIG
4372 fi
4373 else
4374 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4375 fi
4376
4377 fi
4378 if test -n "$PKG_CONFIG"; then
4379 _pkg_min_version=0.9.0
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4381 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4382 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 PKG_CONFIG=""
4389 fi
4390
4391 fi
4392 # Make sure we can run config.sub.
4393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4394 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4397 $as_echo_n "checking build system type... " >&6; }
4398 if ${ac_cv_build+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 ac_build_alias=$build_alias
4402 test "x$ac_build_alias" = x &&
4403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4404 test "x$ac_build_alias" = x &&
4405 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4408
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4411 $as_echo "$ac_cv_build" >&6; }
4412 case $ac_cv_build in
4413 *-*-*) ;;
4414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4415 esac
4416 build=$ac_cv_build
4417 ac_save_IFS=$IFS; IFS='-'
4418 set x $ac_cv_build
4419 shift
4420 build_cpu=$1
4421 build_vendor=$2
4422 shift; shift
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4425 build_os=$*
4426 IFS=$ac_save_IFS
4427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4431 $as_echo_n "checking host system type... " >&6; }
4432 if ${ac_cv_host+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test "x$host_alias" = x; then
4436 ac_cv_host=$ac_cv_build
4437 else
4438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4440 fi
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4444 $as_echo "$ac_cv_host" >&6; }
4445 case $ac_cv_host in
4446 *-*-*) ;;
4447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4448 esac
4449 host=$ac_cv_host
4450 ac_save_IFS=$IFS; IFS='-'
4451 set x $ac_cv_host
4452 shift
4453 host_cpu=$1
4454 host_vendor=$2
4455 shift; shift
4456 # Remember, the first character of IFS is used to create $*,
4457 # except with old shells:
4458 host_os=$*
4459 IFS=$ac_save_IFS
4460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4465 if ${ac_cv_path_SED+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4469 for ac_i in 1 2 3 4 5 6 7; do
4470 ac_script="$ac_script$as_nl$ac_script"
4471 done
4472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4473 { ac_script=; unset ac_script;}
4474 if test -z "$SED"; then
4475 ac_path_SED_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in sed gsed; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4486 # Check for GNU ac_path_SED and select it if it is found.
4487 # Check for GNU $ac_path_SED
4488 case `"$ac_path_SED" --version 2>&1` in
4489 *GNU*)
4490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4491 *)
4492 ac_count=0
4493 $as_echo_n 0123456789 >"conftest.in"
4494 while :
4495 do
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo '' >> "conftest.nl"
4500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 as_fn_arith $ac_count + 1 && ac_count=$as_val
4503 if test $ac_count -gt ${ac_path_SED_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_SED="$ac_path_SED"
4506 ac_path_SED_max=$ac_count
4507 fi
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4510 done
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 esac
4513
4514 $ac_path_SED_found && break 3
4515 done
4516 done
4517 done
4518 IFS=$as_save_IFS
4519 if test -z "$ac_cv_path_SED"; then
4520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4521 fi
4522 else
4523 ac_cv_path_SED=$SED
4524 fi
4525
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4528 $as_echo "$ac_cv_path_SED" >&6; }
4529 SED="$ac_cv_path_SED"
4530 rm -f conftest.sed
4531
4532
4533
4534
4535
4536
4537 # Check whether --enable-selective-werror was given.
4538 if test "${enable_selective_werror+set}" = set; then :
4539 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4540 else
4541 SELECTIVE_WERROR=yes
4542 fi
4543
4544
4545
4546
4547
4548 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4549 if test "x$SUNCC" = "xyes"; then
4550 BASE_CFLAGS="-v"
4551 else
4552 BASE_CFLAGS=""
4553 fi
4554
4555 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 xorg_testset_save_CFLAGS="$CFLAGS"
4570
4571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 int i;
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 xorg_cv_cc_flag_unknown_warning_option=yes
4584 else
4585 xorg_cv_cc_flag_unknown_warning_option=no
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4592 CFLAGS="$xorg_testset_save_CFLAGS"
4593 fi
4594
4595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4598 fi
4599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 int i;
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 xorg_cv_cc_flag_unused_command_line_argument=yes
4611 else
4612 xorg_cv_cc_flag_unused_command_line_argument=no
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4619 CFLAGS="$xorg_testset_save_CFLAGS"
4620 fi
4621
4622 found="no"
4623
4624 if test $found = "no" ; then
4625 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627 fi
4628
4629 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4631 fi
4632
4633 CFLAGS="$CFLAGS -Wall"
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4636 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4637 cacheid=xorg_cv_cc_flag__Wall
4638 if eval \${$cacheid+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 int i;
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_link "$LINENO"; then :
4653 eval $cacheid=yes
4654 else
4655 eval $cacheid=no
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext \
4658 conftest$ac_exeext conftest.$ac_ext
4659 fi
4660
4661
4662 CFLAGS="$xorg_testset_save_CFLAGS"
4663
4664 eval supported=\$$cacheid
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4666 $as_echo "$supported" >&6; }
4667 if test "$supported" = "yes" ; then
4668 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4669 found="yes"
4670 fi
4671 fi
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687 xorg_testset_save_CFLAGS="$CFLAGS"
4688
4689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 int i;
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 xorg_cv_cc_flag_unknown_warning_option=yes
4702 else
4703 xorg_cv_cc_flag_unknown_warning_option=no
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4710 CFLAGS="$xorg_testset_save_CFLAGS"
4711 fi
4712
4713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4716 fi
4717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 int i;
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 xorg_cv_cc_flag_unused_command_line_argument=yes
4729 else
4730 xorg_cv_cc_flag_unused_command_line_argument=no
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4737 CFLAGS="$xorg_testset_save_CFLAGS"
4738 fi
4739
4740 found="no"
4741
4742 if test $found = "no" ; then
4743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4745 fi
4746
4747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4749 fi
4750
4751 CFLAGS="$CFLAGS -Wpointer-arith"
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4754 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4755 cacheid=xorg_cv_cc_flag__Wpointer_arith
4756 if eval \${$cacheid+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 int i;
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_link "$LINENO"; then :
4771 eval $cacheid=yes
4772 else
4773 eval $cacheid=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
4777 fi
4778
4779
4780 CFLAGS="$xorg_testset_save_CFLAGS"
4781
4782 eval supported=\$$cacheid
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4784 $as_echo "$supported" >&6; }
4785 if test "$supported" = "yes" ; then
4786 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4787 found="yes"
4788 fi
4789 fi
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 xorg_testset_save_CFLAGS="$CFLAGS"
4806
4807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 int i;
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 xorg_cv_cc_flag_unknown_warning_option=yes
4820 else
4821 xorg_cv_cc_flag_unknown_warning_option=no
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4828 CFLAGS="$xorg_testset_save_CFLAGS"
4829 fi
4830
4831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4834 fi
4835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 int i;
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 xorg_cv_cc_flag_unused_command_line_argument=yes
4847 else
4848 xorg_cv_cc_flag_unused_command_line_argument=no
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4855 CFLAGS="$xorg_testset_save_CFLAGS"
4856 fi
4857
4858 found="no"
4859
4860 if test $found = "no" ; then
4861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863 fi
4864
4865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4867 fi
4868
4869 CFLAGS="$CFLAGS -Wmissing-declarations"
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4872 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4873 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4874 if eval \${$cacheid+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 int i;
4880 int
4881 main ()
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_link "$LINENO"; then :
4889 eval $cacheid=yes
4890 else
4891 eval $cacheid=no
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895 fi
4896
4897
4898 CFLAGS="$xorg_testset_save_CFLAGS"
4899
4900 eval supported=\$$cacheid
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4902 $as_echo "$supported" >&6; }
4903 if test "$supported" = "yes" ; then
4904 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4905 found="yes"
4906 fi
4907 fi
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 xorg_testset_save_CFLAGS="$CFLAGS"
4924
4925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4928 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4929 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 int i;
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 xorg_cv_cc_flag_unknown_warning_option=yes
4938 else
4939 xorg_cv_cc_flag_unknown_warning_option=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4944 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4946 CFLAGS="$xorg_testset_save_CFLAGS"
4947 fi
4948
4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4952 fi
4953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4955 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4956 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 int i;
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 xorg_cv_cc_flag_unused_command_line_argument=yes
4965 else
4966 xorg_cv_cc_flag_unused_command_line_argument=no
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4971 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4973 CFLAGS="$xorg_testset_save_CFLAGS"
4974 fi
4975
4976 found="no"
4977
4978 if test $found = "no" ; then
4979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4981 fi
4982
4983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4985 fi
4986
4987 CFLAGS="$CFLAGS -Wformat=2"
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4990 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4991 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4992 if eval \${$cacheid+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 int i;
4998 int
4999 main ()
5000 {
5001
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_c_try_link "$LINENO"; then :
5007 eval $cacheid=yes
5008 else
5009 eval $cacheid=no
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext \
5012 conftest$ac_exeext conftest.$ac_ext
5013 fi
5014
5015
5016 CFLAGS="$xorg_testset_save_CFLAGS"
5017
5018 eval supported=\$$cacheid
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5020 $as_echo "$supported" >&6; }
5021 if test "$supported" = "yes" ; then
5022 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5023 found="yes"
5024 fi
5025 fi
5026
5027 if test $found = "no" ; then
5028 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030 fi
5031
5032 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034 fi
5035
5036 CFLAGS="$CFLAGS -Wformat"
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5039 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5040 cacheid=xorg_cv_cc_flag__Wformat
5041 if eval \${$cacheid+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 int
5048 main ()
5049 {
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_c_try_link "$LINENO"; then :
5056 eval $cacheid=yes
5057 else
5058 eval $cacheid=no
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
5062 fi
5063
5064
5065 CFLAGS="$xorg_testset_save_CFLAGS"
5066
5067 eval supported=\$$cacheid
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5069 $as_echo "$supported" >&6; }
5070 if test "$supported" = "yes" ; then
5071 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5072 found="yes"
5073 fi
5074 fi
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 xorg_testset_save_CFLAGS="$CFLAGS"
5093
5094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 xorg_cv_cc_flag_unknown_warning_option=yes
5107 else
5108 xorg_cv_cc_flag_unknown_warning_option=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121 fi
5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 int i;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 xorg_cv_cc_flag_unused_command_line_argument=yes
5134 else
5135 xorg_cv_cc_flag_unused_command_line_argument=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5142 CFLAGS="$xorg_testset_save_CFLAGS"
5143 fi
5144
5145 found="no"
5146
5147 if test $found = "no" ; then
5148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 fi
5151
5152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5154 fi
5155
5156 CFLAGS="$CFLAGS -Wstrict-prototypes"
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5159 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5160 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5161 if eval \${$cacheid+:} 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 int
5168 main ()
5169 {
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_link "$LINENO"; then :
5176 eval $cacheid=yes
5177 else
5178 eval $cacheid=no
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5182 fi
5183
5184
5185 CFLAGS="$xorg_testset_save_CFLAGS"
5186
5187 eval supported=\$$cacheid
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5189 $as_echo "$supported" >&6; }
5190 if test "$supported" = "yes" ; then
5191 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5192 found="yes"
5193 fi
5194 fi
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210 xorg_testset_save_CFLAGS="$CFLAGS"
5211
5212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5215 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5216 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 xorg_cv_cc_flag_unknown_warning_option=yes
5225 else
5226 xorg_cv_cc_flag_unknown_warning_option=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5231 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234 fi
5235
5236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239 fi
5240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5242 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5243 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 xorg_cv_cc_flag_unused_command_line_argument=yes
5252 else
5253 xorg_cv_cc_flag_unused_command_line_argument=no
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5258 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5260 CFLAGS="$xorg_testset_save_CFLAGS"
5261 fi
5262
5263 found="no"
5264
5265 if test $found = "no" ; then
5266 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 fi
5269
5270 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5272 fi
5273
5274 CFLAGS="$CFLAGS -Wmissing-prototypes"
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5277 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5278 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5279 if eval \${$cacheid+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 int i;
5285 int
5286 main ()
5287 {
5288
5289 ;
5290 return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_link "$LINENO"; then :
5294 eval $cacheid=yes
5295 else
5296 eval $cacheid=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 fi
5301
5302
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5304
5305 eval supported=\$$cacheid
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5307 $as_echo "$supported" >&6; }
5308 if test "$supported" = "yes" ; then
5309 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5310 found="yes"
5311 fi
5312 fi
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328 xorg_testset_save_CFLAGS="$CFLAGS"
5329
5330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 int i;
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 xorg_cv_cc_flag_unknown_warning_option=yes
5343 else
5344 xorg_cv_cc_flag_unknown_warning_option=no
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5351 CFLAGS="$xorg_testset_save_CFLAGS"
5352 fi
5353
5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357 fi
5358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 int i;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 xorg_cv_cc_flag_unused_command_line_argument=yes
5370 else
5371 xorg_cv_cc_flag_unused_command_line_argument=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5378 CFLAGS="$xorg_testset_save_CFLAGS"
5379 fi
5380
5381 found="no"
5382
5383 if test $found = "no" ; then
5384 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 fi
5387
5388 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5390 fi
5391
5392 CFLAGS="$CFLAGS -Wnested-externs"
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5395 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5396 cacheid=xorg_cv_cc_flag__Wnested_externs
5397 if eval \${$cacheid+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 int i;
5403 int
5404 main ()
5405 {
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_link "$LINENO"; then :
5412 eval $cacheid=yes
5413 else
5414 eval $cacheid=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext \
5417 conftest$ac_exeext conftest.$ac_ext
5418 fi
5419
5420
5421 CFLAGS="$xorg_testset_save_CFLAGS"
5422
5423 eval supported=\$$cacheid
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5425 $as_echo "$supported" >&6; }
5426 if test "$supported" = "yes" ; then
5427 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5428 found="yes"
5429 fi
5430 fi
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 xorg_testset_save_CFLAGS="$CFLAGS"
5447
5448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int i;
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 xorg_cv_cc_flag_unknown_warning_option=yes
5461 else
5462 xorg_cv_cc_flag_unknown_warning_option=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5469 CFLAGS="$xorg_testset_save_CFLAGS"
5470 fi
5471
5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475 fi
5476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 int i;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 xorg_cv_cc_flag_unused_command_line_argument=yes
5488 else
5489 xorg_cv_cc_flag_unused_command_line_argument=no
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5496 CFLAGS="$xorg_testset_save_CFLAGS"
5497 fi
5498
5499 found="no"
5500
5501 if test $found = "no" ; then
5502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504 fi
5505
5506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5508 fi
5509
5510 CFLAGS="$CFLAGS -Wbad-function-cast"
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5513 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5514 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5515 if eval \${$cacheid+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 int i;
5521 int
5522 main ()
5523 {
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_link "$LINENO"; then :
5530 eval $cacheid=yes
5531 else
5532 eval $cacheid=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext \
5535 conftest$ac_exeext conftest.$ac_ext
5536 fi
5537
5538
5539 CFLAGS="$xorg_testset_save_CFLAGS"
5540
5541 eval supported=\$$cacheid
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5543 $as_echo "$supported" >&6; }
5544 if test "$supported" = "yes" ; then
5545 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5546 found="yes"
5547 fi
5548 fi
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 xorg_testset_save_CFLAGS="$CFLAGS"
5565
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 int i;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 xorg_cv_cc_flag_unknown_warning_option=yes
5579 else
5580 xorg_cv_cc_flag_unknown_warning_option=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5588 fi
5589
5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5593 fi
5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 int i;
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 xorg_cv_cc_flag_unused_command_line_argument=yes
5606 else
5607 xorg_cv_cc_flag_unused_command_line_argument=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5615 fi
5616
5617 found="no"
5618
5619 if test $found = "no" ; then
5620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622 fi
5623
5624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5626 fi
5627
5628 CFLAGS="$CFLAGS -Wold-style-definition"
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5631 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5632 cacheid=xorg_cv_cc_flag__Wold_style_definition
5633 if eval \${$cacheid+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 int i;
5639 int
5640 main ()
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 eval $cacheid=yes
5649 else
5650 eval $cacheid=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 fi
5655
5656
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5658
5659 eval supported=\$$cacheid
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5661 $as_echo "$supported" >&6; }
5662 if test "$supported" = "yes" ; then
5663 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5664 found="yes"
5665 fi
5666 fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 xorg_testset_save_CFLAGS="$CFLAGS"
5683
5684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5688 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 xorg_cv_cc_flag_unknown_warning_option=yes
5697 else
5698 xorg_cv_cc_flag_unknown_warning_option=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5705 CFLAGS="$xorg_testset_save_CFLAGS"
5706 fi
5707
5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5711 fi
5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 int i;
5721 _ACEOF
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 xorg_cv_cc_flag_unused_command_line_argument=yes
5724 else
5725 xorg_cv_cc_flag_unused_command_line_argument=no
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5732 CFLAGS="$xorg_testset_save_CFLAGS"
5733 fi
5734
5735 found="no"
5736
5737 if test $found = "no" ; then
5738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740 fi
5741
5742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5744 fi
5745
5746 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5749 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5750 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5751 if eval \${$cacheid+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 int
5758 main ()
5759 {
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_link "$LINENO"; then :
5766 eval $cacheid=yes
5767 else
5768 eval $cacheid=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext \
5771 conftest$ac_exeext conftest.$ac_ext
5772 fi
5773
5774
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776
5777 eval supported=\$$cacheid
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5779 $as_echo "$supported" >&6; }
5780 if test "$supported" = "yes" ; then
5781 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5782 found="yes"
5783 fi
5784 fi
5785
5786
5787
5788
5789
5790 # This chunk adds additional warnings that could catch undesired effects.
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 xorg_cv_cc_flag_unknown_warning_option=yes
5819 else
5820 xorg_cv_cc_flag_unknown_warning_option=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828 fi
5829
5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 fi
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 xorg_cv_cc_flag_unused_command_line_argument=yes
5846 else
5847 xorg_cv_cc_flag_unused_command_line_argument=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5855 fi
5856
5857 found="no"
5858
5859 if test $found = "no" ; then
5860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 fi
5863
5864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 fi
5867
5868 CFLAGS="$CFLAGS -Wunused"
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5871 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5872 cacheid=xorg_cv_cc_flag__Wunused
5873 if eval \${$cacheid+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 int i;
5879 int
5880 main ()
5881 {
5882
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 eval $cacheid=yes
5889 else
5890 eval $cacheid=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 fi
5895
5896
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899 eval supported=\$$cacheid
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901 $as_echo "$supported" >&6; }
5902 if test "$supported" = "yes" ; then
5903 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5904 found="yes"
5905 fi
5906 fi
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922 xorg_testset_save_CFLAGS="$CFLAGS"
5923
5924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 xorg_cv_cc_flag_unknown_warning_option=yes
5937 else
5938 xorg_cv_cc_flag_unknown_warning_option=no
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5945 CFLAGS="$xorg_testset_save_CFLAGS"
5946 fi
5947
5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951 fi
5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
5964 else
5965 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
5970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5973 fi
5974
5975 found="no"
5976
5977 if test $found = "no" ; then
5978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980 fi
5981
5982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984 fi
5985
5986 CFLAGS="$CFLAGS -Wuninitialized"
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5989 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5990 cacheid=xorg_cv_cc_flag__Wuninitialized
5991 if eval \${$cacheid+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 int
5998 main ()
5999 {
6000
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"; then :
6006 eval $cacheid=yes
6007 else
6008 eval $cacheid=no
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6012 fi
6013
6014
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6016
6017 eval supported=\$$cacheid
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6019 $as_echo "$supported" >&6; }
6020 if test "$supported" = "yes" ; then
6021 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6022 found="yes"
6023 fi
6024 fi
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040 xorg_testset_save_CFLAGS="$CFLAGS"
6041
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"; then :
6054 xorg_cv_cc_flag_unknown_warning_option=yes
6055 else
6056 xorg_cv_cc_flag_unknown_warning_option=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 fi
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6063 CFLAGS="$xorg_testset_save_CFLAGS"
6064 fi
6065
6066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069 fi
6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 int i;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 xorg_cv_cc_flag_unused_command_line_argument=yes
6082 else
6083 xorg_cv_cc_flag_unused_command_line_argument=no
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6090 CFLAGS="$xorg_testset_save_CFLAGS"
6091 fi
6092
6093 found="no"
6094
6095 if test $found = "no" ; then
6096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098 fi
6099
6100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6102 fi
6103
6104 CFLAGS="$CFLAGS -Wshadow"
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6107 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6108 cacheid=xorg_cv_cc_flag__Wshadow
6109 if eval \${$cacheid+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 int i;
6115 int
6116 main ()
6117 {
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_link "$LINENO"; then :
6124 eval $cacheid=yes
6125 else
6126 eval $cacheid=no
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 fi
6131
6132
6133 CFLAGS="$xorg_testset_save_CFLAGS"
6134
6135 eval supported=\$$cacheid
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6137 $as_echo "$supported" >&6; }
6138 if test "$supported" = "yes" ; then
6139 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6140 found="yes"
6141 fi
6142 fi
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 xorg_testset_save_CFLAGS="$CFLAGS"
6159
6160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 xorg_cv_cc_flag_unknown_warning_option=yes
6173 else
6174 xorg_cv_cc_flag_unknown_warning_option=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6182 fi
6183
6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187 fi
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 int i;
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 xorg_cv_cc_flag_unused_command_line_argument=yes
6200 else
6201 xorg_cv_cc_flag_unused_command_line_argument=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6209 fi
6210
6211 found="no"
6212
6213 if test $found = "no" ; then
6214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 fi
6217
6218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220 fi
6221
6222 CFLAGS="$CFLAGS -Wcast-qual"
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6225 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6226 cacheid=xorg_cv_cc_flag__Wcast_qual
6227 if eval \${$cacheid+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 int i;
6233 int
6234 main ()
6235 {
6236
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_link "$LINENO"; then :
6242 eval $cacheid=yes
6243 else
6244 eval $cacheid=no
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6248 fi
6249
6250
6251 CFLAGS="$xorg_testset_save_CFLAGS"
6252
6253 eval supported=\$$cacheid
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6255 $as_echo "$supported" >&6; }
6256 if test "$supported" = "yes" ; then
6257 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6258 found="yes"
6259 fi
6260 fi
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 xorg_testset_save_CFLAGS="$CFLAGS"
6277
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 int i;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 xorg_cv_cc_flag_unknown_warning_option=yes
6291 else
6292 xorg_cv_cc_flag_unknown_warning_option=no
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6300 fi
6301
6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 fi
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 xorg_cv_cc_flag_unused_command_line_argument=yes
6318 else
6319 xorg_cv_cc_flag_unused_command_line_argument=no
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6327 fi
6328
6329 found="no"
6330
6331 if test $found = "no" ; then
6332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335
6336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 fi
6339
6340 CFLAGS="$CFLAGS -Wmissing-noreturn"
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6343 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6344 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6345 if eval \${$cacheid+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 int
6352 main ()
6353 {
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 eval $cacheid=yes
6361 else
6362 eval $cacheid=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 fi
6367
6368
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370
6371 eval supported=\$$cacheid
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373 $as_echo "$supported" >&6; }
6374 if test "$supported" = "yes" ; then
6375 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6376 found="yes"
6377 fi
6378 fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_cv_cc_flag_unknown_warning_option=yes
6409 else
6410 xorg_cv_cc_flag_unknown_warning_option=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6418 fi
6419
6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423 fi
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 int i;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 xorg_cv_cc_flag_unused_command_line_argument=yes
6436 else
6437 xorg_cv_cc_flag_unused_command_line_argument=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445 fi
6446
6447 found="no"
6448
6449 if test $found = "no" ; then
6450 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 fi
6453
6454 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 fi
6457
6458 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6459
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6461 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6462 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6463 if eval \${$cacheid+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"; then :
6478 eval $cacheid=yes
6479 else
6480 eval $cacheid=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 fi
6485
6486
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488
6489 eval supported=\$$cacheid
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491 $as_echo "$supported" >&6; }
6492 if test "$supported" = "yes" ; then
6493 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6494 found="yes"
6495 fi
6496 fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 xorg_testset_save_CFLAGS="$CFLAGS"
6513
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 xorg_cv_cc_flag_unknown_warning_option=yes
6527 else
6528 xorg_cv_cc_flag_unknown_warning_option=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541 fi
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 int i;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 xorg_cv_cc_flag_unused_command_line_argument=yes
6554 else
6555 xorg_cv_cc_flag_unused_command_line_argument=no
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6562 CFLAGS="$xorg_testset_save_CFLAGS"
6563 fi
6564
6565 found="no"
6566
6567 if test $found = "no" ; then
6568 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570 fi
6571
6572 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6574 fi
6575
6576 CFLAGS="$CFLAGS -Wredundant-decls"
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6579 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6580 cacheid=xorg_cv_cc_flag__Wredundant_decls
6581 if eval \${$cacheid+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 int i;
6587 int
6588 main ()
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_link "$LINENO"; then :
6596 eval $cacheid=yes
6597 else
6598 eval $cacheid=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 fi
6603
6604
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606
6607 eval supported=\$$cacheid
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609 $as_echo "$supported" >&6; }
6610 if test "$supported" = "yes" ; then
6611 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6612 found="yes"
6613 fi
6614 fi
6615
6616
6617
6618 # These are currently disabled because they are noisy. They will be enabled
6619 # in the future once the codebase is sufficiently modernized to silence
6620 # them. For now, I don't want them to drown out the other warnings.
6621 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6622 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6623 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6624
6625 # Turn some warnings into errors, so we don't accidently get successful builds
6626 # when there are problems that should be fixed.
6627
6628 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 int i;
6654 _ACEOF
6655 if ac_fn_c_try_compile "$LINENO"; then :
6656 xorg_cv_cc_flag_unknown_warning_option=yes
6657 else
6658 xorg_cv_cc_flag_unknown_warning_option=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6663 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6665 CFLAGS="$xorg_testset_save_CFLAGS"
6666 fi
6667
6668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 fi
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6674 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6675 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 xorg_cv_cc_flag_unused_command_line_argument=yes
6684 else
6685 xorg_cv_cc_flag_unused_command_line_argument=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6690 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693 fi
6694
6695 found="no"
6696
6697 if test $found = "no" ; then
6698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6700 fi
6701
6702 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704 fi
6705
6706 CFLAGS="$CFLAGS -Werror=implicit"
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6709 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6710 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6711 if eval \${$cacheid+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 int i;
6717 int
6718 main ()
6719 {
6720
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 if ac_fn_c_try_link "$LINENO"; then :
6726 eval $cacheid=yes
6727 else
6728 eval $cacheid=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6732 fi
6733
6734
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736
6737 eval supported=\$$cacheid
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6739 $as_echo "$supported" >&6; }
6740 if test "$supported" = "yes" ; then
6741 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6742 found="yes"
6743 fi
6744 fi
6745
6746 if test $found = "no" ; then
6747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749 fi
6750
6751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753 fi
6754
6755 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6758 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6759 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6760 if eval \${$cacheid+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int i;
6766 int
6767 main ()
6768 {
6769
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 eval $cacheid=yes
6776 else
6777 eval $cacheid=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782
6783
6784 CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786 eval supported=\$$cacheid
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788 $as_echo "$supported" >&6; }
6789 if test "$supported" = "yes" ; then
6790 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6791 found="yes"
6792 fi
6793 fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int i;
6821 _ACEOF
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 xorg_cv_cc_flag_unknown_warning_option=yes
6824 else
6825 xorg_cv_cc_flag_unknown_warning_option=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6833 fi
6834
6835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6838 fi
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 int i;
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 xorg_cv_cc_flag_unused_command_line_argument=yes
6851 else
6852 xorg_cv_cc_flag_unused_command_line_argument=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6860 fi
6861
6862 found="no"
6863
6864 if test $found = "no" ; then
6865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867 fi
6868
6869 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 fi
6872
6873 CFLAGS="$CFLAGS -Werror=nonnull"
6874
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6876 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6877 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6878 if eval \${$cacheid+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 int
6885 main ()
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 eval $cacheid=yes
6894 else
6895 eval $cacheid=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 fi
6900
6901
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6903
6904 eval supported=\$$cacheid
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906 $as_echo "$supported" >&6; }
6907 if test "$supported" = "yes" ; then
6908 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6909 found="yes"
6910 fi
6911 fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 xorg_testset_save_CFLAGS="$CFLAGS"
6928
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6932 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6933 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int i;
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 xorg_cv_cc_flag_unknown_warning_option=yes
6942 else
6943 xorg_cv_cc_flag_unknown_warning_option=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6948 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6951 fi
6952
6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956 fi
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6960 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 int i;
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 xorg_cv_cc_flag_unused_command_line_argument=yes
6969 else
6970 xorg_cv_cc_flag_unused_command_line_argument=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 fi
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6975 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6978 fi
6979
6980 found="no"
6981
6982 if test $found = "no" ; then
6983 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 fi
6986
6987 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989 fi
6990
6991 CFLAGS="$CFLAGS -Werror=init-self"
6992
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6994 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6995 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6996 if eval \${$cacheid+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 int i;
7002 int
7003 main ()
7004 {
7005
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 if ac_fn_c_try_link "$LINENO"; then :
7011 eval $cacheid=yes
7012 else
7013 eval $cacheid=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7017 fi
7018
7019
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7021
7022 eval supported=\$$cacheid
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024 $as_echo "$supported" >&6; }
7025 if test "$supported" = "yes" ; then
7026 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7027 found="yes"
7028 fi
7029 fi
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045 xorg_testset_save_CFLAGS="$CFLAGS"
7046
7047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7050 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7051 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 int i;
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059 xorg_cv_cc_flag_unknown_warning_option=yes
7060 else
7061 xorg_cv_cc_flag_unknown_warning_option=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7066 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069 fi
7070
7071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074 fi
7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7077 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7078 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 int i;
7084 _ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 xorg_cv_cc_flag_unused_command_line_argument=yes
7087 else
7088 xorg_cv_cc_flag_unused_command_line_argument=no
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7093 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7095 CFLAGS="$xorg_testset_save_CFLAGS"
7096 fi
7097
7098 found="no"
7099
7100 if test $found = "no" ; then
7101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 fi
7104
7105 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107 fi
7108
7109 CFLAGS="$CFLAGS -Werror=main"
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7112 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7113 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7114 if eval \${$cacheid+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 int
7121 main ()
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_link "$LINENO"; then :
7129 eval $cacheid=yes
7130 else
7131 eval $cacheid=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135 fi
7136
7137
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140 eval supported=\$$cacheid
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142 $as_echo "$supported" >&6; }
7143 if test "$supported" = "yes" ; then
7144 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7145 found="yes"
7146 fi
7147 fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 int i;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 xorg_cv_cc_flag_unknown_warning_option=yes
7178 else
7179 xorg_cv_cc_flag_unknown_warning_option=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7187 fi
7188
7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192 fi
7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 int i;
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 xorg_cv_cc_flag_unused_command_line_argument=yes
7205 else
7206 xorg_cv_cc_flag_unused_command_line_argument=no
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7213 CFLAGS="$xorg_testset_save_CFLAGS"
7214 fi
7215
7216 found="no"
7217
7218 if test $found = "no" ; then
7219 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 fi
7222
7223 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225 fi
7226
7227 CFLAGS="$CFLAGS -Werror=missing-braces"
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7230 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7231 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7232 if eval \${$cacheid+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int i;
7238 int
7239 main ()
7240 {
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_link "$LINENO"; then :
7247 eval $cacheid=yes
7248 else
7249 eval $cacheid=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7253 fi
7254
7255
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257
7258 eval supported=\$$cacheid
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7260 $as_echo "$supported" >&6; }
7261 if test "$supported" = "yes" ; then
7262 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7263 found="yes"
7264 fi
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 xorg_testset_save_CFLAGS="$CFLAGS"
7282
7283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 xorg_cv_cc_flag_unknown_warning_option=yes
7296 else
7297 xorg_cv_cc_flag_unknown_warning_option=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 fi
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 int i;
7320 _ACEOF
7321 if ac_fn_c_try_compile "$LINENO"; then :
7322 xorg_cv_cc_flag_unused_command_line_argument=yes
7323 else
7324 xorg_cv_cc_flag_unused_command_line_argument=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 found="no"
7335
7336 if test $found = "no" ; then
7337 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 fi
7340
7341 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343 fi
7344
7345 CFLAGS="$CFLAGS -Werror=sequence-point"
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7348 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7349 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7350 if eval \${$cacheid+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 int
7357 main ()
7358 {
7359
7360 ;
7361 return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 eval $cacheid=yes
7366 else
7367 eval $cacheid=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 fi
7372
7373
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7375
7376 eval supported=\$$cacheid
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378 $as_echo "$supported" >&6; }
7379 if test "$supported" = "yes" ; then
7380 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7381 found="yes"
7382 fi
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 xorg_testset_save_CFLAGS="$CFLAGS"
7400
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7414 else
7415 xorg_cv_cc_flag_unknown_warning_option=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 fi
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 int i;
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 xorg_cv_cc_flag_unused_command_line_argument=yes
7441 else
7442 xorg_cv_cc_flag_unused_command_line_argument=no
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7450 fi
7451
7452 found="no"
7453
7454 if test $found = "no" ; then
7455 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457 fi
7458
7459 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461 fi
7462
7463 CFLAGS="$CFLAGS -Werror=return-type"
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7466 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7467 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7468 if eval \${$cacheid+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 eval $cacheid=yes
7484 else
7485 eval $cacheid=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 fi
7490
7491
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493
7494 eval supported=\$$cacheid
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496 $as_echo "$supported" >&6; }
7497 if test "$supported" = "yes" ; then
7498 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7499 found="yes"
7500 fi
7501 fi
7502
7503 if test $found = "no" ; then
7504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506 fi
7507
7508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7510 fi
7511
7512 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7515 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7516 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7517 if eval \${$cacheid+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 int
7524 main ()
7525 {
7526
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 if ac_fn_c_try_link "$LINENO"; then :
7532 eval $cacheid=yes
7533 else
7534 eval $cacheid=no
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 fi
7539
7540
7541 CFLAGS="$xorg_testset_save_CFLAGS"
7542
7543 eval supported=\$$cacheid
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7545 $as_echo "$supported" >&6; }
7546 if test "$supported" = "yes" ; then
7547 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7548 found="yes"
7549 fi
7550 fi
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 xorg_testset_save_CFLAGS="$CFLAGS"
7567
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 xorg_cv_cc_flag_unknown_warning_option=yes
7581 else
7582 xorg_cv_cc_flag_unknown_warning_option=no
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7589 CFLAGS="$xorg_testset_save_CFLAGS"
7590 fi
7591
7592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7595 fi
7596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 int i;
7605 _ACEOF
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 xorg_cv_cc_flag_unused_command_line_argument=yes
7608 else
7609 xorg_cv_cc_flag_unused_command_line_argument=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7616 CFLAGS="$xorg_testset_save_CFLAGS"
7617 fi
7618
7619 found="no"
7620
7621 if test $found = "no" ; then
7622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624 fi
7625
7626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628 fi
7629
7630 CFLAGS="$CFLAGS -Werror=trigraphs"
7631
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7633 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7634 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7635 if eval \${$cacheid+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 int
7642 main ()
7643 {
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"; then :
7650 eval $cacheid=yes
7651 else
7652 eval $cacheid=no
7653 fi
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 fi
7657
7658
7659 CFLAGS="$xorg_testset_save_CFLAGS"
7660
7661 eval supported=\$$cacheid
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7663 $as_echo "$supported" >&6; }
7664 if test "$supported" = "yes" ; then
7665 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7666 found="yes"
7667 fi
7668 fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 xorg_testset_save_CFLAGS="$CFLAGS"
7685
7686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695 int i;
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 xorg_cv_cc_flag_unknown_warning_option=yes
7699 else
7700 xorg_cv_cc_flag_unknown_warning_option=no
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7707 CFLAGS="$xorg_testset_save_CFLAGS"
7708 fi
7709
7710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7713 fi
7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 int i;
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725 xorg_cv_cc_flag_unused_command_line_argument=yes
7726 else
7727 xorg_cv_cc_flag_unused_command_line_argument=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7734 CFLAGS="$xorg_testset_save_CFLAGS"
7735 fi
7736
7737 found="no"
7738
7739 if test $found = "no" ; then
7740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742 fi
7743
7744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746 fi
7747
7748 CFLAGS="$CFLAGS -Werror=array-bounds"
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7751 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7752 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7753 if eval \${$cacheid+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 int i;
7759 int
7760 main ()
7761 {
7762
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768 eval $cacheid=yes
7769 else
7770 eval $cacheid=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 fi
7775
7776
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7778
7779 eval supported=\$$cacheid
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781 $as_echo "$supported" >&6; }
7782 if test "$supported" = "yes" ; then
7783 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7784 found="yes"
7785 fi
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 xorg_testset_save_CFLAGS="$CFLAGS"
7803
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 xorg_cv_cc_flag_unknown_warning_option=yes
7817 else
7818 xorg_cv_cc_flag_unknown_warning_option=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7826 fi
7827
7828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831 fi
7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 int i;
7841 _ACEOF
7842 if ac_fn_c_try_compile "$LINENO"; then :
7843 xorg_cv_cc_flag_unused_command_line_argument=yes
7844 else
7845 xorg_cv_cc_flag_unused_command_line_argument=no
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7852 CFLAGS="$xorg_testset_save_CFLAGS"
7853 fi
7854
7855 found="no"
7856
7857 if test $found = "no" ; then
7858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860 fi
7861
7862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7864 fi
7865
7866 CFLAGS="$CFLAGS -Werror=write-strings"
7867
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7869 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7871 if eval \${$cacheid+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 int i;
7877 int
7878 main ()
7879 {
7880
7881 ;
7882 return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_link "$LINENO"; then :
7886 eval $cacheid=yes
7887 else
7888 eval $cacheid=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 fi
7893
7894
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896
7897 eval supported=\$$cacheid
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899 $as_echo "$supported" >&6; }
7900 if test "$supported" = "yes" ; then
7901 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7902 found="yes"
7903 fi
7904 fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 xorg_cv_cc_flag_unknown_warning_option=yes
7935 else
7936 xorg_cv_cc_flag_unknown_warning_option=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7944 fi
7945
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 fi
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 int i;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 xorg_cv_cc_flag_unused_command_line_argument=yes
7962 else
7963 xorg_cv_cc_flag_unused_command_line_argument=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 found="no"
7974
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979
7980 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 fi
7983
7984 CFLAGS="$CFLAGS -Werror=address"
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7987 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7988 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7989 if eval \${$cacheid+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 int
7996 main ()
7997 {
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 eval $cacheid=yes
8005 else
8006 eval $cacheid=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 fi
8011
8012
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8014
8015 eval supported=\$$cacheid
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017 $as_echo "$supported" >&6; }
8018 if test "$supported" = "yes" ; then
8019 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8020 found="yes"
8021 fi
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 xorg_testset_save_CFLAGS="$CFLAGS"
8039
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8053 else
8054 xorg_cv_cc_flag_unknown_warning_option=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 fi
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 xorg_cv_cc_flag_unused_command_line_argument=yes
8080 else
8081 xorg_cv_cc_flag_unused_command_line_argument=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089 fi
8090
8091 found="no"
8092
8093 if test $found = "no" ; then
8094 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 fi
8097
8098 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100 fi
8101
8102 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8105 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8106 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8107 if eval \${$cacheid+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main ()
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 eval $cacheid=yes
8123 else
8124 eval $cacheid=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 $as_echo "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8138 found="yes"
8139 fi
8140 fi
8141
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146
8147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149 fi
8150
8151 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8154 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8155 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8156 if eval \${$cacheid+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 int i;
8162 int
8163 main ()
8164 {
8165
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 eval $cacheid=yes
8172 else
8173 eval $cacheid=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 fi
8178
8179
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8181
8182 eval supported=\$$cacheid
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8184 $as_echo "$supported" >&6; }
8185 if test "$supported" = "yes" ; then
8186 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8187 found="yes"
8188 fi
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205 xorg_testset_save_CFLAGS="$CFLAGS"
8206
8207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 int i;
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219 xorg_cv_cc_flag_unknown_warning_option=yes
8220 else
8221 xorg_cv_cc_flag_unknown_warning_option=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8229 fi
8230
8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234 fi
8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 int i;
8244 _ACEOF
8245 if ac_fn_c_try_compile "$LINENO"; then :
8246 xorg_cv_cc_flag_unused_command_line_argument=yes
8247 else
8248 xorg_cv_cc_flag_unused_command_line_argument=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8256 fi
8257
8258 found="no"
8259
8260 if test $found = "no" ; then
8261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 fi
8264
8265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8267 fi
8268
8269 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8272 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8273 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8274 if eval \${$cacheid+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279 int i;
8280 int
8281 main ()
8282 {
8283
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 eval $cacheid=yes
8290 else
8291 eval $cacheid=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 fi
8296
8297
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299
8300 eval supported=\$$cacheid
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8302 $as_echo "$supported" >&6; }
8303 if test "$supported" = "yes" ; then
8304 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8305 found="yes"
8306 fi
8307 fi
8308
8309 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8310 else
8311 { $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
8312 $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;}
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 xorg_testset_save_CFLAGS="$CFLAGS"
8327
8328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 _ACEOF
8339 if ac_fn_c_try_compile "$LINENO"; then :
8340 xorg_cv_cc_flag_unknown_warning_option=yes
8341 else
8342 xorg_cv_cc_flag_unknown_warning_option=no
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8349 CFLAGS="$xorg_testset_save_CFLAGS"
8350 fi
8351
8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355 fi
8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 xorg_cv_cc_flag_unused_command_line_argument=yes
8368 else
8369 xorg_cv_cc_flag_unused_command_line_argument=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377 fi
8378
8379 found="no"
8380
8381 if test $found = "no" ; then
8382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384 fi
8385
8386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388 fi
8389
8390 CFLAGS="$CFLAGS -Wimplicit"
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8393 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8394 cacheid=xorg_cv_cc_flag__Wimplicit
8395 if eval \${$cacheid+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 int i;
8401 int
8402 main ()
8403 {
8404
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_link "$LINENO"; then :
8410 eval $cacheid=yes
8411 else
8412 eval $cacheid=no
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext \
8415 conftest$ac_exeext conftest.$ac_ext
8416 fi
8417
8418
8419 CFLAGS="$xorg_testset_save_CFLAGS"
8420
8421 eval supported=\$$cacheid
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8423 $as_echo "$supported" >&6; }
8424 if test "$supported" = "yes" ; then
8425 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8426 found="yes"
8427 fi
8428 fi
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444 xorg_testset_save_CFLAGS="$CFLAGS"
8445
8446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 int i;
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 xorg_cv_cc_flag_unknown_warning_option=yes
8459 else
8460 xorg_cv_cc_flag_unknown_warning_option=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468 fi
8469
8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473 fi
8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485 xorg_cv_cc_flag_unused_command_line_argument=yes
8486 else
8487 xorg_cv_cc_flag_unused_command_line_argument=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495 fi
8496
8497 found="no"
8498
8499 if test $found = "no" ; then
8500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 fi
8503
8504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 fi
8507
8508 CFLAGS="$CFLAGS -Wnonnull"
8509
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8511 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8512 cacheid=xorg_cv_cc_flag__Wnonnull
8513 if eval \${$cacheid+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 int i;
8519 int
8520 main ()
8521 {
8522
8523 ;
8524 return 0;
8525 }
8526 _ACEOF
8527 if ac_fn_c_try_link "$LINENO"; then :
8528 eval $cacheid=yes
8529 else
8530 eval $cacheid=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 fi
8535
8536
8537 CFLAGS="$xorg_testset_save_CFLAGS"
8538
8539 eval supported=\$$cacheid
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8541 $as_echo "$supported" >&6; }
8542 if test "$supported" = "yes" ; then
8543 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8544 found="yes"
8545 fi
8546 fi
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562 xorg_testset_save_CFLAGS="$CFLAGS"
8563
8564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 int i;
8574 _ACEOF
8575 if ac_fn_c_try_compile "$LINENO"; then :
8576 xorg_cv_cc_flag_unknown_warning_option=yes
8577 else
8578 xorg_cv_cc_flag_unknown_warning_option=no
8579 fi
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 fi
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8585 CFLAGS="$xorg_testset_save_CFLAGS"
8586 fi
8587
8588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591 fi
8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 int i;
8601 _ACEOF
8602 if ac_fn_c_try_compile "$LINENO"; then :
8603 xorg_cv_cc_flag_unused_command_line_argument=yes
8604 else
8605 xorg_cv_cc_flag_unused_command_line_argument=no
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8612 CFLAGS="$xorg_testset_save_CFLAGS"
8613 fi
8614
8615 found="no"
8616
8617 if test $found = "no" ; then
8618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 fi
8621
8622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8624 fi
8625
8626 CFLAGS="$CFLAGS -Winit-self"
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8629 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8630 cacheid=xorg_cv_cc_flag__Winit_self
8631 if eval \${$cacheid+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 int i;
8637 int
8638 main ()
8639 {
8640
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"; then :
8646 eval $cacheid=yes
8647 else
8648 eval $cacheid=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652 fi
8653
8654
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8656
8657 eval supported=\$$cacheid
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8659 $as_echo "$supported" >&6; }
8660 if test "$supported" = "yes" ; then
8661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8662 found="yes"
8663 fi
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 xorg_testset_save_CFLAGS="$CFLAGS"
8681
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 int i;
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 xorg_cv_cc_flag_unknown_warning_option=yes
8695 else
8696 xorg_cv_cc_flag_unknown_warning_option=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704 fi
8705
8706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709 fi
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 int i;
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 xorg_cv_cc_flag_unused_command_line_argument=yes
8722 else
8723 xorg_cv_cc_flag_unused_command_line_argument=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8731 fi
8732
8733 found="no"
8734
8735 if test $found = "no" ; then
8736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 fi
8739
8740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8742 fi
8743
8744 CFLAGS="$CFLAGS -Wmain"
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8747 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8748 cacheid=xorg_cv_cc_flag__Wmain
8749 if eval \${$cacheid+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 int
8756 main ()
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_link "$LINENO"; then :
8764 eval $cacheid=yes
8765 else
8766 eval $cacheid=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 fi
8771
8772
8773 CFLAGS="$xorg_testset_save_CFLAGS"
8774
8775 eval supported=\$$cacheid
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8777 $as_echo "$supported" >&6; }
8778 if test "$supported" = "yes" ; then
8779 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8780 found="yes"
8781 fi
8782 fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 xorg_testset_save_CFLAGS="$CFLAGS"
8799
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int i;
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 xorg_cv_cc_flag_unknown_warning_option=yes
8813 else
8814 xorg_cv_cc_flag_unknown_warning_option=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8822 fi
8823
8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827 fi
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 xorg_cv_cc_flag_unused_command_line_argument=yes
8840 else
8841 xorg_cv_cc_flag_unused_command_line_argument=no
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8848 CFLAGS="$xorg_testset_save_CFLAGS"
8849 fi
8850
8851 found="no"
8852
8853 if test $found = "no" ; then
8854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 fi
8857
8858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860 fi
8861
8862 CFLAGS="$CFLAGS -Wmissing-braces"
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8865 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8866 cacheid=xorg_cv_cc_flag__Wmissing_braces
8867 if eval \${$cacheid+:} 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 int
8874 main ()
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"; then :
8882 eval $cacheid=yes
8883 else
8884 eval $cacheid=no
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 fi
8889
8890
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893 eval supported=\$$cacheid
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895 $as_echo "$supported" >&6; }
8896 if test "$supported" = "yes" ; then
8897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8898 found="yes"
8899 fi
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 xorg_testset_save_CFLAGS="$CFLAGS"
8917
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 xorg_cv_cc_flag_unknown_warning_option=yes
8931 else
8932 xorg_cv_cc_flag_unknown_warning_option=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8940 fi
8941
8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945 fi
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 int i;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 xorg_cv_cc_flag_unused_command_line_argument=yes
8958 else
8959 xorg_cv_cc_flag_unused_command_line_argument=no
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8966 CFLAGS="$xorg_testset_save_CFLAGS"
8967 fi
8968
8969 found="no"
8970
8971 if test $found = "no" ; then
8972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 fi
8975
8976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978 fi
8979
8980 CFLAGS="$CFLAGS -Wsequence-point"
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8983 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8984 cacheid=xorg_cv_cc_flag__Wsequence_point
8985 if eval \${$cacheid+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 int
8992 main ()
8993 {
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 eval $cacheid=yes
9001 else
9002 eval $cacheid=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 fi
9007
9008
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9010
9011 eval supported=\$$cacheid
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9013 $as_echo "$supported" >&6; }
9014 if test "$supported" = "yes" ; then
9015 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9016 found="yes"
9017 fi
9018 fi
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034 xorg_testset_save_CFLAGS="$CFLAGS"
9035
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9040 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 xorg_cv_cc_flag_unknown_warning_option=yes
9049 else
9050 xorg_cv_cc_flag_unknown_warning_option=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058 fi
9059
9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063 fi
9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 int i;
9073 _ACEOF
9074 if ac_fn_c_try_compile "$LINENO"; then :
9075 xorg_cv_cc_flag_unused_command_line_argument=yes
9076 else
9077 xorg_cv_cc_flag_unused_command_line_argument=no
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084 CFLAGS="$xorg_testset_save_CFLAGS"
9085 fi
9086
9087 found="no"
9088
9089 if test $found = "no" ; then
9090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 fi
9093
9094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096 fi
9097
9098 CFLAGS="$CFLAGS -Wreturn-type"
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9101 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9102 cacheid=xorg_cv_cc_flag__Wreturn_type
9103 if eval \${$cacheid+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 int
9110 main ()
9111 {
9112
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 eval $cacheid=yes
9119 else
9120 eval $cacheid=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 fi
9125
9126
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128
9129 eval supported=\$$cacheid
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131 $as_echo "$supported" >&6; }
9132 if test "$supported" = "yes" ; then
9133 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9134 found="yes"
9135 fi
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 xorg_testset_save_CFLAGS="$CFLAGS"
9153
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int i;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 xorg_cv_cc_flag_unknown_warning_option=yes
9167 else
9168 xorg_cv_cc_flag_unknown_warning_option=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181 fi
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int i;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 xorg_cv_cc_flag_unused_command_line_argument=yes
9194 else
9195 xorg_cv_cc_flag_unused_command_line_argument=no
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9203 fi
9204
9205 found="no"
9206
9207 if test $found = "no" ; then
9208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 fi
9211
9212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 fi
9215
9216 CFLAGS="$CFLAGS -Wtrigraphs"
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9219 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9220 cacheid=xorg_cv_cc_flag__Wtrigraphs
9221 if eval \${$cacheid+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 eval $cacheid=yes
9237 else
9238 eval $cacheid=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 fi
9243
9244
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247 eval supported=\$$cacheid
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249 $as_echo "$supported" >&6; }
9250 if test "$supported" = "yes" ; then
9251 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9252 found="yes"
9253 fi
9254 fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270 xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 int i;
9282 _ACEOF
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284 xorg_cv_cc_flag_unknown_warning_option=yes
9285 else
9286 xorg_cv_cc_flag_unknown_warning_option=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299 fi
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int i;
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unused_command_line_argument=yes
9312 else
9313 xorg_cv_cc_flag_unused_command_line_argument=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9321 fi
9322
9323 found="no"
9324
9325 if test $found = "no" ; then
9326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 fi
9329
9330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9332 fi
9333
9334 CFLAGS="$CFLAGS -Warray-bounds"
9335
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9337 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9338 cacheid=xorg_cv_cc_flag__Warray_bounds
9339 if eval \${$cacheid+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int i;
9345 int
9346 main ()
9347 {
9348
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 eval $cacheid=yes
9355 else
9356 eval $cacheid=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 fi
9361
9362
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364
9365 eval supported=\$$cacheid
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367 $as_echo "$supported" >&6; }
9368 if test "$supported" = "yes" ; then
9369 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9370 found="yes"
9371 fi
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388 xorg_testset_save_CFLAGS="$CFLAGS"
9389
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 _ACEOF
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402 xorg_cv_cc_flag_unknown_warning_option=yes
9403 else
9404 xorg_cv_cc_flag_unknown_warning_option=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412 fi
9413
9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417 fi
9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 xorg_cv_cc_flag_unused_command_line_argument=yes
9430 else
9431 xorg_cv_cc_flag_unused_command_line_argument=no
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9438 CFLAGS="$xorg_testset_save_CFLAGS"
9439 fi
9440
9441 found="no"
9442
9443 if test $found = "no" ; then
9444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 fi
9447
9448 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9450 fi
9451
9452 CFLAGS="$CFLAGS -Wwrite-strings"
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9455 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9456 cacheid=xorg_cv_cc_flag__Wwrite_strings
9457 if eval \${$cacheid+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int i;
9463 int
9464 main ()
9465 {
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 eval $cacheid=yes
9473 else
9474 eval $cacheid=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 fi
9479
9480
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482
9483 eval supported=\$$cacheid
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485 $as_echo "$supported" >&6; }
9486 if test "$supported" = "yes" ; then
9487 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9488 found="yes"
9489 fi
9490 fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 xorg_testset_save_CFLAGS="$CFLAGS"
9507
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520 xorg_cv_cc_flag_unknown_warning_option=yes
9521 else
9522 xorg_cv_cc_flag_unknown_warning_option=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9530 fi
9531
9532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535 fi
9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int i;
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 xorg_cv_cc_flag_unused_command_line_argument=yes
9548 else
9549 xorg_cv_cc_flag_unused_command_line_argument=no
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556 CFLAGS="$xorg_testset_save_CFLAGS"
9557 fi
9558
9559 found="no"
9560
9561 if test $found = "no" ; then
9562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 fi
9565
9566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568 fi
9569
9570 CFLAGS="$CFLAGS -Waddress"
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9573 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9574 cacheid=xorg_cv_cc_flag__Waddress
9575 if eval \${$cacheid+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 int
9582 main ()
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 eval $cacheid=yes
9591 else
9592 eval $cacheid=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi
9597
9598
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600
9601 eval supported=\$$cacheid
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603 $as_echo "$supported" >&6; }
9604 if test "$supported" = "yes" ; then
9605 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9606 found="yes"
9607 fi
9608 fi
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624 xorg_testset_save_CFLAGS="$CFLAGS"
9625
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 _ACEOF
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638 xorg_cv_cc_flag_unknown_warning_option=yes
9639 else
9640 xorg_cv_cc_flag_unknown_warning_option=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653 fi
9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 xorg_cv_cc_flag_unused_command_line_argument=yes
9666 else
9667 xorg_cv_cc_flag_unused_command_line_argument=no
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9675 fi
9676
9677 found="no"
9678
9679 if test $found = "no" ; then
9680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 fi
9683
9684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 fi
9687
9688 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9691 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9692 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9693 if eval \${$cacheid+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 int i;
9699 int
9700 main ()
9701 {
9702
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708 eval $cacheid=yes
9709 else
9710 eval $cacheid=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 fi
9715
9716
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719 eval supported=\$$cacheid
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721 $as_echo "$supported" >&6; }
9722 if test "$supported" = "yes" ; then
9723 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9724 found="yes"
9725 fi
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 xorg_cv_cc_flag_unknown_warning_option=yes
9757 else
9758 xorg_cv_cc_flag_unknown_warning_option=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9766 fi
9767
9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771 fi
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int i;
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 xorg_cv_cc_flag_unused_command_line_argument=yes
9784 else
9785 xorg_cv_cc_flag_unused_command_line_argument=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9793 fi
9794
9795 found="no"
9796
9797 if test $found = "no" ; then
9798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 fi
9801
9802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9804 fi
9805
9806 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9809 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9810 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9811 if eval \${$cacheid+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 int i;
9817 int
9818 main ()
9819 {
9820
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 eval $cacheid=yes
9827 else
9828 eval $cacheid=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 fi
9833
9834
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9836
9837 eval supported=\$$cacheid
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839 $as_echo "$supported" >&6; }
9840 if test "$supported" = "yes" ; then
9841 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9842 found="yes"
9843 fi
9844 fi
9845
9846
9847 fi
9848
9849
9850
9851
9852
9853
9854
9855 CWARNFLAGS="$BASE_CFLAGS"
9856 if test "x$GCC" = xyes ; then
9857 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867 # Check whether --enable-strict-compilation was given.
9868 if test "${enable_strict_compilation+set}" = set; then :
9869 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9870 else
9871 STRICT_COMPILE=no
9872 fi
9873
9874
9875
9876
9877
9878
9879 STRICT_CFLAGS=""
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 xorg_testset_save_CFLAGS="$CFLAGS"
9894
9895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int i;
9905 _ACEOF
9906 if ac_fn_c_try_compile "$LINENO"; then :
9907 xorg_cv_cc_flag_unknown_warning_option=yes
9908 else
9909 xorg_cv_cc_flag_unknown_warning_option=no
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9917 fi
9918
9919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 fi
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 int i;
9932 _ACEOF
9933 if ac_fn_c_try_compile "$LINENO"; then :
9934 xorg_cv_cc_flag_unused_command_line_argument=yes
9935 else
9936 xorg_cv_cc_flag_unused_command_line_argument=no
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9943 CFLAGS="$xorg_testset_save_CFLAGS"
9944 fi
9945
9946 found="no"
9947
9948 if test $found = "no" ; then
9949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951 fi
9952
9953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9955 fi
9956
9957 CFLAGS="$CFLAGS -pedantic"
9958
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9960 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9961 cacheid=xorg_cv_cc_flag__pedantic
9962 if eval \${$cacheid+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int i;
9968 int
9969 main ()
9970 {
9971
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 eval $cacheid=yes
9978 else
9979 eval $cacheid=no
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 fi
9984
9985
9986 CFLAGS="$xorg_testset_save_CFLAGS"
9987
9988 eval supported=\$$cacheid
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9990 $as_echo "$supported" >&6; }
9991 if test "$supported" = "yes" ; then
9992 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9993 found="yes"
9994 fi
9995 fi
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011 xorg_testset_save_CFLAGS="$CFLAGS"
10012
10013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10016 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10017 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10022 int i;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 xorg_cv_cc_flag_unknown_warning_option=yes
10026 else
10027 xorg_cv_cc_flag_unknown_warning_option=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10032 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10034 CFLAGS="$xorg_testset_save_CFLAGS"
10035 fi
10036
10037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040 fi
10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10043 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10044 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 int i;
10050 _ACEOF
10051 if ac_fn_c_try_compile "$LINENO"; then :
10052 xorg_cv_cc_flag_unused_command_line_argument=yes
10053 else
10054 xorg_cv_cc_flag_unused_command_line_argument=no
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10059 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10061 CFLAGS="$xorg_testset_save_CFLAGS"
10062 fi
10063
10064 found="no"
10065
10066 if test $found = "no" ; then
10067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10069 fi
10070
10071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073 fi
10074
10075 CFLAGS="$CFLAGS -Werror"
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10078 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10079 cacheid=xorg_cv_cc_flag__Werror
10080 if eval \${$cacheid+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int i;
10086 int
10087 main ()
10088 {
10089
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 if ac_fn_c_try_link "$LINENO"; then :
10095 eval $cacheid=yes
10096 else
10097 eval $cacheid=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 fi
10102
10103
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10105
10106 eval supported=\$$cacheid
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10108 $as_echo "$supported" >&6; }
10109 if test "$supported" = "yes" ; then
10110 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10111 found="yes"
10112 fi
10113 fi
10114
10115 if test $found = "no" ; then
10116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119
10120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10122 fi
10123
10124 CFLAGS="$CFLAGS -errwarn"
10125
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10127 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10128 cacheid=xorg_cv_cc_flag__errwarn
10129 if eval \${$cacheid+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 int i;
10135 int
10136 main ()
10137 {
10138
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144 eval $cacheid=yes
10145 else
10146 eval $cacheid=no
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 fi
10151
10152
10153 CFLAGS="$xorg_testset_save_CFLAGS"
10154
10155 eval supported=\$$cacheid
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10157 $as_echo "$supported" >&6; }
10158 if test "$supported" = "yes" ; then
10159 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10160 found="yes"
10161 fi
10162 fi
10163
10164
10165
10166 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10167 # activate it with -Werror, so we add it here explicitly.
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181 xorg_testset_save_CFLAGS="$CFLAGS"
10182
10183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 int i;
10193 _ACEOF
10194 if ac_fn_c_try_compile "$LINENO"; then :
10195 xorg_cv_cc_flag_unknown_warning_option=yes
10196 else
10197 xorg_cv_cc_flag_unknown_warning_option=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10204 CFLAGS="$xorg_testset_save_CFLAGS"
10205 fi
10206
10207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10210 fi
10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"; then :
10222 xorg_cv_cc_flag_unused_command_line_argument=yes
10223 else
10224 xorg_cv_cc_flag_unused_command_line_argument=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10231 CFLAGS="$xorg_testset_save_CFLAGS"
10232 fi
10233
10234 found="no"
10235
10236 if test $found = "no" ; then
10237 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239 fi
10240
10241 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10243 fi
10244
10245 CFLAGS="$CFLAGS -Werror=attributes"
10246
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10248 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10249 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10250 if eval \${$cacheid+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 int i;
10256 int
10257 main ()
10258 {
10259
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 eval $cacheid=yes
10266 else
10267 eval $cacheid=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 fi
10272
10273
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10275
10276 eval supported=\$$cacheid
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10278 $as_echo "$supported" >&6; }
10279 if test "$supported" = "yes" ; then
10280 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10281 found="yes"
10282 fi
10283 fi
10284
10285
10286
10287 if test "x$STRICT_COMPILE" = "xyes"; then
10288 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10289 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10290 fi
10291
10292
10293
10294
10295
10296
10297 cat >>confdefs.h <<_ACEOF
10298 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10299 _ACEOF
10300
10301 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10302 if test "x$PVM" = "x"; then
10303 PVM="0"
10304 fi
10305
10306 cat >>confdefs.h <<_ACEOF
10307 #define PACKAGE_VERSION_MINOR $PVM
10308 _ACEOF
10309
10310 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10311 if test "x$PVP" = "x"; then
10312 PVP="0"
10313 fi
10314
10315 cat >>confdefs.h <<_ACEOF
10316 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10317 _ACEOF
10318
10319
10320
10321 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10322 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10323 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10324 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10325
10326
10327
10328
10329 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10330 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10331 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10332 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10333 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10334
10335
10336
10337
10338
10339
10340 if test x$APP_MAN_SUFFIX = x ; then
10341 APP_MAN_SUFFIX=1
10342 fi
10343 if test x$APP_MAN_DIR = x ; then
10344 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10345 fi
10346
10347 if test x$LIB_MAN_SUFFIX = x ; then
10348 LIB_MAN_SUFFIX=3
10349 fi
10350 if test x$LIB_MAN_DIR = x ; then
10351 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10352 fi
10353
10354 if test x$FILE_MAN_SUFFIX = x ; then
10355 case $host_os in
10356 solaris*) FILE_MAN_SUFFIX=4 ;;
10357 *) FILE_MAN_SUFFIX=5 ;;
10358 esac
10359 fi
10360 if test x$FILE_MAN_DIR = x ; then
10361 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10362 fi
10363
10364 if test x$MISC_MAN_SUFFIX = x ; then
10365 case $host_os in
10366 solaris*) MISC_MAN_SUFFIX=5 ;;
10367 *) MISC_MAN_SUFFIX=7 ;;
10368 esac
10369 fi
10370 if test x$MISC_MAN_DIR = x ; then
10371 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10372 fi
10373
10374 if test x$DRIVER_MAN_SUFFIX = x ; then
10375 case $host_os in
10376 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10377 *) DRIVER_MAN_SUFFIX=4 ;;
10378 esac
10379 fi
10380 if test x$DRIVER_MAN_DIR = x ; then
10381 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10382 fi
10383
10384 if test x$ADMIN_MAN_SUFFIX = x ; then
10385 case $host_os in
10386 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10387 *) ADMIN_MAN_SUFFIX=8 ;;
10388 esac
10389 fi
10390 if test x$ADMIN_MAN_DIR = x ; then
10391 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10392 fi
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 XORG_MAN_PAGE="X Version 11"
10409
10410 MAN_SUBSTS="\
10411 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10412 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10413 -e 's|__xservername__|Xorg|g' \
10414 -e 's|__xconfigfile__|xorg.conf|g' \
10415 -e 's|__projectroot__|\$(prefix)|g' \
10416 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10417 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10418 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10419 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10420 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10421 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10422 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10423
10424
10425
10426 # Check whether --enable-silent-rules was given.
10427 if test "${enable_silent_rules+set}" = set; then :
10428 enableval=$enable_silent_rules;
10429 fi
10430
10431 case $enable_silent_rules in
10432 yes) AM_DEFAULT_VERBOSITY=0;;
10433 no) AM_DEFAULT_VERBOSITY=1;;
10434 *) AM_DEFAULT_VERBOSITY=0;;
10435 esac
10436 AM_BACKSLASH='\'
10437
10438
10439
10440 ac_config_headers="$ac_config_headers config.h"
10441
10442
10443 # If both the C file and YACC are missing, the package cannot be build.
10444 for ac_prog in 'bison -y' byacc
10445 do
10446 # Extract the first word of "$ac_prog", so it can be a program name with args.
10447 set dummy $ac_prog; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_prog_YACC+:} false; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 if test -n "$YACC"; then
10454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10455 else
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10458 do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463 ac_cv_prog_YACC="$ac_prog"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467 done
10468 done
10469 IFS=$as_save_IFS
10470
10471 fi
10472 fi
10473 YACC=$ac_cv_prog_YACC
10474 if test -n "$YACC"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10476 $as_echo "$YACC" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10480 fi
10481
10482
10483 test -n "$YACC" && break
10484 done
10485 test -n "$YACC" || YACC="yacc"
10486
10487 # Extract the first word of "$YACC", so it can be a program name with args.
10488 set dummy $YACC; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if ${ac_cv_path_YACC_INST+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 case $YACC_INST in
10495 [\\/]* | ?:[\\/]*)
10496 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10497 ;;
10498 *)
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10501 do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510 done
10511 done
10512 IFS=$as_save_IFS
10513
10514 ;;
10515 esac
10516 fi
10517 YACC_INST=$ac_cv_path_YACC_INST
10518 if test -n "$YACC_INST"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10520 $as_echo "$YACC_INST" >&6; }
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10524 fi
10525
10526
10527 if test ! -f "$srcdir/xkbparse.c"; then
10528 if test -z "$YACC_INST"; then
10529 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
10530 fi
10531 fi
10532
10533 for ac_func in strdup strcasecmp
10534 do :
10535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10538 cat >>confdefs.h <<_ACEOF
10539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10540 _ACEOF
10541
10542 fi
10543 done
10544
10545
10546 REQUIRED_MODULES="x11 xkbfile xproto >= 7.0.17"
10547
10548 # Checks for pkg-config packages
10549
10550 pkg_failed=no
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5
10552 $as_echo_n "checking for XKBCOMP... " >&6; }
10553
10554 if test -n "$XKBCOMP_CFLAGS"; then
10555 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
10556 elif test -n "$PKG_CONFIG"; then
10557 if test -n "$PKG_CONFIG" && \
10558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
10559 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
10560 ac_status=$?
10561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562 test $ac_status = 0; }; then
10563 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES" 2>/dev/null`
10564 else
10565 pkg_failed=yes
10566 fi
10567 else
10568 pkg_failed=untried
10569 fi
10570 if test -n "$XKBCOMP_LIBS"; then
10571 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
10572 elif test -n "$PKG_CONFIG"; then
10573 if test -n "$PKG_CONFIG" && \
10574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
10575 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
10576 ac_status=$?
10577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578 test $ac_status = 0; }; then
10579 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES" 2>/dev/null`
10580 else
10581 pkg_failed=yes
10582 fi
10583 else
10584 pkg_failed=untried
10585 fi
10586
10587
10588
10589 if test $pkg_failed = yes; then
10590
10591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10592 _pkg_short_errors_supported=yes
10593 else
10594 _pkg_short_errors_supported=no
10595 fi
10596 if test $_pkg_short_errors_supported = yes; then
10597 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES" 2>&1`
10598 else
10599 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES" 2>&1`
10600 fi
10601 # Put the nasty error message in config.log where it belongs
10602 echo "$XKBCOMP_PKG_ERRORS" >&5
10603
10604 as_fn_error $? "Package requirements ($REQUIRED_MODULES) were not met:
10605
10606 $XKBCOMP_PKG_ERRORS
10607
10608 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10609 installed software in a non-standard prefix.
10610
10611 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
10612 and XKBCOMP_LIBS to avoid the need to call pkg-config.
10613 See the pkg-config man page for more details.
10614 " "$LINENO" 5
10615 elif test $pkg_failed = untried; then
10616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10618 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10619 is in your PATH or set the PKG_CONFIG environment variable to the full
10620 path to pkg-config.
10621
10622 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
10623 and XKBCOMP_LIBS to avoid the need to call pkg-config.
10624 See the pkg-config man page for more details.
10625
10626 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10627 See \`config.log' for more details" "$LINENO" 5; }
10628 else
10629 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
10630 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; }
10633 :
10634 fi
10635
10636
10637
10638 # Check whether --with-xkb_config_root was given.
10639 if test "${with_xkb_config_root+set}" = set; then :
10640 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
10641 else
10642 XKBCONFIGROOT='${datadir}/X11/xkb'
10643 fi
10644
10645
10646
10647
10648 ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc"
10649
10650 cat >confcache <<\_ACEOF
10651 # This file is a shell script that caches the results of configure
10652 # tests run on this system so they can be shared between configure
10653 # scripts and configure runs, see configure's option --config-cache.
10654 # It is not useful on other systems. If it contains results you don't
10655 # want to keep, you may remove or edit it.
10656 #
10657 # config.status only pays attention to the cache file if you give it
10658 # the --recheck option to rerun configure.
10659 #
10660 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10661 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10662 # following values.
10663
10664 _ACEOF
10665
10666 # The following way of writing the cache mishandles newlines in values,
10667 # but we know of no workaround that is simple, portable, and efficient.
10668 # So, we kill variables containing newlines.
10669 # Ultrix sh set writes to stderr and can't be redirected directly,
10670 # and sets the high bit in the cache file unless we assign to the vars.
10671 (
10672 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10673 eval ac_val=\$$ac_var
10674 case $ac_val in #(
10675 *${as_nl}*)
10676 case $ac_var in #(
10677 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10678 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10679 esac
10680 case $ac_var in #(
10681 _ | IFS | as_nl) ;; #(
10682 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10683 *) { eval $ac_var=; unset $ac_var;} ;;
10684 esac ;;
10685 esac
10686 done
10687
10688 (set) 2>&1 |
10689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10690 *${as_nl}ac_space=\ *)
10691 # `set' does not quote correctly, so add quotes: double-quote
10692 # substitution turns \\\\ into \\, and sed turns \\ into \.
10693 sed -n \
10694 "s/'/'\\\\''/g;
10695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10696 ;; #(
10697 *)
10698 # `set' quotes correctly as required by POSIX, so do not add quotes.
10699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10700 ;;
10701 esac |
10702 sort
10703 ) |
10704 sed '
10705 /^ac_cv_env_/b end
10706 t clear
10707 :clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 :end' >>confcache
10712 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10713 if test -w "$cache_file"; then
10714 if test "x$cache_file" != "x/dev/null"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10716 $as_echo "$as_me: updating cache $cache_file" >&6;}
10717 if test ! -f "$cache_file" || test -h "$cache_file"; then
10718 cat confcache >"$cache_file"
10719 else
10720 case $cache_file in #(
10721 */* | ?:*)
10722 mv -f confcache "$cache_file"$$ &&
10723 mv -f "$cache_file"$$ "$cache_file" ;; #(
10724 *)
10725 mv -f confcache "$cache_file" ;;
10726 esac
10727 fi
10728 fi
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10731 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10732 fi
10733 fi
10734 rm -f confcache
10735
10736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10737 # Let make expand exec_prefix.
10738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10739
10740 DEFS=-DHAVE_CONFIG_H
10741
10742 ac_libobjs=
10743 ac_ltlibobjs=
10744 U=
10745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10746 # 1. Remove the extension, and $U if already installed.
10747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10750 # will be set to the directory where LIBOBJS objects are built.
10751 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10752 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10753 done
10754 LIBOBJS=$ac_libobjs
10755
10756 LTLIBOBJS=$ac_ltlibobjs
10757
10758
10759 if test -n "$EXEEXT"; then
10760 am__EXEEXT_TRUE=
10761 am__EXEEXT_FALSE='#'
10762 else
10763 am__EXEEXT_TRUE='#'
10764 am__EXEEXT_FALSE=
10765 fi
10766
10767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10768 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10770 fi
10771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10772 as_fn_error $? "conditional \"AMDEP\" was never defined.
10773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10774 fi
10775 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10778 fi
10779
10780 : "${CONFIG_STATUS=./config.status}"
10781 ac_write_fail=0
10782 ac_clean_files_save=$ac_clean_files
10783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10785 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10786 as_write_fail=0
10787 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10788 #! $SHELL
10789 # Generated by $as_me.
10790 # Run this file to recreate the current configuration.
10791 # Compiler output produced by configure, useful for debugging
10792 # configure, is in config.log if it exists.
10793
10794 debug=false
10795 ac_cs_recheck=false
10796 ac_cs_silent=false
10797
10798 SHELL=\${CONFIG_SHELL-$SHELL}
10799 export SHELL
10800 _ASEOF
10801 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10802 ## -------------------- ##
10803 ## M4sh Initialization. ##
10804 ## -------------------- ##
10805
10806 # Be more Bourne compatible
10807 DUALCASE=1; export DUALCASE # for MKS sh
10808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10809 emulate sh
10810 NULLCMD=:
10811 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10812 # is contrary to our usage. Disable this feature.
10813 alias -g '${1+"$@"}'='"$@"'
10814 setopt NO_GLOB_SUBST
10815 else
10816 case `(set -o) 2>/dev/null` in #(
10817 *posix*) :
10818 set -o posix ;; #(
10819 *) :
10820 ;;
10821 esac
10822 fi
10823
10824
10825 as_nl='
10826 '
10827 export as_nl
10828 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10829 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10832 # Prefer a ksh shell builtin over an external printf program on Solaris,
10833 # but without wasting forks for bash or zsh.
10834 if test -z "$BASH_VERSION$ZSH_VERSION" \
10835 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10836 as_echo='print -r --'
10837 as_echo_n='print -rn --'
10838 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10839 as_echo='printf %s\n'
10840 as_echo_n='printf %s'
10841 else
10842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10844 as_echo_n='/usr/ucb/echo -n'
10845 else
10846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10847 as_echo_n_body='eval
10848 arg=$1;
10849 case $arg in #(
10850 *"$as_nl"*)
10851 expr "X$arg" : "X\\(.*\\)$as_nl";
10852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10853 esac;
10854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10855 '
10856 export as_echo_n_body
10857 as_echo_n='sh -c $as_echo_n_body as_echo'
10858 fi
10859 export as_echo_body
10860 as_echo='sh -c $as_echo_body as_echo'
10861 fi
10862
10863 # The user is always right.
10864 if test "${PATH_SEPARATOR+set}" != set; then
10865 PATH_SEPARATOR=:
10866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10868 PATH_SEPARATOR=';'
10869 }
10870 fi
10871
10872
10873 # IFS
10874 # We need space, tab and new line, in precisely that order. Quoting is
10875 # there to prevent editors from complaining about space-tab.
10876 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10877 # splitting by setting IFS to empty value.)
10878 IFS=" "" $as_nl"
10879
10880 # Find who we are. Look in the path if we contain no directory separator.
10881 as_myself=
10882 case $0 in #((
10883 *[\\/]* ) as_myself=$0 ;;
10884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10890 done
10891 IFS=$as_save_IFS
10892
10893 ;;
10894 esac
10895 # We did not find ourselves, most probably we were run as `sh COMMAND'
10896 # in which case we are not to be found in the path.
10897 if test "x$as_myself" = x; then
10898 as_myself=$0
10899 fi
10900 if test ! -f "$as_myself"; then
10901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10902 exit 1
10903 fi
10904
10905 # Unset variables that we do not need and which cause bugs (e.g. in
10906 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10907 # suppresses any "Segmentation fault" message there. '((' could
10908 # trigger a bug in pdksh 5.2.14.
10909 for as_var in BASH_ENV ENV MAIL MAILPATH
10910 do eval test x\${$as_var+set} = xset \
10911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10912 done
10913 PS1='$ '
10914 PS2='> '
10915 PS4='+ '
10916
10917 # NLS nuisances.
10918 LC_ALL=C
10919 export LC_ALL
10920 LANGUAGE=C
10921 export LANGUAGE
10922
10923 # CDPATH.
10924 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10925
10926
10927 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10928 # ----------------------------------------
10929 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10930 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10931 # script with STATUS, using 1 if that was 0.
10932 as_fn_error ()
10933 {
10934 as_status=$1; test $as_status -eq 0 && as_status=1
10935 if test "$4"; then
10936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10938 fi
10939 $as_echo "$as_me: error: $2" >&2
10940 as_fn_exit $as_status
10941 } # as_fn_error
10942
10943
10944 # as_fn_set_status STATUS
10945 # -----------------------
10946 # Set $? to STATUS, without forking.
10947 as_fn_set_status ()
10948 {
10949 return $1
10950 } # as_fn_set_status
10951
10952 # as_fn_exit STATUS
10953 # -----------------
10954 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10955 as_fn_exit ()
10956 {
10957 set +e
10958 as_fn_set_status $1
10959 exit $1
10960 } # as_fn_exit
10961
10962 # as_fn_unset VAR
10963 # ---------------
10964 # Portably unset VAR.
10965 as_fn_unset ()
10966 {
10967 { eval $1=; unset $1;}
10968 }
10969 as_unset=as_fn_unset
10970 # as_fn_append VAR VALUE
10971 # ----------------------
10972 # Append the text in VALUE to the end of the definition contained in VAR. Take
10973 # advantage of any shell optimizations that allow amortized linear growth over
10974 # repeated appends, instead of the typical quadratic growth present in naive
10975 # implementations.
10976 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10977 eval 'as_fn_append ()
10978 {
10979 eval $1+=\$2
10980 }'
10981 else
10982 as_fn_append ()
10983 {
10984 eval $1=\$$1\$2
10985 }
10986 fi # as_fn_append
10987
10988 # as_fn_arith ARG...
10989 # ------------------
10990 # Perform arithmetic evaluation on the ARGs, and store the result in the
10991 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10992 # must be portable across $(()) and expr.
10993 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10994 eval 'as_fn_arith ()
10995 {
10996 as_val=$(( $* ))
10997 }'
10998 else
10999 as_fn_arith ()
11000 {
11001 as_val=`expr "$@" || test $? -eq 1`
11002 }
11003 fi # as_fn_arith
11004
11005
11006 if expr a : '\(a\)' >/dev/null 2>&1 &&
11007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11008 as_expr=expr
11009 else
11010 as_expr=false
11011 fi
11012
11013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11014 as_basename=basename
11015 else
11016 as_basename=false
11017 fi
11018
11019 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11020 as_dirname=dirname
11021 else
11022 as_dirname=false
11023 fi
11024
11025 as_me=`$as_basename -- "$0" ||
11026 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11027 X"$0" : 'X\(//\)$' \| \
11028 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11029 $as_echo X/"$0" |
11030 sed '/^.*\/\([^/][^/]*\)\/*$/{
11031 s//\1/
11032 q
11033 }
11034 /^X\/\(\/\/\)$/{
11035 s//\1/
11036 q
11037 }
11038 /^X\/\(\/\).*/{
11039 s//\1/
11040 q
11041 }
11042 s/.*/./; q'`
11043
11044 # Avoid depending upon Character Ranges.
11045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11048 as_cr_digits='0123456789'
11049 as_cr_alnum=$as_cr_Letters$as_cr_digits
11050
11051 ECHO_C= ECHO_N= ECHO_T=
11052 case `echo -n x` in #(((((
11053 -n*)
11054 case `echo 'xy\c'` in
11055 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11056 xy) ECHO_C='\c';;
11057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11058 ECHO_T=' ';;
11059 esac;;
11060 *)
11061 ECHO_N='-n';;
11062 esac
11063
11064 rm -f conf$$ conf$$.exe conf$$.file
11065 if test -d conf$$.dir; then
11066 rm -f conf$$.dir/conf$$.file
11067 else
11068 rm -f conf$$.dir
11069 mkdir conf$$.dir 2>/dev/null
11070 fi
11071 if (echo >conf$$.file) 2>/dev/null; then
11072 if ln -s conf$$.file conf$$ 2>/dev/null; then
11073 as_ln_s='ln -s'
11074 # ... but there are two gotchas:
11075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11077 # In both cases, we have to default to `cp -p'.
11078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11079 as_ln_s='cp -p'
11080 elif ln conf$$.file conf$$ 2>/dev/null; then
11081 as_ln_s=ln
11082 else
11083 as_ln_s='cp -p'
11084 fi
11085 else
11086 as_ln_s='cp -p'
11087 fi
11088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11089 rmdir conf$$.dir 2>/dev/null
11090
11091
11092 # as_fn_mkdir_p
11093 # -------------
11094 # Create "$as_dir" as a directory, including parents if necessary.
11095 as_fn_mkdir_p ()
11096 {
11097
11098 case $as_dir in #(
11099 -*) as_dir=./$as_dir;;
11100 esac
11101 test -d "$as_dir" || eval $as_mkdir_p || {
11102 as_dirs=
11103 while :; do
11104 case $as_dir in #(
11105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11106 *) as_qdir=$as_dir;;
11107 esac
11108 as_dirs="'$as_qdir' $as_dirs"
11109 as_dir=`$as_dirname -- "$as_dir" ||
11110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11111 X"$as_dir" : 'X\(//\)[^/]' \| \
11112 X"$as_dir" : 'X\(//\)$' \| \
11113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11114 $as_echo X"$as_dir" |
11115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11116 s//\1/
11117 q
11118 }
11119 /^X\(\/\/\)[^/].*/{
11120 s//\1/
11121 q
11122 }
11123 /^X\(\/\/\)$/{
11124 s//\1/
11125 q
11126 }
11127 /^X\(\/\).*/{
11128 s//\1/
11129 q
11130 }
11131 s/.*/./; q'`
11132 test -d "$as_dir" && break
11133 done
11134 test -z "$as_dirs" || eval "mkdir $as_dirs"
11135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11136
11137
11138 } # as_fn_mkdir_p
11139 if mkdir -p . 2>/dev/null; then
11140 as_mkdir_p='mkdir -p "$as_dir"'
11141 else
11142 test -d ./-p && rmdir ./-p
11143 as_mkdir_p=false
11144 fi
11145
11146 if test -x / >/dev/null 2>&1; then
11147 as_test_x='test -x'
11148 else
11149 if ls -dL / >/dev/null 2>&1; then
11150 as_ls_L_option=L
11151 else
11152 as_ls_L_option=
11153 fi
11154 as_test_x='
11155 eval sh -c '\''
11156 if test -d "$1"; then
11157 test -d "$1/.";
11158 else
11159 case $1 in #(
11160 -*)set "./$1";;
11161 esac;
11162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11163 ???[sx]*):;;*)false;;esac;fi
11164 '\'' sh
11165 '
11166 fi
11167 as_executable_p=$as_test_x
11168
11169 # Sed expression to map a string onto a valid CPP name.
11170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11171
11172 # Sed expression to map a string onto a valid variable name.
11173 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11174
11175
11176 exec 6>&1
11177 ## ----------------------------------- ##
11178 ## Main body of $CONFIG_STATUS script. ##
11179 ## ----------------------------------- ##
11180 _ASEOF
11181 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11182
11183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11184 # Save the log message, to keep $0 and so on meaningful, and to
11185 # report actual input values of CONFIG_FILES etc. instead of their
11186 # values after options handling.
11187 ac_log="
11188 This file was extended by xkbcomp $as_me 1.2.4, which was
11189 generated by GNU Autoconf 2.68. Invocation command line was
11190
11191 CONFIG_FILES = $CONFIG_FILES
11192 CONFIG_HEADERS = $CONFIG_HEADERS
11193 CONFIG_LINKS = $CONFIG_LINKS
11194 CONFIG_COMMANDS = $CONFIG_COMMANDS
11195 $ $0 $@
11196
11197 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11198 "
11199
11200 _ACEOF
11201
11202 case $ac_config_files in *"
11203 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11204 esac
11205
11206 case $ac_config_headers in *"
11207 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11208 esac
11209
11210
11211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11212 # Files that config.status was made for.
11213 config_files="$ac_config_files"
11214 config_headers="$ac_config_headers"
11215 config_commands="$ac_config_commands"
11216
11217 _ACEOF
11218
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 ac_cs_usage="\
11221 \`$as_me' instantiates files and other configuration actions
11222 from templates according to the current configuration. Unless the files
11223 and actions are specified as TAGs, all are instantiated by default.
11224
11225 Usage: $0 [OPTION]... [TAG]...
11226
11227 -h, --help print this help, then exit
11228 -V, --version print version number and configuration settings, then exit
11229 --config print configuration, then exit
11230 -q, --quiet, --silent
11231 do not print progress messages
11232 -d, --debug don't remove temporary files
11233 --recheck update $as_me by reconfiguring in the same conditions
11234 --file=FILE[:TEMPLATE]
11235 instantiate the configuration file FILE
11236 --header=FILE[:TEMPLATE]
11237 instantiate the configuration header FILE
11238
11239 Configuration files:
11240 $config_files
11241
11242 Configuration headers:
11243 $config_headers
11244
11245 Configuration commands:
11246 $config_commands
11247
11248 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11249
11250 _ACEOF
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11253 ac_cs_version="\\
11254 xkbcomp config.status 1.2.4
11255 configured by $0, generated by GNU Autoconf 2.68,
11256 with options \\"\$ac_cs_config\\"
11257
11258 Copyright (C) 2010 Free Software Foundation, Inc.
11259 This config.status script is free software; the Free Software Foundation
11260 gives unlimited permission to copy, distribute and modify it."
11261
11262 ac_pwd='$ac_pwd'
11263 srcdir='$srcdir'
11264 INSTALL='$INSTALL'
11265 MKDIR_P='$MKDIR_P'
11266 AWK='$AWK'
11267 test -n "\$AWK" || AWK=awk
11268 _ACEOF
11269
11270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11271 # The default lists apply if the user does not specify any file.
11272 ac_need_defaults=:
11273 while test $# != 0
11274 do
11275 case $1 in
11276 --*=?*)
11277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11279 ac_shift=:
11280 ;;
11281 --*=)
11282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11283 ac_optarg=
11284 ac_shift=:
11285 ;;
11286 *)
11287 ac_option=$1
11288 ac_optarg=$2
11289 ac_shift=shift
11290 ;;
11291 esac
11292
11293 case $ac_option in
11294 # Handling of the options.
11295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11296 ac_cs_recheck=: ;;
11297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11298 $as_echo "$ac_cs_version"; exit ;;
11299 --config | --confi | --conf | --con | --co | --c )
11300 $as_echo "$ac_cs_config"; exit ;;
11301 --debug | --debu | --deb | --de | --d | -d )
11302 debug=: ;;
11303 --file | --fil | --fi | --f )
11304 $ac_shift
11305 case $ac_optarg in
11306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11307 '') as_fn_error $? "missing file argument" ;;
11308 esac
11309 as_fn_append CONFIG_FILES " '$ac_optarg'"
11310 ac_need_defaults=false;;
11311 --header | --heade | --head | --hea )
11312 $ac_shift
11313 case $ac_optarg in
11314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11315 esac
11316 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11317 ac_need_defaults=false;;
11318 --he | --h)
11319 # Conflict between --help and --header
11320 as_fn_error $? "ambiguous option: \`$1'
11321 Try \`$0 --help' for more information.";;
11322 --help | --hel | -h )
11323 $as_echo "$ac_cs_usage"; exit ;;
11324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11326 ac_cs_silent=: ;;
11327
11328 # This is an error.
11329 -*) as_fn_error $? "unrecognized option: \`$1'
11330 Try \`$0 --help' for more information." ;;
11331
11332 *) as_fn_append ac_config_targets " $1"
11333 ac_need_defaults=false ;;
11334
11335 esac
11336 shift
11337 done
11338
11339 ac_configure_extra_args=
11340
11341 if $ac_cs_silent; then
11342 exec 6>/dev/null
11343 ac_configure_extra_args="$ac_configure_extra_args --silent"
11344 fi
11345
11346 _ACEOF
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11348 if \$ac_cs_recheck; then
11349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11350 shift
11351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11352 CONFIG_SHELL='$SHELL'
11353 export CONFIG_SHELL
11354 exec "\$@"
11355 fi
11356
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11359 exec 5>>config.log
11360 {
11361 echo
11362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11363 ## Running $as_me. ##
11364 _ASBOX
11365 $as_echo "$ac_log"
11366 } >&5
11367
11368 _ACEOF
11369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11370 #
11371 # INIT-COMMANDS
11372 #
11373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11374
11375 _ACEOF
11376
11377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11378
11379 # Handling of arguments.
11380 for ac_config_target in $ac_config_targets
11381 do
11382 case $ac_config_target in
11383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11384 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11386 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11387 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;;
11388
11389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11390 esac
11391 done
11392
11393
11394 # If the user did not use the arguments to specify the items to instantiate,
11395 # then the envvar interface is used. Set only those that are not.
11396 # We use the long form for the default assignment because of an extremely
11397 # bizarre bug on SunOS 4.1.3.
11398 if $ac_need_defaults; then
11399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11402 fi
11403
11404 # Have a temporary directory for convenience. Make it in the build tree
11405 # simply because there is no reason against having it here, and in addition,
11406 # creating and moving files from /tmp can sometimes cause problems.
11407 # Hook for its removal unless debugging.
11408 # Note that there is a small window in which the directory will not be cleaned:
11409 # after its creation but before its name has been assigned to `$tmp'.
11410 $debug ||
11411 {
11412 tmp= ac_tmp=
11413 trap 'exit_status=$?
11414 : "${ac_tmp:=$tmp}"
11415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11416 ' 0
11417 trap 'as_fn_exit 1' 1 2 13 15
11418 }
11419 # Create a (secure) tmp directory for tmp files.
11420
11421 {
11422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11423 test -d "$tmp"
11424 } ||
11425 {
11426 tmp=./conf$$-$RANDOM
11427 (umask 077 && mkdir "$tmp")
11428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11429 ac_tmp=$tmp
11430
11431 # Set up the scripts for CONFIG_FILES section.
11432 # No need to generate them if there are no CONFIG_FILES.
11433 # This happens for instance with `./config.status config.h'.
11434 if test -n "$CONFIG_FILES"; then
11435
11436
11437 ac_cr=`echo X | tr X '\015'`
11438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11439 # But we know of no other shell where ac_cr would be empty at this
11440 # point, so we can use a bashism as a fallback.
11441 if test "x$ac_cr" = x; then
11442 eval ac_cr=\$\'\\r\'
11443 fi
11444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11446 ac_cs_awk_cr='\\r'
11447 else
11448 ac_cs_awk_cr=$ac_cr
11449 fi
11450
11451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11452 _ACEOF
11453
11454
11455 {
11456 echo "cat >conf$$subs.awk <<_ACEOF" &&
11457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11458 echo "_ACEOF"
11459 } >conf$$subs.sh ||
11460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11462 ac_delim='%!_!# '
11463 for ac_last_try in false false false false false :; do
11464 . ./conf$$subs.sh ||
11465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11466
11467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11468 if test $ac_delim_n = $ac_delim_num; then
11469 break
11470 elif $ac_last_try; then
11471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11472 else
11473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11474 fi
11475 done
11476 rm -f conf$$subs.sh
11477
11478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11480 _ACEOF
11481 sed -n '
11482 h
11483 s/^/S["/; s/!.*/"]=/
11484 p
11485 g
11486 s/^[^!]*!//
11487 :repl
11488 t repl
11489 s/'"$ac_delim"'$//
11490 t delim
11491 :nl
11492 h
11493 s/\(.\{148\}\)..*/\1/
11494 t more1
11495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11496 p
11497 n
11498 b repl
11499 :more1
11500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11501 p
11502 g
11503 s/.\{148\}//
11504 t nl
11505 :delim
11506 h
11507 s/\(.\{148\}\)..*/\1/
11508 t more2
11509 s/["\\]/\\&/g; s/^/"/; s/$/"/
11510 p
11511 b
11512 :more2
11513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11514 p
11515 g
11516 s/.\{148\}//
11517 t delim
11518 ' <conf$$subs.awk | sed '
11519 /^[^""]/{
11520 N
11521 s/\n//
11522 }
11523 ' >>$CONFIG_STATUS || ac_write_fail=1
11524 rm -f conf$$subs.awk
11525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11526 _ACAWK
11527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11528 for (key in S) S_is_set[key] = 1
11529 FS = ""
11530
11531 }
11532 {
11533 line = $ 0
11534 nfields = split(line, field, "@")
11535 substed = 0
11536 len = length(field[1])
11537 for (i = 2; i < nfields; i++) {
11538 key = field[i]
11539 keylen = length(key)
11540 if (S_is_set[key]) {
11541 value = S[key]
11542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11543 len += length(value) + length(field[++i])
11544 substed = 1
11545 } else
11546 len += 1 + keylen
11547 }
11548
11549 print line
11550 }
11551
11552 _ACAWK
11553 _ACEOF
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11557 else
11558 cat
11559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11561 _ACEOF
11562
11563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11565 # trailing colons and then remove the whole line if VPATH becomes empty
11566 # (actually we leave an empty line to preserve line numbers).
11567 if test "x$srcdir" = x.; then
11568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11569 h
11570 s///
11571 s/^/:/
11572 s/[ ]*$/:/
11573 s/:\$(srcdir):/:/g
11574 s/:\${srcdir}:/:/g
11575 s/:@srcdir@:/:/g
11576 s/^:*//
11577 s/:*$//
11578 x
11579 s/\(=[ ]*\).*/\1/
11580 G
11581 s/\n//
11582 s/^[^=]*=[ ]*$//
11583 }'
11584 fi
11585
11586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11587 fi # test -n "$CONFIG_FILES"
11588
11589 # Set up the scripts for CONFIG_HEADERS section.
11590 # No need to generate them if there are no CONFIG_HEADERS.
11591 # This happens for instance with `./config.status Makefile'.
11592 if test -n "$CONFIG_HEADERS"; then
11593 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11594 BEGIN {
11595 _ACEOF
11596
11597 # Transform confdefs.h into an awk script `defines.awk', embedded as
11598 # here-document in config.status, that substitutes the proper values into
11599 # config.h.in to produce config.h.
11600
11601 # Create a delimiter string that does not exist in confdefs.h, to ease
11602 # handling of long lines.
11603 ac_delim='%!_!# '
11604 for ac_last_try in false false :; do
11605 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11606 if test -z "$ac_tt"; then
11607 break
11608 elif $ac_last_try; then
11609 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11610 else
11611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11612 fi
11613 done
11614
11615 # For the awk script, D is an array of macro values keyed by name,
11616 # likewise P contains macro parameters if any. Preserve backslash
11617 # newline sequences.
11618
11619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11620 sed -n '
11621 s/.\{148\}/&'"$ac_delim"'/g
11622 t rset
11623 :rset
11624 s/^[ ]*#[ ]*define[ ][ ]*/ /
11625 t def
11626 d
11627 :def
11628 s/\\$//
11629 t bsnl
11630 s/["\\]/\\&/g
11631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11632 D["\1"]=" \3"/p
11633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11634 d
11635 :bsnl
11636 s/["\\]/\\&/g
11637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11638 D["\1"]=" \3\\\\\\n"\\/p
11639 t cont
11640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11641 t cont
11642 d
11643 :cont
11644 n
11645 s/.\{148\}/&'"$ac_delim"'/g
11646 t clear
11647 :clear
11648 s/\\$//
11649 t bsnlc
11650 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11651 d
11652 :bsnlc
11653 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11654 b cont
11655 ' <confdefs.h | sed '
11656 s/'"$ac_delim"'/"\\\
11657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11658
11659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660 for (key in D) D_is_set[key] = 1
11661 FS = ""
11662 }
11663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11664 line = \$ 0
11665 split(line, arg, " ")
11666 if (arg[1] == "#") {
11667 defundef = arg[2]
11668 mac1 = arg[3]
11669 } else {
11670 defundef = substr(arg[1], 2)
11671 mac1 = arg[2]
11672 }
11673 split(mac1, mac2, "(") #)
11674 macro = mac2[1]
11675 prefix = substr(line, 1, index(line, defundef) - 1)
11676 if (D_is_set[macro]) {
11677 # Preserve the white space surrounding the "#".
11678 print prefix "define", macro P[macro] D[macro]
11679 next
11680 } else {
11681 # Replace #undef with comments. This is necessary, for example,
11682 # in the case of _POSIX_SOURCE, which is predefined and required
11683 # on some systems where configure will not decide to define it.
11684 if (defundef == "undef") {
11685 print "/*", prefix defundef, macro, "*/"
11686 next
11687 }
11688 }
11689 }
11690 { print }
11691 _ACAWK
11692 _ACEOF
11693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11694 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11695 fi # test -n "$CONFIG_HEADERS"
11696
11697
11698 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11699 shift
11700 for ac_tag
11701 do
11702 case $ac_tag in
11703 :[FHLC]) ac_mode=$ac_tag; continue;;
11704 esac
11705 case $ac_mode$ac_tag in
11706 :[FHL]*:*);;
11707 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11708 :[FH]-) ac_tag=-:-;;
11709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11710 esac
11711 ac_save_IFS=$IFS
11712 IFS=:
11713 set x $ac_tag
11714 IFS=$ac_save_IFS
11715 shift
11716 ac_file=$1
11717 shift
11718
11719 case $ac_mode in
11720 :L) ac_source=$1;;
11721 :[FH])
11722 ac_file_inputs=
11723 for ac_f
11724 do
11725 case $ac_f in
11726 -) ac_f="$ac_tmp/stdin";;
11727 *) # Look for the file first in the build tree, then in the source tree
11728 # (if the path is not absolute). The absolute path cannot be DOS-style,
11729 # because $ac_f cannot contain `:'.
11730 test -f "$ac_f" ||
11731 case $ac_f in
11732 [\\/$]*) false;;
11733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11734 esac ||
11735 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11736 esac
11737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11738 as_fn_append ac_file_inputs " '$ac_f'"
11739 done
11740
11741 # Let's still pretend it is `configure' which instantiates (i.e., don't
11742 # use $as_me), people would be surprised to read:
11743 # /* config.h. Generated by config.status. */
11744 configure_input='Generated from '`
11745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11746 `' by configure.'
11747 if test x"$ac_file" != x-; then
11748 configure_input="$ac_file. $configure_input"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11750 $as_echo "$as_me: creating $ac_file" >&6;}
11751 fi
11752 # Neutralize special characters interpreted by sed in replacement strings.
11753 case $configure_input in #(
11754 *\&* | *\|* | *\\* )
11755 ac_sed_conf_input=`$as_echo "$configure_input" |
11756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11757 *) ac_sed_conf_input=$configure_input;;
11758 esac
11759
11760 case $ac_tag in
11761 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11763 esac
11764 ;;
11765 esac
11766
11767 ac_dir=`$as_dirname -- "$ac_file" ||
11768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11769 X"$ac_file" : 'X\(//\)[^/]' \| \
11770 X"$ac_file" : 'X\(//\)$' \| \
11771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11772 $as_echo X"$ac_file" |
11773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11774 s//\1/
11775 q
11776 }
11777 /^X\(\/\/\)[^/].*/{
11778 s//\1/
11779 q
11780 }
11781 /^X\(\/\/\)$/{
11782 s//\1/
11783 q
11784 }
11785 /^X\(\/\).*/{
11786 s//\1/
11787 q
11788 }
11789 s/.*/./; q'`
11790 as_dir="$ac_dir"; as_fn_mkdir_p
11791 ac_builddir=.
11792
11793 case "$ac_dir" in
11794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11795 *)
11796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11797 # A ".." for each directory in $ac_dir_suffix.
11798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11799 case $ac_top_builddir_sub in
11800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11802 esac ;;
11803 esac
11804 ac_abs_top_builddir=$ac_pwd
11805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11806 # for backward compatibility:
11807 ac_top_builddir=$ac_top_build_prefix
11808
11809 case $srcdir in
11810 .) # We are building in place.
11811 ac_srcdir=.
11812 ac_top_srcdir=$ac_top_builddir_sub
11813 ac_abs_top_srcdir=$ac_pwd ;;
11814 [\\/]* | ?:[\\/]* ) # Absolute name.
11815 ac_srcdir=$srcdir$ac_dir_suffix;
11816 ac_top_srcdir=$srcdir
11817 ac_abs_top_srcdir=$srcdir ;;
11818 *) # Relative name.
11819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11820 ac_top_srcdir=$ac_top_build_prefix$srcdir
11821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11822 esac
11823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11824
11825
11826 case $ac_mode in
11827 :F)
11828 #
11829 # CONFIG_FILE
11830 #
11831
11832 case $INSTALL in
11833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11835 esac
11836 ac_MKDIR_P=$MKDIR_P
11837 case $MKDIR_P in
11838 [\\/$]* | ?:[\\/]* ) ;;
11839 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11840 esac
11841 _ACEOF
11842
11843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11844 # If the template does not know about datarootdir, expand it.
11845 # FIXME: This hack should be removed a few years after 2.60.
11846 ac_datarootdir_hack=; ac_datarootdir_seen=
11847 ac_sed_dataroot='
11848 /datarootdir/ {
11849 p
11850 q
11851 }
11852 /@datadir@/p
11853 /@docdir@/p
11854 /@infodir@/p
11855 /@localedir@/p
11856 /@mandir@/p'
11857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11858 *datarootdir*) ac_datarootdir_seen=yes;;
11859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11862 _ACEOF
11863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11864 ac_datarootdir_hack='
11865 s&@datadir@&$datadir&g
11866 s&@docdir@&$docdir&g
11867 s&@infodir@&$infodir&g
11868 s&@localedir@&$localedir&g
11869 s&@mandir@&$mandir&g
11870 s&\\\${datarootdir}&$datarootdir&g' ;;
11871 esac
11872 _ACEOF
11873
11874 # Neutralize VPATH when `$srcdir' = `.'.
11875 # Shell code in configure.ac might set extrasub.
11876 # FIXME: do we really want to maintain this feature?
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878 ac_sed_extra="$ac_vpsub
11879 $extrasub
11880 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882 :t
11883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11884 s|@configure_input@|$ac_sed_conf_input|;t t
11885 s&@top_builddir@&$ac_top_builddir_sub&;t t
11886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11887 s&@srcdir@&$ac_srcdir&;t t
11888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11889 s&@top_srcdir@&$ac_top_srcdir&;t t
11890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11891 s&@builddir@&$ac_builddir&;t t
11892 s&@abs_builddir@&$ac_abs_builddir&;t t
11893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11894 s&@INSTALL@&$ac_INSTALL&;t t
11895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11896 $ac_datarootdir_hack
11897 "
11898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11900
11901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11904 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11906 which seems to be undefined. Please make sure it is defined" >&5
11907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11908 which seems to be undefined. Please make sure it is defined" >&2;}
11909
11910 rm -f "$ac_tmp/stdin"
11911 case $ac_file in
11912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11914 esac \
11915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11916 ;;
11917 :H)
11918 #
11919 # CONFIG_HEADER
11920 #
11921 if test x"$ac_file" != x-; then
11922 {
11923 $as_echo "/* $configure_input */" \
11924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11925 } >"$ac_tmp/config.h" \
11926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11930 else
11931 rm -f "$ac_file"
11932 mv "$ac_tmp/config.h" "$ac_file" \
11933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11934 fi
11935 else
11936 $as_echo "/* $configure_input */" \
11937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11938 || as_fn_error $? "could not create -" "$LINENO" 5
11939 fi
11940 # Compute "$ac_file"'s index in $config_headers.
11941 _am_arg="$ac_file"
11942 _am_stamp_count=1
11943 for _am_header in $config_headers :; do
11944 case $_am_header in
11945 $_am_arg | $_am_arg:* )
11946 break ;;
11947 * )
11948 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11949 esac
11950 done
11951 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11952 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11953 X"$_am_arg" : 'X\(//\)[^/]' \| \
11954 X"$_am_arg" : 'X\(//\)$' \| \
11955 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11956 $as_echo X"$_am_arg" |
11957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11958 s//\1/
11959 q
11960 }
11961 /^X\(\/\/\)[^/].*/{
11962 s//\1/
11963 q
11964 }
11965 /^X\(\/\/\)$/{
11966 s//\1/
11967 q
11968 }
11969 /^X\(\/\).*/{
11970 s//\1/
11971 q
11972 }
11973 s/.*/./; q'`/stamp-h$_am_stamp_count
11974 ;;
11975
11976 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11977 $as_echo "$as_me: executing $ac_file commands" >&6;}
11978 ;;
11979 esac
11980
11981
11982 case $ac_file$ac_mode in
11983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11984 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11985 # are listed without --file. Let's play safe and only enable the eval
11986 # if we detect the quoting.
11987 case $CONFIG_FILES in
11988 *\'*) eval set x "$CONFIG_FILES" ;;
11989 *) set x $CONFIG_FILES ;;
11990 esac
11991 shift
11992 for mf
11993 do
11994 # Strip MF so we end up with the name of the file.
11995 mf=`echo "$mf" | sed -e 's/:.*$//'`
11996 # Check whether this is an Automake generated Makefile or not.
11997 # We used to match only the files named `Makefile.in', but
11998 # some people rename them; so instead we look at the file content.
11999 # Grep'ing the first line is not enough: some people post-process
12000 # each Makefile.in and add a new line on top of each file to say so.
12001 # Grep'ing the whole file is not good either: AIX grep has a line
12002 # limit of 2048, but all sed's we know have understand at least 4000.
12003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12004 dirpart=`$as_dirname -- "$mf" ||
12005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$mf" : 'X\(//\)[^/]' \| \
12007 X"$mf" : 'X\(//\)$' \| \
12008 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12009 $as_echo X"$mf" |
12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12011 s//\1/
12012 q
12013 }
12014 /^X\(\/\/\)[^/].*/{
12015 s//\1/
12016 q
12017 }
12018 /^X\(\/\/\)$/{
12019 s//\1/
12020 q
12021 }
12022 /^X\(\/\).*/{
12023 s//\1/
12024 q
12025 }
12026 s/.*/./; q'`
12027 else
12028 continue
12029 fi
12030 # Extract the definition of DEPDIR, am__include, and am__quote
12031 # from the Makefile without running `make'.
12032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12033 test -z "$DEPDIR" && continue
12034 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12035 test -z "am__include" && continue
12036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12037 # When using ansi2knr, U may be empty or an underscore; expand it
12038 U=`sed -n 's/^U = //p' < "$mf"`
12039 # Find all dependency output files, they are included files with
12040 # $(DEPDIR) in their names. We invoke sed twice because it is the
12041 # simplest approach to changing $(DEPDIR) to its actual value in the
12042 # expansion.
12043 for file in `sed -n "
12044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12046 # Make sure the directory exists.
12047 test -f "$dirpart/$file" && continue
12048 fdir=`$as_dirname -- "$file" ||
12049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12050 X"$file" : 'X\(//\)[^/]' \| \
12051 X"$file" : 'X\(//\)$' \| \
12052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12053 $as_echo X"$file" |
12054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12055 s//\1/
12056 q
12057 }
12058 /^X\(\/\/\)[^/].*/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\).*/{
12067 s//\1/
12068 q
12069 }
12070 s/.*/./; q'`
12071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12072 # echo "creating $dirpart/$file"
12073 echo '# dummy' > "$dirpart/$file"
12074 done
12075 done
12076 }
12077 ;;
12078
12079 esac
12080 done # for ac_tag
12081
12082
12083 as_fn_exit 0
12084 _ACEOF
12085 ac_clean_files=$ac_clean_files_save
12086
12087 test $ac_write_fail = 0 ||
12088 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12089
12090
12091 # configure is writing to config.log, and then calls config.status.
12092 # config.status does its own redirection, appending to config.log.
12093 # Unfortunately, on DOS this fails, as config.log is still kept open
12094 # by configure, so config.status won't be able to write to it; its
12095 # output is simply discarded. So we exec the FD to /dev/null,
12096 # effectively closing config.log, so it can be properly (re)opened and
12097 # appended to by config.status. When coming back to configure, we
12098 # need to make the FD available again.
12099 if test "$no_create" != yes; then
12100 ac_cs_success=:
12101 ac_config_status_args=
12102 test "$silent" = yes &&
12103 ac_config_status_args="$ac_config_status_args --quiet"
12104 exec 5>/dev/null
12105 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12106 exec 5>>config.log
12107 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12108 # would make configure fail if this is the last instruction.
12109 $ac_cs_success || as_fn_exit 1
12110 fi
12111 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12113 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12114 fi
12115
12116