upload tizen2.0 source
[framework/uifw/xorg/util/x11-xkb-utils.git] / xkbevd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xkbevd 1.1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@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='xkbevd'
563 PACKAGE_TARNAME='xkbevd'
564 PACKAGE_VERSION='1.1.3'
565 PACKAGE_STRING='xkbevd 1.1.3'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 #  include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #  include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 XKBEVD_LIBS
611 XKBEVD_CFLAGS
612 YACC_INST
613 YFLAGS
614 YACC
615 AM_BACKSLASH
616 AM_DEFAULT_VERBOSITY
617 MAN_SUBSTS
618 XORG_MAN_PAGE
619 ADMIN_MAN_DIR
620 DRIVER_MAN_DIR
621 MISC_MAN_DIR
622 FILE_MAN_DIR
623 LIB_MAN_DIR
624 APP_MAN_DIR
625 ADMIN_MAN_SUFFIX
626 DRIVER_MAN_SUFFIX
627 MISC_MAN_SUFFIX
628 FILE_MAN_SUFFIX
629 LIB_MAN_SUFFIX
630 APP_MAN_SUFFIX
631 SED
632 host_os
633 host_vendor
634 host_cpu
635 host
636 build_os
637 build_vendor
638 build_cpu
639 build
640 INSTALL_CMD
641 PKG_CONFIG
642 CHANGELOG_CMD
643 STRICT_CFLAGS
644 CWARNFLAGS
645 BASE_CFLAGS
646 EGREP
647 GREP
648 CPP
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 enable_dependency_tracking
734 enable_selective_werror
735 enable_strict_compilation
736 enable_silent_rules
737 '
738       ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 PKG_CONFIG
748 YACC
749 YFLAGS
750 XKBEVD_CFLAGS
751 XKBEVD_LIBS'
752
753
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
775
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
801
802 ac_prev=
803 ac_dashdash=
804 for ac_option
805 do
806   # If the previous option needs an argument, assign it.
807   if test -n "$ac_prev"; then
808     eval $ac_prev=\$ac_option
809     ac_prev=
810     continue
811   fi
812
813   case $ac_option in
814   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815   *=)   ac_optarg= ;;
816   *)    ac_optarg=yes ;;
817   esac
818
819   # Accept the important Cygnus configure options, so we can diagnose typos.
820
821   case $ac_dashdash$ac_option in
822   --)
823     ac_dashdash=yes ;;
824
825   -bindir | --bindir | --bindi | --bind | --bin | --bi)
826     ac_prev=bindir ;;
827   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828     bindir=$ac_optarg ;;
829
830   -build | --build | --buil | --bui | --bu)
831     ac_prev=build_alias ;;
832   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833     build_alias=$ac_optarg ;;
834
835   -cache-file | --cache-file | --cache-fil | --cache-fi \
836   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837     ac_prev=cache_file ;;
838   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840     cache_file=$ac_optarg ;;
841
842   --config-cache | -C)
843     cache_file=config.cache ;;
844
845   -datadir | --datadir | --datadi | --datad)
846     ac_prev=datadir ;;
847   -datadir=* | --datadir=* | --datadi=* | --datad=*)
848     datadir=$ac_optarg ;;
849
850   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851   | --dataroo | --dataro | --datar)
852     ac_prev=datarootdir ;;
853   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855     datarootdir=$ac_optarg ;;
856
857   -disable-* | --disable-*)
858     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859     # Reject names that are not valid shell variable names.
860     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861       as_fn_error $? "invalid feature name: $ac_useropt"
862     ac_useropt_orig=$ac_useropt
863     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864     case $ac_user_opts in
865       *"
866 "enable_$ac_useropt"
867 "*) ;;
868       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869          ac_unrecognized_sep=', ';;
870     esac
871     eval enable_$ac_useropt=no ;;
872
873   -docdir | --docdir | --docdi | --doc | --do)
874     ac_prev=docdir ;;
875   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876     docdir=$ac_optarg ;;
877
878   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879     ac_prev=dvidir ;;
880   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881     dvidir=$ac_optarg ;;
882
883   -enable-* | --enable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=\$ac_optarg ;;
898
899   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901   | --exec | --exe | --ex)
902     ac_prev=exec_prefix ;;
903   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905   | --exec=* | --exe=* | --ex=*)
906     exec_prefix=$ac_optarg ;;
907
908   -gas | --gas | --ga | --g)
909     # Obsolete; use --with-gas.
910     with_gas=yes ;;
911
912   -help | --help | --hel | --he | -h)
913     ac_init_help=long ;;
914   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915     ac_init_help=recursive ;;
916   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917     ac_init_help=short ;;
918
919   -host | --host | --hos | --ho)
920     ac_prev=host_alias ;;
921   -host=* | --host=* | --hos=* | --ho=*)
922     host_alias=$ac_optarg ;;
923
924   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925     ac_prev=htmldir ;;
926   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927   | --ht=*)
928     htmldir=$ac_optarg ;;
929
930   -includedir | --includedir | --includedi | --included | --include \
931   | --includ | --inclu | --incl | --inc)
932     ac_prev=includedir ;;
933   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934   | --includ=* | --inclu=* | --incl=* | --inc=*)
935     includedir=$ac_optarg ;;
936
937   -infodir | --infodir | --infodi | --infod | --info | --inf)
938     ac_prev=infodir ;;
939   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940     infodir=$ac_optarg ;;
941
942   -libdir | --libdir | --libdi | --libd)
943     ac_prev=libdir ;;
944   -libdir=* | --libdir=* | --libdi=* | --libd=*)
945     libdir=$ac_optarg ;;
946
947   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948   | --libexe | --libex | --libe)
949     ac_prev=libexecdir ;;
950   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951   | --libexe=* | --libex=* | --libe=*)
952     libexecdir=$ac_optarg ;;
953
954   -localedir | --localedir | --localedi | --localed | --locale)
955     ac_prev=localedir ;;
956   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957     localedir=$ac_optarg ;;
958
959   -localstatedir | --localstatedir | --localstatedi | --localstated \
960   | --localstate | --localstat | --localsta | --localst | --locals)
961     ac_prev=localstatedir ;;
962   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964     localstatedir=$ac_optarg ;;
965
966   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967     ac_prev=mandir ;;
968   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969     mandir=$ac_optarg ;;
970
971   -nfp | --nfp | --nf)
972     # Obsolete; use --without-fp.
973     with_fp=no ;;
974
975   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976   | --no-cr | --no-c | -n)
977     no_create=yes ;;
978
979   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981     no_recursion=yes ;;
982
983   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985   | --oldin | --oldi | --old | --ol | --o)
986     ac_prev=oldincludedir ;;
987   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990     oldincludedir=$ac_optarg ;;
991
992   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993     ac_prev=prefix ;;
994   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995     prefix=$ac_optarg ;;
996
997   -program-prefix | --program-prefix | --program-prefi | --program-pref \
998   | --program-pre | --program-pr | --program-p)
999     ac_prev=program_prefix ;;
1000   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002     program_prefix=$ac_optarg ;;
1003
1004   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005   | --program-suf | --program-su | --program-s)
1006     ac_prev=program_suffix ;;
1007   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009     program_suffix=$ac_optarg ;;
1010
1011   -program-transform-name | --program-transform-name \
1012   | --program-transform-nam | --program-transform-na \
1013   | --program-transform-n | --program-transform- \
1014   | --program-transform | --program-transfor \
1015   | --program-transfo | --program-transf \
1016   | --program-trans | --program-tran \
1017   | --progr-tra | --program-tr | --program-t)
1018     ac_prev=program_transform_name ;;
1019   -program-transform-name=* | --program-transform-name=* \
1020   | --program-transform-nam=* | --program-transform-na=* \
1021   | --program-transform-n=* | --program-transform-=* \
1022   | --program-transform=* | --program-transfor=* \
1023   | --program-transfo=* | --program-transf=* \
1024   | --program-trans=* | --program-tran=* \
1025   | --progr-tra=* | --program-tr=* | --program-t=*)
1026     program_transform_name=$ac_optarg ;;
1027
1028   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029     ac_prev=pdfdir ;;
1030   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031     pdfdir=$ac_optarg ;;
1032
1033   -psdir | --psdir | --psdi | --psd | --ps)
1034     ac_prev=psdir ;;
1035   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036     psdir=$ac_optarg ;;
1037
1038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039   | -silent | --silent | --silen | --sile | --sil)
1040     silent=yes ;;
1041
1042   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043     ac_prev=sbindir ;;
1044   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045   | --sbi=* | --sb=*)
1046     sbindir=$ac_optarg ;;
1047
1048   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050   | --sharedst | --shareds | --shared | --share | --shar \
1051   | --sha | --sh)
1052     ac_prev=sharedstatedir ;;
1053   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056   | --sha=* | --sh=*)
1057     sharedstatedir=$ac_optarg ;;
1058
1059   -site | --site | --sit)
1060     ac_prev=site ;;
1061   -site=* | --site=* | --sit=*)
1062     site=$ac_optarg ;;
1063
1064   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065     ac_prev=srcdir ;;
1066   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067     srcdir=$ac_optarg ;;
1068
1069   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070   | --syscon | --sysco | --sysc | --sys | --sy)
1071     ac_prev=sysconfdir ;;
1072   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074     sysconfdir=$ac_optarg ;;
1075
1076   -target | --target | --targe | --targ | --tar | --ta | --t)
1077     ac_prev=target_alias ;;
1078   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079     target_alias=$ac_optarg ;;
1080
1081   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082     verbose=yes ;;
1083
1084   -version | --version | --versio | --versi | --vers | -V)
1085     ac_init_version=: ;;
1086
1087   -with-* | --with-*)
1088     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091       as_fn_error $? "invalid package name: $ac_useropt"
1092     ac_useropt_orig=$ac_useropt
1093     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094     case $ac_user_opts in
1095       *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099          ac_unrecognized_sep=', ';;
1100     esac
1101     eval with_$ac_useropt=\$ac_optarg ;;
1102
1103   -without-* | --without-*)
1104     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105     # Reject names that are not valid shell variable names.
1106     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107       as_fn_error $? "invalid package name: $ac_useropt"
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1139     ;;
1140
1141   *=*)
1142     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143     # Reject names that are not valid shell variable names.
1144     case $ac_envvar in #(
1145       '' | [0-9]* | *[!_$as_cr_alnum]* )
1146       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147     esac
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   as_fn_error $? "missing argument to $ac_option"
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168   case $enable_option_checking in
1169     no) ;;
1170     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172   esac
1173 fi
1174
1175 # Check all directory arguments for consistency.
1176 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177                 datadir sysconfdir sharedstatedir localstatedir includedir \
1178                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179                 libdir localedir mandir
1180 do
1181   eval ac_val=\$$ac_var
1182   # Remove trailing slashes.
1183   case $ac_val in
1184     */ )
1185       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186       eval $ac_var=\$ac_val;;
1187   esac
1188   # Be sure to have absolute directory names.
1189   case $ac_val in
1190     [\\/$]* | ?:[\\/]* )  continue;;
1191     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192   esac
1193   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1194 done
1195
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1202
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205   if test "x$build_alias" = x; then
1206     cross_compiling=maybe
1207     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208     If a cross compiler is detected then cross compile mode will be used" >&2
1209   elif test "x$build_alias" != "x$host_alias"; then
1210     cross_compiling=yes
1211   fi
1212 fi
1213
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216
1217 test "$silent" = yes && exec 6>/dev/null
1218
1219
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223   as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225   as_fn_error $? "pwd does not report name of working directory"
1226
1227
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230   ac_srcdir_defaulted=yes
1231   # Try the directory containing this script, then the parent directory.
1232   ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234          X"$as_myself" : 'X\(//\)[^/]' \| \
1235          X"$as_myself" : 'X\(//\)$' \| \
1236          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)[^/].*/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\).*/{
1251             s//\1/
1252             q
1253           }
1254           s/.*/./; q'`
1255   srcdir=$ac_confdir
1256   if test ! -r "$srcdir/$ac_unique_file"; then
1257     srcdir=..
1258   fi
1259 else
1260   ac_srcdir_defaulted=no
1261 fi
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 fi
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269         pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272   srcdir=.
1273 fi
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_env_${ac_var}_value=\$${ac_var}
1283   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1286
1287 #
1288 # Report the --help message.
1289 #
1290 if test "$ac_init_help" = "long"; then
1291   # Omit some internal or obsolete options to make the list less imposing.
1292   # This message is too long to be a string in the A/UX 3.1 sh.
1293   cat <<_ACEOF
1294 \`configure' configures xkbevd 1.1.3 to adapt to many kinds of systems.
1295
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE.  See below for descriptions of some of the useful variables.
1300
1301 Defaults for the options are specified in brackets.
1302
1303 Configuration:
1304   -h, --help              display this help and exit
1305       --help=short        display options specific to this package
1306       --help=recursive    display the short help of all the included packages
1307   -V, --version           display version information and exit
1308   -q, --quiet, --silent   do not print \`checking ...' messages
1309       --cache-file=FILE   cache test results in FILE [disabled]
1310   -C, --config-cache      alias for \`--cache-file=config.cache'
1311   -n, --no-create         do not create output files
1312       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1313
1314 Installation directories:
1315   --prefix=PREFIX         install architecture-independent files in PREFIX
1316                           [$ac_default_prefix]
1317   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1318                           [PREFIX]
1319
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1324
1325 For better control, use the options below.
1326
1327 Fine tuning of the installation directories:
1328   --bindir=DIR            user executables [EPREFIX/bin]
1329   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1330   --libexecdir=DIR        program executables [EPREFIX/libexec]
1331   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1332   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1333   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1334   --libdir=DIR            object code libraries [EPREFIX/lib]
1335   --includedir=DIR        C header files [PREFIX/include]
1336   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1337   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1338   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1339   --infodir=DIR           info documentation [DATAROOTDIR/info]
1340   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341   --mandir=DIR            man documentation [DATAROOTDIR/man]
1342   --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbevd]
1343   --htmldir=DIR           html documentation [DOCDIR]
1344   --dvidir=DIR            dvi documentation [DOCDIR]
1345   --pdfdir=DIR            pdf documentation [DOCDIR]
1346   --psdir=DIR             ps documentation [DOCDIR]
1347 _ACEOF
1348
1349   cat <<\_ACEOF
1350
1351 Program names:
1352   --program-prefix=PREFIX            prepend PREFIX to installed program names
1353   --program-suffix=SUFFIX            append SUFFIX to installed program names
1354   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1355
1356 System types:
1357   --build=BUILD     configure for building on BUILD [guessed]
1358   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1359 _ACEOF
1360 fi
1361
1362 if test -n "$ac_init_help"; then
1363   case $ac_init_help in
1364      short | recursive ) echo "Configuration of xkbevd 1.1.3:";;
1365    esac
1366   cat <<\_ACEOF
1367
1368 Optional Features:
1369   --disable-option-checking  ignore unrecognized --enable/--with options
1370   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1371   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1372   --enable-maintainer-mode  enable make rules and dependencies not useful
1373                           (and sometimes confusing) to the casual installer
1374   --disable-dependency-tracking  speeds up one-time build
1375   --enable-dependency-tracking   do not reject slow dependency extractors
1376   --disable-selective-werror
1377                           Turn off selective compiler errors. (default:
1378                           enabled)
1379   --enable-strict-compilation
1380                           Enable all warnings from compiler and make them
1381                           errors (default: disabled)
1382   --enable-silent-rules          less verbose build output (undo: `make V=1')
1383   --disable-silent-rules         verbose build output (undo: `make V=0')
1384
1385 Some influential environment variables:
1386   CC          C compiler command
1387   CFLAGS      C compiler flags
1388   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1389               nonstandard directory <lib dir>
1390   LIBS        libraries to pass to the linker, e.g. -l<library>
1391   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392               you have headers in a nonstandard directory <include dir>
1393   CPP         C preprocessor
1394   PKG_CONFIG  path to pkg-config utility
1395   YACC        The `Yet Another Compiler Compiler' implementation to use.
1396               Defaults to the first program found out of: `bison -y', `byacc',
1397               `yacc'.
1398   YFLAGS      The list of arguments that will be passed by default to $YACC.
1399               This script will default YFLAGS to the empty string to avoid a
1400               default value of `-d' given by some make applications.
1401   XKBEVD_CFLAGS
1402               C compiler flags for XKBEVD, overriding pkg-config
1403   XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414   # If there are subdirs, report their specific --help.
1415   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416     test -d "$ac_dir" ||
1417       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418       continue
1419     ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425   # A ".." for each directory in $ac_dir_suffix.
1426   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427   case $ac_top_builddir_sub in
1428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430   esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438   .)  # We are building in place.
1439     ac_srcdir=.
1440     ac_top_srcdir=$ac_top_builddir_sub
1441     ac_abs_top_srcdir=$ac_pwd ;;
1442   [\\/]* | ?:[\\/]* )  # Absolute name.
1443     ac_srcdir=$srcdir$ac_dir_suffix;
1444     ac_top_srcdir=$srcdir
1445     ac_abs_top_srcdir=$srcdir ;;
1446   *) # Relative name.
1447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448     ac_top_srcdir=$ac_top_build_prefix$srcdir
1449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453     cd "$ac_dir" || { ac_status=$?; continue; }
1454     # Check for guested configure.
1455     if test -f "$ac_srcdir/configure.gnu"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458     elif test -f "$ac_srcdir/configure"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure" --help=recursive
1461     else
1462       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463     fi || ac_status=$?
1464     cd "$ac_pwd" || { ac_status=$?; break; }
1465   done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470   cat <<\_ACEOF
1471 xkbevd configure 1.1.3
1472 generated by GNU Autoconf 2.68
1473
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478   exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491   rm -f conftest.$ac_objext
1492   if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495   *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499   (eval "$ac_compile") 2>conftest.err
1500   ac_status=$?
1501   if test -s conftest.err; then
1502     grep -v '^ *+' conftest.err >conftest.er1
1503     cat conftest.er1 >&5
1504     mv -f conftest.er1 conftest.err
1505   fi
1506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507   test $ac_status = 0; } && {
1508          test -z "$ac_c_werror_flag" ||
1509          test ! -s conftest.err
1510        } && test -s conftest.$ac_objext; then :
1511   ac_retval=0
1512 else
1513   $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516         ac_retval=1
1517 fi
1518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519   as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1524 # ---------------------------------------------
1525 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1526 # accordingly.
1527 ac_fn_c_check_decl ()
1528 {
1529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530   as_decl_name=`echo $2|sed 's/ *(.*//'`
1531   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1533 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1534 if eval \${$3+:} false; then :
1535   $as_echo_n "(cached) " >&6
1536 else
1537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h.  */
1539 $4
1540 int
1541 main ()
1542 {
1543 #ifndef $as_decl_name
1544 #ifdef __cplusplus
1545   (void) $as_decl_use;
1546 #else
1547   (void) $as_decl_name;
1548 #endif
1549 #endif
1550
1551   ;
1552   return 0;
1553 }
1554 _ACEOF
1555 if ac_fn_c_try_compile "$LINENO"; then :
1556   eval "$3=yes"
1557 else
1558   eval "$3=no"
1559 fi
1560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1561 fi
1562 eval ac_res=\$$3
1563                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
1567 } # ac_fn_c_check_decl
1568
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_cpp ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 case "(($ac_try" in
1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578   *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583   ac_status=$?
1584   if test -s conftest.err; then
1585     grep -v '^ *+' conftest.err >conftest.er1
1586     cat conftest.er1 >&5
1587     mv -f conftest.er1 conftest.err
1588   fi
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } > conftest.i && {
1591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592          test ! -s conftest.err
1593        }; then :
1594   ac_retval=0
1595 else
1596   $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599     ac_retval=1
1600 fi
1601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602   as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_cpp
1605
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1610 ac_fn_c_try_run ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_link") 2>&5
1621   ac_status=$?
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624   { { case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_try") 2>&5
1631   ac_status=$?
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; }; }; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: program exited with status $ac_status" >&5
1637        $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640        ac_retval=$ac_status
1641 fi
1642   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644   as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_run
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658   $as_echo_n "(cached) " >&6
1659 else
1660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666   eval "$3=yes"
1667 else
1668   eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677 } # ac_fn_c_check_header_compile
1678
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   rm -f conftest.$ac_objext conftest$ac_exeext
1686   if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689   *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693   (eval "$ac_link") 2>conftest.err
1694   ac_status=$?
1695   if test -s conftest.err; then
1696     grep -v '^ *+' conftest.err >conftest.er1
1697     cat conftest.er1 >&5
1698     mv -f conftest.er1 conftest.err
1699   fi
1700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701   test $ac_status = 0; } && {
1702          test -z "$ac_c_werror_flag" ||
1703          test ! -s conftest.err
1704        } && test -s conftest$ac_exeext && {
1705          test "$cross_compiling" = yes ||
1706          $as_test_x conftest$ac_exeext
1707        }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713         ac_retval=1
1714 fi
1715   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717   # interfere with the next link command; also delete a directory that is
1718   # left behind by Apple's compiler.  We do this before executing the actions.
1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_link
1724
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734   $as_echo_n "(cached) " >&6
1735 else
1736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h.  */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743     which can conflict with char $2 (); below.
1744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745     <limits.h> exists even on freestanding compilers.  */
1746
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1752
1753 #undef $2
1754
1755 /* Override any GCC internal prototype to avoid an error.
1756    Use char because int might match the return type of a GCC
1757    builtin and then its argument prototype would still apply.  */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763     to always fail with ENOSYS.  Some functions are actually named
1764     something starting with __ and the normal name is an alias.  */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1768
1769 int
1770 main ()
1771 {
1772 return $2 ();
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778   eval "$3=yes"
1779 else
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext \
1783     conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1794
1795 It was created by xkbevd $as_me 1.1.3, which was
1796 generated by GNU Autoconf 2.68.  Invocation command line was
1797
1798   $ $0 $@
1799
1800 _ACEOF
1801 exec 5>>config.log
1802 {
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1807
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1816
1817 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1818 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1821 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1822 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1823 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1824
1825 _ASUNAME
1826
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832     $as_echo "PATH: $as_dir"
1833   done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859   for ac_arg
1860   do
1861     case $ac_arg in
1862     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864     | -silent | --silent | --silen | --sile | --sil)
1865       continue ;;
1866     *\'*)
1867       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     esac
1869     case $ac_pass in
1870     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871     2)
1872       as_fn_append ac_configure_args1 " '$ac_arg'"
1873       if test $ac_must_keep_next = true; then
1874         ac_must_keep_next=false # Got value, back to normal.
1875       else
1876         case $ac_arg in
1877           *=* | --config-cache | -C | -disable-* | --disable-* \
1878           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880           | -with-* | --with-* | -without-* | --without-* | --x)
1881             case "$ac_configure_args0 " in
1882               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883             esac
1884             ;;
1885           -* ) ac_must_keep_next=true ;;
1886         esac
1887       fi
1888       as_fn_append ac_configure_args " '$ac_arg'"
1889       ;;
1890     esac
1891   done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log.  We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902   # Save into config.log some information that might help in debugging.
1903   {
1904     echo
1905
1906     $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1909     echo
1910     # The following way of writing the cache mishandles newlines in values,
1911 (
1912   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913     eval ac_val=\$$ac_var
1914     case $ac_val in #(
1915     *${as_nl}*)
1916       case $ac_var in #(
1917       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1919       esac
1920       case $ac_var in #(
1921       _ | IFS | as_nl) ;; #(
1922       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923       *) { eval $ac_var=; unset $ac_var;} ;;
1924       esac ;;
1925     esac
1926   done
1927   (set) 2>&1 |
1928     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929     *${as_nl}ac_space=\ *)
1930       sed -n \
1931         "s/'\''/'\''\\\\'\'''\''/g;
1932           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1933       ;; #(
1934     *)
1935       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936       ;;
1937     esac |
1938     sort
1939 )
1940     echo
1941
1942     $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1945     echo
1946     for ac_var in $ac_subst_vars
1947     do
1948       eval ac_val=\$$ac_var
1949       case $ac_val in
1950       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951       esac
1952       $as_echo "$ac_var='\''$ac_val'\''"
1953     done | sort
1954     echo
1955
1956     if test -n "$ac_subst_files"; then
1957       $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1960       echo
1961       for ac_var in $ac_subst_files
1962       do
1963         eval ac_val=\$$ac_var
1964         case $ac_val in
1965         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966         esac
1967         $as_echo "$ac_var='\''$ac_val'\''"
1968       done | sort
1969       echo
1970     fi
1971
1972     if test -s confdefs.h; then
1973       $as_echo "## ----------- ##
1974 ## confdefs.h. ##
1975 ## ----------- ##"
1976       echo
1977       cat confdefs.h
1978       echo
1979     fi
1980     test "$ac_signal" != 0 &&
1981       $as_echo "$as_me: caught signal $ac_signal"
1982     $as_echo "$as_me: exit $exit_status"
1983   } >&5
1984   rm -f core *.core core.conftest.* &&
1985     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986     exit $exit_status
1987 ' 0
1988 for ac_signal in 1 2 13 15; do
1989   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990 done
1991 ac_signal=0
1992
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1995
1996 $as_echo "/* confdefs.h */" > confdefs.h
1997
1998 # Predefined preprocessor variables.
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 _ACEOF
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2006 _ACEOF
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 _ACEOF
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2022 _ACEOF
2023
2024
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2027 ac_site_file1=NONE
2028 ac_site_file2=NONE
2029 if test -n "$CONFIG_SITE"; then
2030   # We do not want a PATH search for config.site.
2031   case $CONFIG_SITE in #((
2032     -*)  ac_site_file1=./$CONFIG_SITE;;
2033     */*) ac_site_file1=$CONFIG_SITE;;
2034     *)   ac_site_file1=./$CONFIG_SITE;;
2035   esac
2036 elif test "x$prefix" != xNONE; then
2037   ac_site_file1=$prefix/share/config.site
2038   ac_site_file2=$prefix/etc/config.site
2039 else
2040   ac_site_file1=$ac_default_prefix/share/config.site
2041   ac_site_file2=$ac_default_prefix/etc/config.site
2042 fi
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2044 do
2045   test "x$ac_site_file" = xNONE && continue
2046   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049     sed 's/^/| /' "$ac_site_file" >&5
2050     . "$ac_site_file" \
2051       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2055   fi
2056 done
2057
2058 if test -r "$cache_file"; then
2059   # Some versions of bash will fail to source /dev/null (special files
2060   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2061   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2064     case $cache_file in
2065       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066       *)                      . "./$cache_file";;
2067     esac
2068   fi
2069 else
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2072   >$cache_file
2073 fi
2074
2075 # Check that the precious variables saved in the cache have kept the same
2076 # value.
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080   eval ac_new_set=\$ac_env_${ac_var}_set
2081   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082   eval ac_new_val=\$ac_env_${ac_var}_value
2083   case $ac_old_set,$ac_new_set in
2084     set,)
2085       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087       ac_cache_corrupted=: ;;
2088     ,set)
2089       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091       ac_cache_corrupted=: ;;
2092     ,);;
2093     *)
2094       if test "x$ac_old_val" != "x$ac_new_val"; then
2095         # differences in whitespace do not lead to failure.
2096         ac_old_val_w=`echo x $ac_old_val`
2097         ac_new_val_w=`echo x $ac_new_val`
2098         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101           ac_cache_corrupted=:
2102         else
2103           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105           eval $ac_var=\$ac_old_val
2106         fi
2107         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2108 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2109         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2111       fi;;
2112   esac
2113   # Pass precious variables to config.status.
2114   if test "$ac_new_set" = set; then
2115     case $ac_new_val in
2116     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117     *) ac_arg=$ac_var=$ac_new_val ;;
2118     esac
2119     case " $ac_configure_args " in
2120       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2121       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122     esac
2123   fi
2124 done
2125 if $ac_cache_corrupted; then
2126   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2131 fi
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2135
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141
2142
2143
2144 ac_config_headers="$ac_config_headers config.h"
2145
2146
2147 # Initialize Automake
2148 am__api_version='1.11'
2149
2150 ac_aux_dir=
2151 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2152   if test -f "$ac_dir/install-sh"; then
2153     ac_aux_dir=$ac_dir
2154     ac_install_sh="$ac_aux_dir/install-sh -c"
2155     break
2156   elif test -f "$ac_dir/install.sh"; then
2157     ac_aux_dir=$ac_dir
2158     ac_install_sh="$ac_aux_dir/install.sh -c"
2159     break
2160   elif test -f "$ac_dir/shtool"; then
2161     ac_aux_dir=$ac_dir
2162     ac_install_sh="$ac_aux_dir/shtool install -c"
2163     break
2164   fi
2165 done
2166 if test -z "$ac_aux_dir"; then
2167   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2168 fi
2169
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2177
2178
2179 # Find a good install program.  We prefer a C program (faster),
2180 # so one script is as good as another.  But avoid the broken or
2181 # incompatible versions:
2182 # SysV /etc/install, /usr/sbin/install
2183 # SunOS /usr/etc/install
2184 # IRIX /sbin/install
2185 # AIX /bin/install
2186 # AmigaOS /C/install, which installs bootblocks on floppy discs
2187 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2188 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2189 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2190 # OS/2's system install, which has a completely different semantic
2191 # ./install, which can be erroneously created by make from ./install.sh.
2192 # Reject install programs that cannot install multiple files.
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2194 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2195 if test -z "$INSTALL"; then
2196 if ${ac_cv_path_install+:} false; then :
2197   $as_echo_n "(cached) " >&6
2198 else
2199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204     # Account for people who put trailing slashes in PATH elements.
2205 case $as_dir/ in #((
2206   ./ | .// | /[cC]/* | \
2207   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2209   /usr/ucb/* ) ;;
2210   *)
2211     # OSF1 and SCO ODT 3.0 have their own names for install.
2212     # Don't use installbsd from OSF since it installs stuff as root
2213     # by default.
2214     for ac_prog in ginstall scoinst install; do
2215       for ac_exec_ext in '' $ac_executable_extensions; do
2216         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2217           if test $ac_prog = install &&
2218             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219             # AIX install.  It has an incompatible calling convention.
2220             :
2221           elif test $ac_prog = install &&
2222             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223             # program-specific install script used by HP pwplus--don't use.
2224             :
2225           else
2226             rm -rf conftest.one conftest.two conftest.dir
2227             echo one > conftest.one
2228             echo two > conftest.two
2229             mkdir conftest.dir
2230             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2231               test -s conftest.one && test -s conftest.two &&
2232               test -s conftest.dir/conftest.one &&
2233               test -s conftest.dir/conftest.two
2234             then
2235               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2236               break 3
2237             fi
2238           fi
2239         fi
2240       done
2241     done
2242     ;;
2243 esac
2244
2245   done
2246 IFS=$as_save_IFS
2247
2248 rm -rf conftest.one conftest.two conftest.dir
2249
2250 fi
2251   if test "${ac_cv_path_install+set}" = set; then
2252     INSTALL=$ac_cv_path_install
2253   else
2254     # As a last resort, use the slow shell script.  Don't cache a
2255     # value for INSTALL within a source directory, because that will
2256     # break other packages using the cache if that directory is
2257     # removed, or if the value is a relative name.
2258     INSTALL=$ac_install_sh
2259   fi
2260 fi
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2262 $as_echo "$INSTALL" >&6; }
2263
2264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2265 # It thinks the first close brace ends the variable substitution.
2266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2267
2268 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2269
2270 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2271
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2273 $as_echo_n "checking whether build environment is sane... " >&6; }
2274 # Just in case
2275 sleep 1
2276 echo timestamp > conftest.file
2277 # Reject unsafe characters in $srcdir or the absolute working directory
2278 # name.  Accept space and tab only in the latter.
2279 am_lf='
2280 '
2281 case `pwd` in
2282   *[\\\"\#\$\&\'\`$am_lf]*)
2283     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2284 esac
2285 case $srcdir in
2286   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2287     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2288 esac
2289
2290 # Do `set' in a subshell so we don't clobber the current shell's
2291 # arguments.  Must try -L first in case configure is actually a
2292 # symlink; some systems play weird games with the mod time of symlinks
2293 # (eg FreeBSD returns the mod time of the symlink's containing
2294 # directory).
2295 if (
2296    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2297    if test "$*" = "X"; then
2298       # -L didn't work.
2299       set X `ls -t "$srcdir/configure" conftest.file`
2300    fi
2301    rm -f conftest.file
2302    if test "$*" != "X $srcdir/configure conftest.file" \
2303       && test "$*" != "X conftest.file $srcdir/configure"; then
2304
2305       # If neither matched, then we have a broken ls.  This can happen
2306       # if, for instance, CONFIG_SHELL is bash and it inherits a
2307       # broken ls alias from the environment.  This has actually
2308       # happened.  Such a system could not be considered "sane".
2309       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2310 alias in your environment" "$LINENO" 5
2311    fi
2312
2313    test "$2" = conftest.file
2314    )
2315 then
2316    # Ok.
2317    :
2318 else
2319    as_fn_error $? "newly created file is older than distributed files!
2320 Check your system clock" "$LINENO" 5
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2323 $as_echo "yes" >&6; }
2324 test "$program_prefix" != NONE &&
2325   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2326 # Use a double $ so make ignores it.
2327 test "$program_suffix" != NONE &&
2328   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2329 # Double any \ or $.
2330 # By default was `s,x,x', remove it if useless.
2331 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2332 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2333
2334 # expand $ac_aux_dir to an absolute path
2335 am_aux_dir=`cd $ac_aux_dir && pwd`
2336
2337 if test x"${MISSING+set}" != xset; then
2338   case $am_aux_dir in
2339   *\ * | *\     *)
2340     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2341   *)
2342     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2343   esac
2344 fi
2345 # Use eval to expand $SHELL
2346 if eval "$MISSING --run true"; then
2347   am_missing_run="$MISSING --run "
2348 else
2349   am_missing_run=
2350   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2351 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2352 fi
2353
2354 if test x"${install_sh}" != xset; then
2355   case $am_aux_dir in
2356   *\ * | *\     *)
2357     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2358   *)
2359     install_sh="\${SHELL} $am_aux_dir/install-sh"
2360   esac
2361 fi
2362
2363 # Installed binaries are usually stripped using `strip' when the user
2364 # run `make install-strip'.  However `strip' might not be the right
2365 # tool to use in cross-compilation environments, therefore Automake
2366 # will honor the `STRIP' environment variable to overrule this program.
2367 if test "$cross_compiling" != no; then
2368   if test -n "$ac_tool_prefix"; then
2369   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}strip; ac_word=$2
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if ${ac_cv_prog_STRIP+:} false; then :
2374   $as_echo_n "(cached) " >&6
2375 else
2376   if test -n "$STRIP"; then
2377   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384     for ac_exec_ext in '' $ac_executable_extensions; do
2385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388     break 2
2389   fi
2390 done
2391   done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 STRIP=$ac_cv_prog_STRIP
2397 if test -n "$STRIP"; then
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2399 $as_echo "$STRIP" >&6; }
2400 else
2401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402 $as_echo "no" >&6; }
2403 fi
2404
2405
2406 fi
2407 if test -z "$ac_cv_prog_STRIP"; then
2408   ac_ct_STRIP=$STRIP
2409   # Extract the first word of "strip", so it can be a program name with args.
2410 set dummy strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   if test -n "$ac_ct_STRIP"; then
2417   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424     for ac_exec_ext in '' $ac_executable_extensions; do
2425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426     ac_cv_prog_ac_ct_STRIP="strip"
2427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431   done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2437 if test -n "$ac_ct_STRIP"; then
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2439 $as_echo "$ac_ct_STRIP" >&6; }
2440 else
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445   if test "x$ac_ct_STRIP" = x; then
2446     STRIP=":"
2447   else
2448     case $cross_compiling:$ac_tool_warned in
2449 yes:)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2452 ac_tool_warned=yes ;;
2453 esac
2454     STRIP=$ac_ct_STRIP
2455   fi
2456 else
2457   STRIP="$ac_cv_prog_STRIP"
2458 fi
2459
2460 fi
2461 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2464 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2465 if test -z "$MKDIR_P"; then
2466   if ${ac_cv_path_mkdir+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     for ac_prog in mkdir gmkdir; do
2475          for ac_exec_ext in '' $ac_executable_extensions; do
2476            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2477            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2478              'mkdir (GNU coreutils) '* | \
2479              'mkdir (coreutils) '* | \
2480              'mkdir (fileutils) '4.1*)
2481                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2482                break 3;;
2483            esac
2484          done
2485        done
2486   done
2487 IFS=$as_save_IFS
2488
2489 fi
2490
2491   test -d ./--version && rmdir ./--version
2492   if test "${ac_cv_path_mkdir+set}" = set; then
2493     MKDIR_P="$ac_cv_path_mkdir -p"
2494   else
2495     # As a last resort, use the slow shell script.  Don't cache a
2496     # value for MKDIR_P within a source directory, because that will
2497     # break other packages using the cache if that directory is
2498     # removed, or if the value is a relative name.
2499     MKDIR_P="$ac_install_sh -d"
2500   fi
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2503 $as_echo "$MKDIR_P" >&6; }
2504
2505 mkdir_p="$MKDIR_P"
2506 case $mkdir_p in
2507   [\\/$]* | ?:[\\/]*) ;;
2508   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2509 esac
2510
2511 for ac_prog in gawk mawk nawk awk
2512 do
2513   # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_AWK+:} false; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   if test -n "$AWK"; then
2521   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528     for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_AWK="$ac_prog"
2531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535   done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 AWK=$ac_cv_prog_AWK
2541 if test -n "$AWK"; then
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2543 $as_echo "$AWK" >&6; }
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550   test -n "$AWK" && break
2551 done
2552
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2554 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2555 set x ${MAKE-make}
2556 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2557 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   cat >conftest.make <<\_ACEOF
2561 SHELL = /bin/sh
2562 all:
2563         @echo '@@@%%%=$(MAKE)=@@@%%%'
2564 _ACEOF
2565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2567   *@@@%%%=?*=@@@%%%*)
2568     eval ac_cv_prog_make_${ac_make}_set=yes;;
2569   *)
2570     eval ac_cv_prog_make_${ac_make}_set=no;;
2571 esac
2572 rm -f conftest.make
2573 fi
2574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577   SET_MAKE=
2578 else
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581   SET_MAKE="MAKE=${MAKE-make}"
2582 fi
2583
2584 rm -rf .tst 2>/dev/null
2585 mkdir .tst 2>/dev/null
2586 if test -d .tst; then
2587   am__leading_dot=.
2588 else
2589   am__leading_dot=_
2590 fi
2591 rmdir .tst 2>/dev/null
2592
2593 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2594   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2595   # is not polluted with repeated "-I."
2596   am__isrc=' -I$(srcdir)'
2597   # test to see if srcdir already configured
2598   if test -f $srcdir/config.status; then
2599     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2600   fi
2601 fi
2602
2603 # test whether we have cygpath
2604 if test -z "$CYGPATH_W"; then
2605   if (cygpath --version) >/dev/null 2>/dev/null; then
2606     CYGPATH_W='cygpath -w'
2607   else
2608     CYGPATH_W=echo
2609   fi
2610 fi
2611
2612
2613 # Define the identity of the package.
2614  PACKAGE='xkbevd'
2615  VERSION='1.1.3'
2616
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE "$PACKAGE"
2620 _ACEOF
2621
2622
2623 cat >>confdefs.h <<_ACEOF
2624 #define VERSION "$VERSION"
2625 _ACEOF
2626
2627 # Some tools Automake needs.
2628
2629 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2630
2631
2632 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2633
2634
2635 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2636
2637
2638 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2639
2640
2641 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2642
2643 # We need awk for the "check" target.  The system "awk" is bad on
2644 # some platforms.
2645 # Always define AMTAR for backward compatibility.
2646
2647 AMTAR=${AMTAR-"${am_missing_run}tar"}
2648
2649 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2650
2651
2652
2653
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2658     # Check whether --enable-maintainer-mode was given.
2659 if test "${enable_maintainer_mode+set}" = set; then :
2660   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2661 else
2662   USE_MAINTAINER_MODE=no
2663 fi
2664
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2666 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2667    if test $USE_MAINTAINER_MODE = yes; then
2668   MAINTAINER_MODE_TRUE=
2669   MAINTAINER_MODE_FALSE='#'
2670 else
2671   MAINTAINER_MODE_TRUE='#'
2672   MAINTAINER_MODE_FALSE=
2673 fi
2674
2675   MAINT=$MAINTAINER_MODE_TRUE
2676
2677
2678
2679 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691 DEPDIR="${am__leading_dot}deps"
2692
2693 ac_config_commands="$ac_config_commands depfiles"
2694
2695
2696 am_make=${MAKE-make}
2697 cat > confinc << 'END'
2698 am__doit:
2699         @echo this is the am__doit target
2700 .PHONY: am__doit
2701 END
2702 # If we don't find an include directive, just comment out the code.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2704 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2705 am__include="#"
2706 am__quote=
2707 _am_result=none
2708 # First try GNU make style include.
2709 echo "include confinc" > confmf
2710 # Ignore all kinds of additional output from `make'.
2711 case `$am_make -s -f confmf 2> /dev/null` in #(
2712 *the\ am__doit\ target*)
2713   am__include=include
2714   am__quote=
2715   _am_result=GNU
2716   ;;
2717 esac
2718 # Now try BSD make style include.
2719 if test "$am__include" = "#"; then
2720    echo '.include "confinc"' > confmf
2721    case `$am_make -s -f confmf 2> /dev/null` in #(
2722    *the\ am__doit\ target*)
2723      am__include=.include
2724      am__quote="\""
2725      _am_result=BSD
2726      ;;
2727    esac
2728 fi
2729
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2732 $as_echo "$_am_result" >&6; }
2733 rm -f confinc confmf
2734
2735 # Check whether --enable-dependency-tracking was given.
2736 if test "${enable_dependency_tracking+set}" = set; then :
2737   enableval=$enable_dependency_tracking;
2738 fi
2739
2740 if test "x$enable_dependency_tracking" != xno; then
2741   am_depcomp="$ac_aux_dir/depcomp"
2742   AMDEPBACKSLASH='\'
2743 fi
2744  if test "x$enable_dependency_tracking" != xno; then
2745   AMDEP_TRUE=
2746   AMDEP_FALSE='#'
2747 else
2748   AMDEP_TRUE='#'
2749   AMDEP_FALSE=
2750 fi
2751
2752
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   if test -n "$CC"; then
2767   ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774     for ac_exec_ext in '' $ac_executable_extensions; do
2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795
2796 fi
2797 if test -z "$ac_cv_prog_CC"; then
2798   ac_ct_CC=$CC
2799   # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   if test -n "$ac_ct_CC"; then
2807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814     for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_ac_ct_CC="gcc"
2817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821   done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835   if test "x$ac_ct_CC" = x; then
2836     CC=""
2837   else
2838     case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844     CC=$ac_ct_CC
2845   fi
2846 else
2847   CC="$ac_cv_prog_CC"
2848 fi
2849
2850 if test -z "$CC"; then
2851           if test -n "$ac_tool_prefix"; then
2852     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if test -n "$CC"; then
2860   ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867     for ac_exec_ext in '' $ac_executable_extensions; do
2868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869     ac_cv_prog_CC="${ac_tool_prefix}cc"
2870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871     break 2
2872   fi
2873 done
2874   done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889   fi
2890 fi
2891 if test -z "$CC"; then
2892   # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; 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   ac_prog_rejected=no
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908     for ac_exec_ext in '' $ac_executable_extensions; do
2909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911        ac_prog_rejected=yes
2912        continue
2913      fi
2914     ac_cv_prog_CC="cc"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 if test $ac_prog_rejected = yes; then
2923   # We found a bogon in the path, so make sure we never use it.
2924   set dummy $ac_cv_prog_CC
2925   shift
2926   if test $# != 0; then
2927     # We chose a different compiler from the bogus one.
2928     # However, it has the same basename, so the bogon will be chosen
2929     # first if we set CC to just the basename; use the full file name.
2930     shift
2931     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2932   fi
2933 fi
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$CC"; then
2948   if test -n "$ac_tool_prefix"; then
2949   for ac_prog in cl.exe
2950   do
2951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   if test -n "$CC"; then
2959   ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966     for ac_exec_ext in '' $ac_executable_extensions; do
2967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973   done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988     test -n "$CC" && break
2989   done
2990 fi
2991 if test -z "$CC"; then
2992   ac_ct_CC=$CC
2993   for ac_prog in cl.exe
2994 do
2995   # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$ac_ct_CC"; then
3003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_ac_ct_CC="$ac_prog"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032   test -n "$ac_ct_CC" && break
3033 done
3034
3035   if test "x$ac_ct_CC" = x; then
3036     CC=""
3037   else
3038     case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044     CC=$ac_ct_CC
3045   fi
3046 fi
3047
3048 fi
3049
3050
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3055
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 set X $ac_compile
3059 ac_compiler=$2
3060 for ac_option in --version -v -V -qversion; do
3061   { { ac_try="$ac_compiler $ac_option >&5"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069   ac_status=$?
3070   if test -s conftest.err; then
3071     sed '10a\
3072 ... rest of stderr output deleted ...
3073          10q' conftest.err >conftest.er1
3074     cat conftest.er1 >&5
3075   fi
3076   rm -f conftest.er1 conftest.err
3077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078   test $ac_status = 0; }
3079 done
3080
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 ac_clean_files_save=$ac_clean_files
3093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3096 # of exeext.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3098 $as_echo_n "checking whether the C compiler works... " >&6; }
3099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100
3101 # The possible output files:
3102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103
3104 ac_rmfiles=
3105 for ac_file in $ac_files
3106 do
3107   case $ac_file in
3108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3109     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110   esac
3111 done
3112 rm -f $ac_rmfiles
3113
3114 if { { ac_try="$ac_link_default"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121   (eval "$ac_link_default") 2>&5
3122   ac_status=$?
3123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124   test $ac_status = 0; }; then :
3125   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3129 # Autoconf.
3130 for ac_file in $ac_files ''
3131 do
3132   test -f "$ac_file" || continue
3133   case $ac_file in
3134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135         ;;
3136     [ab].out )
3137         # We found the default executable, but exeext='' is most
3138         # certainly right.
3139         break;;
3140     *.* )
3141         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142         then :; else
3143            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144         fi
3145         # We set ac_cv_exeext here because the later test for it is not
3146         # safe: cross compilers may not add the suffix if given an `-o'
3147         # argument, so we may need to know it at that point already.
3148         # Even if this section looks crufty: it has the advantage of
3149         # actually working.
3150         break;;
3151     * )
3152         break;;
3153   esac
3154 done
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156
3157 else
3158   ac_file=''
3159 fi
3160 if test -z "$ac_file"; then :
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error 77 "C compiler cannot create executables
3169 See \`config.log' for more details" "$LINENO" 5; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 ac_exeext=$ac_cv_exeext
3179
3180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 $as_echo_n "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191   (eval "$ac_link") 2>&5
3192   ac_status=$?
3193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194   test $ac_status = 0; }; then :
3195   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3198 # `rm'.
3199 for ac_file in conftest.exe conftest conftest.*; do
3200   test -f "$ac_file" || continue
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3204           break;;
3205     * ) break;;
3206   esac
3207 done
3208 else
3209   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 rm -f conftest conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3217
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3220 ac_exeext=$EXEEXT
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h.  */
3223 #include <stdio.h>
3224 int
3225 main ()
3226 {
3227 FILE *f = fopen ("conftest.out", "w");
3228  return ferror (f) || fclose (f) != 0;
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 ac_clean_files="$ac_clean_files conftest.out"
3235 # Check that the compiler produces executables we can run.  If not, either
3236 # the compiler is broken, or we cross compile.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3238 $as_echo_n "checking whether we are cross compiling... " >&6; }
3239 if test "$cross_compiling" != yes; then
3240   { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247   (eval "$ac_link") 2>&5
3248   ac_status=$?
3249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250   test $ac_status = 0; }
3251   if { ac_try='./conftest$ac_cv_exeext'
3252   { { case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258   (eval "$ac_try") 2>&5
3259   ac_status=$?
3260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261   test $ac_status = 0; }; }; then
3262     cross_compiling=no
3263   else
3264     if test "$cross_compiling" = maybe; then
3265         cross_compiling=yes
3266     else
3267         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details" "$LINENO" 5; }
3272     fi
3273   fi
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3276 $as_echo "$cross_compiling" >&6; }
3277
3278 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3281 $as_echo_n "checking for suffix of object files... " >&6; }
3282 if ${ac_cv_objext+:} false; then :
3283   $as_echo_n "(cached) " >&6
3284 else
3285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.o conftest.obj
3297 if { { ac_try="$ac_compile"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304   (eval "$ac_compile") 2>&5
3305   ac_status=$?
3306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307   test $ac_status = 0; }; then :
3308   for ac_file in conftest.o conftest.obj conftest.*; do
3309   test -f "$ac_file" || continue;
3310   case $ac_file in
3311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3312     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3313        break;;
3314   esac
3315 done
3316 else
3317   $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of object files: cannot compile
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3328 $as_echo "$ac_cv_objext" >&6; }
3329 OBJEXT=$ac_cv_objext
3330 ac_objext=$OBJEXT
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3333 if ${ac_cv_c_compiler_gnu+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342 #ifndef __GNUC__
3343        choke me
3344 #endif
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351   ac_compiler_gnu=yes
3352 else
3353   ac_compiler_gnu=no
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3361 if test $ac_compiler_gnu = yes; then
3362   GCC=yes
3363 else
3364   GCC=
3365 fi
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3370 if ${ac_cv_prog_cc_g+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   ac_save_c_werror_flag=$ac_c_werror_flag
3374    ac_c_werror_flag=yes
3375    ac_cv_prog_cc_g=no
3376    CFLAGS="-g"
3377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h.  */
3379
3380 int
3381 main ()
3382 {
3383
3384   ;
3385   return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389   ac_cv_prog_cc_g=yes
3390 else
3391   CFLAGS=""
3392       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404
3405 else
3406   ac_c_werror_flag=$ac_save_c_werror_flag
3407          CFLAGS="-g"
3408          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420   ac_cv_prog_cc_g=yes
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427    ac_c_werror_flag=$ac_save_c_werror_flag
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 $as_echo "$ac_cv_prog_cc_g" >&6; }
3431 if test "$ac_test_CFLAGS" = set; then
3432   CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434   if test "$GCC" = yes; then
3435     CFLAGS="-g -O2"
3436   else
3437     CFLAGS="-g"
3438   fi
3439 else
3440   if test "$GCC" = yes; then
3441     CFLAGS="-O2"
3442   else
3443     CFLAGS=
3444   fi
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3448 if ${ac_cv_prog_cc_c89+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   ac_cv_prog_cc_c89=no
3452 ac_save_CC=$CC
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455 #include <stdarg.h>
3456 #include <stdio.h>
3457 #include <sys/types.h>
3458 #include <sys/stat.h>
3459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3460 struct buf { int x; };
3461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3462 static char *e (p, i)
3463      char **p;
3464      int i;
3465 {
3466   return p[i];
3467 }
3468 static char *f (char * (*g) (char **, int), char **p, ...)
3469 {
3470   char *s;
3471   va_list v;
3472   va_start (v,p);
3473   s = g (p, va_arg (v,int));
3474   va_end (v);
3475   return s;
3476 }
3477
3478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3479    function prototypes and stuff, but not '\xHH' hex character constants.
3480    These don't provoke an error unfortunately, instead are silently treated
3481    as 'x'.  The following induces an error, until -std is added to get
3482    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3483    array size at least.  It's necessary to write '\x00'==0 to get something
3484    that's true only with -std.  */
3485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486
3487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3488    inside strings and character constants.  */
3489 #define FOO(x) 'x'
3490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491
3492 int test (int i, double x);
3493 struct s1 {int (*f) (int a);};
3494 struct s2 {int (*f) (double a);};
3495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496 int argc;
3497 char **argv;
3498 int
3499 main ()
3500 {
3501 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3507         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 do
3509   CC="$ac_save_CC $ac_arg"
3510   if ac_fn_c_try_compile "$LINENO"; then :
3511   ac_cv_prog_cc_c89=$ac_arg
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext
3514   test "x$ac_cv_prog_cc_c89" != "xno" && break
3515 done
3516 rm -f conftest.$ac_ext
3517 CC=$ac_save_CC
3518
3519 fi
3520 # AC_CACHE_VAL
3521 case "x$ac_cv_prog_cc_c89" in
3522   x)
3523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3524 $as_echo "none needed" >&6; } ;;
3525   xno)
3526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3527 $as_echo "unsupported" >&6; } ;;
3528   *)
3529     CC="$CC $ac_cv_prog_cc_c89"
3530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3532 esac
3533 if test "x$ac_cv_prog_cc_c89" != xno; then :
3534
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542
3543 depcc="$CC"   am_compiler_list=
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3546 $as_echo_n "checking dependency style of $depcc... " >&6; }
3547 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3551   # We make a subdir and do the tests there.  Otherwise we can end up
3552   # making bogus files that we don't know about and never remove.  For
3553   # instance it was reported that on HP-UX the gcc test will end up
3554   # making a dummy file named `D' -- because `-MD' means `put the output
3555   # in D'.
3556   mkdir conftest.dir
3557   # Copy depcomp to subdir because otherwise we won't find it if we're
3558   # using a relative directory.
3559   cp "$am_depcomp" conftest.dir
3560   cd conftest.dir
3561   # We will build objects and dependencies in a subdirectory because
3562   # it helps to detect inapplicable dependency modes.  For instance
3563   # both Tru64's cc and ICC support -MD to output dependencies as a
3564   # side effect of compilation, but ICC will put the dependencies in
3565   # the current directory while Tru64 will put them in the object
3566   # directory.
3567   mkdir sub
3568
3569   am_cv_CC_dependencies_compiler_type=none
3570   if test "$am_compiler_list" = ""; then
3571      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3572   fi
3573   am__universal=false
3574   case " $depcc " in #(
3575      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3576      esac
3577
3578   for depmode in $am_compiler_list; do
3579     # Setup a source with many dependencies, because some compilers
3580     # like to wrap large dependency lists on column 80 (with \), and
3581     # we should not choose a depcomp mode which is confused by this.
3582     #
3583     # We need to recreate these files for each test, as the compiler may
3584     # overwrite some of them when testing with obscure command lines.
3585     # This happens at least with the AIX C compiler.
3586     : > sub/conftest.c
3587     for i in 1 2 3 4 5 6; do
3588       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590       # Solaris 8's {/usr,}/bin/sh.
3591       touch sub/conftst$i.h
3592     done
3593     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3594
3595     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596     # mode.  It turns out that the SunPro C++ compiler does not properly
3597     # handle `-M -o', and we need to detect this.  Also, some Intel
3598     # versions had trouble with output in subdirs
3599     am__obj=sub/conftest.${OBJEXT-o}
3600     am__minus_obj="-o $am__obj"
3601     case $depmode in
3602     gcc)
3603       # This depmode causes a compiler race in universal mode.
3604       test "$am__universal" = false || continue
3605       ;;
3606     nosideeffect)
3607       # after this tag, mechanisms are not by side-effect, so they'll
3608       # only be used when explicitly requested
3609       if test "x$enable_dependency_tracking" = xyes; then
3610         continue
3611       else
3612         break
3613       fi
3614       ;;
3615     msvisualcpp | msvcmsys)
3616       # This compiler won't grok `-c -o', but also, the minuso test has
3617       # not run yet.  These depmodes are late enough in the game, and
3618       # so weak that their functioning should not be impacted.
3619       am__obj=conftest.${OBJEXT-o}
3620       am__minus_obj=
3621       ;;
3622     none) break ;;
3623     esac
3624     if depmode=$depmode \
3625        source=sub/conftest.c object=$am__obj \
3626        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3628          >/dev/null 2>conftest.err &&
3629        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3630        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3631        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3632        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3633       # icc doesn't choke on unknown options, it will just issue warnings
3634       # or remarks (even with -Werror).  So we grep stderr for any message
3635       # that says an option was ignored or not supported.
3636       # When given -MP, icc 7.0 and 7.1 complain thusly:
3637       #   icc: Command line warning: ignoring option '-M'; no argument required
3638       # The diagnosis changed in icc 8.0:
3639       #   icc: Command line remark: option '-MP' not supported
3640       if (grep 'ignoring option' conftest.err ||
3641           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3642         am_cv_CC_dependencies_compiler_type=$depmode
3643         break
3644       fi
3645     fi
3646   done
3647
3648   cd ..
3649   rm -rf conftest.dir
3650 else
3651   am_cv_CC_dependencies_compiler_type=none
3652 fi
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3656 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3657 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3658
3659  if
3660   test "x$enable_dependency_tracking" != xno \
3661   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3662   am__fastdepCC_TRUE=
3663   am__fastdepCC_FALSE='#'
3664 else
3665   am__fastdepCC_TRUE='#'
3666   am__fastdepCC_FALSE=
3667 fi
3668
3669
3670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3672 if ${ac_cv_prog_cc_c99+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   ac_cv_prog_cc_c99=no
3676 ac_save_CC=$CC
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679 #include <stdarg.h>
3680 #include <stdbool.h>
3681 #include <stdlib.h>
3682 #include <wchar.h>
3683 #include <stdio.h>
3684
3685 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3686 #define debug(...) fprintf (stderr, __VA_ARGS__)
3687 #define showlist(...) puts (#__VA_ARGS__)
3688 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3689 static void
3690 test_varargs_macros (void)
3691 {
3692   int x = 1234;
3693   int y = 5678;
3694   debug ("Flag");
3695   debug ("X = %d\n", x);
3696   showlist (The first, second, and third items.);
3697   report (x>y, "x is %d but y is %d", x, y);
3698 }
3699
3700 // Check long long types.
3701 #define BIG64 18446744073709551615ull
3702 #define BIG32 4294967295ul
3703 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3704 #if !BIG_OK
3705   your preprocessor is broken;
3706 #endif
3707 #if BIG_OK
3708 #else
3709   your preprocessor is broken;
3710 #endif
3711 static long long int bignum = -9223372036854775807LL;
3712 static unsigned long long int ubignum = BIG64;
3713
3714 struct incomplete_array
3715 {
3716   int datasize;
3717   double data[];
3718 };
3719
3720 struct named_init {
3721   int number;
3722   const wchar_t *name;
3723   double average;
3724 };
3725
3726 typedef const char *ccp;
3727
3728 static inline int
3729 test_restrict (ccp restrict text)
3730 {
3731   // See if C++-style comments work.
3732   // Iterate through items via the restricted pointer.
3733   // Also check for declarations in for loops.
3734   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3735     continue;
3736   return 0;
3737 }
3738
3739 // Check varargs and va_copy.
3740 static void
3741 test_varargs (const char *format, ...)
3742 {
3743   va_list args;
3744   va_start (args, format);
3745   va_list args_copy;
3746   va_copy (args_copy, args);
3747
3748   const char *str;
3749   int number;
3750   float fnumber;
3751
3752   while (*format)
3753     {
3754       switch (*format++)
3755         {
3756         case 's': // string
3757           str = va_arg (args_copy, const char *);
3758           break;
3759         case 'd': // int
3760           number = va_arg (args_copy, int);
3761           break;
3762         case 'f': // float
3763           fnumber = va_arg (args_copy, double);
3764           break;
3765         default:
3766           break;
3767         }
3768     }
3769   va_end (args_copy);
3770   va_end (args);
3771 }
3772
3773 int
3774 main ()
3775 {
3776
3777   // Check bool.
3778   _Bool success = false;
3779
3780   // Check restrict.
3781   if (test_restrict ("String literal") == 0)
3782     success = true;
3783   char *restrict newvar = "Another string";
3784
3785   // Check varargs.
3786   test_varargs ("s, d' f .", "string", 65, 34.234);
3787   test_varargs_macros ();
3788
3789   // Check flexible array members.
3790   struct incomplete_array *ia =
3791     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3792   ia->datasize = 10;
3793   for (int i = 0; i < ia->datasize; ++i)
3794     ia->data[i] = i * 1.234;
3795
3796   // Check named initializers.
3797   struct named_init ni = {
3798     .number = 34,
3799     .name = L"Test wide string",
3800     .average = 543.34343,
3801   };
3802
3803   ni.number = 58;
3804
3805   int dynamic_array[ni.number];
3806   dynamic_array[ni.number - 1] = 543;
3807
3808   // work around unused variable warnings
3809   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3810           || dynamic_array[ni.number - 1] != 543);
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3817 do
3818   CC="$ac_save_CC $ac_arg"
3819   if ac_fn_c_try_compile "$LINENO"; then :
3820   ac_cv_prog_cc_c99=$ac_arg
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext
3823   test "x$ac_cv_prog_cc_c99" != "xno" && break
3824 done
3825 rm -f conftest.$ac_ext
3826 CC=$ac_save_CC
3827
3828 fi
3829 # AC_CACHE_VAL
3830 case "x$ac_cv_prog_cc_c99" in
3831   x)
3832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833 $as_echo "none needed" >&6; } ;;
3834   xno)
3835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;;
3837   *)
3838     CC="$CC $ac_cv_prog_cc_c99"
3839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3840 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3841 esac
3842 if test "x$ac_cv_prog_cc_c99" != xno; then :
3843
3844 fi
3845
3846
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3854 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3857   CPP=
3858 fi
3859 if test -z "$CPP"; then
3860   if ${ac_cv_prog_CPP+:} false; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863       # Double quotes because CPP needs to be expanded
3864     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3865     do
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   break
3913 fi
3914
3915     done
3916     ac_cv_prog_CPP=$CPP
3917
3918 fi
3919   CPP=$ac_cv_prog_CPP
3920 else
3921   ac_cv_prog_CPP=$CPP
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3924 $as_echo "$CPP" >&6; }
3925 ac_preproc_ok=false
3926 for ac_c_preproc_warn_flag in '' yes
3927 do
3928   # Use a header file that comes with gcc, so configuring glibc
3929   # with a fresh cross-compiler works.
3930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3931   # <limits.h> exists even on freestanding compilers.
3932   # On the NeXT, cc -E runs the code through the compiler's parser,
3933   # not just through cpp. "Syntax error" is here to catch this case.
3934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936 #ifdef __STDC__
3937 # include <limits.h>
3938 #else
3939 # include <assert.h>
3940 #endif
3941                      Syntax error
3942 _ACEOF
3943 if ac_fn_c_try_cpp "$LINENO"; then :
3944
3945 else
3946   # Broken: fails on valid input.
3947 continue
3948 fi
3949 rm -f conftest.err conftest.i conftest.$ac_ext
3950
3951   # OK, works on sane cases.  Now check whether nonexistent headers
3952   # can be detected and how.
3953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955 #include <ac_nonexistent.h>
3956 _ACEOF
3957 if ac_fn_c_try_cpp "$LINENO"; then :
3958   # Broken: success on invalid input.
3959 continue
3960 else
3961   # Passes both tests.
3962 ac_preproc_ok=:
3963 break
3964 fi
3965 rm -f conftest.err conftest.i conftest.$ac_ext
3966
3967 done
3968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3969 rm -f conftest.i conftest.err conftest.$ac_ext
3970 if $ac_preproc_ok; then :
3971
3972 else
3973   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3976 See \`config.log' for more details" "$LINENO" 5; }
3977 fi
3978
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3988 if ${ac_cv_path_GREP+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   if test -z "$GREP"; then
3992   ac_path_GREP_found=false
3993   # Loop through the user's path and test for each of PROGNAME-LIST
3994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999     for ac_prog in grep ggrep; do
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4002       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4003 # Check for GNU ac_path_GREP and select it if it is found.
4004   # Check for GNU $ac_path_GREP
4005 case `"$ac_path_GREP" --version 2>&1` in
4006 *GNU*)
4007   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 *)
4009   ac_count=0
4010   $as_echo_n 0123456789 >"conftest.in"
4011   while :
4012   do
4013     cat "conftest.in" "conftest.in" >"conftest.tmp"
4014     mv "conftest.tmp" "conftest.in"
4015     cp "conftest.in" "conftest.nl"
4016     $as_echo 'GREP' >> "conftest.nl"
4017     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019     as_fn_arith $ac_count + 1 && ac_count=$as_val
4020     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4021       # Best one so far, save it but keep looking for a better one
4022       ac_cv_path_GREP="$ac_path_GREP"
4023       ac_path_GREP_max=$ac_count
4024     fi
4025     # 10*(2^10) chars as input seems more than enough
4026     test $ac_count -gt 10 && break
4027   done
4028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031       $ac_path_GREP_found && break 3
4032     done
4033   done
4034   done
4035 IFS=$as_save_IFS
4036   if test -z "$ac_cv_path_GREP"; then
4037     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038   fi
4039 else
4040   ac_cv_path_GREP=$GREP
4041 fi
4042
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4045 $as_echo "$ac_cv_path_GREP" >&6; }
4046  GREP="$ac_cv_path_GREP"
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4050 $as_echo_n "checking for egrep... " >&6; }
4051 if ${ac_cv_path_EGREP+:} false; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055    then ac_cv_path_EGREP="$GREP -E"
4056    else
4057      if test -z "$EGREP"; then
4058   ac_path_EGREP_found=false
4059   # Loop through the user's path and test for each of PROGNAME-LIST
4060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065     for ac_prog in egrep; do
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4069 # Check for GNU ac_path_EGREP and select it if it is found.
4070   # Check for GNU $ac_path_EGREP
4071 case `"$ac_path_EGREP" --version 2>&1` in
4072 *GNU*)
4073   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074 *)
4075   ac_count=0
4076   $as_echo_n 0123456789 >"conftest.in"
4077   while :
4078   do
4079     cat "conftest.in" "conftest.in" >"conftest.tmp"
4080     mv "conftest.tmp" "conftest.in"
4081     cp "conftest.in" "conftest.nl"
4082     $as_echo 'EGREP' >> "conftest.nl"
4083     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085     as_fn_arith $ac_count + 1 && ac_count=$as_val
4086     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087       # Best one so far, save it but keep looking for a better one
4088       ac_cv_path_EGREP="$ac_path_EGREP"
4089       ac_path_EGREP_max=$ac_count
4090     fi
4091     # 10*(2^10) chars as input seems more than enough
4092     test $ac_count -gt 10 && break
4093   done
4094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 esac
4096
4097       $ac_path_EGREP_found && break 3
4098     done
4099   done
4100   done
4101 IFS=$as_save_IFS
4102   if test -z "$ac_cv_path_EGREP"; then
4103     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104   fi
4105 else
4106   ac_cv_path_EGREP=$EGREP
4107 fi
4108
4109    fi
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4112 $as_echo "$ac_cv_path_EGREP" >&6; }
4113  EGREP="$ac_cv_path_EGREP"
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4117 $as_echo_n "checking for ANSI C header files... " >&6; }
4118 if ${ac_cv_header_stdc+:} false; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123 #include <stdlib.h>
4124 #include <stdarg.h>
4125 #include <string.h>
4126 #include <float.h>
4127
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137   ac_cv_header_stdc=yes
4138 else
4139   ac_cv_header_stdc=no
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142
4143 if test $ac_cv_header_stdc = yes; then
4144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h.  */
4147 #include <string.h>
4148
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151   $EGREP "memchr" >/dev/null 2>&1; then :
4152
4153 else
4154   ac_cv_header_stdc=no
4155 fi
4156 rm -f conftest*
4157
4158 fi
4159
4160 if test $ac_cv_header_stdc = yes; then
4161   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #include <stdlib.h>
4165
4166 _ACEOF
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168   $EGREP "free" >/dev/null 2>&1; then :
4169
4170 else
4171   ac_cv_header_stdc=no
4172 fi
4173 rm -f conftest*
4174
4175 fi
4176
4177 if test $ac_cv_header_stdc = yes; then
4178   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179   if test "$cross_compiling" = yes; then :
4180   :
4181 else
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184 #include <ctype.h>
4185 #include <stdlib.h>
4186 #if ((' ' & 0x0FF) == 0x020)
4187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4189 #else
4190 # define ISLOWER(c) \
4191                    (('a' <= (c) && (c) <= 'i') \
4192                      || ('j' <= (c) && (c) <= 'r') \
4193                      || ('s' <= (c) && (c) <= 'z'))
4194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4195 #endif
4196
4197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4198 int
4199 main ()
4200 {
4201   int i;
4202   for (i = 0; i < 256; i++)
4203     if (XOR (islower (i), ISLOWER (i))
4204         || toupper (i) != TOUPPER (i))
4205       return 2;
4206   return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_run "$LINENO"; then :
4210
4211 else
4212   ac_cv_header_stdc=no
4213 fi
4214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4215   conftest.$ac_objext conftest.beam conftest.$ac_ext
4216 fi
4217
4218 fi
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4221 $as_echo "$ac_cv_header_stdc" >&6; }
4222 if test $ac_cv_header_stdc = yes; then
4223
4224 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4225
4226 fi
4227
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230                   inttypes.h stdint.h unistd.h
4231 do :
4232   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4234 "
4235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4236   cat >>confdefs.h <<_ACEOF
4237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238 _ACEOF
4239
4240 fi
4241
4242 done
4243
4244
4245
4246
4247
4248
4249 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4250 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4251   CLANGCC="yes"
4252 else
4253   CLANGCC="no"
4254 fi
4255
4256 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4257 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4258   INTELCC="yes"
4259 else
4260   INTELCC="no"
4261 fi
4262
4263 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4264 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4265   SUNCC="yes"
4266 else
4267   SUNCC="no"
4268 fi
4269
4270
4271
4272
4273 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4274         if test -n "$ac_tool_prefix"; then
4275   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   case $PKG_CONFIG in
4283   [\\/]* | ?:[\\/]*)
4284   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4285   ;;
4286   *)
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292     for ac_exec_ext in '' $ac_executable_extensions; do
4293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299   done
4300 IFS=$as_save_IFS
4301
4302   ;;
4303 esac
4304 fi
4305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4306 if test -n "$PKG_CONFIG"; then
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4308 $as_echo "$PKG_CONFIG" >&6; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 fi
4313
4314
4315 fi
4316 if test -z "$ac_cv_path_PKG_CONFIG"; then
4317   ac_pt_PKG_CONFIG=$PKG_CONFIG
4318   # Extract the first word of "pkg-config", so it can be a program name with args.
4319 set dummy pkg-config; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   case $ac_pt_PKG_CONFIG in
4326   [\\/]* | ?:[\\/]*)
4327   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4328   ;;
4329   *)
4330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335     for ac_exec_ext in '' $ac_executable_extensions; do
4336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342   done
4343 IFS=$as_save_IFS
4344
4345   ;;
4346 esac
4347 fi
4348 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4349 if test -n "$ac_pt_PKG_CONFIG"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4351 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357   if test "x$ac_pt_PKG_CONFIG" = x; then
4358     PKG_CONFIG=""
4359   else
4360     case $cross_compiling:$ac_tool_warned in
4361 yes:)
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4365 esac
4366     PKG_CONFIG=$ac_pt_PKG_CONFIG
4367   fi
4368 else
4369   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4370 fi
4371
4372 fi
4373 if test -n "$PKG_CONFIG"; then
4374         _pkg_min_version=0.9.0
4375         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4376 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4377         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4378                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4380         else
4381                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383                 PKG_CONFIG=""
4384         fi
4385
4386 fi
4387 # Make sure we can run config.sub.
4388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4389   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4392 $as_echo_n "checking build system type... " >&6; }
4393 if ${ac_cv_build+:} false; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   ac_build_alias=$build_alias
4397 test "x$ac_build_alias" = x &&
4398   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4399 test "x$ac_build_alias" = x &&
4400   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4402   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4403
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4406 $as_echo "$ac_cv_build" >&6; }
4407 case $ac_cv_build in
4408 *-*-*) ;;
4409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4410 esac
4411 build=$ac_cv_build
4412 ac_save_IFS=$IFS; IFS='-'
4413 set x $ac_cv_build
4414 shift
4415 build_cpu=$1
4416 build_vendor=$2
4417 shift; shift
4418 # Remember, the first character of IFS is used to create $*,
4419 # except with old shells:
4420 build_os=$*
4421 IFS=$ac_save_IFS
4422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4423
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4426 $as_echo_n "checking host system type... " >&6; }
4427 if ${ac_cv_host+:} false; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   if test "x$host_alias" = x; then
4431   ac_cv_host=$ac_cv_build
4432 else
4433   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4434     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4435 fi
4436
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4439 $as_echo "$ac_cv_host" >&6; }
4440 case $ac_cv_host in
4441 *-*-*) ;;
4442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4443 esac
4444 host=$ac_cv_host
4445 ac_save_IFS=$IFS; IFS='-'
4446 set x $ac_cv_host
4447 shift
4448 host_cpu=$1
4449 host_vendor=$2
4450 shift; shift
4451 # Remember, the first character of IFS is used to create $*,
4452 # except with old shells:
4453 host_os=$*
4454 IFS=$ac_save_IFS
4455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4456
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4459 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4460 if ${ac_cv_path_SED+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4464      for ac_i in 1 2 3 4 5 6 7; do
4465        ac_script="$ac_script$as_nl$ac_script"
4466      done
4467      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4468      { ac_script=; unset ac_script;}
4469      if test -z "$SED"; then
4470   ac_path_SED_found=false
4471   # Loop through the user's path and test for each of PROGNAME-LIST
4472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477     for ac_prog in sed gsed; do
4478     for ac_exec_ext in '' $ac_executable_extensions; do
4479       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4480       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4481 # Check for GNU ac_path_SED and select it if it is found.
4482   # Check for GNU $ac_path_SED
4483 case `"$ac_path_SED" --version 2>&1` in
4484 *GNU*)
4485   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4486 *)
4487   ac_count=0
4488   $as_echo_n 0123456789 >"conftest.in"
4489   while :
4490   do
4491     cat "conftest.in" "conftest.in" >"conftest.tmp"
4492     mv "conftest.tmp" "conftest.in"
4493     cp "conftest.in" "conftest.nl"
4494     $as_echo '' >> "conftest.nl"
4495     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497     as_fn_arith $ac_count + 1 && ac_count=$as_val
4498     if test $ac_count -gt ${ac_path_SED_max-0}; then
4499       # Best one so far, save it but keep looking for a better one
4500       ac_cv_path_SED="$ac_path_SED"
4501       ac_path_SED_max=$ac_count
4502     fi
4503     # 10*(2^10) chars as input seems more than enough
4504     test $ac_count -gt 10 && break
4505   done
4506   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 esac
4508
4509       $ac_path_SED_found && break 3
4510     done
4511   done
4512   done
4513 IFS=$as_save_IFS
4514   if test -z "$ac_cv_path_SED"; then
4515     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4516   fi
4517 else
4518   ac_cv_path_SED=$SED
4519 fi
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4523 $as_echo "$ac_cv_path_SED" >&6; }
4524  SED="$ac_cv_path_SED"
4525   rm -f conftest.sed
4526
4527
4528
4529
4530
4531
4532 # Check whether --enable-selective-werror was given.
4533 if test "${enable_selective_werror+set}" = set; then :
4534   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4535 else
4536   SELECTIVE_WERROR=yes
4537 fi
4538
4539
4540
4541
4542
4543 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4544 if test "x$SUNCC" = "xyes"; then
4545     BASE_CFLAGS="-v"
4546 else
4547     BASE_CFLAGS=""
4548 fi
4549
4550 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564 xorg_testset_save_CFLAGS="$CFLAGS"
4565
4566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4567         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575 int i;
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578   xorg_cv_cc_flag_unknown_warning_option=yes
4579 else
4580   xorg_cv_cc_flag_unknown_warning_option=no
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4586         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4587         CFLAGS="$xorg_testset_save_CFLAGS"
4588 fi
4589
4590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4591         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4592                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4593         fi
4594         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 int i;
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605   xorg_cv_cc_flag_unused_command_line_argument=yes
4606 else
4607   xorg_cv_cc_flag_unused_command_line_argument=no
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4613         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4614         CFLAGS="$xorg_testset_save_CFLAGS"
4615 fi
4616
4617 found="no"
4618
4619         if test $found = "no" ; then
4620                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4621                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4622                 fi
4623
4624                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4625                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4626                 fi
4627
4628                 CFLAGS="$CFLAGS -Wall"
4629
4630                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4631 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4632                 cacheid=xorg_cv_cc_flag__Wall
4633                 if eval \${$cacheid+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 int i;
4639 int
4640 main ()
4641 {
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_link "$LINENO"; then :
4648   eval $cacheid=yes
4649 else
4650   eval $cacheid=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext \
4653     conftest$ac_exeext conftest.$ac_ext
4654 fi
4655
4656
4657                 CFLAGS="$xorg_testset_save_CFLAGS"
4658
4659                 eval supported=\$$cacheid
4660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4661 $as_echo "$supported" >&6; }
4662                 if test "$supported" = "yes" ; then
4663                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4664                         found="yes"
4665                 fi
4666         fi
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 xorg_testset_save_CFLAGS="$CFLAGS"
4683
4684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4685         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693 int i;
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   xorg_cv_cc_flag_unknown_warning_option=yes
4697 else
4698   xorg_cv_cc_flag_unknown_warning_option=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4704         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4705         CFLAGS="$xorg_testset_save_CFLAGS"
4706 fi
4707
4708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4709         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4710                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4711         fi
4712         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 int i;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723   xorg_cv_cc_flag_unused_command_line_argument=yes
4724 else
4725   xorg_cv_cc_flag_unused_command_line_argument=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4731         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4732         CFLAGS="$xorg_testset_save_CFLAGS"
4733 fi
4734
4735 found="no"
4736
4737         if test $found = "no" ; then
4738                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4739                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4740                 fi
4741
4742                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4743                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4744                 fi
4745
4746                 CFLAGS="$CFLAGS -Wpointer-arith"
4747
4748                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4749 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4750                 cacheid=xorg_cv_cc_flag__Wpointer_arith
4751                 if eval \${$cacheid+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756 int i;
4757 int
4758 main ()
4759 {
4760
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_c_try_link "$LINENO"; then :
4766   eval $cacheid=yes
4767 else
4768   eval $cacheid=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext \
4771     conftest$ac_exeext conftest.$ac_ext
4772 fi
4773
4774
4775                 CFLAGS="$xorg_testset_save_CFLAGS"
4776
4777                 eval supported=\$$cacheid
4778                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4779 $as_echo "$supported" >&6; }
4780                 if test "$supported" = "yes" ; then
4781                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4782                         found="yes"
4783                 fi
4784         fi
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800 xorg_testset_save_CFLAGS="$CFLAGS"
4801
4802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4803         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h.  */
4811 int i;
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814   xorg_cv_cc_flag_unknown_warning_option=yes
4815 else
4816   xorg_cv_cc_flag_unknown_warning_option=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4822         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4823         CFLAGS="$xorg_testset_save_CFLAGS"
4824 fi
4825
4826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4827         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4828                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4829         fi
4830         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4831         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838 int i;
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841   xorg_cv_cc_flag_unused_command_line_argument=yes
4842 else
4843   xorg_cv_cc_flag_unused_command_line_argument=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4849         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4850         CFLAGS="$xorg_testset_save_CFLAGS"
4851 fi
4852
4853 found="no"
4854
4855         if test $found = "no" ; then
4856                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4857                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858                 fi
4859
4860                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4861                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4862                 fi
4863
4864                 CFLAGS="$CFLAGS -Wmissing-declarations"
4865
4866                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4867 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4868                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4869                 if eval \${$cacheid+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 int i;
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_link "$LINENO"; then :
4884   eval $cacheid=yes
4885 else
4886   eval $cacheid=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext \
4889     conftest$ac_exeext conftest.$ac_ext
4890 fi
4891
4892
4893                 CFLAGS="$xorg_testset_save_CFLAGS"
4894
4895                 eval supported=\$$cacheid
4896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4897 $as_echo "$supported" >&6; }
4898                 if test "$supported" = "yes" ; then
4899                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4900                         found="yes"
4901                 fi
4902         fi
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918 xorg_testset_save_CFLAGS="$CFLAGS"
4919
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4921         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932   xorg_cv_cc_flag_unknown_warning_option=yes
4933 else
4934   xorg_cv_cc_flag_unknown_warning_option=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4940         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4941         CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4945         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947         fi
4948         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h.  */
4956 int i;
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959   xorg_cv_cc_flag_unused_command_line_argument=yes
4960 else
4961   xorg_cv_cc_flag_unused_command_line_argument=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968         CFLAGS="$xorg_testset_save_CFLAGS"
4969 fi
4970
4971 found="no"
4972
4973         if test $found = "no" ; then
4974                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4975                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976                 fi
4977
4978                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4979                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980                 fi
4981
4982                 CFLAGS="$CFLAGS -Wformat=2"
4983
4984                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4985 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4986                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4987                 if eval \${$cacheid+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992 int i;
4993 int
4994 main ()
4995 {
4996
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_c_try_link "$LINENO"; then :
5002   eval $cacheid=yes
5003 else
5004   eval $cacheid=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext \
5007     conftest$ac_exeext conftest.$ac_ext
5008 fi
5009
5010
5011                 CFLAGS="$xorg_testset_save_CFLAGS"
5012
5013                 eval supported=\$$cacheid
5014                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5015 $as_echo "$supported" >&6; }
5016                 if test "$supported" = "yes" ; then
5017                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5018                         found="yes"
5019                 fi
5020         fi
5021
5022         if test $found = "no" ; then
5023                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5024                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025                 fi
5026
5027                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5028                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029                 fi
5030
5031                 CFLAGS="$CFLAGS -Wformat"
5032
5033                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5034 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5035                 cacheid=xorg_cv_cc_flag__Wformat
5036                 if eval \${$cacheid+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h.  */
5041 int i;
5042 int
5043 main ()
5044 {
5045
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_link "$LINENO"; then :
5051   eval $cacheid=yes
5052 else
5053   eval $cacheid=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext \
5056     conftest$ac_exeext conftest.$ac_ext
5057 fi
5058
5059
5060                 CFLAGS="$xorg_testset_save_CFLAGS"
5061
5062                 eval supported=\$$cacheid
5063                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5064 $as_echo "$supported" >&6; }
5065                 if test "$supported" = "yes" ; then
5066                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5067                         found="yes"
5068                 fi
5069         fi
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 xorg_testset_save_CFLAGS="$CFLAGS"
5088
5089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5090         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h.  */
5098 int i;
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101   xorg_cv_cc_flag_unknown_warning_option=yes
5102 else
5103   xorg_cv_cc_flag_unknown_warning_option=no
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5109         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5110         CFLAGS="$xorg_testset_save_CFLAGS"
5111 fi
5112
5113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5114         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5115                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5116         fi
5117         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h.  */
5125 int i;
5126 _ACEOF
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128   xorg_cv_cc_flag_unused_command_line_argument=yes
5129 else
5130   xorg_cv_cc_flag_unused_command_line_argument=no
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5136         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5137         CFLAGS="$xorg_testset_save_CFLAGS"
5138 fi
5139
5140 found="no"
5141
5142         if test $found = "no" ; then
5143                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5144                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145                 fi
5146
5147                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5148                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5149                 fi
5150
5151                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5152
5153                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5154 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5155                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5156                 if eval \${$cacheid+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h.  */
5161 int i;
5162 int
5163 main ()
5164 {
5165
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_link "$LINENO"; then :
5171   eval $cacheid=yes
5172 else
5173   eval $cacheid=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext \
5176     conftest$ac_exeext conftest.$ac_ext
5177 fi
5178
5179
5180                 CFLAGS="$xorg_testset_save_CFLAGS"
5181
5182                 eval supported=\$$cacheid
5183                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5184 $as_echo "$supported" >&6; }
5185                 if test "$supported" = "yes" ; then
5186                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5187                         found="yes"
5188                 fi
5189         fi
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 xorg_testset_save_CFLAGS="$CFLAGS"
5206
5207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5208         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216 int i;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219   xorg_cv_cc_flag_unknown_warning_option=yes
5220 else
5221   xorg_cv_cc_flag_unknown_warning_option=no
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5227         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5228         CFLAGS="$xorg_testset_save_CFLAGS"
5229 fi
5230
5231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5232         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5233                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5234         fi
5235         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h.  */
5243 int i;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246   xorg_cv_cc_flag_unused_command_line_argument=yes
5247 else
5248   xorg_cv_cc_flag_unused_command_line_argument=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5254         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5255         CFLAGS="$xorg_testset_save_CFLAGS"
5256 fi
5257
5258 found="no"
5259
5260         if test $found = "no" ; then
5261                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5262                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263                 fi
5264
5265                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5266                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267                 fi
5268
5269                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5270
5271                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5272 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5273                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5274                 if eval \${$cacheid+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 int i;
5280 int
5281 main ()
5282 {
5283
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_link "$LINENO"; then :
5289   eval $cacheid=yes
5290 else
5291   eval $cacheid=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext \
5294     conftest$ac_exeext conftest.$ac_ext
5295 fi
5296
5297
5298                 CFLAGS="$xorg_testset_save_CFLAGS"
5299
5300                 eval supported=\$$cacheid
5301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302 $as_echo "$supported" >&6; }
5303                 if test "$supported" = "yes" ; then
5304                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5305                         found="yes"
5306                 fi
5307         fi
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 xorg_testset_save_CFLAGS="$CFLAGS"
5324
5325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5326         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 int i;
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337   xorg_cv_cc_flag_unknown_warning_option=yes
5338 else
5339   xorg_cv_cc_flag_unknown_warning_option=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5345         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5346         CFLAGS="$xorg_testset_save_CFLAGS"
5347 fi
5348
5349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5350         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5351                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5352         fi
5353         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361 int i;
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364   xorg_cv_cc_flag_unused_command_line_argument=yes
5365 else
5366   xorg_cv_cc_flag_unused_command_line_argument=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5372         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5373         CFLAGS="$xorg_testset_save_CFLAGS"
5374 fi
5375
5376 found="no"
5377
5378         if test $found = "no" ; then
5379                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5380                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381                 fi
5382
5383                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5384                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5385                 fi
5386
5387                 CFLAGS="$CFLAGS -Wnested-externs"
5388
5389                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5390 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5391                 cacheid=xorg_cv_cc_flag__Wnested_externs
5392                 if eval \${$cacheid+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h.  */
5397 int i;
5398 int
5399 main ()
5400 {
5401
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407   eval $cacheid=yes
5408 else
5409   eval $cacheid=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext \
5412     conftest$ac_exeext conftest.$ac_ext
5413 fi
5414
5415
5416                 CFLAGS="$xorg_testset_save_CFLAGS"
5417
5418                 eval supported=\$$cacheid
5419                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5420 $as_echo "$supported" >&6; }
5421                 if test "$supported" = "yes" ; then
5422                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5423                         found="yes"
5424                 fi
5425         fi
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 xorg_testset_save_CFLAGS="$CFLAGS"
5442
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5444         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 int i;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455   xorg_cv_cc_flag_unknown_warning_option=yes
5456 else
5457   xorg_cv_cc_flag_unknown_warning_option=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5463         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5464         CFLAGS="$xorg_testset_save_CFLAGS"
5465 fi
5466
5467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5468         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5469                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470         fi
5471         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 int i;
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482   xorg_cv_cc_flag_unused_command_line_argument=yes
5483 else
5484   xorg_cv_cc_flag_unused_command_line_argument=no
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5490         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5491         CFLAGS="$xorg_testset_save_CFLAGS"
5492 fi
5493
5494 found="no"
5495
5496         if test $found = "no" ; then
5497                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499                 fi
5500
5501                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5502                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5503                 fi
5504
5505                 CFLAGS="$CFLAGS -Wbad-function-cast"
5506
5507                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5508 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5509                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5510                 if eval \${$cacheid+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515 int i;
5516 int
5517 main ()
5518 {
5519
5520   ;
5521   return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"; then :
5525   eval $cacheid=yes
5526 else
5527   eval $cacheid=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext \
5530     conftest$ac_exeext conftest.$ac_ext
5531 fi
5532
5533
5534                 CFLAGS="$xorg_testset_save_CFLAGS"
5535
5536                 eval supported=\$$cacheid
5537                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5538 $as_echo "$supported" >&6; }
5539                 if test "$supported" = "yes" ; then
5540                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5541                         found="yes"
5542                 fi
5543         fi
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 xorg_testset_save_CFLAGS="$CFLAGS"
5560
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5562         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h.  */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573   xorg_cv_cc_flag_unknown_warning_option=yes
5574 else
5575   xorg_cv_cc_flag_unknown_warning_option=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5581         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5582         CFLAGS="$xorg_testset_save_CFLAGS"
5583 fi
5584
5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5586         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5587                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5588         fi
5589         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597 int i;
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600   xorg_cv_cc_flag_unused_command_line_argument=yes
5601 else
5602   xorg_cv_cc_flag_unused_command_line_argument=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5608         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5609         CFLAGS="$xorg_testset_save_CFLAGS"
5610 fi
5611
5612 found="no"
5613
5614         if test $found = "no" ; then
5615                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5616                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617                 fi
5618
5619                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5620                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5621                 fi
5622
5623                 CFLAGS="$CFLAGS -Wold-style-definition"
5624
5625                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5626 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5627                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5628                 if eval \${$cacheid+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h.  */
5633 int i;
5634 int
5635 main ()
5636 {
5637
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"; then :
5643   eval $cacheid=yes
5644 else
5645   eval $cacheid=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext \
5648     conftest$ac_exeext conftest.$ac_ext
5649 fi
5650
5651
5652                 CFLAGS="$xorg_testset_save_CFLAGS"
5653
5654                 eval supported=\$$cacheid
5655                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5656 $as_echo "$supported" >&6; }
5657                 if test "$supported" = "yes" ; then
5658                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5659                         found="yes"
5660                 fi
5661         fi
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 xorg_testset_save_CFLAGS="$CFLAGS"
5678
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5680         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691   xorg_cv_cc_flag_unknown_warning_option=yes
5692 else
5693   xorg_cv_cc_flag_unknown_warning_option=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5699         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5700         CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5704         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706         fi
5707         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h.  */
5715 int i;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718   xorg_cv_cc_flag_unused_command_line_argument=yes
5719 else
5720   xorg_cv_cc_flag_unused_command_line_argument=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5726         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5727         CFLAGS="$xorg_testset_save_CFLAGS"
5728 fi
5729
5730 found="no"
5731
5732         if test $found = "no" ; then
5733                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5734                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735                 fi
5736
5737                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5738                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5739                 fi
5740
5741                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5742
5743                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5744 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5745                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5746                 if eval \${$cacheid+:} 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 int
5753 main ()
5754 {
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"; then :
5761   eval $cacheid=yes
5762 else
5763   eval $cacheid=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext \
5766     conftest$ac_exeext conftest.$ac_ext
5767 fi
5768
5769
5770                 CFLAGS="$xorg_testset_save_CFLAGS"
5771
5772                 eval supported=\$$cacheid
5773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5774 $as_echo "$supported" >&6; }
5775                 if test "$supported" = "yes" ; then
5776                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5777                         found="yes"
5778                 fi
5779         fi
5780
5781
5782
5783
5784
5785 # This chunk adds additional warnings that could catch undesired effects.
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 xorg_testset_save_CFLAGS="$CFLAGS"
5800
5801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5802         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810 int i;
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813   xorg_cv_cc_flag_unknown_warning_option=yes
5814 else
5815   xorg_cv_cc_flag_unknown_warning_option=no
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5821         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5822         CFLAGS="$xorg_testset_save_CFLAGS"
5823 fi
5824
5825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5826         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828         fi
5829         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h.  */
5837 int i;
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840   xorg_cv_cc_flag_unused_command_line_argument=yes
5841 else
5842   xorg_cv_cc_flag_unused_command_line_argument=no
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5848         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5849         CFLAGS="$xorg_testset_save_CFLAGS"
5850 fi
5851
5852 found="no"
5853
5854         if test $found = "no" ; then
5855                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5856                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857                 fi
5858
5859                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5860                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5861                 fi
5862
5863                 CFLAGS="$CFLAGS -Wunused"
5864
5865                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5866 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5867                 cacheid=xorg_cv_cc_flag__Wunused
5868                 if eval \${$cacheid+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h.  */
5873 int i;
5874 int
5875 main ()
5876 {
5877
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_link "$LINENO"; then :
5883   eval $cacheid=yes
5884 else
5885   eval $cacheid=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext \
5888     conftest$ac_exeext conftest.$ac_ext
5889 fi
5890
5891
5892                 CFLAGS="$xorg_testset_save_CFLAGS"
5893
5894                 eval supported=\$$cacheid
5895                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5896 $as_echo "$supported" >&6; }
5897                 if test "$supported" = "yes" ; then
5898                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5899                         found="yes"
5900                 fi
5901         fi
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 xorg_testset_save_CFLAGS="$CFLAGS"
5918
5919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5920         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5924   $as_echo_n "(cached) " >&6
5925 else
5926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928 int i;
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"; then :
5931   xorg_cv_cc_flag_unknown_warning_option=yes
5932 else
5933   xorg_cv_cc_flag_unknown_warning_option=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940         CFLAGS="$xorg_testset_save_CFLAGS"
5941 fi
5942
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946         fi
5947         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h.  */
5955 int i;
5956 _ACEOF
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958   xorg_cv_cc_flag_unused_command_line_argument=yes
5959 else
5960   xorg_cv_cc_flag_unused_command_line_argument=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5966         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5967         CFLAGS="$xorg_testset_save_CFLAGS"
5968 fi
5969
5970 found="no"
5971
5972         if test $found = "no" ; then
5973                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5974                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975                 fi
5976
5977                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5978                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979                 fi
5980
5981                 CFLAGS="$CFLAGS -Wuninitialized"
5982
5983                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5984 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5985                 cacheid=xorg_cv_cc_flag__Wuninitialized
5986                 if eval \${$cacheid+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991 int i;
5992 int
5993 main ()
5994 {
5995
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_link "$LINENO"; then :
6001   eval $cacheid=yes
6002 else
6003   eval $cacheid=no
6004 fi
6005 rm -f core conftest.err conftest.$ac_objext \
6006     conftest$ac_exeext conftest.$ac_ext
6007 fi
6008
6009
6010                 CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012                 eval supported=\$$cacheid
6013                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014 $as_echo "$supported" >&6; }
6015                 if test "$supported" = "yes" ; then
6016                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6017                         found="yes"
6018                 fi
6019         fi
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035 xorg_testset_save_CFLAGS="$CFLAGS"
6036
6037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h.  */
6046 int i;
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049   xorg_cv_cc_flag_unknown_warning_option=yes
6050 else
6051   xorg_cv_cc_flag_unknown_warning_option=no
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058         CFLAGS="$xorg_testset_save_CFLAGS"
6059 fi
6060
6061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064         fi
6065         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073 int i;
6074 _ACEOF
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076   xorg_cv_cc_flag_unused_command_line_argument=yes
6077 else
6078   xorg_cv_cc_flag_unused_command_line_argument=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085         CFLAGS="$xorg_testset_save_CFLAGS"
6086 fi
6087
6088 found="no"
6089
6090         if test $found = "no" ; then
6091                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6092                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093                 fi
6094
6095                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6096                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097                 fi
6098
6099                 CFLAGS="$CFLAGS -Wshadow"
6100
6101                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6102 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6103                 cacheid=xorg_cv_cc_flag__Wshadow
6104                 if eval \${$cacheid+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h.  */
6109 int i;
6110 int
6111 main ()
6112 {
6113
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_link "$LINENO"; then :
6119   eval $cacheid=yes
6120 else
6121   eval $cacheid=no
6122 fi
6123 rm -f core conftest.err conftest.$ac_objext \
6124     conftest$ac_exeext conftest.$ac_ext
6125 fi
6126
6127
6128                 CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130                 eval supported=\$$cacheid
6131                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132 $as_echo "$supported" >&6; }
6133                 if test "$supported" = "yes" ; then
6134                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6135                         found="yes"
6136                 fi
6137         fi
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153 xorg_testset_save_CFLAGS="$CFLAGS"
6154
6155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6156         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164 int i;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167   xorg_cv_cc_flag_unknown_warning_option=yes
6168 else
6169   xorg_cv_cc_flag_unknown_warning_option=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6175         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6176         CFLAGS="$xorg_testset_save_CFLAGS"
6177 fi
6178
6179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6180         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6181                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6182         fi
6183         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h.  */
6191 int i;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194   xorg_cv_cc_flag_unused_command_line_argument=yes
6195 else
6196   xorg_cv_cc_flag_unused_command_line_argument=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6202         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6203         CFLAGS="$xorg_testset_save_CFLAGS"
6204 fi
6205
6206 found="no"
6207
6208         if test $found = "no" ; then
6209                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6210                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211                 fi
6212
6213                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6214                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6215                 fi
6216
6217                 CFLAGS="$CFLAGS -Wcast-qual"
6218
6219                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6220 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6221                 cacheid=xorg_cv_cc_flag__Wcast_qual
6222                 if eval \${$cacheid+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h.  */
6227 int i;
6228 int
6229 main ()
6230 {
6231
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 if ac_fn_c_try_link "$LINENO"; then :
6237   eval $cacheid=yes
6238 else
6239   eval $cacheid=no
6240 fi
6241 rm -f core conftest.err conftest.$ac_objext \
6242     conftest$ac_exeext conftest.$ac_ext
6243 fi
6244
6245
6246                 CFLAGS="$xorg_testset_save_CFLAGS"
6247
6248                 eval supported=\$$cacheid
6249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6250 $as_echo "$supported" >&6; }
6251                 if test "$supported" = "yes" ; then
6252                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6253                         found="yes"
6254                 fi
6255         fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 xorg_testset_save_CFLAGS="$CFLAGS"
6272
6273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6274         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282 int i;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285   xorg_cv_cc_flag_unknown_warning_option=yes
6286 else
6287   xorg_cv_cc_flag_unknown_warning_option=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6293         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6294         CFLAGS="$xorg_testset_save_CFLAGS"
6295 fi
6296
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6298         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6299                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300         fi
6301         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h.  */
6309 int i;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312   xorg_cv_cc_flag_unused_command_line_argument=yes
6313 else
6314   xorg_cv_cc_flag_unused_command_line_argument=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6320         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6321         CFLAGS="$xorg_testset_save_CFLAGS"
6322 fi
6323
6324 found="no"
6325
6326         if test $found = "no" ; then
6327                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6328                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329                 fi
6330
6331                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6332                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333                 fi
6334
6335                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6336
6337                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6338 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6339                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6340                 if eval \${$cacheid+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h.  */
6345 int i;
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"; then :
6355   eval $cacheid=yes
6356 else
6357   eval $cacheid=no
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext \
6360     conftest$ac_exeext conftest.$ac_ext
6361 fi
6362
6363
6364                 CFLAGS="$xorg_testset_save_CFLAGS"
6365
6366                 eval supported=\$$cacheid
6367                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6368 $as_echo "$supported" >&6; }
6369                 if test "$supported" = "yes" ; then
6370                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6371                         found="yes"
6372                 fi
6373         fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 xorg_testset_save_CFLAGS="$CFLAGS"
6390
6391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6392         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h.  */
6400 int i;
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403   xorg_cv_cc_flag_unknown_warning_option=yes
6404 else
6405   xorg_cv_cc_flag_unknown_warning_option=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6411         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6412         CFLAGS="$xorg_testset_save_CFLAGS"
6413 fi
6414
6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6416         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6417                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6418         fi
6419         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h.  */
6427 int i;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430   xorg_cv_cc_flag_unused_command_line_argument=yes
6431 else
6432   xorg_cv_cc_flag_unused_command_line_argument=no
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6438         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6439         CFLAGS="$xorg_testset_save_CFLAGS"
6440 fi
6441
6442 found="no"
6443
6444         if test $found = "no" ; then
6445                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6446                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447                 fi
6448
6449                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6450                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6451                 fi
6452
6453                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6454
6455                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6456 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6457                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6458                 if eval \${$cacheid+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463 int i;
6464 int
6465 main ()
6466 {
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_link "$LINENO"; then :
6473   eval $cacheid=yes
6474 else
6475   eval $cacheid=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext \
6478     conftest$ac_exeext conftest.$ac_ext
6479 fi
6480
6481
6482                 CFLAGS="$xorg_testset_save_CFLAGS"
6483
6484                 eval supported=\$$cacheid
6485                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6486 $as_echo "$supported" >&6; }
6487                 if test "$supported" = "yes" ; then
6488                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6489                         found="yes"
6490                 fi
6491         fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507 xorg_testset_save_CFLAGS="$CFLAGS"
6508
6509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6510         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h.  */
6518 int i;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521   xorg_cv_cc_flag_unknown_warning_option=yes
6522 else
6523   xorg_cv_cc_flag_unknown_warning_option=no
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6529         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6530         CFLAGS="$xorg_testset_save_CFLAGS"
6531 fi
6532
6533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6534         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6535                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6536         fi
6537         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6541   $as_echo_n "(cached) " >&6
6542 else
6543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h.  */
6545 int i;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548   xorg_cv_cc_flag_unused_command_line_argument=yes
6549 else
6550   xorg_cv_cc_flag_unused_command_line_argument=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6556         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6557         CFLAGS="$xorg_testset_save_CFLAGS"
6558 fi
6559
6560 found="no"
6561
6562         if test $found = "no" ; then
6563                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6564                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565                 fi
6566
6567                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6568                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6569                 fi
6570
6571                 CFLAGS="$CFLAGS -Wredundant-decls"
6572
6573                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6574 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6575                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6576                 if eval \${$cacheid+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581 int i;
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_link "$LINENO"; then :
6591   eval $cacheid=yes
6592 else
6593   eval $cacheid=no
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext \
6596     conftest$ac_exeext conftest.$ac_ext
6597 fi
6598
6599
6600                 CFLAGS="$xorg_testset_save_CFLAGS"
6601
6602                 eval supported=\$$cacheid
6603                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6604 $as_echo "$supported" >&6; }
6605                 if test "$supported" = "yes" ; then
6606                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6607                         found="yes"
6608                 fi
6609         fi
6610
6611
6612
6613 # These are currently disabled because they are noisy.  They will be enabled
6614 # in the future once the codebase is sufficiently modernized to silence
6615 # them.  For now, I don't want them to drown out the other warnings.
6616 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6617 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6618 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6619
6620 # Turn some warnings into errors, so we don't accidently get successful builds
6621 # when there are problems that should be fixed.
6622
6623 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637 xorg_testset_save_CFLAGS="$CFLAGS"
6638
6639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6640         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h.  */
6648 int i;
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651   xorg_cv_cc_flag_unknown_warning_option=yes
6652 else
6653   xorg_cv_cc_flag_unknown_warning_option=no
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6659         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6660         CFLAGS="$xorg_testset_save_CFLAGS"
6661 fi
6662
6663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6664         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6665                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666         fi
6667         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h.  */
6675 int i;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678   xorg_cv_cc_flag_unused_command_line_argument=yes
6679 else
6680   xorg_cv_cc_flag_unused_command_line_argument=no
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6686         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6687         CFLAGS="$xorg_testset_save_CFLAGS"
6688 fi
6689
6690 found="no"
6691
6692         if test $found = "no" ; then
6693                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6694                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695                 fi
6696
6697                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6698                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699                 fi
6700
6701                 CFLAGS="$CFLAGS -Werror=implicit"
6702
6703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6704 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6705                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6706                 if eval \${$cacheid+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 int i;
6712 int
6713 main ()
6714 {
6715
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721   eval $cacheid=yes
6722 else
6723   eval $cacheid=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726     conftest$ac_exeext conftest.$ac_ext
6727 fi
6728
6729
6730                 CFLAGS="$xorg_testset_save_CFLAGS"
6731
6732                 eval supported=\$$cacheid
6733                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6734 $as_echo "$supported" >&6; }
6735                 if test "$supported" = "yes" ; then
6736                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6737                         found="yes"
6738                 fi
6739         fi
6740
6741         if test $found = "no" ; then
6742                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6743                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744                 fi
6745
6746                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6747                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748                 fi
6749
6750                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6751
6752                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6753 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6754                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6755                 if eval \${$cacheid+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h.  */
6760 int i;
6761 int
6762 main ()
6763 {
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770   eval $cacheid=yes
6771 else
6772   eval $cacheid=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext \
6775     conftest$ac_exeext conftest.$ac_ext
6776 fi
6777
6778
6779                 CFLAGS="$xorg_testset_save_CFLAGS"
6780
6781                 eval supported=\$$cacheid
6782                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6783 $as_echo "$supported" >&6; }
6784                 if test "$supported" = "yes" ; then
6785                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6786                         found="yes"
6787                 fi
6788         fi
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 xorg_testset_save_CFLAGS="$CFLAGS"
6805
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6807         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815 int i;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818   xorg_cv_cc_flag_unknown_warning_option=yes
6819 else
6820   xorg_cv_cc_flag_unknown_warning_option=no
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827         CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833         fi
6834         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 int i;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845   xorg_cv_cc_flag_unused_command_line_argument=yes
6846 else
6847   xorg_cv_cc_flag_unused_command_line_argument=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 fi
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854         CFLAGS="$xorg_testset_save_CFLAGS"
6855 fi
6856
6857 found="no"
6858
6859         if test $found = "no" ; then
6860                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6861                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862                 fi
6863
6864                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6865                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6866                 fi
6867
6868                 CFLAGS="$CFLAGS -Werror=nonnull"
6869
6870                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6871 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6872                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6873                 if eval \${$cacheid+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h.  */
6878 int i;
6879 int
6880 main ()
6881 {
6882
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888   eval $cacheid=yes
6889 else
6890   eval $cacheid=no
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893     conftest$ac_exeext conftest.$ac_ext
6894 fi
6895
6896
6897                 CFLAGS="$xorg_testset_save_CFLAGS"
6898
6899                 eval supported=\$$cacheid
6900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901 $as_echo "$supported" >&6; }
6902                 if test "$supported" = "yes" ; then
6903                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6904                         found="yes"
6905                 fi
6906         fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 xorg_testset_save_CFLAGS="$CFLAGS"
6923
6924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6925         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6929   $as_echo_n "(cached) " >&6
6930 else
6931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h.  */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936   xorg_cv_cc_flag_unknown_warning_option=yes
6937 else
6938   xorg_cv_cc_flag_unknown_warning_option=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945         CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951         fi
6952         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h.  */
6960 int i;
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963   xorg_cv_cc_flag_unused_command_line_argument=yes
6964 else
6965   xorg_cv_cc_flag_unused_command_line_argument=no
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972         CFLAGS="$xorg_testset_save_CFLAGS"
6973 fi
6974
6975 found="no"
6976
6977         if test $found = "no" ; then
6978                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6979                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6980                 fi
6981
6982                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6983                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6984                 fi
6985
6986                 CFLAGS="$CFLAGS -Werror=init-self"
6987
6988                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6989 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6990                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6991                 if eval \${$cacheid+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h.  */
6996 int i;
6997 int
6998 main ()
6999 {
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006   eval $cacheid=yes
7007 else
7008   eval $cacheid=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext \
7011     conftest$ac_exeext conftest.$ac_ext
7012 fi
7013
7014
7015                 CFLAGS="$xorg_testset_save_CFLAGS"
7016
7017                 eval supported=\$$cacheid
7018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020                 if test "$supported" = "yes" ; then
7021                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7022                         found="yes"
7023                 fi
7024         fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 xorg_testset_save_CFLAGS="$CFLAGS"
7041
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054   xorg_cv_cc_flag_unknown_warning_option=yes
7055 else
7056   xorg_cv_cc_flag_unknown_warning_option=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063         CFLAGS="$xorg_testset_save_CFLAGS"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069         fi
7070         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7074   $as_echo_n "(cached) " >&6
7075 else
7076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078 int i;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081   xorg_cv_cc_flag_unused_command_line_argument=yes
7082 else
7083   xorg_cv_cc_flag_unused_command_line_argument=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7089         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7090         CFLAGS="$xorg_testset_save_CFLAGS"
7091 fi
7092
7093 found="no"
7094
7095         if test $found = "no" ; then
7096                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7097                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098                 fi
7099
7100                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7101                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7102                 fi
7103
7104                 CFLAGS="$CFLAGS -Werror=main"
7105
7106                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7107 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7108                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7109                 if eval \${$cacheid+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h.  */
7114 int i;
7115 int
7116 main ()
7117 {
7118
7119   ;
7120   return 0;
7121 }
7122 _ACEOF
7123 if ac_fn_c_try_link "$LINENO"; then :
7124   eval $cacheid=yes
7125 else
7126   eval $cacheid=no
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext \
7129     conftest$ac_exeext conftest.$ac_ext
7130 fi
7131
7132
7133                 CFLAGS="$xorg_testset_save_CFLAGS"
7134
7135                 eval supported=\$$cacheid
7136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138                 if test "$supported" = "yes" ; then
7139                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7140                         found="yes"
7141                 fi
7142         fi
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 xorg_testset_save_CFLAGS="$CFLAGS"
7159
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7161         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169 int i;
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172   xorg_cv_cc_flag_unknown_warning_option=yes
7173 else
7174   xorg_cv_cc_flag_unknown_warning_option=no
7175 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 fi
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7180         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7181         CFLAGS="$xorg_testset_save_CFLAGS"
7182 fi
7183
7184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7185         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187         fi
7188         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h.  */
7196 int i;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199   xorg_cv_cc_flag_unused_command_line_argument=yes
7200 else
7201   xorg_cv_cc_flag_unused_command_line_argument=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7207         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7208         CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 found="no"
7212
7213         if test $found = "no" ; then
7214                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7215                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216                 fi
7217
7218                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7219                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7220                 fi
7221
7222                 CFLAGS="$CFLAGS -Werror=missing-braces"
7223
7224                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7225 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7226                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7227                 if eval \${$cacheid+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h.  */
7232 int i;
7233 int
7234 main ()
7235 {
7236
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"; then :
7242   eval $cacheid=yes
7243 else
7244   eval $cacheid=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext \
7247     conftest$ac_exeext conftest.$ac_ext
7248 fi
7249
7250
7251                 CFLAGS="$xorg_testset_save_CFLAGS"
7252
7253                 eval supported=\$$cacheid
7254                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7255 $as_echo "$supported" >&6; }
7256                 if test "$supported" = "yes" ; then
7257                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7258                         found="yes"
7259                 fi
7260         fi
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 xorg_testset_save_CFLAGS="$CFLAGS"
7277
7278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7279         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h.  */
7287 int i;
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290   xorg_cv_cc_flag_unknown_warning_option=yes
7291 else
7292   xorg_cv_cc_flag_unknown_warning_option=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7298         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7299         CFLAGS="$xorg_testset_save_CFLAGS"
7300 fi
7301
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7303         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305         fi
7306         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h.  */
7314 int i;
7315 _ACEOF
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317   xorg_cv_cc_flag_unused_command_line_argument=yes
7318 else
7319   xorg_cv_cc_flag_unused_command_line_argument=no
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7325         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7326         CFLAGS="$xorg_testset_save_CFLAGS"
7327 fi
7328
7329 found="no"
7330
7331         if test $found = "no" ; then
7332                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7333                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334                 fi
7335
7336                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7337                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338                 fi
7339
7340                 CFLAGS="$CFLAGS -Werror=sequence-point"
7341
7342                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7343 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7344                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7345                 if eval \${$cacheid+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350 int i;
7351 int
7352 main ()
7353 {
7354
7355   ;
7356   return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360   eval $cacheid=yes
7361 else
7362   eval $cacheid=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext \
7365     conftest$ac_exeext conftest.$ac_ext
7366 fi
7367
7368
7369                 CFLAGS="$xorg_testset_save_CFLAGS"
7370
7371                 eval supported=\$$cacheid
7372                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7373 $as_echo "$supported" >&6; }
7374                 if test "$supported" = "yes" ; then
7375                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7376                         found="yes"
7377                 fi
7378         fi
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394 xorg_testset_save_CFLAGS="$CFLAGS"
7395
7396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7397         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h.  */
7405 int i;
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408   xorg_cv_cc_flag_unknown_warning_option=yes
7409 else
7410   xorg_cv_cc_flag_unknown_warning_option=no
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7416         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7417         CFLAGS="$xorg_testset_save_CFLAGS"
7418 fi
7419
7420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7421         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7422                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7423         fi
7424         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432 int i;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   xorg_cv_cc_flag_unused_command_line_argument=yes
7436 else
7437   xorg_cv_cc_flag_unused_command_line_argument=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7443         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7444         CFLAGS="$xorg_testset_save_CFLAGS"
7445 fi
7446
7447 found="no"
7448
7449         if test $found = "no" ; then
7450                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7451                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452                 fi
7453
7454                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7455                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7456                 fi
7457
7458                 CFLAGS="$CFLAGS -Werror=return-type"
7459
7460                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7461 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7462                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7463                 if eval \${$cacheid+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h.  */
7468 int i;
7469 int
7470 main ()
7471 {
7472
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478   eval $cacheid=yes
7479 else
7480   eval $cacheid=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483     conftest$ac_exeext conftest.$ac_ext
7484 fi
7485
7486
7487                 CFLAGS="$xorg_testset_save_CFLAGS"
7488
7489                 eval supported=\$$cacheid
7490                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7491 $as_echo "$supported" >&6; }
7492                 if test "$supported" = "yes" ; then
7493                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7494                         found="yes"
7495                 fi
7496         fi
7497
7498         if test $found = "no" ; then
7499                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7500                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501                 fi
7502
7503                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7504                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7505                 fi
7506
7507                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7508
7509                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7510 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7511                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7512                 if eval \${$cacheid+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h.  */
7517 int i;
7518 int
7519 main ()
7520 {
7521
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7527   eval $cacheid=yes
7528 else
7529   eval $cacheid=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext \
7532     conftest$ac_exeext conftest.$ac_ext
7533 fi
7534
7535
7536                 CFLAGS="$xorg_testset_save_CFLAGS"
7537
7538                 eval supported=\$$cacheid
7539                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7540 $as_echo "$supported" >&6; }
7541                 if test "$supported" = "yes" ; then
7542                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7543                         found="yes"
7544                 fi
7545         fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 xorg_testset_save_CFLAGS="$CFLAGS"
7562
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7564         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575   xorg_cv_cc_flag_unknown_warning_option=yes
7576 else
7577   xorg_cv_cc_flag_unknown_warning_option=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584         CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590         fi
7591         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h.  */
7599 int i;
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602   xorg_cv_cc_flag_unused_command_line_argument=yes
7603 else
7604   xorg_cv_cc_flag_unused_command_line_argument=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611         CFLAGS="$xorg_testset_save_CFLAGS"
7612 fi
7613
7614 found="no"
7615
7616         if test $found = "no" ; then
7617                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7618                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619                 fi
7620
7621                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7622                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623                 fi
7624
7625                 CFLAGS="$CFLAGS -Werror=trigraphs"
7626
7627                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7628 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7629                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7630                 if eval \${$cacheid+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635 int i;
7636 int
7637 main ()
7638 {
7639
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645   eval $cacheid=yes
7646 else
7647   eval $cacheid=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext \
7650     conftest$ac_exeext conftest.$ac_ext
7651 fi
7652
7653
7654                 CFLAGS="$xorg_testset_save_CFLAGS"
7655
7656                 eval supported=\$$cacheid
7657                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7658 $as_echo "$supported" >&6; }
7659                 if test "$supported" = "yes" ; then
7660                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7661                         found="yes"
7662                 fi
7663         fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 xorg_testset_save_CFLAGS="$CFLAGS"
7680
7681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7682         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693   xorg_cv_cc_flag_unknown_warning_option=yes
7694 else
7695   xorg_cv_cc_flag_unknown_warning_option=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7701         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7702         CFLAGS="$xorg_testset_save_CFLAGS"
7703 fi
7704
7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7706         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708         fi
7709         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717 int i;
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720   xorg_cv_cc_flag_unused_command_line_argument=yes
7721 else
7722   xorg_cv_cc_flag_unused_command_line_argument=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7728         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7729         CFLAGS="$xorg_testset_save_CFLAGS"
7730 fi
7731
7732 found="no"
7733
7734         if test $found = "no" ; then
7735                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7736                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737                 fi
7738
7739                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7740                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7741                 fi
7742
7743                 CFLAGS="$CFLAGS -Werror=array-bounds"
7744
7745                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7746 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7747                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7748                 if eval \${$cacheid+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h.  */
7753 int i;
7754 int
7755 main ()
7756 {
7757
7758   ;
7759   return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763   eval $cacheid=yes
7764 else
7765   eval $cacheid=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext \
7768     conftest$ac_exeext conftest.$ac_ext
7769 fi
7770
7771
7772                 CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774                 eval supported=\$$cacheid
7775                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776 $as_echo "$supported" >&6; }
7777                 if test "$supported" = "yes" ; then
7778                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7779                         found="yes"
7780                 fi
7781         fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h.  */
7808 int i;
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811   xorg_cv_cc_flag_unknown_warning_option=yes
7812 else
7813   xorg_cv_cc_flag_unknown_warning_option=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7819         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7820         CFLAGS="$xorg_testset_save_CFLAGS"
7821 fi
7822
7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7824         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7825                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7826         fi
7827         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835 int i;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838   xorg_cv_cc_flag_unused_command_line_argument=yes
7839 else
7840   xorg_cv_cc_flag_unused_command_line_argument=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7846         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7847         CFLAGS="$xorg_testset_save_CFLAGS"
7848 fi
7849
7850 found="no"
7851
7852         if test $found = "no" ; then
7853                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7854                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855                 fi
7856
7857                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7858                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7859                 fi
7860
7861                 CFLAGS="$CFLAGS -Werror=write-strings"
7862
7863                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7864 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7865                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7866                 if eval \${$cacheid+:} false; then :
7867   $as_echo_n "(cached) " >&6
7868 else
7869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 int i;
7872 int
7873 main ()
7874 {
7875
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881   eval $cacheid=yes
7882 else
7883   eval $cacheid=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext \
7886     conftest$ac_exeext conftest.$ac_ext
7887 fi
7888
7889
7890                 CFLAGS="$xorg_testset_save_CFLAGS"
7891
7892                 eval supported=\$$cacheid
7893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894 $as_echo "$supported" >&6; }
7895                 if test "$supported" = "yes" ; then
7896                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7897                         found="yes"
7898                 fi
7899         fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 xorg_testset_save_CFLAGS="$CFLAGS"
7916
7917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7918         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926 int i;
7927 _ACEOF
7928 if ac_fn_c_try_compile "$LINENO"; then :
7929   xorg_cv_cc_flag_unknown_warning_option=yes
7930 else
7931   xorg_cv_cc_flag_unknown_warning_option=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7937         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7938         CFLAGS="$xorg_testset_save_CFLAGS"
7939 fi
7940
7941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7942         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944         fi
7945         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956   xorg_cv_cc_flag_unused_command_line_argument=yes
7957 else
7958   xorg_cv_cc_flag_unused_command_line_argument=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7964         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7965         CFLAGS="$xorg_testset_save_CFLAGS"
7966 fi
7967
7968 found="no"
7969
7970         if test $found = "no" ; then
7971                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7972                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973                 fi
7974
7975                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7976                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977                 fi
7978
7979                 CFLAGS="$CFLAGS -Werror=address"
7980
7981                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7982 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7983                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7984                 if eval \${$cacheid+:} false; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h.  */
7989 int i;
7990 int
7991 main ()
7992 {
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_link "$LINENO"; then :
7999   eval $cacheid=yes
8000 else
8001   eval $cacheid=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext \
8004     conftest$ac_exeext conftest.$ac_ext
8005 fi
8006
8007
8008                 CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010                 eval supported=\$$cacheid
8011                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 $as_echo "$supported" >&6; }
8013                 if test "$supported" = "yes" ; then
8014                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8015                         found="yes"
8016                 fi
8017         fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h.  */
8044 int i;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047   xorg_cv_cc_flag_unknown_warning_option=yes
8048 else
8049   xorg_cv_cc_flag_unknown_warning_option=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056         CFLAGS="$xorg_testset_save_CFLAGS"
8057 fi
8058
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062         fi
8063         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h.  */
8071 int i;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074   xorg_cv_cc_flag_unused_command_line_argument=yes
8075 else
8076   xorg_cv_cc_flag_unused_command_line_argument=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8082         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8083         CFLAGS="$xorg_testset_save_CFLAGS"
8084 fi
8085
8086 found="no"
8087
8088         if test $found = "no" ; then
8089                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8090                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091                 fi
8092
8093                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8094                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8095                 fi
8096
8097                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8098
8099                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8100 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8101                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8102                 if eval \${$cacheid+:} false; then :
8103   $as_echo_n "(cached) " >&6
8104 else
8105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h.  */
8107 int i;
8108 int
8109 main ()
8110 {
8111
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117   eval $cacheid=yes
8118 else
8119   eval $cacheid=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext \
8122     conftest$ac_exeext conftest.$ac_ext
8123 fi
8124
8125
8126                 CFLAGS="$xorg_testset_save_CFLAGS"
8127
8128                 eval supported=\$$cacheid
8129                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8130 $as_echo "$supported" >&6; }
8131                 if test "$supported" = "yes" ; then
8132                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8133                         found="yes"
8134                 fi
8135         fi
8136
8137         if test $found = "no" ; then
8138                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8139                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140                 fi
8141
8142                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8143                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8144                 fi
8145
8146                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8147
8148                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8149 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8150                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8151                 if eval \${$cacheid+:} false; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 int i;
8157 int
8158 main ()
8159 {
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"; then :
8166   eval $cacheid=yes
8167 else
8168   eval $cacheid=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext \
8171     conftest$ac_exeext conftest.$ac_ext
8172 fi
8173
8174
8175                 CFLAGS="$xorg_testset_save_CFLAGS"
8176
8177                 eval supported=\$$cacheid
8178                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8179 $as_echo "$supported" >&6; }
8180                 if test "$supported" = "yes" ; then
8181                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8182                         found="yes"
8183                 fi
8184         fi
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 xorg_testset_save_CFLAGS="$CFLAGS"
8201
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8203         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h.  */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214   xorg_cv_cc_flag_unknown_warning_option=yes
8215 else
8216   xorg_cv_cc_flag_unknown_warning_option=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8222         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8223         CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8227         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229         fi
8230         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h.  */
8238 int i;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241   xorg_cv_cc_flag_unused_command_line_argument=yes
8242 else
8243   xorg_cv_cc_flag_unused_command_line_argument=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8249         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8250         CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 found="no"
8254
8255         if test $found = "no" ; then
8256                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8257                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258                 fi
8259
8260                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8261                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8262                 fi
8263
8264                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8265
8266                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8267 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8268                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8269                 if eval \${$cacheid+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274 int i;
8275 int
8276 main ()
8277 {
8278
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284   eval $cacheid=yes
8285 else
8286   eval $cacheid=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289     conftest$ac_exeext conftest.$ac_ext
8290 fi
8291
8292
8293                 CFLAGS="$xorg_testset_save_CFLAGS"
8294
8295                 eval supported=\$$cacheid
8296                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8297 $as_echo "$supported" >&6; }
8298                 if test "$supported" = "yes" ; then
8299                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8300                         found="yes"
8301                 fi
8302         fi
8303
8304  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8305 else
8306 { $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
8307 $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;}
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 xorg_testset_save_CFLAGS="$CFLAGS"
8322
8323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8328   $as_echo_n "(cached) " >&6
8329 else
8330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h.  */
8332 int i;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335   xorg_cv_cc_flag_unknown_warning_option=yes
8336 else
8337   xorg_cv_cc_flag_unknown_warning_option=no
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8343         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8344         CFLAGS="$xorg_testset_save_CFLAGS"
8345 fi
8346
8347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8348         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350         fi
8351         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h.  */
8359 int i;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362   xorg_cv_cc_flag_unused_command_line_argument=yes
8363 else
8364   xorg_cv_cc_flag_unused_command_line_argument=no
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8370         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8371         CFLAGS="$xorg_testset_save_CFLAGS"
8372 fi
8373
8374 found="no"
8375
8376         if test $found = "no" ; then
8377                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8378                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8379                 fi
8380
8381                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8382                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8383                 fi
8384
8385                 CFLAGS="$CFLAGS -Wimplicit"
8386
8387                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8388 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8389                 cacheid=xorg_cv_cc_flag__Wimplicit
8390                 if eval \${$cacheid+:} false; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h.  */
8395 int i;
8396 int
8397 main ()
8398 {
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_link "$LINENO"; then :
8405   eval $cacheid=yes
8406 else
8407   eval $cacheid=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext \
8410     conftest$ac_exeext conftest.$ac_ext
8411 fi
8412
8413
8414                 CFLAGS="$xorg_testset_save_CFLAGS"
8415
8416                 eval supported=\$$cacheid
8417                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418 $as_echo "$supported" >&6; }
8419                 if test "$supported" = "yes" ; then
8420                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8421                         found="yes"
8422                 fi
8423         fi
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439 xorg_testset_save_CFLAGS="$CFLAGS"
8440
8441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h.  */
8450 int i;
8451 _ACEOF
8452 if ac_fn_c_try_compile "$LINENO"; then :
8453   xorg_cv_cc_flag_unknown_warning_option=yes
8454 else
8455   xorg_cv_cc_flag_unknown_warning_option=no
8456 fi
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 fi
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8461         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8462         CFLAGS="$xorg_testset_save_CFLAGS"
8463 fi
8464
8465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8466         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468         fi
8469         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8473   $as_echo_n "(cached) " >&6
8474 else
8475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h.  */
8477 int i;
8478 _ACEOF
8479 if ac_fn_c_try_compile "$LINENO"; then :
8480   xorg_cv_cc_flag_unused_command_line_argument=yes
8481 else
8482   xorg_cv_cc_flag_unused_command_line_argument=no
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 fi
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8488         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8489         CFLAGS="$xorg_testset_save_CFLAGS"
8490 fi
8491
8492 found="no"
8493
8494         if test $found = "no" ; then
8495                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8496                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8497                 fi
8498
8499                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8500                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8501                 fi
8502
8503                 CFLAGS="$CFLAGS -Wnonnull"
8504
8505                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8506 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8507                 cacheid=xorg_cv_cc_flag__Wnonnull
8508                 if eval \${$cacheid+:} false; then :
8509   $as_echo_n "(cached) " >&6
8510 else
8511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h.  */
8513 int i;
8514 int
8515 main ()
8516 {
8517
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_link "$LINENO"; then :
8523   eval $cacheid=yes
8524 else
8525   eval $cacheid=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext \
8528     conftest$ac_exeext conftest.$ac_ext
8529 fi
8530
8531
8532                 CFLAGS="$xorg_testset_save_CFLAGS"
8533
8534                 eval supported=\$$cacheid
8535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8536 $as_echo "$supported" >&6; }
8537                 if test "$supported" = "yes" ; then
8538                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8539                         found="yes"
8540                 fi
8541         fi
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557 xorg_testset_save_CFLAGS="$CFLAGS"
8558
8559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8560         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h.  */
8568 int i;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571   xorg_cv_cc_flag_unknown_warning_option=yes
8572 else
8573   xorg_cv_cc_flag_unknown_warning_option=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8579         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8580         CFLAGS="$xorg_testset_save_CFLAGS"
8581 fi
8582
8583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8584         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586         fi
8587         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8591   $as_echo_n "(cached) " >&6
8592 else
8593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h.  */
8595 int i;
8596 _ACEOF
8597 if ac_fn_c_try_compile "$LINENO"; then :
8598   xorg_cv_cc_flag_unused_command_line_argument=yes
8599 else
8600   xorg_cv_cc_flag_unused_command_line_argument=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607         CFLAGS="$xorg_testset_save_CFLAGS"
8608 fi
8609
8610 found="no"
8611
8612         if test $found = "no" ; then
8613                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8614                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615                 fi
8616
8617                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8618                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619                 fi
8620
8621                 CFLAGS="$CFLAGS -Winit-self"
8622
8623                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8624 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8625                 cacheid=xorg_cv_cc_flag__Winit_self
8626                 if eval \${$cacheid+:} false; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631 int i;
8632 int
8633 main ()
8634 {
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 if ac_fn_c_try_link "$LINENO"; then :
8641   eval $cacheid=yes
8642 else
8643   eval $cacheid=no
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext \
8646     conftest$ac_exeext conftest.$ac_ext
8647 fi
8648
8649
8650                 CFLAGS="$xorg_testset_save_CFLAGS"
8651
8652                 eval supported=\$$cacheid
8653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8654 $as_echo "$supported" >&6; }
8655                 if test "$supported" = "yes" ; then
8656                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8657                         found="yes"
8658                 fi
8659         fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675 xorg_testset_save_CFLAGS="$CFLAGS"
8676
8677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8678         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686 int i;
8687 _ACEOF
8688 if ac_fn_c_try_compile "$LINENO"; then :
8689   xorg_cv_cc_flag_unknown_warning_option=yes
8690 else
8691   xorg_cv_cc_flag_unknown_warning_option=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8697         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8698         CFLAGS="$xorg_testset_save_CFLAGS"
8699 fi
8700
8701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8702         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8703                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8704         fi
8705         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8706         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h.  */
8713 int i;
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"; then :
8716   xorg_cv_cc_flag_unused_command_line_argument=yes
8717 else
8718   xorg_cv_cc_flag_unused_command_line_argument=no
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8724         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8725         CFLAGS="$xorg_testset_save_CFLAGS"
8726 fi
8727
8728 found="no"
8729
8730         if test $found = "no" ; then
8731                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8732                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733                 fi
8734
8735                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8736                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8737                 fi
8738
8739                 CFLAGS="$CFLAGS -Wmain"
8740
8741                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8742 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8743                 cacheid=xorg_cv_cc_flag__Wmain
8744                 if eval \${$cacheid+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749 int i;
8750 int
8751 main ()
8752 {
8753
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759   eval $cacheid=yes
8760 else
8761   eval $cacheid=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext \
8764     conftest$ac_exeext conftest.$ac_ext
8765 fi
8766
8767
8768                 CFLAGS="$xorg_testset_save_CFLAGS"
8769
8770                 eval supported=\$$cacheid
8771                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8772 $as_echo "$supported" >&6; }
8773                 if test "$supported" = "yes" ; then
8774                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8775                         found="yes"
8776                 fi
8777         fi
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 xorg_testset_save_CFLAGS="$CFLAGS"
8794
8795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8796         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h.  */
8804 int i;
8805 _ACEOF
8806 if ac_fn_c_try_compile "$LINENO"; then :
8807   xorg_cv_cc_flag_unknown_warning_option=yes
8808 else
8809   xorg_cv_cc_flag_unknown_warning_option=no
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8815         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8816         CFLAGS="$xorg_testset_save_CFLAGS"
8817 fi
8818
8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8820         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8821                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8822         fi
8823         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h.  */
8831 int i;
8832 _ACEOF
8833 if ac_fn_c_try_compile "$LINENO"; then :
8834   xorg_cv_cc_flag_unused_command_line_argument=yes
8835 else
8836   xorg_cv_cc_flag_unused_command_line_argument=no
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8842         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8843         CFLAGS="$xorg_testset_save_CFLAGS"
8844 fi
8845
8846 found="no"
8847
8848         if test $found = "no" ; then
8849                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8850                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851                 fi
8852
8853                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8854                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8855                 fi
8856
8857                 CFLAGS="$CFLAGS -Wmissing-braces"
8858
8859                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8860 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8861                 cacheid=xorg_cv_cc_flag__Wmissing_braces
8862                 if eval \${$cacheid+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h.  */
8867 int i;
8868 int
8869 main ()
8870 {
8871
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_link "$LINENO"; then :
8877   eval $cacheid=yes
8878 else
8879   eval $cacheid=no
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext \
8882     conftest$ac_exeext conftest.$ac_ext
8883 fi
8884
8885
8886                 CFLAGS="$xorg_testset_save_CFLAGS"
8887
8888                 eval supported=\$$cacheid
8889                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8890 $as_echo "$supported" >&6; }
8891                 if test "$supported" = "yes" ; then
8892                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8893                         found="yes"
8894                 fi
8895         fi
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 xorg_testset_save_CFLAGS="$CFLAGS"
8912
8913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8914         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h.  */
8922 int i;
8923 _ACEOF
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925   xorg_cv_cc_flag_unknown_warning_option=yes
8926 else
8927   xorg_cv_cc_flag_unknown_warning_option=no
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8933         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8934         CFLAGS="$xorg_testset_save_CFLAGS"
8935 fi
8936
8937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8938         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8939                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940         fi
8941         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949 int i;
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952   xorg_cv_cc_flag_unused_command_line_argument=yes
8953 else
8954   xorg_cv_cc_flag_unused_command_line_argument=no
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8960         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8961         CFLAGS="$xorg_testset_save_CFLAGS"
8962 fi
8963
8964 found="no"
8965
8966         if test $found = "no" ; then
8967                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8968                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969                 fi
8970
8971                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8972                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8973                 fi
8974
8975                 CFLAGS="$CFLAGS -Wsequence-point"
8976
8977                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8978 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8979                 cacheid=xorg_cv_cc_flag__Wsequence_point
8980                 if eval \${$cacheid+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h.  */
8985 int i;
8986 int
8987 main ()
8988 {
8989
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995   eval $cacheid=yes
8996 else
8997   eval $cacheid=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000     conftest$ac_exeext conftest.$ac_ext
9001 fi
9002
9003
9004                 CFLAGS="$xorg_testset_save_CFLAGS"
9005
9006                 eval supported=\$$cacheid
9007                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9008 $as_echo "$supported" >&6; }
9009                 if test "$supported" = "yes" ; then
9010                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9011                         found="yes"
9012                 fi
9013         fi
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 xorg_testset_save_CFLAGS="$CFLAGS"
9030
9031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9032         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h.  */
9040 int i;
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043   xorg_cv_cc_flag_unknown_warning_option=yes
9044 else
9045   xorg_cv_cc_flag_unknown_warning_option=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9051         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9052         CFLAGS="$xorg_testset_save_CFLAGS"
9053 fi
9054
9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9056         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9057                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9058         fi
9059         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h.  */
9067 int i;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070   xorg_cv_cc_flag_unused_command_line_argument=yes
9071 else
9072   xorg_cv_cc_flag_unused_command_line_argument=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9078         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9079         CFLAGS="$xorg_testset_save_CFLAGS"
9080 fi
9081
9082 found="no"
9083
9084         if test $found = "no" ; then
9085                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9086                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087                 fi
9088
9089                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9090                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9091                 fi
9092
9093                 CFLAGS="$CFLAGS -Wreturn-type"
9094
9095                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9096 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9097                 cacheid=xorg_cv_cc_flag__Wreturn_type
9098                 if eval \${$cacheid+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h.  */
9103 int i;
9104 int
9105 main ()
9106 {
9107
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 if ac_fn_c_try_link "$LINENO"; then :
9113   eval $cacheid=yes
9114 else
9115   eval $cacheid=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext \
9118     conftest$ac_exeext conftest.$ac_ext
9119 fi
9120
9121
9122                 CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124                 eval supported=\$$cacheid
9125                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126 $as_echo "$supported" >&6; }
9127                 if test "$supported" = "yes" ; then
9128                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9129                         found="yes"
9130                 fi
9131         fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h.  */
9158 int i;
9159 _ACEOF
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161   xorg_cv_cc_flag_unknown_warning_option=yes
9162 else
9163   xorg_cv_cc_flag_unknown_warning_option=no
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9169         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9170         CFLAGS="$xorg_testset_save_CFLAGS"
9171 fi
9172
9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9174         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176         fi
9177         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h.  */
9185 int i;
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"; then :
9188   xorg_cv_cc_flag_unused_command_line_argument=yes
9189 else
9190   xorg_cv_cc_flag_unused_command_line_argument=no
9191 fi
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9196         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9197         CFLAGS="$xorg_testset_save_CFLAGS"
9198 fi
9199
9200 found="no"
9201
9202         if test $found = "no" ; then
9203                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9204                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205                 fi
9206
9207                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9208                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9209                 fi
9210
9211                 CFLAGS="$CFLAGS -Wtrigraphs"
9212
9213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9214 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9215                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9216                 if eval \${$cacheid+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h.  */
9221 int i;
9222 int
9223 main ()
9224 {
9225
9226   ;
9227   return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231   eval $cacheid=yes
9232 else
9233   eval $cacheid=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236     conftest$ac_exeext conftest.$ac_ext
9237 fi
9238
9239
9240                 CFLAGS="$xorg_testset_save_CFLAGS"
9241
9242                 eval supported=\$$cacheid
9243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9244 $as_echo "$supported" >&6; }
9245                 if test "$supported" = "yes" ; then
9246                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9247                         found="yes"
9248                 fi
9249         fi
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 xorg_testset_save_CFLAGS="$CFLAGS"
9266
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9268         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h.  */
9276 int i;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279   xorg_cv_cc_flag_unknown_warning_option=yes
9280 else
9281   xorg_cv_cc_flag_unknown_warning_option=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9287         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9288         CFLAGS="$xorg_testset_save_CFLAGS"
9289 fi
9290
9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9292         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9293                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294         fi
9295         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9299   $as_echo_n "(cached) " >&6
9300 else
9301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h.  */
9303 int i;
9304 _ACEOF
9305 if ac_fn_c_try_compile "$LINENO"; then :
9306   xorg_cv_cc_flag_unused_command_line_argument=yes
9307 else
9308   xorg_cv_cc_flag_unused_command_line_argument=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9314         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9315         CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 found="no"
9319
9320         if test $found = "no" ; then
9321                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9322                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323                 fi
9324
9325                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9326                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9327                 fi
9328
9329                 CFLAGS="$CFLAGS -Warray-bounds"
9330
9331                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9332 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9333                 cacheid=xorg_cv_cc_flag__Warray_bounds
9334                 if eval \${$cacheid+:} false; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339 int i;
9340 int
9341 main ()
9342 {
9343
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 if ac_fn_c_try_link "$LINENO"; then :
9349   eval $cacheid=yes
9350 else
9351   eval $cacheid=no
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354     conftest$ac_exeext conftest.$ac_ext
9355 fi
9356
9357
9358                 CFLAGS="$xorg_testset_save_CFLAGS"
9359
9360                 eval supported=\$$cacheid
9361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9362 $as_echo "$supported" >&6; }
9363                 if test "$supported" = "yes" ; then
9364                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9365                         found="yes"
9366                 fi
9367         fi
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 xorg_testset_save_CFLAGS="$CFLAGS"
9384
9385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9386         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h.  */
9394 int i;
9395 _ACEOF
9396 if ac_fn_c_try_compile "$LINENO"; then :
9397   xorg_cv_cc_flag_unknown_warning_option=yes
9398 else
9399   xorg_cv_cc_flag_unknown_warning_option=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 fi
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9405         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9406         CFLAGS="$xorg_testset_save_CFLAGS"
9407 fi
9408
9409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9410         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9411                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412         fi
9413         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h.  */
9421 int i;
9422 _ACEOF
9423 if ac_fn_c_try_compile "$LINENO"; then :
9424   xorg_cv_cc_flag_unused_command_line_argument=yes
9425 else
9426   xorg_cv_cc_flag_unused_command_line_argument=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 fi
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9432         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9433         CFLAGS="$xorg_testset_save_CFLAGS"
9434 fi
9435
9436 found="no"
9437
9438         if test $found = "no" ; then
9439                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9440                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441                 fi
9442
9443                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9444                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9445                 fi
9446
9447                 CFLAGS="$CFLAGS -Wwrite-strings"
9448
9449                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9450 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9451                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9452                 if eval \${$cacheid+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h.  */
9457 int i;
9458 int
9459 main ()
9460 {
9461
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467   eval $cacheid=yes
9468 else
9469   eval $cacheid=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext \
9472     conftest$ac_exeext conftest.$ac_ext
9473 fi
9474
9475
9476                 CFLAGS="$xorg_testset_save_CFLAGS"
9477
9478                 eval supported=\$$cacheid
9479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9480 $as_echo "$supported" >&6; }
9481                 if test "$supported" = "yes" ; then
9482                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9483                         found="yes"
9484                 fi
9485         fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501 xorg_testset_save_CFLAGS="$CFLAGS"
9502
9503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9504         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h.  */
9512 int i;
9513 _ACEOF
9514 if ac_fn_c_try_compile "$LINENO"; then :
9515   xorg_cv_cc_flag_unknown_warning_option=yes
9516 else
9517   xorg_cv_cc_flag_unknown_warning_option=no
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9523         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9524         CFLAGS="$xorg_testset_save_CFLAGS"
9525 fi
9526
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9528         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9529                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530         fi
9531         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h.  */
9539 int i;
9540 _ACEOF
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542   xorg_cv_cc_flag_unused_command_line_argument=yes
9543 else
9544   xorg_cv_cc_flag_unused_command_line_argument=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9550         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9551         CFLAGS="$xorg_testset_save_CFLAGS"
9552 fi
9553
9554 found="no"
9555
9556         if test $found = "no" ; then
9557                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9558                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559                 fi
9560
9561                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9562                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9563                 fi
9564
9565                 CFLAGS="$CFLAGS -Waddress"
9566
9567                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9568 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9569                 cacheid=xorg_cv_cc_flag__Waddress
9570                 if eval \${$cacheid+:} false; then :
9571   $as_echo_n "(cached) " >&6
9572 else
9573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h.  */
9575 int i;
9576 int
9577 main ()
9578 {
9579
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585   eval $cacheid=yes
9586 else
9587   eval $cacheid=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590     conftest$ac_exeext conftest.$ac_ext
9591 fi
9592
9593
9594                 CFLAGS="$xorg_testset_save_CFLAGS"
9595
9596                 eval supported=\$$cacheid
9597                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598 $as_echo "$supported" >&6; }
9599                 if test "$supported" = "yes" ; then
9600                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9601                         found="yes"
9602                 fi
9603         fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619 xorg_testset_save_CFLAGS="$CFLAGS"
9620
9621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9622         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h.  */
9630 int i;
9631 _ACEOF
9632 if ac_fn_c_try_compile "$LINENO"; then :
9633   xorg_cv_cc_flag_unknown_warning_option=yes
9634 else
9635   xorg_cv_cc_flag_unknown_warning_option=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9641         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9642         CFLAGS="$xorg_testset_save_CFLAGS"
9643 fi
9644
9645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9646         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9647                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648         fi
9649         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9650         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h.  */
9657 int i;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660   xorg_cv_cc_flag_unused_command_line_argument=yes
9661 else
9662   xorg_cv_cc_flag_unused_command_line_argument=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9668         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9669         CFLAGS="$xorg_testset_save_CFLAGS"
9670 fi
9671
9672 found="no"
9673
9674         if test $found = "no" ; then
9675                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9676                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677                 fi
9678
9679                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9680                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9681                 fi
9682
9683                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9684
9685                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9686 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9687                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9688                 if eval \${$cacheid+:} false; then :
9689   $as_echo_n "(cached) " >&6
9690 else
9691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h.  */
9693 int i;
9694 int
9695 main ()
9696 {
9697
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703   eval $cacheid=yes
9704 else
9705   eval $cacheid=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708     conftest$ac_exeext conftest.$ac_ext
9709 fi
9710
9711
9712                 CFLAGS="$xorg_testset_save_CFLAGS"
9713
9714                 eval supported=\$$cacheid
9715                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9716 $as_echo "$supported" >&6; }
9717                 if test "$supported" = "yes" ; then
9718                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9719                         found="yes"
9720                 fi
9721         fi
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 xorg_testset_save_CFLAGS="$CFLAGS"
9738
9739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9740         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9744   $as_echo_n "(cached) " >&6
9745 else
9746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h.  */
9748 int i;
9749 _ACEOF
9750 if ac_fn_c_try_compile "$LINENO"; then :
9751   xorg_cv_cc_flag_unknown_warning_option=yes
9752 else
9753   xorg_cv_cc_flag_unknown_warning_option=no
9754 fi
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9759         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9760         CFLAGS="$xorg_testset_save_CFLAGS"
9761 fi
9762
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9764         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9765                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9766         fi
9767         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775 int i;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778   xorg_cv_cc_flag_unused_command_line_argument=yes
9779 else
9780   xorg_cv_cc_flag_unused_command_line_argument=no
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9786         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9787         CFLAGS="$xorg_testset_save_CFLAGS"
9788 fi
9789
9790 found="no"
9791
9792         if test $found = "no" ; then
9793                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9794                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795                 fi
9796
9797                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9798                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799                 fi
9800
9801                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9802
9803                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9804 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9805                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9806                 if eval \${$cacheid+:} false; then :
9807   $as_echo_n "(cached) " >&6
9808 else
9809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h.  */
9811 int i;
9812 int
9813 main ()
9814 {
9815
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821   eval $cacheid=yes
9822 else
9823   eval $cacheid=no
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826     conftest$ac_exeext conftest.$ac_ext
9827 fi
9828
9829
9830                 CFLAGS="$xorg_testset_save_CFLAGS"
9831
9832                 eval supported=\$$cacheid
9833                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9834 $as_echo "$supported" >&6; }
9835                 if test "$supported" = "yes" ; then
9836                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9837                         found="yes"
9838                 fi
9839         fi
9840
9841
9842 fi
9843
9844
9845
9846
9847
9848
9849
9850                 CWARNFLAGS="$BASE_CFLAGS"
9851                 if  test "x$GCC" = xyes ; then
9852                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9853                 fi
9854
9855
9856
9857
9858
9859
9860
9861
9862 # Check whether --enable-strict-compilation was given.
9863 if test "${enable_strict_compilation+set}" = set; then :
9864   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9865 else
9866   STRICT_COMPILE=no
9867 fi
9868
9869
9870
9871
9872
9873
9874 STRICT_CFLAGS=""
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888 xorg_testset_save_CFLAGS="$CFLAGS"
9889
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9891         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h.  */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902   xorg_cv_cc_flag_unknown_warning_option=yes
9903 else
9904   xorg_cv_cc_flag_unknown_warning_option=no
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9910         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9911         CFLAGS="$xorg_testset_save_CFLAGS"
9912 fi
9913
9914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9915         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917         fi
9918         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h.  */
9926 int i;
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929   xorg_cv_cc_flag_unused_command_line_argument=yes
9930 else
9931   xorg_cv_cc_flag_unused_command_line_argument=no
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9937         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9938         CFLAGS="$xorg_testset_save_CFLAGS"
9939 fi
9940
9941 found="no"
9942
9943         if test $found = "no" ; then
9944                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9945                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946                 fi
9947
9948                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9949                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9950                 fi
9951
9952                 CFLAGS="$CFLAGS -pedantic"
9953
9954                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9955 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9956                 cacheid=xorg_cv_cc_flag__pedantic
9957                 if eval \${$cacheid+:} false; then :
9958   $as_echo_n "(cached) " >&6
9959 else
9960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h.  */
9962 int i;
9963 int
9964 main ()
9965 {
9966
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"; then :
9972   eval $cacheid=yes
9973 else
9974   eval $cacheid=no
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext \
9977     conftest$ac_exeext conftest.$ac_ext
9978 fi
9979
9980
9981                 CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983                 eval supported=\$$cacheid
9984                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985 $as_echo "$supported" >&6; }
9986                 if test "$supported" = "yes" ; then
9987                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9988                         found="yes"
9989                 fi
9990         fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h.  */
10017 int i;
10018 _ACEOF
10019 if ac_fn_c_try_compile "$LINENO"; then :
10020   xorg_cv_cc_flag_unknown_warning_option=yes
10021 else
10022   xorg_cv_cc_flag_unknown_warning_option=no
10023 fi
10024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10027 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10028         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10029         CFLAGS="$xorg_testset_save_CFLAGS"
10030 fi
10031
10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10033         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035         fi
10036         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10038 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10039 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h.  */
10044 int i;
10045 _ACEOF
10046 if ac_fn_c_try_compile "$LINENO"; then :
10047   xorg_cv_cc_flag_unused_command_line_argument=yes
10048 else
10049   xorg_cv_cc_flag_unused_command_line_argument=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10054 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10055         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10056         CFLAGS="$xorg_testset_save_CFLAGS"
10057 fi
10058
10059 found="no"
10060
10061         if test $found = "no" ; then
10062                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10063                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064                 fi
10065
10066                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10067                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10068                 fi
10069
10070                 CFLAGS="$CFLAGS -Werror"
10071
10072                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10073 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10074                 cacheid=xorg_cv_cc_flag__Werror
10075                 if eval \${$cacheid+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h.  */
10080 int i;
10081 int
10082 main ()
10083 {
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"; then :
10090   eval $cacheid=yes
10091 else
10092   eval $cacheid=no
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext \
10095     conftest$ac_exeext conftest.$ac_ext
10096 fi
10097
10098
10099                 CFLAGS="$xorg_testset_save_CFLAGS"
10100
10101                 eval supported=\$$cacheid
10102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10103 $as_echo "$supported" >&6; }
10104                 if test "$supported" = "yes" ; then
10105                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10106                         found="yes"
10107                 fi
10108         fi
10109
10110         if test $found = "no" ; then
10111                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10112                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113                 fi
10114
10115                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10116                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117                 fi
10118
10119                 CFLAGS="$CFLAGS -errwarn"
10120
10121                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10122 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10123                 cacheid=xorg_cv_cc_flag__errwarn
10124                 if eval \${$cacheid+:} false; then :
10125   $as_echo_n "(cached) " >&6
10126 else
10127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h.  */
10129 int i;
10130 int
10131 main ()
10132 {
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_link "$LINENO"; then :
10139   eval $cacheid=yes
10140 else
10141   eval $cacheid=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144     conftest$ac_exeext conftest.$ac_ext
10145 fi
10146
10147
10148                 CFLAGS="$xorg_testset_save_CFLAGS"
10149
10150                 eval supported=\$$cacheid
10151                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10152 $as_echo "$supported" >&6; }
10153                 if test "$supported" = "yes" ; then
10154                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10155                         found="yes"
10156                 fi
10157         fi
10158
10159
10160
10161 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10162 # activate it with -Werror, so we add it here explicitly.
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176 xorg_testset_save_CFLAGS="$CFLAGS"
10177
10178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10179         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187 int i;
10188 _ACEOF
10189 if ac_fn_c_try_compile "$LINENO"; then :
10190   xorg_cv_cc_flag_unknown_warning_option=yes
10191 else
10192   xorg_cv_cc_flag_unknown_warning_option=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10198         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10199         CFLAGS="$xorg_testset_save_CFLAGS"
10200 fi
10201
10202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10203         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205         fi
10206         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h.  */
10214 int i;
10215 _ACEOF
10216 if ac_fn_c_try_compile "$LINENO"; then :
10217   xorg_cv_cc_flag_unused_command_line_argument=yes
10218 else
10219   xorg_cv_cc_flag_unused_command_line_argument=no
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10225         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10226         CFLAGS="$xorg_testset_save_CFLAGS"
10227 fi
10228
10229 found="no"
10230
10231         if test $found = "no" ; then
10232                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10233                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234                 fi
10235
10236                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10237                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10238                 fi
10239
10240                 CFLAGS="$CFLAGS -Werror=attributes"
10241
10242                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10243 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10244                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10245                 if eval \${$cacheid+:} false; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h.  */
10250 int i;
10251 int
10252 main ()
10253 {
10254
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260   eval $cacheid=yes
10261 else
10262   eval $cacheid=no
10263 fi
10264 rm -f core conftest.err conftest.$ac_objext \
10265     conftest$ac_exeext conftest.$ac_ext
10266 fi
10267
10268
10269                 CFLAGS="$xorg_testset_save_CFLAGS"
10270
10271                 eval supported=\$$cacheid
10272                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10273 $as_echo "$supported" >&6; }
10274                 if test "$supported" = "yes" ; then
10275                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10276                         found="yes"
10277                 fi
10278         fi
10279
10280
10281
10282 if test "x$STRICT_COMPILE" = "xyes"; then
10283     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10284     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10285 fi
10286
10287
10288
10289
10290
10291
10292 cat >>confdefs.h <<_ACEOF
10293 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10294 _ACEOF
10295
10296         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10297         if test "x$PVM" = "x"; then
10298                 PVM="0"
10299         fi
10300
10301 cat >>confdefs.h <<_ACEOF
10302 #define PACKAGE_VERSION_MINOR $PVM
10303 _ACEOF
10304
10305         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10306         if test "x$PVP" = "x"; then
10307                 PVP="0"
10308         fi
10309
10310 cat >>confdefs.h <<_ACEOF
10311 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10312 _ACEOF
10313
10314
10315
10316 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10317 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10318 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10319 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10320
10321
10322
10323
10324 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10325 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10326 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10327 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10328 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10329
10330
10331
10332
10333
10334
10335 if test x$APP_MAN_SUFFIX = x    ; then
10336     APP_MAN_SUFFIX=1
10337 fi
10338 if test x$APP_MAN_DIR = x    ; then
10339     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10340 fi
10341
10342 if test x$LIB_MAN_SUFFIX = x    ; then
10343     LIB_MAN_SUFFIX=3
10344 fi
10345 if test x$LIB_MAN_DIR = x    ; then
10346     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10347 fi
10348
10349 if test x$FILE_MAN_SUFFIX = x    ; then
10350     case $host_os in
10351         solaris*)       FILE_MAN_SUFFIX=4  ;;
10352         *)              FILE_MAN_SUFFIX=5  ;;
10353     esac
10354 fi
10355 if test x$FILE_MAN_DIR = x    ; then
10356     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10357 fi
10358
10359 if test x$MISC_MAN_SUFFIX = x    ; then
10360     case $host_os in
10361         solaris*)       MISC_MAN_SUFFIX=5  ;;
10362         *)              MISC_MAN_SUFFIX=7  ;;
10363     esac
10364 fi
10365 if test x$MISC_MAN_DIR = x    ; then
10366     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10367 fi
10368
10369 if test x$DRIVER_MAN_SUFFIX = x    ; then
10370     case $host_os in
10371         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10372         *)              DRIVER_MAN_SUFFIX=4  ;;
10373     esac
10374 fi
10375 if test x$DRIVER_MAN_DIR = x    ; then
10376     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10377 fi
10378
10379 if test x$ADMIN_MAN_SUFFIX = x    ; then
10380     case $host_os in
10381         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10382         *)              ADMIN_MAN_SUFFIX=8  ;;
10383     esac
10384 fi
10385 if test x$ADMIN_MAN_DIR = x    ; then
10386     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403 XORG_MAN_PAGE="X Version 11"
10404
10405 MAN_SUBSTS="\
10406         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10407         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10408         -e 's|__xservername__|Xorg|g' \
10409         -e 's|__xconfigfile__|xorg.conf|g' \
10410         -e 's|__projectroot__|\$(prefix)|g' \
10411         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10412         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10413         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10414         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10415         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10416         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10417         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10418
10419
10420
10421 # Check whether --enable-silent-rules was given.
10422 if test "${enable_silent_rules+set}" = set; then :
10423   enableval=$enable_silent_rules;
10424 fi
10425
10426 case $enable_silent_rules in
10427 yes) AM_DEFAULT_VERBOSITY=0;;
10428 no)  AM_DEFAULT_VERBOSITY=1;;
10429 *)   AM_DEFAULT_VERBOSITY=0;;
10430 esac
10431 AM_BACKSLASH='\'
10432
10433
10434
10435 for ac_prog in 'bison -y' byacc
10436 do
10437   # Extract the first word of "$ac_prog", so it can be a program name with args.
10438 set dummy $ac_prog; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_prog_YACC+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   if test -n "$YACC"; then
10445   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10446 else
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10449 do
10450   IFS=$as_save_IFS
10451   test -z "$as_dir" && as_dir=.
10452     for ac_exec_ext in '' $ac_executable_extensions; do
10453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454     ac_cv_prog_YACC="$ac_prog"
10455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456     break 2
10457   fi
10458 done
10459   done
10460 IFS=$as_save_IFS
10461
10462 fi
10463 fi
10464 YACC=$ac_cv_prog_YACC
10465 if test -n "$YACC"; then
10466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10467 $as_echo "$YACC" >&6; }
10468 else
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10471 fi
10472
10473
10474   test -n "$YACC" && break
10475 done
10476 test -n "$YACC" || YACC="yacc"
10477
10478 # Extract the first word of "$YACC", so it can be a program name with args.
10479 set dummy $YACC; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_YACC_INST+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   case $YACC_INST in
10486   [\\/]* | ?:[\\/]*)
10487   ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10488   ;;
10489   *)
10490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493   IFS=$as_save_IFS
10494   test -z "$as_dir" && as_dir=.
10495     for ac_exec_ext in '' $ac_executable_extensions; do
10496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497     ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499     break 2
10500   fi
10501 done
10502   done
10503 IFS=$as_save_IFS
10504
10505   ;;
10506 esac
10507 fi
10508 YACC_INST=$ac_cv_path_YACC_INST
10509 if test -n "$YACC_INST"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10511 $as_echo "$YACC_INST" >&6; }
10512 else
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516
10517
10518 if test ! -f "cfgparse.c"; then
10519    if test -z "$YACC_INST"; then
10520       as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
10521    fi
10522 fi
10523
10524 for ac_func in strcasecmp
10525 do :
10526   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10527 if test "x$ac_cv_func_strcasecmp" = xyes; then :
10528   cat >>confdefs.h <<_ACEOF
10529 #define HAVE_STRCASECMP 1
10530 _ACEOF
10531
10532 fi
10533 done
10534
10535
10536 # Checks for pkg-config packages
10537
10538 pkg_failed=no
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
10540 $as_echo_n "checking for XKBEVD... " >&6; }
10541
10542 if test -n "$XKBEVD_CFLAGS"; then
10543     pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
10544  elif test -n "$PKG_CONFIG"; then
10545     if test -n "$PKG_CONFIG" && \
10546     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10547   ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10548   ac_status=$?
10549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10550   test $ac_status = 0; }; then
10551   pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
10552 else
10553   pkg_failed=yes
10554 fi
10555  else
10556     pkg_failed=untried
10557 fi
10558 if test -n "$XKBEVD_LIBS"; then
10559     pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
10560  elif test -n "$PKG_CONFIG"; then
10561     if test -n "$PKG_CONFIG" && \
10562     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10563   ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10564   ac_status=$?
10565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566   test $ac_status = 0; }; then
10567   pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
10568 else
10569   pkg_failed=yes
10570 fi
10571  else
10572     pkg_failed=untried
10573 fi
10574
10575
10576
10577 if test $pkg_failed = yes; then
10578
10579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10580         _pkg_short_errors_supported=yes
10581 else
10582         _pkg_short_errors_supported=no
10583 fi
10584         if test $_pkg_short_errors_supported = yes; then
10585                 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1`
10586         else
10587                 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1`
10588         fi
10589         # Put the nasty error message in config.log where it belongs
10590         echo "$XKBEVD_PKG_ERRORS" >&5
10591
10592         as_fn_error $? "Package requirements (xkbfile x11) were not met:
10593
10594 $XKBEVD_PKG_ERRORS
10595
10596 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10597 installed software in a non-standard prefix.
10598
10599 Alternatively, you may set the environment variables XKBEVD_CFLAGS
10600 and XKBEVD_LIBS to avoid the need to call pkg-config.
10601 See the pkg-config man page for more details.
10602 " "$LINENO" 5
10603 elif test $pkg_failed = untried; then
10604         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10606 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10607 is in your PATH or set the PKG_CONFIG environment variable to the full
10608 path to pkg-config.
10609
10610 Alternatively, you may set the environment variables XKBEVD_CFLAGS
10611 and XKBEVD_LIBS to avoid the need to call pkg-config.
10612 See the pkg-config man page for more details.
10613
10614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10615 See \`config.log' for more details" "$LINENO" 5; }
10616 else
10617         XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
10618         XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
10619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10620 $as_echo "yes" >&6; }
10621         :
10622 fi
10623
10624 ac_config_files="$ac_config_files Makefile man/Makefile"
10625
10626 cat >confcache <<\_ACEOF
10627 # This file is a shell script that caches the results of configure
10628 # tests run on this system so they can be shared between configure
10629 # scripts and configure runs, see configure's option --config-cache.
10630 # It is not useful on other systems.  If it contains results you don't
10631 # want to keep, you may remove or edit it.
10632 #
10633 # config.status only pays attention to the cache file if you give it
10634 # the --recheck option to rerun configure.
10635 #
10636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10638 # following values.
10639
10640 _ACEOF
10641
10642 # The following way of writing the cache mishandles newlines in values,
10643 # but we know of no workaround that is simple, portable, and efficient.
10644 # So, we kill variables containing newlines.
10645 # Ultrix sh set writes to stderr and can't be redirected directly,
10646 # and sets the high bit in the cache file unless we assign to the vars.
10647 (
10648   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10649     eval ac_val=\$$ac_var
10650     case $ac_val in #(
10651     *${as_nl}*)
10652       case $ac_var in #(
10653       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10655       esac
10656       case $ac_var in #(
10657       _ | IFS | as_nl) ;; #(
10658       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10659       *) { eval $ac_var=; unset $ac_var;} ;;
10660       esac ;;
10661     esac
10662   done
10663
10664   (set) 2>&1 |
10665     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10666     *${as_nl}ac_space=\ *)
10667       # `set' does not quote correctly, so add quotes: double-quote
10668       # substitution turns \\\\ into \\, and sed turns \\ into \.
10669       sed -n \
10670         "s/'/'\\\\''/g;
10671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10672       ;; #(
10673     *)
10674       # `set' quotes correctly as required by POSIX, so do not add quotes.
10675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10676       ;;
10677     esac |
10678     sort
10679 ) |
10680   sed '
10681      /^ac_cv_env_/b end
10682      t clear
10683      :clear
10684      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10685      t end
10686      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10687      :end' >>confcache
10688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10689   if test -w "$cache_file"; then
10690     if test "x$cache_file" != "x/dev/null"; then
10691       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10692 $as_echo "$as_me: updating cache $cache_file" >&6;}
10693       if test ! -f "$cache_file" || test -h "$cache_file"; then
10694         cat confcache >"$cache_file"
10695       else
10696         case $cache_file in #(
10697         */* | ?:*)
10698           mv -f confcache "$cache_file"$$ &&
10699           mv -f "$cache_file"$$ "$cache_file" ;; #(
10700         *)
10701           mv -f confcache "$cache_file" ;;
10702         esac
10703       fi
10704     fi
10705   else
10706     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10707 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10708   fi
10709 fi
10710 rm -f confcache
10711
10712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10713 # Let make expand exec_prefix.
10714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10715
10716 DEFS=-DHAVE_CONFIG_H
10717
10718 ac_libobjs=
10719 ac_ltlibobjs=
10720 U=
10721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10722   # 1. Remove the extension, and $U if already installed.
10723   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10724   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10725   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10726   #    will be set to the directory where LIBOBJS objects are built.
10727   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10728   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10729 done
10730 LIBOBJS=$ac_libobjs
10731
10732 LTLIBOBJS=$ac_ltlibobjs
10733
10734
10735  if test -n "$EXEEXT"; then
10736   am__EXEEXT_TRUE=
10737   am__EXEEXT_FALSE='#'
10738 else
10739   am__EXEEXT_TRUE='#'
10740   am__EXEEXT_FALSE=
10741 fi
10742
10743 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10744   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10746 fi
10747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10748   as_fn_error $? "conditional \"AMDEP\" was never defined.
10749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10750 fi
10751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10752   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10754 fi
10755
10756 : "${CONFIG_STATUS=./config.status}"
10757 ac_write_fail=0
10758 ac_clean_files_save=$ac_clean_files
10759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10762 as_write_fail=0
10763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10764 #! $SHELL
10765 # Generated by $as_me.
10766 # Run this file to recreate the current configuration.
10767 # Compiler output produced by configure, useful for debugging
10768 # configure, is in config.log if it exists.
10769
10770 debug=false
10771 ac_cs_recheck=false
10772 ac_cs_silent=false
10773
10774 SHELL=\${CONFIG_SHELL-$SHELL}
10775 export SHELL
10776 _ASEOF
10777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10778 ## -------------------- ##
10779 ## M4sh Initialization. ##
10780 ## -------------------- ##
10781
10782 # Be more Bourne compatible
10783 DUALCASE=1; export DUALCASE # for MKS sh
10784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10785   emulate sh
10786   NULLCMD=:
10787   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10788   # is contrary to our usage.  Disable this feature.
10789   alias -g '${1+"$@"}'='"$@"'
10790   setopt NO_GLOB_SUBST
10791 else
10792   case `(set -o) 2>/dev/null` in #(
10793   *posix*) :
10794     set -o posix ;; #(
10795   *) :
10796      ;;
10797 esac
10798 fi
10799
10800
10801 as_nl='
10802 '
10803 export as_nl
10804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10808 # Prefer a ksh shell builtin over an external printf program on Solaris,
10809 # but without wasting forks for bash or zsh.
10810 if test -z "$BASH_VERSION$ZSH_VERSION" \
10811     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10812   as_echo='print -r --'
10813   as_echo_n='print -rn --'
10814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10815   as_echo='printf %s\n'
10816   as_echo_n='printf %s'
10817 else
10818   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10819     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10820     as_echo_n='/usr/ucb/echo -n'
10821   else
10822     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10823     as_echo_n_body='eval
10824       arg=$1;
10825       case $arg in #(
10826       *"$as_nl"*)
10827         expr "X$arg" : "X\\(.*\\)$as_nl";
10828         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10829       esac;
10830       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10831     '
10832     export as_echo_n_body
10833     as_echo_n='sh -c $as_echo_n_body as_echo'
10834   fi
10835   export as_echo_body
10836   as_echo='sh -c $as_echo_body as_echo'
10837 fi
10838
10839 # The user is always right.
10840 if test "${PATH_SEPARATOR+set}" != set; then
10841   PATH_SEPARATOR=:
10842   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10843     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10844       PATH_SEPARATOR=';'
10845   }
10846 fi
10847
10848
10849 # IFS
10850 # We need space, tab and new line, in precisely that order.  Quoting is
10851 # there to prevent editors from complaining about space-tab.
10852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10853 # splitting by setting IFS to empty value.)
10854 IFS=" ""        $as_nl"
10855
10856 # Find who we are.  Look in the path if we contain no directory separator.
10857 as_myself=
10858 case $0 in #((
10859   *[\\/]* ) as_myself=$0 ;;
10860   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863   IFS=$as_save_IFS
10864   test -z "$as_dir" && as_dir=.
10865     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10866   done
10867 IFS=$as_save_IFS
10868
10869      ;;
10870 esac
10871 # We did not find ourselves, most probably we were run as `sh COMMAND'
10872 # in which case we are not to be found in the path.
10873 if test "x$as_myself" = x; then
10874   as_myself=$0
10875 fi
10876 if test ! -f "$as_myself"; then
10877   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10878   exit 1
10879 fi
10880
10881 # Unset variables that we do not need and which cause bugs (e.g. in
10882 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10883 # suppresses any "Segmentation fault" message there.  '((' could
10884 # trigger a bug in pdksh 5.2.14.
10885 for as_var in BASH_ENV ENV MAIL MAILPATH
10886 do eval test x\${$as_var+set} = xset \
10887   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10888 done
10889 PS1='$ '
10890 PS2='> '
10891 PS4='+ '
10892
10893 # NLS nuisances.
10894 LC_ALL=C
10895 export LC_ALL
10896 LANGUAGE=C
10897 export LANGUAGE
10898
10899 # CDPATH.
10900 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10901
10902
10903 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10904 # ----------------------------------------
10905 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10906 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10907 # script with STATUS, using 1 if that was 0.
10908 as_fn_error ()
10909 {
10910   as_status=$1; test $as_status -eq 0 && as_status=1
10911   if test "$4"; then
10912     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10913     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10914   fi
10915   $as_echo "$as_me: error: $2" >&2
10916   as_fn_exit $as_status
10917 } # as_fn_error
10918
10919
10920 # as_fn_set_status STATUS
10921 # -----------------------
10922 # Set $? to STATUS, without forking.
10923 as_fn_set_status ()
10924 {
10925   return $1
10926 } # as_fn_set_status
10927
10928 # as_fn_exit STATUS
10929 # -----------------
10930 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10931 as_fn_exit ()
10932 {
10933   set +e
10934   as_fn_set_status $1
10935   exit $1
10936 } # as_fn_exit
10937
10938 # as_fn_unset VAR
10939 # ---------------
10940 # Portably unset VAR.
10941 as_fn_unset ()
10942 {
10943   { eval $1=; unset $1;}
10944 }
10945 as_unset=as_fn_unset
10946 # as_fn_append VAR VALUE
10947 # ----------------------
10948 # Append the text in VALUE to the end of the definition contained in VAR. Take
10949 # advantage of any shell optimizations that allow amortized linear growth over
10950 # repeated appends, instead of the typical quadratic growth present in naive
10951 # implementations.
10952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10953   eval 'as_fn_append ()
10954   {
10955     eval $1+=\$2
10956   }'
10957 else
10958   as_fn_append ()
10959   {
10960     eval $1=\$$1\$2
10961   }
10962 fi # as_fn_append
10963
10964 # as_fn_arith ARG...
10965 # ------------------
10966 # Perform arithmetic evaluation on the ARGs, and store the result in the
10967 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10968 # must be portable across $(()) and expr.
10969 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10970   eval 'as_fn_arith ()
10971   {
10972     as_val=$(( $* ))
10973   }'
10974 else
10975   as_fn_arith ()
10976   {
10977     as_val=`expr "$@" || test $? -eq 1`
10978   }
10979 fi # as_fn_arith
10980
10981
10982 if expr a : '\(a\)' >/dev/null 2>&1 &&
10983    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10984   as_expr=expr
10985 else
10986   as_expr=false
10987 fi
10988
10989 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10990   as_basename=basename
10991 else
10992   as_basename=false
10993 fi
10994
10995 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10996   as_dirname=dirname
10997 else
10998   as_dirname=false
10999 fi
11000
11001 as_me=`$as_basename -- "$0" ||
11002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11003          X"$0" : 'X\(//\)$' \| \
11004          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11005 $as_echo X/"$0" |
11006     sed '/^.*\/\([^/][^/]*\)\/*$/{
11007             s//\1/
11008             q
11009           }
11010           /^X\/\(\/\/\)$/{
11011             s//\1/
11012             q
11013           }
11014           /^X\/\(\/\).*/{
11015             s//\1/
11016             q
11017           }
11018           s/.*/./; q'`
11019
11020 # Avoid depending upon Character Ranges.
11021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11024 as_cr_digits='0123456789'
11025 as_cr_alnum=$as_cr_Letters$as_cr_digits
11026
11027 ECHO_C= ECHO_N= ECHO_T=
11028 case `echo -n x` in #(((((
11029 -n*)
11030   case `echo 'xy\c'` in
11031   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11032   xy)  ECHO_C='\c';;
11033   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11034        ECHO_T=' ';;
11035   esac;;
11036 *)
11037   ECHO_N='-n';;
11038 esac
11039
11040 rm -f conf$$ conf$$.exe conf$$.file
11041 if test -d conf$$.dir; then
11042   rm -f conf$$.dir/conf$$.file
11043 else
11044   rm -f conf$$.dir
11045   mkdir conf$$.dir 2>/dev/null
11046 fi
11047 if (echo >conf$$.file) 2>/dev/null; then
11048   if ln -s conf$$.file conf$$ 2>/dev/null; then
11049     as_ln_s='ln -s'
11050     # ... but there are two gotchas:
11051     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11052     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11053     # In both cases, we have to default to `cp -p'.
11054     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11055       as_ln_s='cp -p'
11056   elif ln conf$$.file conf$$ 2>/dev/null; then
11057     as_ln_s=ln
11058   else
11059     as_ln_s='cp -p'
11060   fi
11061 else
11062   as_ln_s='cp -p'
11063 fi
11064 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11065 rmdir conf$$.dir 2>/dev/null
11066
11067
11068 # as_fn_mkdir_p
11069 # -------------
11070 # Create "$as_dir" as a directory, including parents if necessary.
11071 as_fn_mkdir_p ()
11072 {
11073
11074   case $as_dir in #(
11075   -*) as_dir=./$as_dir;;
11076   esac
11077   test -d "$as_dir" || eval $as_mkdir_p || {
11078     as_dirs=
11079     while :; do
11080       case $as_dir in #(
11081       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11082       *) as_qdir=$as_dir;;
11083       esac
11084       as_dirs="'$as_qdir' $as_dirs"
11085       as_dir=`$as_dirname -- "$as_dir" ||
11086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11087          X"$as_dir" : 'X\(//\)[^/]' \| \
11088          X"$as_dir" : 'X\(//\)$' \| \
11089          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11090 $as_echo X"$as_dir" |
11091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11092             s//\1/
11093             q
11094           }
11095           /^X\(\/\/\)[^/].*/{
11096             s//\1/
11097             q
11098           }
11099           /^X\(\/\/\)$/{
11100             s//\1/
11101             q
11102           }
11103           /^X\(\/\).*/{
11104             s//\1/
11105             q
11106           }
11107           s/.*/./; q'`
11108       test -d "$as_dir" && break
11109     done
11110     test -z "$as_dirs" || eval "mkdir $as_dirs"
11111   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11112
11113
11114 } # as_fn_mkdir_p
11115 if mkdir -p . 2>/dev/null; then
11116   as_mkdir_p='mkdir -p "$as_dir"'
11117 else
11118   test -d ./-p && rmdir ./-p
11119   as_mkdir_p=false
11120 fi
11121
11122 if test -x / >/dev/null 2>&1; then
11123   as_test_x='test -x'
11124 else
11125   if ls -dL / >/dev/null 2>&1; then
11126     as_ls_L_option=L
11127   else
11128     as_ls_L_option=
11129   fi
11130   as_test_x='
11131     eval sh -c '\''
11132       if test -d "$1"; then
11133         test -d "$1/.";
11134       else
11135         case $1 in #(
11136         -*)set "./$1";;
11137         esac;
11138         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11139         ???[sx]*):;;*)false;;esac;fi
11140     '\'' sh
11141   '
11142 fi
11143 as_executable_p=$as_test_x
11144
11145 # Sed expression to map a string onto a valid CPP name.
11146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11147
11148 # Sed expression to map a string onto a valid variable name.
11149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11150
11151
11152 exec 6>&1
11153 ## ----------------------------------- ##
11154 ## Main body of $CONFIG_STATUS script. ##
11155 ## ----------------------------------- ##
11156 _ASEOF
11157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11158
11159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11160 # Save the log message, to keep $0 and so on meaningful, and to
11161 # report actual input values of CONFIG_FILES etc. instead of their
11162 # values after options handling.
11163 ac_log="
11164 This file was extended by xkbevd $as_me 1.1.3, which was
11165 generated by GNU Autoconf 2.68.  Invocation command line was
11166
11167   CONFIG_FILES    = $CONFIG_FILES
11168   CONFIG_HEADERS  = $CONFIG_HEADERS
11169   CONFIG_LINKS    = $CONFIG_LINKS
11170   CONFIG_COMMANDS = $CONFIG_COMMANDS
11171   $ $0 $@
11172
11173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11174 "
11175
11176 _ACEOF
11177
11178 case $ac_config_files in *"
11179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11180 esac
11181
11182 case $ac_config_headers in *"
11183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11184 esac
11185
11186
11187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188 # Files that config.status was made for.
11189 config_files="$ac_config_files"
11190 config_headers="$ac_config_headers"
11191 config_commands="$ac_config_commands"
11192
11193 _ACEOF
11194
11195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11196 ac_cs_usage="\
11197 \`$as_me' instantiates files and other configuration actions
11198 from templates according to the current configuration.  Unless the files
11199 and actions are specified as TAGs, all are instantiated by default.
11200
11201 Usage: $0 [OPTION]... [TAG]...
11202
11203   -h, --help       print this help, then exit
11204   -V, --version    print version number and configuration settings, then exit
11205       --config     print configuration, then exit
11206   -q, --quiet, --silent
11207                    do not print progress messages
11208   -d, --debug      don't remove temporary files
11209       --recheck    update $as_me by reconfiguring in the same conditions
11210       --file=FILE[:TEMPLATE]
11211                    instantiate the configuration file FILE
11212       --header=FILE[:TEMPLATE]
11213                    instantiate the configuration header FILE
11214
11215 Configuration files:
11216 $config_files
11217
11218 Configuration headers:
11219 $config_headers
11220
11221 Configuration commands:
11222 $config_commands
11223
11224 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11225
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11229 ac_cs_version="\\
11230 xkbevd config.status 1.1.3
11231 configured by $0, generated by GNU Autoconf 2.68,
11232   with options \\"\$ac_cs_config\\"
11233
11234 Copyright (C) 2010 Free Software Foundation, Inc.
11235 This config.status script is free software; the Free Software Foundation
11236 gives unlimited permission to copy, distribute and modify it."
11237
11238 ac_pwd='$ac_pwd'
11239 srcdir='$srcdir'
11240 INSTALL='$INSTALL'
11241 MKDIR_P='$MKDIR_P'
11242 AWK='$AWK'
11243 test -n "\$AWK" || AWK=awk
11244 _ACEOF
11245
11246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11247 # The default lists apply if the user does not specify any file.
11248 ac_need_defaults=:
11249 while test $# != 0
11250 do
11251   case $1 in
11252   --*=?*)
11253     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11254     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11255     ac_shift=:
11256     ;;
11257   --*=)
11258     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11259     ac_optarg=
11260     ac_shift=:
11261     ;;
11262   *)
11263     ac_option=$1
11264     ac_optarg=$2
11265     ac_shift=shift
11266     ;;
11267   esac
11268
11269   case $ac_option in
11270   # Handling of the options.
11271   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11272     ac_cs_recheck=: ;;
11273   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11274     $as_echo "$ac_cs_version"; exit ;;
11275   --config | --confi | --conf | --con | --co | --c )
11276     $as_echo "$ac_cs_config"; exit ;;
11277   --debug | --debu | --deb | --de | --d | -d )
11278     debug=: ;;
11279   --file | --fil | --fi | --f )
11280     $ac_shift
11281     case $ac_optarg in
11282     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283     '') as_fn_error $? "missing file argument" ;;
11284     esac
11285     as_fn_append CONFIG_FILES " '$ac_optarg'"
11286     ac_need_defaults=false;;
11287   --header | --heade | --head | --hea )
11288     $ac_shift
11289     case $ac_optarg in
11290     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11291     esac
11292     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11293     ac_need_defaults=false;;
11294   --he | --h)
11295     # Conflict between --help and --header
11296     as_fn_error $? "ambiguous option: \`$1'
11297 Try \`$0 --help' for more information.";;
11298   --help | --hel | -h )
11299     $as_echo "$ac_cs_usage"; exit ;;
11300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11301   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11302     ac_cs_silent=: ;;
11303
11304   # This is an error.
11305   -*) as_fn_error $? "unrecognized option: \`$1'
11306 Try \`$0 --help' for more information." ;;
11307
11308   *) as_fn_append ac_config_targets " $1"
11309      ac_need_defaults=false ;;
11310
11311   esac
11312   shift
11313 done
11314
11315 ac_configure_extra_args=
11316
11317 if $ac_cs_silent; then
11318   exec 6>/dev/null
11319   ac_configure_extra_args="$ac_configure_extra_args --silent"
11320 fi
11321
11322 _ACEOF
11323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324 if \$ac_cs_recheck; then
11325   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11326   shift
11327   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11328   CONFIG_SHELL='$SHELL'
11329   export CONFIG_SHELL
11330   exec "\$@"
11331 fi
11332
11333 _ACEOF
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11335 exec 5>>config.log
11336 {
11337   echo
11338   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11339 ## Running $as_me. ##
11340 _ASBOX
11341   $as_echo "$ac_log"
11342 } >&5
11343
11344 _ACEOF
11345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11346 #
11347 # INIT-COMMANDS
11348 #
11349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11350
11351 _ACEOF
11352
11353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11354
11355 # Handling of arguments.
11356 for ac_config_target in $ac_config_targets
11357 do
11358   case $ac_config_target in
11359     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11360     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11361     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11362     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11363
11364   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11365   esac
11366 done
11367
11368
11369 # If the user did not use the arguments to specify the items to instantiate,
11370 # then the envvar interface is used.  Set only those that are not.
11371 # We use the long form for the default assignment because of an extremely
11372 # bizarre bug on SunOS 4.1.3.
11373 if $ac_need_defaults; then
11374   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11375   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11376   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11377 fi
11378
11379 # Have a temporary directory for convenience.  Make it in the build tree
11380 # simply because there is no reason against having it here, and in addition,
11381 # creating and moving files from /tmp can sometimes cause problems.
11382 # Hook for its removal unless debugging.
11383 # Note that there is a small window in which the directory will not be cleaned:
11384 # after its creation but before its name has been assigned to `$tmp'.
11385 $debug ||
11386 {
11387   tmp= ac_tmp=
11388   trap 'exit_status=$?
11389   : "${ac_tmp:=$tmp}"
11390   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11391 ' 0
11392   trap 'as_fn_exit 1' 1 2 13 15
11393 }
11394 # Create a (secure) tmp directory for tmp files.
11395
11396 {
11397   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11398   test -d "$tmp"
11399 }  ||
11400 {
11401   tmp=./conf$$-$RANDOM
11402   (umask 077 && mkdir "$tmp")
11403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11404 ac_tmp=$tmp
11405
11406 # Set up the scripts for CONFIG_FILES section.
11407 # No need to generate them if there are no CONFIG_FILES.
11408 # This happens for instance with `./config.status config.h'.
11409 if test -n "$CONFIG_FILES"; then
11410
11411
11412 ac_cr=`echo X | tr X '\015'`
11413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11414 # But we know of no other shell where ac_cr would be empty at this
11415 # point, so we can use a bashism as a fallback.
11416 if test "x$ac_cr" = x; then
11417   eval ac_cr=\$\'\\r\'
11418 fi
11419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11421   ac_cs_awk_cr='\\r'
11422 else
11423   ac_cs_awk_cr=$ac_cr
11424 fi
11425
11426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11427 _ACEOF
11428
11429
11430 {
11431   echo "cat >conf$$subs.awk <<_ACEOF" &&
11432   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11433   echo "_ACEOF"
11434 } >conf$$subs.sh ||
11435   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11437 ac_delim='%!_!# '
11438 for ac_last_try in false false false false false :; do
11439   . ./conf$$subs.sh ||
11440     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11441
11442   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11443   if test $ac_delim_n = $ac_delim_num; then
11444     break
11445   elif $ac_last_try; then
11446     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11447   else
11448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11449   fi
11450 done
11451 rm -f conf$$subs.sh
11452
11453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11455 _ACEOF
11456 sed -n '
11457 h
11458 s/^/S["/; s/!.*/"]=/
11459 p
11460 g
11461 s/^[^!]*!//
11462 :repl
11463 t repl
11464 s/'"$ac_delim"'$//
11465 t delim
11466 :nl
11467 h
11468 s/\(.\{148\}\)..*/\1/
11469 t more1
11470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11471 p
11472 n
11473 b repl
11474 :more1
11475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11476 p
11477 g
11478 s/.\{148\}//
11479 t nl
11480 :delim
11481 h
11482 s/\(.\{148\}\)..*/\1/
11483 t more2
11484 s/["\\]/\\&/g; s/^/"/; s/$/"/
11485 p
11486 b
11487 :more2
11488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11489 p
11490 g
11491 s/.\{148\}//
11492 t delim
11493 ' <conf$$subs.awk | sed '
11494 /^[^""]/{
11495   N
11496   s/\n//
11497 }
11498 ' >>$CONFIG_STATUS || ac_write_fail=1
11499 rm -f conf$$subs.awk
11500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11501 _ACAWK
11502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11503   for (key in S) S_is_set[key] = 1
11504   FS = "\a"
11505
11506 }
11507 {
11508   line = $ 0
11509   nfields = split(line, field, "@")
11510   substed = 0
11511   len = length(field[1])
11512   for (i = 2; i < nfields; i++) {
11513     key = field[i]
11514     keylen = length(key)
11515     if (S_is_set[key]) {
11516       value = S[key]
11517       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11518       len += length(value) + length(field[++i])
11519       substed = 1
11520     } else
11521       len += 1 + keylen
11522   }
11523
11524   print line
11525 }
11526
11527 _ACAWK
11528 _ACEOF
11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11531   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11532 else
11533   cat
11534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11535   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11536 _ACEOF
11537
11538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11540 # trailing colons and then remove the whole line if VPATH becomes empty
11541 # (actually we leave an empty line to preserve line numbers).
11542 if test "x$srcdir" = x.; then
11543   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11544 h
11545 s///
11546 s/^/:/
11547 s/[      ]*$/:/
11548 s/:\$(srcdir):/:/g
11549 s/:\${srcdir}:/:/g
11550 s/:@srcdir@:/:/g
11551 s/^:*//
11552 s/:*$//
11553 x
11554 s/\(=[   ]*\).*/\1/
11555 G
11556 s/\n//
11557 s/^[^=]*=[       ]*$//
11558 }'
11559 fi
11560
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11562 fi # test -n "$CONFIG_FILES"
11563
11564 # Set up the scripts for CONFIG_HEADERS section.
11565 # No need to generate them if there are no CONFIG_HEADERS.
11566 # This happens for instance with `./config.status Makefile'.
11567 if test -n "$CONFIG_HEADERS"; then
11568 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11569 BEGIN {
11570 _ACEOF
11571
11572 # Transform confdefs.h into an awk script `defines.awk', embedded as
11573 # here-document in config.status, that substitutes the proper values into
11574 # config.h.in to produce config.h.
11575
11576 # Create a delimiter string that does not exist in confdefs.h, to ease
11577 # handling of long lines.
11578 ac_delim='%!_!# '
11579 for ac_last_try in false false :; do
11580   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11581   if test -z "$ac_tt"; then
11582     break
11583   elif $ac_last_try; then
11584     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11585   else
11586     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11587   fi
11588 done
11589
11590 # For the awk script, D is an array of macro values keyed by name,
11591 # likewise P contains macro parameters if any.  Preserve backslash
11592 # newline sequences.
11593
11594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11595 sed -n '
11596 s/.\{148\}/&'"$ac_delim"'/g
11597 t rset
11598 :rset
11599 s/^[     ]*#[    ]*define[       ][      ]*/ /
11600 t def
11601 d
11602 :def
11603 s/\\$//
11604 t bsnl
11605 s/["\\]/\\&/g
11606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11607 D["\1"]=" \3"/p
11608 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11609 d
11610 :bsnl
11611 s/["\\]/\\&/g
11612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11613 D["\1"]=" \3\\\\\\n"\\/p
11614 t cont
11615 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11616 t cont
11617 d
11618 :cont
11619 n
11620 s/.\{148\}/&'"$ac_delim"'/g
11621 t clear
11622 :clear
11623 s/\\$//
11624 t bsnlc
11625 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11626 d
11627 :bsnlc
11628 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11629 b cont
11630 ' <confdefs.h | sed '
11631 s/'"$ac_delim"'/"\\\
11632 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11633
11634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11635   for (key in D) D_is_set[key] = 1
11636   FS = "\a"
11637 }
11638 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11639   line = \$ 0
11640   split(line, arg, " ")
11641   if (arg[1] == "#") {
11642     defundef = arg[2]
11643     mac1 = arg[3]
11644   } else {
11645     defundef = substr(arg[1], 2)
11646     mac1 = arg[2]
11647   }
11648   split(mac1, mac2, "(") #)
11649   macro = mac2[1]
11650   prefix = substr(line, 1, index(line, defundef) - 1)
11651   if (D_is_set[macro]) {
11652     # Preserve the white space surrounding the "#".
11653     print prefix "define", macro P[macro] D[macro]
11654     next
11655   } else {
11656     # Replace #undef with comments.  This is necessary, for example,
11657     # in the case of _POSIX_SOURCE, which is predefined and required
11658     # on some systems where configure will not decide to define it.
11659     if (defundef == "undef") {
11660       print "/*", prefix defundef, macro, "*/"
11661       next
11662     }
11663   }
11664 }
11665 { print }
11666 _ACAWK
11667 _ACEOF
11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11669   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11670 fi # test -n "$CONFIG_HEADERS"
11671
11672
11673 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11674 shift
11675 for ac_tag
11676 do
11677   case $ac_tag in
11678   :[FHLC]) ac_mode=$ac_tag; continue;;
11679   esac
11680   case $ac_mode$ac_tag in
11681   :[FHL]*:*);;
11682   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11683   :[FH]-) ac_tag=-:-;;
11684   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11685   esac
11686   ac_save_IFS=$IFS
11687   IFS=:
11688   set x $ac_tag
11689   IFS=$ac_save_IFS
11690   shift
11691   ac_file=$1
11692   shift
11693
11694   case $ac_mode in
11695   :L) ac_source=$1;;
11696   :[FH])
11697     ac_file_inputs=
11698     for ac_f
11699     do
11700       case $ac_f in
11701       -) ac_f="$ac_tmp/stdin";;
11702       *) # Look for the file first in the build tree, then in the source tree
11703          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11704          # because $ac_f cannot contain `:'.
11705          test -f "$ac_f" ||
11706            case $ac_f in
11707            [\\/$]*) false;;
11708            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11709            esac ||
11710            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11711       esac
11712       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11713       as_fn_append ac_file_inputs " '$ac_f'"
11714     done
11715
11716     # Let's still pretend it is `configure' which instantiates (i.e., don't
11717     # use $as_me), people would be surprised to read:
11718     #    /* config.h.  Generated by config.status.  */
11719     configure_input='Generated from '`
11720           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11721         `' by configure.'
11722     if test x"$ac_file" != x-; then
11723       configure_input="$ac_file.  $configure_input"
11724       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11725 $as_echo "$as_me: creating $ac_file" >&6;}
11726     fi
11727     # Neutralize special characters interpreted by sed in replacement strings.
11728     case $configure_input in #(
11729     *\&* | *\|* | *\\* )
11730        ac_sed_conf_input=`$as_echo "$configure_input" |
11731        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11732     *) ac_sed_conf_input=$configure_input;;
11733     esac
11734
11735     case $ac_tag in
11736     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11737       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11738     esac
11739     ;;
11740   esac
11741
11742   ac_dir=`$as_dirname -- "$ac_file" ||
11743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11744          X"$ac_file" : 'X\(//\)[^/]' \| \
11745          X"$ac_file" : 'X\(//\)$' \| \
11746          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11747 $as_echo X"$ac_file" |
11748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11749             s//\1/
11750             q
11751           }
11752           /^X\(\/\/\)[^/].*/{
11753             s//\1/
11754             q
11755           }
11756           /^X\(\/\/\)$/{
11757             s//\1/
11758             q
11759           }
11760           /^X\(\/\).*/{
11761             s//\1/
11762             q
11763           }
11764           s/.*/./; q'`
11765   as_dir="$ac_dir"; as_fn_mkdir_p
11766   ac_builddir=.
11767
11768 case "$ac_dir" in
11769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11770 *)
11771   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11772   # A ".." for each directory in $ac_dir_suffix.
11773   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11774   case $ac_top_builddir_sub in
11775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11777   esac ;;
11778 esac
11779 ac_abs_top_builddir=$ac_pwd
11780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11781 # for backward compatibility:
11782 ac_top_builddir=$ac_top_build_prefix
11783
11784 case $srcdir in
11785   .)  # We are building in place.
11786     ac_srcdir=.
11787     ac_top_srcdir=$ac_top_builddir_sub
11788     ac_abs_top_srcdir=$ac_pwd ;;
11789   [\\/]* | ?:[\\/]* )  # Absolute name.
11790     ac_srcdir=$srcdir$ac_dir_suffix;
11791     ac_top_srcdir=$srcdir
11792     ac_abs_top_srcdir=$srcdir ;;
11793   *) # Relative name.
11794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11795     ac_top_srcdir=$ac_top_build_prefix$srcdir
11796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11797 esac
11798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11799
11800
11801   case $ac_mode in
11802   :F)
11803   #
11804   # CONFIG_FILE
11805   #
11806
11807   case $INSTALL in
11808   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11809   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11810   esac
11811   ac_MKDIR_P=$MKDIR_P
11812   case $MKDIR_P in
11813   [\\/$]* | ?:[\\/]* ) ;;
11814   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11815   esac
11816 _ACEOF
11817
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819 # If the template does not know about datarootdir, expand it.
11820 # FIXME: This hack should be removed a few years after 2.60.
11821 ac_datarootdir_hack=; ac_datarootdir_seen=
11822 ac_sed_dataroot='
11823 /datarootdir/ {
11824   p
11825   q
11826 }
11827 /@datadir@/p
11828 /@docdir@/p
11829 /@infodir@/p
11830 /@localedir@/p
11831 /@mandir@/p'
11832 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11833 *datarootdir*) ac_datarootdir_seen=yes;;
11834 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11836 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11837 _ACEOF
11838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11839   ac_datarootdir_hack='
11840   s&@datadir@&$datadir&g
11841   s&@docdir@&$docdir&g
11842   s&@infodir@&$infodir&g
11843   s&@localedir@&$localedir&g
11844   s&@mandir@&$mandir&g
11845   s&\\\${datarootdir}&$datarootdir&g' ;;
11846 esac
11847 _ACEOF
11848
11849 # Neutralize VPATH when `$srcdir' = `.'.
11850 # Shell code in configure.ac might set extrasub.
11851 # FIXME: do we really want to maintain this feature?
11852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11853 ac_sed_extra="$ac_vpsub
11854 $extrasub
11855 _ACEOF
11856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11857 :t
11858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11859 s|@configure_input@|$ac_sed_conf_input|;t t
11860 s&@top_builddir@&$ac_top_builddir_sub&;t t
11861 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11862 s&@srcdir@&$ac_srcdir&;t t
11863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11864 s&@top_srcdir@&$ac_top_srcdir&;t t
11865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11866 s&@builddir@&$ac_builddir&;t t
11867 s&@abs_builddir@&$ac_abs_builddir&;t t
11868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11869 s&@INSTALL@&$ac_INSTALL&;t t
11870 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11871 $ac_datarootdir_hack
11872 "
11873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11874   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11875
11876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11877   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11879       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11881 which seems to be undefined.  Please make sure it is defined" >&5
11882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11883 which seems to be undefined.  Please make sure it is defined" >&2;}
11884
11885   rm -f "$ac_tmp/stdin"
11886   case $ac_file in
11887   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11888   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11889   esac \
11890   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11891  ;;
11892   :H)
11893   #
11894   # CONFIG_HEADER
11895   #
11896   if test x"$ac_file" != x-; then
11897     {
11898       $as_echo "/* $configure_input  */" \
11899       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11900     } >"$ac_tmp/config.h" \
11901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11902     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11903       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11905     else
11906       rm -f "$ac_file"
11907       mv "$ac_tmp/config.h" "$ac_file" \
11908         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11909     fi
11910   else
11911     $as_echo "/* $configure_input  */" \
11912       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11913       || as_fn_error $? "could not create -" "$LINENO" 5
11914   fi
11915 # Compute "$ac_file"'s index in $config_headers.
11916 _am_arg="$ac_file"
11917 _am_stamp_count=1
11918 for _am_header in $config_headers :; do
11919   case $_am_header in
11920     $_am_arg | $_am_arg:* )
11921       break ;;
11922     * )
11923       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11924   esac
11925 done
11926 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11927 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928          X"$_am_arg" : 'X\(//\)[^/]' \| \
11929          X"$_am_arg" : 'X\(//\)$' \| \
11930          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11931 $as_echo X"$_am_arg" |
11932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11933             s//\1/
11934             q
11935           }
11936           /^X\(\/\/\)[^/].*/{
11937             s//\1/
11938             q
11939           }
11940           /^X\(\/\/\)$/{
11941             s//\1/
11942             q
11943           }
11944           /^X\(\/\).*/{
11945             s//\1/
11946             q
11947           }
11948           s/.*/./; q'`/stamp-h$_am_stamp_count
11949  ;;
11950
11951   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11952 $as_echo "$as_me: executing $ac_file commands" >&6;}
11953  ;;
11954   esac
11955
11956
11957   case $ac_file$ac_mode in
11958     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11959   # Autoconf 2.62 quotes --file arguments for eval, but not when files
11960   # are listed without --file.  Let's play safe and only enable the eval
11961   # if we detect the quoting.
11962   case $CONFIG_FILES in
11963   *\'*) eval set x "$CONFIG_FILES" ;;
11964   *)   set x $CONFIG_FILES ;;
11965   esac
11966   shift
11967   for mf
11968   do
11969     # Strip MF so we end up with the name of the file.
11970     mf=`echo "$mf" | sed -e 's/:.*$//'`
11971     # Check whether this is an Automake generated Makefile or not.
11972     # We used to match only the files named `Makefile.in', but
11973     # some people rename them; so instead we look at the file content.
11974     # Grep'ing the first line is not enough: some people post-process
11975     # each Makefile.in and add a new line on top of each file to say so.
11976     # Grep'ing the whole file is not good either: AIX grep has a line
11977     # limit of 2048, but all sed's we know have understand at least 4000.
11978     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11979       dirpart=`$as_dirname -- "$mf" ||
11980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11981          X"$mf" : 'X\(//\)[^/]' \| \
11982          X"$mf" : 'X\(//\)$' \| \
11983          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11984 $as_echo X"$mf" |
11985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11986             s//\1/
11987             q
11988           }
11989           /^X\(\/\/\)[^/].*/{
11990             s//\1/
11991             q
11992           }
11993           /^X\(\/\/\)$/{
11994             s//\1/
11995             q
11996           }
11997           /^X\(\/\).*/{
11998             s//\1/
11999             q
12000           }
12001           s/.*/./; q'`
12002     else
12003       continue
12004     fi
12005     # Extract the definition of DEPDIR, am__include, and am__quote
12006     # from the Makefile without running `make'.
12007     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12008     test -z "$DEPDIR" && continue
12009     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12010     test -z "am__include" && continue
12011     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12012     # When using ansi2knr, U may be empty or an underscore; expand it
12013     U=`sed -n 's/^U = //p' < "$mf"`
12014     # Find all dependency output files, they are included files with
12015     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12016     # simplest approach to changing $(DEPDIR) to its actual value in the
12017     # expansion.
12018     for file in `sed -n "
12019       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12020          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12021       # Make sure the directory exists.
12022       test -f "$dirpart/$file" && continue
12023       fdir=`$as_dirname -- "$file" ||
12024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025          X"$file" : 'X\(//\)[^/]' \| \
12026          X"$file" : 'X\(//\)$' \| \
12027          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$file" |
12029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12030             s//\1/
12031             q
12032           }
12033           /^X\(\/\/\)[^/].*/{
12034             s//\1/
12035             q
12036           }
12037           /^X\(\/\/\)$/{
12038             s//\1/
12039             q
12040           }
12041           /^X\(\/\).*/{
12042             s//\1/
12043             q
12044           }
12045           s/.*/./; q'`
12046       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12047       # echo "creating $dirpart/$file"
12048       echo '# dummy' > "$dirpart/$file"
12049     done
12050   done
12051 }
12052  ;;
12053
12054   esac
12055 done # for ac_tag
12056
12057
12058 as_fn_exit 0
12059 _ACEOF
12060 ac_clean_files=$ac_clean_files_save
12061
12062 test $ac_write_fail = 0 ||
12063   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12064
12065
12066 # configure is writing to config.log, and then calls config.status.
12067 # config.status does its own redirection, appending to config.log.
12068 # Unfortunately, on DOS this fails, as config.log is still kept open
12069 # by configure, so config.status won't be able to write to it; its
12070 # output is simply discarded.  So we exec the FD to /dev/null,
12071 # effectively closing config.log, so it can be properly (re)opened and
12072 # appended to by config.status.  When coming back to configure, we
12073 # need to make the FD available again.
12074 if test "$no_create" != yes; then
12075   ac_cs_success=:
12076   ac_config_status_args=
12077   test "$silent" = yes &&
12078     ac_config_status_args="$ac_config_status_args --quiet"
12079   exec 5>/dev/null
12080   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12081   exec 5>>config.log
12082   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12083   # would make configure fail if this is the last instruction.
12084   $ac_cs_success || as_fn_exit 1
12085 fi
12086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12089 fi
12090