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