Merge branch 'devel/x11' into tizen
[platform/upstream/kbproto.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for KBProto 1.0.6.
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 as_awk_strverscmp='
541   # Use only awk features that work with 7th edition Unix awk (1978).
542   # My, what an old awk you have, Mr. Solaris!
543   END {
544     while (length(v1) && length(v2)) {
545       # Set d1 to be the next thing to compare from v1, and likewise for d2.
546       # Normally this is a single character, but if v1 and v2 contain digits,
547       # compare them as integers and fractions as strverscmp does.
548       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549         # Split v1 and v2 into their leading digit string components d1 and d2,
550         # and advance v1 and v2 past the leading digit strings.
551         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555         if (d1 ~ /^0/) {
556           if (d2 ~ /^0/) {
557             # Compare two fractions.
558             while (d1 ~ /^0/ && d2 ~ /^0/) {
559               d1 = substr(d1, 2); len1--
560               d2 = substr(d2, 2); len2--
561             }
562             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563               # The two components differ in length, and the common prefix
564               # contains only leading zeros.  Consider the longer to be less.
565               d1 = -len1
566               d2 = -len2
567             } else {
568               # Otherwise, compare as strings.
569               d1 = "x" d1
570               d2 = "x" d2
571             }
572           } else {
573             # A fraction is less than an integer.
574             exit 1
575           }
576         } else {
577           if (d2 ~ /^0/) {
578             # An integer is greater than a fraction.
579             exit 2
580           } else {
581             # Compare two integers.
582             d1 += 0
583             d2 += 0
584           }
585         }
586       } else {
587         # The normal case, without worrying about digits.
588         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590       }
591       if (d1 < d2) exit 1
592       if (d1 > d2) exit 2
593     }
594     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595     # which mishandles some comparisons of empty strings to integers.
596     if (length(v2)) exit 1
597     if (length(v1)) exit 2
598   }
599 '
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='KBProto'
623 PACKAGE_TARNAME='kbproto'
624 PACKAGE_VERSION='1.0.6'
625 PACKAGE_STRING='KBProto 1.0.6'
626 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stdio.h>
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef STDC_HEADERS
639 # include <stdlib.h>
640 # include <stddef.h>
641 #else
642 # ifdef HAVE_STDLIB_H
643 #  include <stdlib.h>
644 # endif
645 #endif
646 #ifdef HAVE_STRING_H
647 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
648 #  include <memory.h>
649 # endif
650 # include <string.h>
651 #endif
652 #ifdef HAVE_STRINGS_H
653 # include <strings.h>
654 #endif
655 #ifdef HAVE_INTTYPES_H
656 # include <inttypes.h>
657 #endif
658 #ifdef HAVE_STDINT_H
659 # include <stdint.h>
660 #endif
661 #ifdef HAVE_UNISTD_H
662 # include <unistd.h>
663 #endif"
664
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 LIBOBJS
669 HAVE_STYLESHEETS_FALSE
670 HAVE_STYLESHEETS_TRUE
671 XSL_STYLESHEET
672 STYLESHEET_SRCDIR
673 XORG_SGML_PATH
674 HAVE_XSLTPROC_FALSE
675 HAVE_XSLTPROC_TRUE
676 XSLTPROC
677 HAVE_FOP_FALSE
678 HAVE_FOP_TRUE
679 FOP
680 HAVE_XMLTO_FALSE
681 HAVE_XMLTO_TRUE
682 HAVE_XMLTO_TEXT_FALSE
683 HAVE_XMLTO_TEXT_TRUE
684 XMLTO
685 ENABLE_SPECS_FALSE
686 ENABLE_SPECS_TRUE
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 MAN_SUBSTS
690 XORG_MAN_PAGE
691 ADMIN_MAN_DIR
692 DRIVER_MAN_DIR
693 MISC_MAN_DIR
694 FILE_MAN_DIR
695 LIB_MAN_DIR
696 APP_MAN_DIR
697 ADMIN_MAN_SUFFIX
698 DRIVER_MAN_SUFFIX
699 MISC_MAN_SUFFIX
700 FILE_MAN_SUFFIX
701 LIB_MAN_SUFFIX
702 APP_MAN_SUFFIX
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 INSTALL_CMD
713 PKG_CONFIG
714 CHANGELOG_CMD
715 STRICT_CFLAGS
716 CWARNFLAGS
717 BASE_CFLAGS
718 EGREP
719 GREP
720 CPP
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 MAINT
738 MAINTAINER_MODE_FALSE
739 MAINTAINER_MODE_TRUE
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_maintainer_mode
805 enable_dependency_tracking
806 enable_selective_werror
807 enable_strict_compilation
808 enable_silent_rules
809 enable_specs
810 with_xmlto
811 with_fop
812 with_xsltproc
813 '
814       ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 PKG_CONFIG
824 XMLTO
825 FOP
826 XSLTPROC'
827
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 ac_unrecognized_opts=
833 ac_unrecognized_sep=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
850
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *=)   ac_optarg= ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=no ;;
947
948   -docdir | --docdir | --docdi | --doc | --do)
949     ac_prev=docdir ;;
950   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951     docdir=$ac_optarg ;;
952
953   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954     ac_prev=dvidir ;;
955   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956     dvidir=$ac_optarg ;;
957
958   -enable-* | --enable-*)
959     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960     # Reject names that are not valid shell variable names.
961     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962       as_fn_error $? "invalid feature name: $ac_useropt"
963     ac_useropt_orig=$ac_useropt
964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965     case $ac_user_opts in
966       *"
967 "enable_$ac_useropt"
968 "*) ;;
969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970          ac_unrecognized_sep=', ';;
971     esac
972     eval enable_$ac_useropt=\$ac_optarg ;;
973
974   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976   | --exec | --exe | --ex)
977     ac_prev=exec_prefix ;;
978   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980   | --exec=* | --exe=* | --ex=*)
981     exec_prefix=$ac_optarg ;;
982
983   -gas | --gas | --ga | --g)
984     # Obsolete; use --with-gas.
985     with_gas=yes ;;
986
987   -help | --help | --hel | --he | -h)
988     ac_init_help=long ;;
989   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990     ac_init_help=recursive ;;
991   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992     ac_init_help=short ;;
993
994   -host | --host | --hos | --ho)
995     ac_prev=host_alias ;;
996   -host=* | --host=* | --hos=* | --ho=*)
997     host_alias=$ac_optarg ;;
998
999   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000     ac_prev=htmldir ;;
1001   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002   | --ht=*)
1003     htmldir=$ac_optarg ;;
1004
1005   -includedir | --includedir | --includedi | --included | --include \
1006   | --includ | --inclu | --incl | --inc)
1007     ac_prev=includedir ;;
1008   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009   | --includ=* | --inclu=* | --incl=* | --inc=*)
1010     includedir=$ac_optarg ;;
1011
1012   -infodir | --infodir | --infodi | --infod | --info | --inf)
1013     ac_prev=infodir ;;
1014   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015     infodir=$ac_optarg ;;
1016
1017   -libdir | --libdir | --libdi | --libd)
1018     ac_prev=libdir ;;
1019   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020     libdir=$ac_optarg ;;
1021
1022   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023   | --libexe | --libex | --libe)
1024     ac_prev=libexecdir ;;
1025   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026   | --libexe=* | --libex=* | --libe=*)
1027     libexecdir=$ac_optarg ;;
1028
1029   -localedir | --localedir | --localedi | --localed | --locale)
1030     ac_prev=localedir ;;
1031   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032     localedir=$ac_optarg ;;
1033
1034   -localstatedir | --localstatedir | --localstatedi | --localstated \
1035   | --localstate | --localstat | --localsta | --localst | --locals)
1036     ac_prev=localstatedir ;;
1037   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039     localstatedir=$ac_optarg ;;
1040
1041   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042     ac_prev=mandir ;;
1043   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044     mandir=$ac_optarg ;;
1045
1046   -nfp | --nfp | --nf)
1047     # Obsolete; use --without-fp.
1048     with_fp=no ;;
1049
1050   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051   | --no-cr | --no-c | -n)
1052     no_create=yes ;;
1053
1054   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056     no_recursion=yes ;;
1057
1058   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060   | --oldin | --oldi | --old | --ol | --o)
1061     ac_prev=oldincludedir ;;
1062   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065     oldincludedir=$ac_optarg ;;
1066
1067   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068     ac_prev=prefix ;;
1069   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070     prefix=$ac_optarg ;;
1071
1072   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073   | --program-pre | --program-pr | --program-p)
1074     ac_prev=program_prefix ;;
1075   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077     program_prefix=$ac_optarg ;;
1078
1079   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080   | --program-suf | --program-su | --program-s)
1081     ac_prev=program_suffix ;;
1082   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084     program_suffix=$ac_optarg ;;
1085
1086   -program-transform-name | --program-transform-name \
1087   | --program-transform-nam | --program-transform-na \
1088   | --program-transform-n | --program-transform- \
1089   | --program-transform | --program-transfor \
1090   | --program-transfo | --program-transf \
1091   | --program-trans | --program-tran \
1092   | --progr-tra | --program-tr | --program-t)
1093     ac_prev=program_transform_name ;;
1094   -program-transform-name=* | --program-transform-name=* \
1095   | --program-transform-nam=* | --program-transform-na=* \
1096   | --program-transform-n=* | --program-transform-=* \
1097   | --program-transform=* | --program-transfor=* \
1098   | --program-transfo=* | --program-transf=* \
1099   | --program-trans=* | --program-tran=* \
1100   | --progr-tra=* | --program-tr=* | --program-t=*)
1101     program_transform_name=$ac_optarg ;;
1102
1103   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104     ac_prev=pdfdir ;;
1105   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106     pdfdir=$ac_optarg ;;
1107
1108   -psdir | --psdir | --psdi | --psd | --ps)
1109     ac_prev=psdir ;;
1110   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111     psdir=$ac_optarg ;;
1112
1113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114   | -silent | --silent | --silen | --sile | --sil)
1115     silent=yes ;;
1116
1117   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118     ac_prev=sbindir ;;
1119   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120   | --sbi=* | --sb=*)
1121     sbindir=$ac_optarg ;;
1122
1123   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125   | --sharedst | --shareds | --shared | --share | --shar \
1126   | --sha | --sh)
1127     ac_prev=sharedstatedir ;;
1128   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131   | --sha=* | --sh=*)
1132     sharedstatedir=$ac_optarg ;;
1133
1134   -site | --site | --sit)
1135     ac_prev=site ;;
1136   -site=* | --site=* | --sit=*)
1137     site=$ac_optarg ;;
1138
1139   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140     ac_prev=srcdir ;;
1141   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142     srcdir=$ac_optarg ;;
1143
1144   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145   | --syscon | --sysco | --sysc | --sys | --sy)
1146     ac_prev=sysconfdir ;;
1147   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149     sysconfdir=$ac_optarg ;;
1150
1151   -target | --target | --targe | --targ | --tar | --ta | --t)
1152     ac_prev=target_alias ;;
1153   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154     target_alias=$ac_optarg ;;
1155
1156   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157     verbose=yes ;;
1158
1159   -version | --version | --versio | --versi | --vers | -V)
1160     ac_init_version=: ;;
1161
1162   -with-* | --with-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       as_fn_error $? "invalid package name: $ac_useropt"
1167     ac_useropt_orig=$ac_useropt
1168     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169     case $ac_user_opts in
1170       *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174          ac_unrecognized_sep=', ';;
1175     esac
1176     eval with_$ac_useropt=\$ac_optarg ;;
1177
1178   -without-* | --without-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error $? "invalid package name: $ac_useropt"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=no ;;
1193
1194   --x)
1195     # Obsolete; use --with-x.
1196     with_x=yes ;;
1197
1198   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199   | --x-incl | --x-inc | --x-in | --x-i)
1200     ac_prev=x_includes ;;
1201   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203     x_includes=$ac_optarg ;;
1204
1205   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207     ac_prev=x_libraries ;;
1208   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210     x_libraries=$ac_optarg ;;
1211
1212   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     case $ac_envvar in #(
1220       '' | [0-9]* | *[!_$as_cr_alnum]* )
1221       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222     esac
1223     eval $ac_envvar=\$ac_optarg
1224     export $ac_envvar ;;
1225
1226   *)
1227     # FIXME: should be removed in autoconf 3.0.
1228     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232     ;;
1233
1234   esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239   as_fn_error $? "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243   case $enable_option_checking in
1244     no) ;;
1245     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247   esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252                 datadir sysconfdir sharedstatedir localstatedir includedir \
1253                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254                 libdir localedir mandir
1255 do
1256   eval ac_val=\$$ac_var
1257   # Remove trailing slashes.
1258   case $ac_val in
1259     */ )
1260       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261       eval $ac_var=\$ac_val;;
1262   esac
1263   # Be sure to have absolute directory names.
1264   case $ac_val in
1265     [\\/$]* | ?:[\\/]* )  continue;;
1266     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267   esac
1268   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280   if test "x$build_alias" = x; then
1281     cross_compiling=maybe
1282     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1283     If a cross compiler is detected then cross compile mode will be used" >&2
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305   ac_srcdir_defaulted=yes
1306   # Try the directory containing this script, then the parent directory.
1307   ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309          X"$as_myself" : 'X\(//\)[^/]' \| \
1310          X"$as_myself" : 'X\(//\)$' \| \
1311          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)[^/].*/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\).*/{
1326             s//\1/
1327             q
1328           }
1329           s/.*/./; q'`
1330   srcdir=$ac_confdir
1331   if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333   fi
1334 else
1335   ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344         pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347   srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357   eval ac_env_${ac_var}_value=\$${ac_var}
1358   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366   # Omit some internal or obsolete options to make the list less imposing.
1367   # This message is too long to be a string in the A/UX 3.1 sh.
1368   cat <<_ACEOF
1369 \`configure' configures KBProto 1.0.6 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379   -h, --help              display this help and exit
1380       --help=short        display options specific to this package
1381       --help=recursive    display the short help of all the included packages
1382   -V, --version           display version information and exit
1383   -q, --quiet, --silent   do not print \`checking ...' messages
1384       --cache-file=FILE   cache test results in FILE [disabled]
1385   -C, --config-cache      alias for \`--cache-file=config.cache'
1386   -n, --no-create         do not create output files
1387       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390   --prefix=PREFIX         install architecture-independent files in PREFIX
1391                           [$ac_default_prefix]
1392   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                           [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403   --bindir=DIR            user executables [EPREFIX/bin]
1404   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405   --libexecdir=DIR        program executables [EPREFIX/libexec]
1406   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409   --libdir=DIR            object code libraries [EPREFIX/lib]
1410   --includedir=DIR        C header files [PREFIX/include]
1411   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414   --infodir=DIR           info documentation [DATAROOTDIR/info]
1415   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416   --mandir=DIR            man documentation [DATAROOTDIR/man]
1417   --docdir=DIR            documentation root [DATAROOTDIR/doc/kbproto]
1418   --htmldir=DIR           html documentation [DOCDIR]
1419   --dvidir=DIR            dvi documentation [DOCDIR]
1420   --pdfdir=DIR            pdf documentation [DOCDIR]
1421   --psdir=DIR             ps documentation [DOCDIR]
1422 _ACEOF
1423
1424   cat <<\_ACEOF
1425
1426 Program names:
1427   --program-prefix=PREFIX            prepend PREFIX to installed program names
1428   --program-suffix=SUFFIX            append SUFFIX to installed program names
1429   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431 System types:
1432   --build=BUILD     configure for building on BUILD [guessed]
1433   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438   case $ac_init_help in
1439      short | recursive ) echo "Configuration of KBProto 1.0.6:";;
1440    esac
1441   cat <<\_ACEOF
1442
1443 Optional Features:
1444   --disable-option-checking  ignore unrecognized --enable/--with options
1445   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447   --enable-maintainer-mode  enable make rules and dependencies not useful
1448                           (and sometimes confusing) to the casual installer
1449   --disable-dependency-tracking  speeds up one-time build
1450   --enable-dependency-tracking   do not reject slow dependency extractors
1451   --disable-selective-werror
1452                           Turn off selective compiler errors. (default:
1453                           enabled)
1454   --enable-strict-compilation
1455                           Enable all warnings from compiler and make them
1456                           errors (default: disabled)
1457   --enable-silent-rules          less verbose build output (undo: `make V=1')
1458   --disable-silent-rules         verbose build output (undo: `make V=0')
1459   --enable-specs          Enable building the specs (default: yes)
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-xmlto            Use xmlto to regenerate documentation (default:
1465                           auto)
1466   --with-fop              Use fop to regenerate documentation (default: auto)
1467   --with-xsltproc         Use xsltproc for the transformation of XML documents
1468                           (default: auto)
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CPP         C preprocessor
1479   PKG_CONFIG  path to pkg-config utility
1480   XMLTO       Path to xmlto command
1481   FOP         Path to fop command
1482   XSLTPROC    Path to xsltproc command
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" ||
1496       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497       continue
1498     ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504   # A ".." for each directory in $ac_dir_suffix.
1505   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506   case $ac_top_builddir_sub in
1507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509   esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517   .)  # We are building in place.
1518     ac_srcdir=.
1519     ac_top_srcdir=$ac_top_builddir_sub
1520     ac_abs_top_srcdir=$ac_pwd ;;
1521   [\\/]* | ?:[\\/]* )  # Absolute name.
1522     ac_srcdir=$srcdir$ac_dir_suffix;
1523     ac_top_srcdir=$srcdir
1524     ac_abs_top_srcdir=$srcdir ;;
1525   *) # Relative name.
1526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527     ac_top_srcdir=$ac_top_build_prefix$srcdir
1528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532     cd "$ac_dir" || { ac_status=$?; continue; }
1533     # Check for guested configure.
1534     if test -f "$ac_srcdir/configure.gnu"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537     elif test -f "$ac_srcdir/configure"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure" --help=recursive
1540     else
1541       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542     fi || ac_status=$?
1543     cd "$ac_pwd" || { ac_status=$?; break; }
1544   done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549   cat <<\_ACEOF
1550 KBProto configure 1.0.6
1551 generated by GNU Autoconf 2.68
1552
1553 Copyright (C) 2010 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557   exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext
1571   if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_compile") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest.$ac_objext; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598   as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1603 # ---------------------------------------------
1604 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1605 # accordingly.
1606 ac_fn_c_check_decl ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   as_decl_name=`echo $2|sed 's/ *(.*//'`
1610   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1612 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1613 if eval \${$3+:} false; then :
1614   $as_echo_n "(cached) " >&6
1615 else
1616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h.  */
1618 $4
1619 int
1620 main ()
1621 {
1622 #ifndef $as_decl_name
1623 #ifdef __cplusplus
1624   (void) $as_decl_use;
1625 #else
1626   (void) $as_decl_name;
1627 #endif
1628 #endif
1629
1630   ;
1631   return 0;
1632 }
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635   eval "$3=yes"
1636 else
1637   eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_decl
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662   ac_status=$?
1663   if test -s conftest.err; then
1664     grep -v '^ *+' conftest.err >conftest.er1
1665     cat conftest.er1 >&5
1666     mv -f conftest.er1 conftest.err
1667   fi
1668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669   test $ac_status = 0; } > conftest.i && {
1670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671          test ! -s conftest.err
1672        }; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678     ac_retval=1
1679 fi
1680   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_link") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703   { { case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_try") 2>&5
1710   ac_status=$?
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; }; }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: program exited with status $ac_status" >&5
1716        $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719        ac_retval=$ac_status
1720 fi
1721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 else
1739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h.  */
1741 $4
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745   eval "$3=yes"
1746 else
1747   eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext conftest$ac_exeext
1765   if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_link") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && {
1781          test -z "$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        } && test -s conftest$ac_exeext && {
1784          test "$cross_compiling" = yes ||
1785          $as_test_x conftest$ac_exeext
1786        }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792         ac_retval=1
1793 fi
1794   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796   # interfere with the next link command; also delete a directory that is
1797   # left behind by Apple's compiler.  We do this before executing the actions.
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_link
1803 cat >config.log <<_ACEOF
1804 This file contains any messages produced by compilers while
1805 running configure, to aid debugging if configure makes a mistake.
1806
1807 It was created by KBProto $as_me 1.0.6, which was
1808 generated by GNU Autoconf 2.68.  Invocation command line was
1809
1810   $ $0 $@
1811
1812 _ACEOF
1813 exec 5>>config.log
1814 {
1815 cat <<_ASUNAME
1816 ## --------- ##
1817 ## Platform. ##
1818 ## --------- ##
1819
1820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1825
1826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1828
1829 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1830 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1833 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1834 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1835 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1836
1837 _ASUNAME
1838
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844     $as_echo "PATH: $as_dir"
1845   done
1846 IFS=$as_save_IFS
1847
1848 } >&5
1849
1850 cat >&5 <<_ACEOF
1851
1852
1853 ## ----------- ##
1854 ## Core tests. ##
1855 ## ----------- ##
1856
1857 _ACEOF
1858
1859
1860 # Keep a trace of the command line.
1861 # Strip out --no-create and --no-recursion so they do not pile up.
1862 # Strip out --silent because we don't want to record it for future runs.
1863 # Also quote any args containing shell meta-characters.
1864 # Make two passes to allow for proper duplicate-argument suppression.
1865 ac_configure_args=
1866 ac_configure_args0=
1867 ac_configure_args1=
1868 ac_must_keep_next=false
1869 for ac_pass in 1 2
1870 do
1871   for ac_arg
1872   do
1873     case $ac_arg in
1874     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876     | -silent | --silent | --silen | --sile | --sil)
1877       continue ;;
1878     *\'*)
1879       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     esac
1881     case $ac_pass in
1882     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1883     2)
1884       as_fn_append ac_configure_args1 " '$ac_arg'"
1885       if test $ac_must_keep_next = true; then
1886         ac_must_keep_next=false # Got value, back to normal.
1887       else
1888         case $ac_arg in
1889           *=* | --config-cache | -C | -disable-* | --disable-* \
1890           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892           | -with-* | --with-* | -without-* | --without-* | --x)
1893             case "$ac_configure_args0 " in
1894               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895             esac
1896             ;;
1897           -* ) ac_must_keep_next=true ;;
1898         esac
1899       fi
1900       as_fn_append ac_configure_args " '$ac_arg'"
1901       ;;
1902     esac
1903   done
1904 done
1905 { ac_configure_args0=; unset ac_configure_args0;}
1906 { ac_configure_args1=; unset ac_configure_args1;}
1907
1908 # When interrupted or exit'd, cleanup temporary files, and complete
1909 # config.log.  We remove comments because anyway the quotes in there
1910 # would cause problems or look ugly.
1911 # WARNING: Use '\'' to represent an apostrophe within the trap.
1912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913 trap 'exit_status=$?
1914   # Save into config.log some information that might help in debugging.
1915   {
1916     echo
1917
1918     $as_echo "## ---------------- ##
1919 ## Cache variables. ##
1920 ## ---------------- ##"
1921     echo
1922     # The following way of writing the cache mishandles newlines in values,
1923 (
1924   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925     eval ac_val=\$$ac_var
1926     case $ac_val in #(
1927     *${as_nl}*)
1928       case $ac_var in #(
1929       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931       esac
1932       case $ac_var in #(
1933       _ | IFS | as_nl) ;; #(
1934       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935       *) { eval $ac_var=; unset $ac_var;} ;;
1936       esac ;;
1937     esac
1938   done
1939   (set) 2>&1 |
1940     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941     *${as_nl}ac_space=\ *)
1942       sed -n \
1943         "s/'\''/'\''\\\\'\'''\''/g;
1944           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945       ;; #(
1946     *)
1947       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1948       ;;
1949     esac |
1950     sort
1951 )
1952     echo
1953
1954     $as_echo "## ----------------- ##
1955 ## Output variables. ##
1956 ## ----------------- ##"
1957     echo
1958     for ac_var in $ac_subst_vars
1959     do
1960       eval ac_val=\$$ac_var
1961       case $ac_val in
1962       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963       esac
1964       $as_echo "$ac_var='\''$ac_val'\''"
1965     done | sort
1966     echo
1967
1968     if test -n "$ac_subst_files"; then
1969       $as_echo "## ------------------- ##
1970 ## File substitutions. ##
1971 ## ------------------- ##"
1972       echo
1973       for ac_var in $ac_subst_files
1974       do
1975         eval ac_val=\$$ac_var
1976         case $ac_val in
1977         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978         esac
1979         $as_echo "$ac_var='\''$ac_val'\''"
1980       done | sort
1981       echo
1982     fi
1983
1984     if test -s confdefs.h; then
1985       $as_echo "## ----------- ##
1986 ## confdefs.h. ##
1987 ## ----------- ##"
1988       echo
1989       cat confdefs.h
1990       echo
1991     fi
1992     test "$ac_signal" != 0 &&
1993       $as_echo "$as_me: caught signal $ac_signal"
1994     $as_echo "$as_me: exit $exit_status"
1995   } >&5
1996   rm -f core *.core core.conftest.* &&
1997     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998     exit $exit_status
1999 ' 0
2000 for ac_signal in 1 2 13 15; do
2001   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2002 done
2003 ac_signal=0
2004
2005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2006 rm -f -r conftest* confdefs.h
2007
2008 $as_echo "/* confdefs.h */" > confdefs.h
2009
2010 # Predefined preprocessor variables.
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_STRING "$PACKAGE_STRING"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_URL "$PACKAGE_URL"
2034 _ACEOF
2035
2036
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2039 ac_site_file1=NONE
2040 ac_site_file2=NONE
2041 if test -n "$CONFIG_SITE"; then
2042   # We do not want a PATH search for config.site.
2043   case $CONFIG_SITE in #((
2044     -*)  ac_site_file1=./$CONFIG_SITE;;
2045     */*) ac_site_file1=$CONFIG_SITE;;
2046     *)   ac_site_file1=./$CONFIG_SITE;;
2047   esac
2048 elif test "x$prefix" != xNONE; then
2049   ac_site_file1=$prefix/share/config.site
2050   ac_site_file2=$prefix/etc/config.site
2051 else
2052   ac_site_file1=$ac_default_prefix/share/config.site
2053   ac_site_file2=$ac_default_prefix/etc/config.site
2054 fi
2055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2056 do
2057   test "x$ac_site_file" = xNONE && continue
2058   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2061     sed 's/^/| /' "$ac_site_file" >&5
2062     . "$ac_site_file" \
2063       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065 as_fn_error $? "failed to load site script $ac_site_file
2066 See \`config.log' for more details" "$LINENO" 5; }
2067   fi
2068 done
2069
2070 if test -r "$cache_file"; then
2071   # Some versions of bash will fail to source /dev/null (special files
2072   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2073   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2075 $as_echo "$as_me: loading cache $cache_file" >&6;}
2076     case $cache_file in
2077       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2078       *)                      . "./$cache_file";;
2079     esac
2080   fi
2081 else
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2083 $as_echo "$as_me: creating cache $cache_file" >&6;}
2084   >$cache_file
2085 fi
2086
2087 # Check that the precious variables saved in the cache have kept the same
2088 # value.
2089 ac_cache_corrupted=false
2090 for ac_var in $ac_precious_vars; do
2091   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092   eval ac_new_set=\$ac_env_${ac_var}_set
2093   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094   eval ac_new_val=\$ac_env_${ac_var}_value
2095   case $ac_old_set,$ac_new_set in
2096     set,)
2097       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099       ac_cache_corrupted=: ;;
2100     ,set)
2101       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103       ac_cache_corrupted=: ;;
2104     ,);;
2105     *)
2106       if test "x$ac_old_val" != "x$ac_new_val"; then
2107         # differences in whitespace do not lead to failure.
2108         ac_old_val_w=`echo x $ac_old_val`
2109         ac_new_val_w=`echo x $ac_new_val`
2110         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2111           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2113           ac_cache_corrupted=:
2114         else
2115           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2117           eval $ac_var=\$ac_old_val
2118         fi
2119         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2120 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2121         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2122 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2123       fi;;
2124   esac
2125   # Pass precious variables to config.status.
2126   if test "$ac_new_set" = set; then
2127     case $ac_new_val in
2128     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129     *) ac_arg=$ac_var=$ac_new_val ;;
2130     esac
2131     case " $ac_configure_args " in
2132       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2133       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2134     esac
2135   fi
2136 done
2137 if $ac_cache_corrupted; then
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2142   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2143 fi
2144 ## -------------------- ##
2145 ## Main body of script. ##
2146 ## -------------------- ##
2147
2148 ac_ext=c
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153
2154
2155 am__api_version='1.11'
2156
2157 ac_aux_dir=
2158 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159   if test -f "$ac_dir/install-sh"; then
2160     ac_aux_dir=$ac_dir
2161     ac_install_sh="$ac_aux_dir/install-sh -c"
2162     break
2163   elif test -f "$ac_dir/install.sh"; then
2164     ac_aux_dir=$ac_dir
2165     ac_install_sh="$ac_aux_dir/install.sh -c"
2166     break
2167   elif test -f "$ac_dir/shtool"; then
2168     ac_aux_dir=$ac_dir
2169     ac_install_sh="$ac_aux_dir/shtool install -c"
2170     break
2171   fi
2172 done
2173 if test -z "$ac_aux_dir"; then
2174   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2175 fi
2176
2177 # These three variables are undocumented and unsupported,
2178 # and are intended to be withdrawn in a future Autoconf release.
2179 # They can cause serious problems if a builder's source tree is in a directory
2180 # whose full name contains unusual characters.
2181 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2182 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2183 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2184
2185
2186 # Find a good install program.  We prefer a C program (faster),
2187 # so one script is as good as another.  But avoid the broken or
2188 # incompatible versions:
2189 # SysV /etc/install, /usr/sbin/install
2190 # SunOS /usr/etc/install
2191 # IRIX /sbin/install
2192 # AIX /bin/install
2193 # AmigaOS /C/install, which installs bootblocks on floppy discs
2194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # OS/2's system install, which has a completely different semantic
2198 # ./install, which can be erroneously created by make from ./install.sh.
2199 # Reject install programs that cannot install multiple files.
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2202 if test -z "$INSTALL"; then
2203 if ${ac_cv_path_install+:} false; then :
2204   $as_echo_n "(cached) " >&6
2205 else
2206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211     # Account for people who put trailing slashes in PATH elements.
2212 case $as_dir/ in #((
2213   ./ | .// | /[cC]/* | \
2214   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2216   /usr/ucb/* ) ;;
2217   *)
2218     # OSF1 and SCO ODT 3.0 have their own names for install.
2219     # Don't use installbsd from OSF since it installs stuff as root
2220     # by default.
2221     for ac_prog in ginstall scoinst install; do
2222       for ac_exec_ext in '' $ac_executable_extensions; do
2223         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224           if test $ac_prog = install &&
2225             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226             # AIX install.  It has an incompatible calling convention.
2227             :
2228           elif test $ac_prog = install &&
2229             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230             # program-specific install script used by HP pwplus--don't use.
2231             :
2232           else
2233             rm -rf conftest.one conftest.two conftest.dir
2234             echo one > conftest.one
2235             echo two > conftest.two
2236             mkdir conftest.dir
2237             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2238               test -s conftest.one && test -s conftest.two &&
2239               test -s conftest.dir/conftest.one &&
2240               test -s conftest.dir/conftest.two
2241             then
2242               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2243               break 3
2244             fi
2245           fi
2246         fi
2247       done
2248     done
2249     ;;
2250 esac
2251
2252   done
2253 IFS=$as_save_IFS
2254
2255 rm -rf conftest.one conftest.two conftest.dir
2256
2257 fi
2258   if test "${ac_cv_path_install+set}" = set; then
2259     INSTALL=$ac_cv_path_install
2260   else
2261     # As a last resort, use the slow shell script.  Don't cache a
2262     # value for INSTALL within a source directory, because that will
2263     # break other packages using the cache if that directory is
2264     # removed, or if the value is a relative name.
2265     INSTALL=$ac_install_sh
2266   fi
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2269 $as_echo "$INSTALL" >&6; }
2270
2271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2272 # It thinks the first close brace ends the variable substitution.
2273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2274
2275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2276
2277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2278
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2280 $as_echo_n "checking whether build environment is sane... " >&6; }
2281 # Just in case
2282 sleep 1
2283 echo timestamp > conftest.file
2284 # Reject unsafe characters in $srcdir or the absolute working directory
2285 # name.  Accept space and tab only in the latter.
2286 am_lf='
2287 '
2288 case `pwd` in
2289   *[\\\"\#\$\&\'\`$am_lf]*)
2290     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2291 esac
2292 case $srcdir in
2293   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2294     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2295 esac
2296
2297 # Do `set' in a subshell so we don't clobber the current shell's
2298 # arguments.  Must try -L first in case configure is actually a
2299 # symlink; some systems play weird games with the mod time of symlinks
2300 # (eg FreeBSD returns the mod time of the symlink's containing
2301 # directory).
2302 if (
2303    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2304    if test "$*" = "X"; then
2305       # -L didn't work.
2306       set X `ls -t "$srcdir/configure" conftest.file`
2307    fi
2308    rm -f conftest.file
2309    if test "$*" != "X $srcdir/configure conftest.file" \
2310       && test "$*" != "X conftest.file $srcdir/configure"; then
2311
2312       # If neither matched, then we have a broken ls.  This can happen
2313       # if, for instance, CONFIG_SHELL is bash and it inherits a
2314       # broken ls alias from the environment.  This has actually
2315       # happened.  Such a system could not be considered "sane".
2316       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2317 alias in your environment" "$LINENO" 5
2318    fi
2319
2320    test "$2" = conftest.file
2321    )
2322 then
2323    # Ok.
2324    :
2325 else
2326    as_fn_error $? "newly created file is older than distributed files!
2327 Check your system clock" "$LINENO" 5
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2330 $as_echo "yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.
2337 # By default was `s,x,x', remove it if useless.
2338 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340
2341 # expand $ac_aux_dir to an absolute path
2342 am_aux_dir=`cd $ac_aux_dir && pwd`
2343
2344 if test x"${MISSING+set}" != xset; then
2345   case $am_aux_dir in
2346   *\ * | *\     *)
2347     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348   *)
2349     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350   esac
2351 fi
2352 # Use eval to expand $SHELL
2353 if eval "$MISSING --run true"; then
2354   am_missing_run="$MISSING --run "
2355 else
2356   am_missing_run=
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2358 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2359 fi
2360
2361 if test x"${install_sh}" != xset; then
2362   case $am_aux_dir in
2363   *\ * | *\     *)
2364     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365   *)
2366     install_sh="\${SHELL} $am_aux_dir/install-sh"
2367   esac
2368 fi
2369
2370 # Installed binaries are usually stripped using `strip' when the user
2371 # run `make install-strip'.  However `strip' might not be the right
2372 # tool to use in cross-compilation environments, therefore Automake
2373 # will honor the `STRIP' environment variable to overrule this program.
2374 if test "$cross_compiling" != no; then
2375   if test -n "$ac_tool_prefix"; then
2376   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}strip; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_STRIP+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   if test -n "$STRIP"; then
2384   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391     for ac_exec_ext in '' $ac_executable_extensions; do
2392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398   done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 STRIP=$ac_cv_prog_STRIP
2404 if test -n "$STRIP"; then
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406 $as_echo "$STRIP" >&6; }
2407 else
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2410 fi
2411
2412
2413 fi
2414 if test -z "$ac_cv_prog_STRIP"; then
2415   ac_ct_STRIP=$STRIP
2416   # Extract the first word of "strip", so it can be a program name with args.
2417 set dummy strip; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421   $as_echo_n "(cached) " >&6
2422 else
2423   if test -n "$ac_ct_STRIP"; then
2424   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429   IFS=$as_save_IFS
2430   test -z "$as_dir" && as_dir=.
2431     for ac_exec_ext in '' $ac_executable_extensions; do
2432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433     ac_cv_prog_ac_ct_STRIP="strip"
2434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435     break 2
2436   fi
2437 done
2438   done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444 if test -n "$ac_ct_STRIP"; then
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446 $as_echo "$ac_ct_STRIP" >&6; }
2447 else
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452   if test "x$ac_ct_STRIP" = x; then
2453     STRIP=":"
2454   else
2455     case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461     STRIP=$ac_ct_STRIP
2462   fi
2463 else
2464   STRIP="$ac_cv_prog_STRIP"
2465 fi
2466
2467 fi
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472 if test -z "$MKDIR_P"; then
2473   if ${ac_cv_path_mkdir+:} false; then :
2474   $as_echo_n "(cached) " >&6
2475 else
2476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481     for ac_prog in mkdir gmkdir; do
2482          for ac_exec_ext in '' $ac_executable_extensions; do
2483            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2484            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485              'mkdir (GNU coreutils) '* | \
2486              'mkdir (coreutils) '* | \
2487              'mkdir (fileutils) '4.1*)
2488                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489                break 3;;
2490            esac
2491          done
2492        done
2493   done
2494 IFS=$as_save_IFS
2495
2496 fi
2497
2498   test -d ./--version && rmdir ./--version
2499   if test "${ac_cv_path_mkdir+set}" = set; then
2500     MKDIR_P="$ac_cv_path_mkdir -p"
2501   else
2502     # As a last resort, use the slow shell script.  Don't cache a
2503     # value for MKDIR_P within a source directory, because that will
2504     # break other packages using the cache if that directory is
2505     # removed, or if the value is a relative name.
2506     MKDIR_P="$ac_install_sh -d"
2507   fi
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510 $as_echo "$MKDIR_P" >&6; }
2511
2512 mkdir_p="$MKDIR_P"
2513 case $mkdir_p in
2514   [\\/$]* | ?:[\\/]*) ;;
2515   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2516 esac
2517
2518 for ac_prog in gawk mawk nawk awk
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_AWK+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   if test -n "$AWK"; then
2528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535     for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_AWK="$ac_prog"
2538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542   done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 AWK=$ac_cv_prog_AWK
2548 if test -n "$AWK"; then
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550 $as_echo "$AWK" >&6; }
2551 else
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557   test -n "$AWK" && break
2558 done
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562 set x ${MAKE-make}
2563 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   cat >conftest.make <<\_ACEOF
2568 SHELL = /bin/sh
2569 all:
2570         @echo '@@@%%%=$(MAKE)=@@@%%%'
2571 _ACEOF
2572 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574   *@@@%%%=?*=@@@%%%*)
2575     eval ac_cv_prog_make_${ac_make}_set=yes;;
2576   *)
2577     eval ac_cv_prog_make_${ac_make}_set=no;;
2578 esac
2579 rm -f conftest.make
2580 fi
2581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584   SET_MAKE=
2585 else
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588   SET_MAKE="MAKE=${MAKE-make}"
2589 fi
2590
2591 rm -rf .tst 2>/dev/null
2592 mkdir .tst 2>/dev/null
2593 if test -d .tst; then
2594   am__leading_dot=.
2595 else
2596   am__leading_dot=_
2597 fi
2598 rmdir .tst 2>/dev/null
2599
2600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2601   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2602   # is not polluted with repeated "-I."
2603   am__isrc=' -I$(srcdir)'
2604   # test to see if srcdir already configured
2605   if test -f $srcdir/config.status; then
2606     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2607   fi
2608 fi
2609
2610 # test whether we have cygpath
2611 if test -z "$CYGPATH_W"; then
2612   if (cygpath --version) >/dev/null 2>/dev/null; then
2613     CYGPATH_W='cygpath -w'
2614   else
2615     CYGPATH_W=echo
2616   fi
2617 fi
2618
2619
2620 # Define the identity of the package.
2621  PACKAGE='kbproto'
2622  VERSION='1.0.6'
2623
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE "$PACKAGE"
2627 _ACEOF
2628
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define VERSION "$VERSION"
2632 _ACEOF
2633
2634 # Some tools Automake needs.
2635
2636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2637
2638
2639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2640
2641
2642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2643
2644
2645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2646
2647
2648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2649
2650 # We need awk for the "check" target.  The system "awk" is bad on
2651 # some platforms.
2652 # Always define AMTAR for backward compatibility.
2653
2654 AMTAR=${AMTAR-"${am_missing_run}tar"}
2655
2656 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2657
2658
2659
2660
2661
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2664 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2665     # Check whether --enable-maintainer-mode was given.
2666 if test "${enable_maintainer_mode+set}" = set; then :
2667   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2668 else
2669   USE_MAINTAINER_MODE=no
2670 fi
2671
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2673 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2674    if test $USE_MAINTAINER_MODE = yes; then
2675   MAINTAINER_MODE_TRUE=
2676   MAINTAINER_MODE_FALSE='#'
2677 else
2678   MAINTAINER_MODE_TRUE='#'
2679   MAINTAINER_MODE_FALSE=
2680 fi
2681
2682   MAINT=$MAINTAINER_MODE_TRUE
2683
2684
2685
2686 # Require xorg-macros minimum of 1.12 for DocBook external references
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698 DEPDIR="${am__leading_dot}deps"
2699
2700 ac_config_commands="$ac_config_commands depfiles"
2701
2702
2703 am_make=${MAKE-make}
2704 cat > confinc << 'END'
2705 am__doit:
2706         @echo this is the am__doit target
2707 .PHONY: am__doit
2708 END
2709 # If we don't find an include directive, just comment out the code.
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2711 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2712 am__include="#"
2713 am__quote=
2714 _am_result=none
2715 # First try GNU make style include.
2716 echo "include confinc" > confmf
2717 # Ignore all kinds of additional output from `make'.
2718 case `$am_make -s -f confmf 2> /dev/null` in #(
2719 *the\ am__doit\ target*)
2720   am__include=include
2721   am__quote=
2722   _am_result=GNU
2723   ;;
2724 esac
2725 # Now try BSD make style include.
2726 if test "$am__include" = "#"; then
2727    echo '.include "confinc"' > confmf
2728    case `$am_make -s -f confmf 2> /dev/null` in #(
2729    *the\ am__doit\ target*)
2730      am__include=.include
2731      am__quote="\""
2732      _am_result=BSD
2733      ;;
2734    esac
2735 fi
2736
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2739 $as_echo "$_am_result" >&6; }
2740 rm -f confinc confmf
2741
2742 # Check whether --enable-dependency-tracking was given.
2743 if test "${enable_dependency_tracking+set}" = set; then :
2744   enableval=$enable_dependency_tracking;
2745 fi
2746
2747 if test "x$enable_dependency_tracking" != xno; then
2748   am_depcomp="$ac_aux_dir/depcomp"
2749   AMDEPBACKSLASH='\'
2750 fi
2751  if test "x$enable_dependency_tracking" != xno; then
2752   AMDEP_TRUE=
2753   AMDEP_FALSE='#'
2754 else
2755   AMDEP_TRUE='#'
2756   AMDEP_FALSE=
2757 fi
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$CC"; then
2774   ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 CC=$ac_cv_prog_CC
2794 if test -n "$CC"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$ac_cv_prog_CC"; then
2805   ac_ct_CC=$CC
2806   # Extract the first word of "gcc", so it can be a program name with args.
2807 set dummy gcc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$ac_ct_CC"; then
2814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_ac_ct_CC="gcc"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842   if test "x$ac_ct_CC" = x; then
2843     CC=""
2844   else
2845     case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     CC=$ac_ct_CC
2852   fi
2853 else
2854   CC="$ac_cv_prog_CC"
2855 fi
2856
2857 if test -z "$CC"; then
2858           if test -n "$ac_tool_prefix"; then
2859     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}cc; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_CC="${ac_tool_prefix}cc"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896   fi
2897 fi
2898 if test -z "$CC"; then
2899   # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   if test -n "$CC"; then
2907   ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909   ac_prog_rejected=no
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913   IFS=$as_save_IFS
2914   test -z "$as_dir" && as_dir=.
2915     for ac_exec_ext in '' $ac_executable_extensions; do
2916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918        ac_prog_rejected=yes
2919        continue
2920      fi
2921     ac_cv_prog_CC="cc"
2922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926   done
2927 IFS=$as_save_IFS
2928
2929 if test $ac_prog_rejected = yes; then
2930   # We found a bogon in the path, so make sure we never use it.
2931   set dummy $ac_cv_prog_CC
2932   shift
2933   if test $# != 0; then
2934     # We chose a different compiler from the bogus one.
2935     # However, it has the same basename, so the bogon will be chosen
2936     # first if we set CC to just the basename; use the full file name.
2937     shift
2938     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2939   fi
2940 fi
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 if test -z "$CC"; then
2955   if test -n "$ac_tool_prefix"; then
2956   for ac_prog in cl.exe
2957   do
2958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963   $as_echo_n "(cached) " >&6
2964 else
2965   if test -n "$CC"; then
2966   ac_cv_prog_CC="$CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973     for ac_exec_ext in '' $ac_executable_extensions; do
2974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977     break 2
2978   fi
2979 done
2980   done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995     test -n "$CC" && break
2996   done
2997 fi
2998 if test -z "$CC"; then
2999   ac_ct_CC=$CC
3000   for ac_prog in cl.exe
3001 do
3002   # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$ac_ct_CC"; then
3010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_ac_ct_CC="$ac_prog"
3020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024   done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039   test -n "$ac_ct_CC" && break
3040 done
3041
3042   if test "x$ac_ct_CC" = x; then
3043     CC=""
3044   else
3045     case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051     CC=$ac_ct_CC
3052   fi
3053 fi
3054
3055 fi
3056
3057
3058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3062
3063 # Provide some information about the compiler.
3064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 set X $ac_compile
3066 ac_compiler=$2
3067 for ac_option in --version -v -V -qversion; do
3068   { { ac_try="$ac_compiler $ac_option >&5"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076   ac_status=$?
3077   if test -s conftest.err; then
3078     sed '10a\
3079 ... rest of stderr output deleted ...
3080          10q' conftest.err >conftest.er1
3081     cat conftest.er1 >&5
3082   fi
3083   rm -f conftest.er1 conftest.err
3084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085   test $ac_status = 0; }
3086 done
3087
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3103 # of exeext.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3113 do
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117   esac
3118 done
3119 rm -f $ac_rmfiles
3120
3121 if { { ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128   (eval "$ac_link_default") 2>&5
3129   ac_status=$?
3130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131   test $ac_status = 0; }; then :
3132   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139   test -f "$ac_file" || continue
3140   case $ac_file in
3141     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142         ;;
3143     [ab].out )
3144         # We found the default executable, but exeext='' is most
3145         # certainly right.
3146         break;;
3147     *.* )
3148         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149         then :; else
3150            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151         fi
3152         # We set ac_cv_exeext here because the later test for it is not
3153         # safe: cross compilers may not add the suffix if given an `-o'
3154         # argument, so we may need to know it at that point already.
3155         # Even if this section looks crufty: it has the advantage of
3156         # actually working.
3157         break;;
3158     * )
3159         break;;
3160   esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else
3165   ac_file=''
3166 fi
3167 if test -z "$ac_file"; then :
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error 77 "C compiler cannot create executables
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext=$ac_cv_exeext
3186
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198   (eval "$ac_link") 2>&5
3199   ac_status=$?
3200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201   test $ac_status = 0; }; then :
3202   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 # `rm'.
3206 for ac_file in conftest.exe conftest conftest.*; do
3207   test -f "$ac_file" || continue
3208   case $ac_file in
3209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211           break;;
3212     * ) break;;
3213   esac
3214 done
3215 else
3216   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details" "$LINENO" 5; }
3220 fi
3221 rm -f conftest conftest$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3224
3225 rm -f conftest.$ac_ext
3226 EXEEXT=$ac_cv_exeext
3227 ac_exeext=$EXEEXT
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h.  */
3230 #include <stdio.h>
3231 int
3232 main ()
3233 {
3234 FILE *f = fopen ("conftest.out", "w");
3235  return ferror (f) || fclose (f) != 0;
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run.  If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247   { { ac_try="$ac_link"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254   (eval "$ac_link") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257   test $ac_status = 0; }
3258   if { ac_try='./conftest$ac_cv_exeext'
3259   { { case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_try") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; }; then
3269     cross_compiling=no
3270   else
3271     if test "$cross_compiling" = maybe; then
3272         cross_compiling=yes
3273     else
3274         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details" "$LINENO" 5; }
3279     fi
3280   fi
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3284
3285 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if ${ac_cv_objext+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h.  */
3294
3295 int
3296 main ()
3297 {
3298
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try="$ac_compile"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311   (eval "$ac_compile") 2>&5
3312   ac_status=$?
3313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314   test $ac_status = 0; }; then :
3315   for ac_file in conftest.o conftest.obj conftest.*; do
3316   test -f "$ac_file" || continue;
3317   case $ac_file in
3318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320        break;;
3321   esac
3322 done
3323 else
3324   $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files: cannot compile
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 fi
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3337 ac_objext=$OBJEXT
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if ${ac_cv_c_compiler_gnu+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349 #ifndef __GNUC__
3350        choke me
3351 #endif
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358   ac_compiler_gnu=yes
3359 else
3360   ac_compiler_gnu=no
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369   GCC=yes
3370 else
3371   GCC=
3372 fi
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if ${ac_cv_prog_cc_g+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   ac_save_c_werror_flag=$ac_c_werror_flag
3381    ac_c_werror_flag=yes
3382    ac_cv_prog_cc_g=no
3383    CFLAGS="-g"
3384    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396   ac_cv_prog_cc_g=yes
3397 else
3398   CFLAGS=""
3399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411
3412 else
3413   ac_c_werror_flag=$ac_save_c_werror_flag
3414          CFLAGS="-g"
3415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417
3418 int
3419 main ()
3420 {
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427   ac_cv_prog_cc_g=yes
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434    ac_c_werror_flag=$ac_save_c_werror_flag
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439   CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441   if test "$GCC" = yes; then
3442     CFLAGS="-g -O2"
3443   else
3444     CFLAGS="-g"
3445   fi
3446 else
3447   if test "$GCC" = yes; then
3448     CFLAGS="-O2"
3449   else
3450     CFLAGS=
3451   fi
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if ${ac_cv_prog_cc_c89+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   ac_cv_prog_cc_c89=no
3459 ac_save_CC=$CC
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462 #include <stdarg.h>
3463 #include <stdio.h>
3464 #include <sys/types.h>
3465 #include <sys/stat.h>
3466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3467 struct buf { int x; };
3468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469 static char *e (p, i)
3470      char **p;
3471      int i;
3472 {
3473   return p[i];
3474 }
3475 static char *f (char * (*g) (char **, int), char **p, ...)
3476 {
3477   char *s;
3478   va_list v;
3479   va_start (v,p);
3480   s = g (p, va_arg (v,int));
3481   va_end (v);
3482   return s;
3483 }
3484
3485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3486    function prototypes and stuff, but not '\xHH' hex character constants.
3487    These don't provoke an error unfortunately, instead are silently treated
3488    as 'x'.  The following induces an error, until -std is added to get
3489    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3490    array size at least.  It's necessary to write '\x00'==0 to get something
3491    that's true only with -std.  */
3492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493
3494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495    inside strings and character constants.  */
3496 #define FOO(x) 'x'
3497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498
3499 int test (int i, double x);
3500 struct s1 {int (*f) (int a);};
3501 struct s2 {int (*f) (double a);};
3502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503 int argc;
3504 char **argv;
3505 int
3506 main ()
3507 {
3508 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 do
3516   CC="$ac_save_CC $ac_arg"
3517   if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_cv_prog_cc_c89=$ac_arg
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext
3521   test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 done
3523 rm -f conftest.$ac_ext
3524 CC=$ac_save_CC
3525
3526 fi
3527 # AC_CACHE_VAL
3528 case "x$ac_cv_prog_cc_c89" in
3529   x)
3530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3531 $as_echo "none needed" >&6; } ;;
3532   xno)
3533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3534 $as_echo "unsupported" >&6; } ;;
3535   *)
3536     CC="$CC $ac_cv_prog_cc_c89"
3537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3538 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 esac
3540 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550 depcc="$CC"   am_compiler_list=
3551
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3553 $as_echo_n "checking dependency style of $depcc... " >&6; }
3554 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3555   $as_echo_n "(cached) " >&6
3556 else
3557   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558   # We make a subdir and do the tests there.  Otherwise we can end up
3559   # making bogus files that we don't know about and never remove.  For
3560   # instance it was reported that on HP-UX the gcc test will end up
3561   # making a dummy file named `D' -- because `-MD' means `put the output
3562   # in D'.
3563   mkdir conftest.dir
3564   # Copy depcomp to subdir because otherwise we won't find it if we're
3565   # using a relative directory.
3566   cp "$am_depcomp" conftest.dir
3567   cd conftest.dir
3568   # We will build objects and dependencies in a subdirectory because
3569   # it helps to detect inapplicable dependency modes.  For instance
3570   # both Tru64's cc and ICC support -MD to output dependencies as a
3571   # side effect of compilation, but ICC will put the dependencies in
3572   # the current directory while Tru64 will put them in the object
3573   # directory.
3574   mkdir sub
3575
3576   am_cv_CC_dependencies_compiler_type=none
3577   if test "$am_compiler_list" = ""; then
3578      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579   fi
3580   am__universal=false
3581   case " $depcc " in #(
3582      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3583      esac
3584
3585   for depmode in $am_compiler_list; do
3586     # Setup a source with many dependencies, because some compilers
3587     # like to wrap large dependency lists on column 80 (with \), and
3588     # we should not choose a depcomp mode which is confused by this.
3589     #
3590     # We need to recreate these files for each test, as the compiler may
3591     # overwrite some of them when testing with obscure command lines.
3592     # This happens at least with the AIX C compiler.
3593     : > sub/conftest.c
3594     for i in 1 2 3 4 5 6; do
3595       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597       # Solaris 8's {/usr,}/bin/sh.
3598       touch sub/conftst$i.h
3599     done
3600     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601
3602     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603     # mode.  It turns out that the SunPro C++ compiler does not properly
3604     # handle `-M -o', and we need to detect this.  Also, some Intel
3605     # versions had trouble with output in subdirs
3606     am__obj=sub/conftest.${OBJEXT-o}
3607     am__minus_obj="-o $am__obj"
3608     case $depmode in
3609     gcc)
3610       # This depmode causes a compiler race in universal mode.
3611       test "$am__universal" = false || continue
3612       ;;
3613     nosideeffect)
3614       # after this tag, mechanisms are not by side-effect, so they'll
3615       # only be used when explicitly requested
3616       if test "x$enable_dependency_tracking" = xyes; then
3617         continue
3618       else
3619         break
3620       fi
3621       ;;
3622     msvisualcpp | msvcmsys)
3623       # This compiler won't grok `-c -o', but also, the minuso test has
3624       # not run yet.  These depmodes are late enough in the game, and
3625       # so weak that their functioning should not be impacted.
3626       am__obj=conftest.${OBJEXT-o}
3627       am__minus_obj=
3628       ;;
3629     none) break ;;
3630     esac
3631     if depmode=$depmode \
3632        source=sub/conftest.c object=$am__obj \
3633        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3635          >/dev/null 2>conftest.err &&
3636        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3637        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3639        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3640       # icc doesn't choke on unknown options, it will just issue warnings
3641       # or remarks (even with -Werror).  So we grep stderr for any message
3642       # that says an option was ignored or not supported.
3643       # When given -MP, icc 7.0 and 7.1 complain thusly:
3644       #   icc: Command line warning: ignoring option '-M'; no argument required
3645       # The diagnosis changed in icc 8.0:
3646       #   icc: Command line remark: option '-MP' not supported
3647       if (grep 'ignoring option' conftest.err ||
3648           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649         am_cv_CC_dependencies_compiler_type=$depmode
3650         break
3651       fi
3652     fi
3653   done
3654
3655   cd ..
3656   rm -rf conftest.dir
3657 else
3658   am_cv_CC_dependencies_compiler_type=none
3659 fi
3660
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3664 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665
3666  if
3667   test "x$enable_dependency_tracking" != xno \
3668   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3669   am__fastdepCC_TRUE=
3670   am__fastdepCC_FALSE='#'
3671 else
3672   am__fastdepCC_TRUE='#'
3673   am__fastdepCC_FALSE=
3674 fi
3675
3676
3677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3679 if ${ac_cv_prog_cc_c99+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   ac_cv_prog_cc_c99=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686 #include <stdarg.h>
3687 #include <stdbool.h>
3688 #include <stdlib.h>
3689 #include <wchar.h>
3690 #include <stdio.h>
3691
3692 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3693 #define debug(...) fprintf (stderr, __VA_ARGS__)
3694 #define showlist(...) puts (#__VA_ARGS__)
3695 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3696 static void
3697 test_varargs_macros (void)
3698 {
3699   int x = 1234;
3700   int y = 5678;
3701   debug ("Flag");
3702   debug ("X = %d\n", x);
3703   showlist (The first, second, and third items.);
3704   report (x>y, "x is %d but y is %d", x, y);
3705 }
3706
3707 // Check long long types.
3708 #define BIG64 18446744073709551615ull
3709 #define BIG32 4294967295ul
3710 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3711 #if !BIG_OK
3712   your preprocessor is broken;
3713 #endif
3714 #if BIG_OK
3715 #else
3716   your preprocessor is broken;
3717 #endif
3718 static long long int bignum = -9223372036854775807LL;
3719 static unsigned long long int ubignum = BIG64;
3720
3721 struct incomplete_array
3722 {
3723   int datasize;
3724   double data[];
3725 };
3726
3727 struct named_init {
3728   int number;
3729   const wchar_t *name;
3730   double average;
3731 };
3732
3733 typedef const char *ccp;
3734
3735 static inline int
3736 test_restrict (ccp restrict text)
3737 {
3738   // See if C++-style comments work.
3739   // Iterate through items via the restricted pointer.
3740   // Also check for declarations in for loops.
3741   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3742     continue;
3743   return 0;
3744 }
3745
3746 // Check varargs and va_copy.
3747 static void
3748 test_varargs (const char *format, ...)
3749 {
3750   va_list args;
3751   va_start (args, format);
3752   va_list args_copy;
3753   va_copy (args_copy, args);
3754
3755   const char *str;
3756   int number;
3757   float fnumber;
3758
3759   while (*format)
3760     {
3761       switch (*format++)
3762         {
3763         case 's': // string
3764           str = va_arg (args_copy, const char *);
3765           break;
3766         case 'd': // int
3767           number = va_arg (args_copy, int);
3768           break;
3769         case 'f': // float
3770           fnumber = va_arg (args_copy, double);
3771           break;
3772         default:
3773           break;
3774         }
3775     }
3776   va_end (args_copy);
3777   va_end (args);
3778 }
3779
3780 int
3781 main ()
3782 {
3783
3784   // Check bool.
3785   _Bool success = false;
3786
3787   // Check restrict.
3788   if (test_restrict ("String literal") == 0)
3789     success = true;
3790   char *restrict newvar = "Another string";
3791
3792   // Check varargs.
3793   test_varargs ("s, d' f .", "string", 65, 34.234);
3794   test_varargs_macros ();
3795
3796   // Check flexible array members.
3797   struct incomplete_array *ia =
3798     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3799   ia->datasize = 10;
3800   for (int i = 0; i < ia->datasize; ++i)
3801     ia->data[i] = i * 1.234;
3802
3803   // Check named initializers.
3804   struct named_init ni = {
3805     .number = 34,
3806     .name = L"Test wide string",
3807     .average = 543.34343,
3808   };
3809
3810   ni.number = 58;
3811
3812   int dynamic_array[ni.number];
3813   dynamic_array[ni.number - 1] = 543;
3814
3815   // work around unused variable warnings
3816   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3817           || dynamic_array[ni.number - 1] != 543);
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3824 do
3825   CC="$ac_save_CC $ac_arg"
3826   if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_cv_prog_cc_c99=$ac_arg
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext
3830   test "x$ac_cv_prog_cc_c99" != "xno" && break
3831 done
3832 rm -f conftest.$ac_ext
3833 CC=$ac_save_CC
3834
3835 fi
3836 # AC_CACHE_VAL
3837 case "x$ac_cv_prog_cc_c99" in
3838   x)
3839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3841   xno)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3844   *)
3845     CC="$CC $ac_cv_prog_cc_c99"
3846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3847 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3848 esac
3849 if test "x$ac_cv_prog_cc_c99" != xno; then :
3850
3851 fi
3852
3853
3854
3855 ac_ext=c
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3861 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3862 # On Suns, sometimes $CPP names a directory.
3863 if test -n "$CPP" && test -d "$CPP"; then
3864   CPP=
3865 fi
3866 if test -z "$CPP"; then
3867   if ${ac_cv_prog_CPP+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870       # Double quotes because CPP needs to be expanded
3871     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872     do
3873       ac_preproc_ok=false
3874 for ac_c_preproc_warn_flag in '' yes
3875 do
3876   # Use a header file that comes with gcc, so configuring glibc
3877   # with a fresh cross-compiler works.
3878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879   # <limits.h> exists even on freestanding compilers.
3880   # On the NeXT, cc -E runs the code through the compiler's parser,
3881   # not just through cpp. "Syntax error" is here to catch this case.
3882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889                      Syntax error
3890 _ACEOF
3891 if ac_fn_c_try_cpp "$LINENO"; then :
3892
3893 else
3894   # Broken: fails on valid input.
3895 continue
3896 fi
3897 rm -f conftest.err conftest.i conftest.$ac_ext
3898
3899   # OK, works on sane cases.  Now check whether nonexistent headers
3900   # can be detected and how.
3901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if ac_fn_c_try_cpp "$LINENO"; then :
3906   # Broken: success on invalid input.
3907 continue
3908 else
3909   # Passes both tests.
3910 ac_preproc_ok=:
3911 break
3912 fi
3913 rm -f conftest.err conftest.i conftest.$ac_ext
3914
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.i conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then :
3919   break
3920 fi
3921
3922     done
3923     ac_cv_prog_CPP=$CPP
3924
3925 fi
3926   CPP=$ac_cv_prog_CPP
3927 else
3928   ac_cv_prog_CPP=$CPP
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3931 $as_echo "$CPP" >&6; }
3932 ac_preproc_ok=false
3933 for ac_c_preproc_warn_flag in '' yes
3934 do
3935   # Use a header file that comes with gcc, so configuring glibc
3936   # with a fresh cross-compiler works.
3937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938   # <limits.h> exists even on freestanding compilers.
3939   # On the NeXT, cc -E runs the code through the compiler's parser,
3940   # not just through cpp. "Syntax error" is here to catch this case.
3941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h.  */
3943 #ifdef __STDC__
3944 # include <limits.h>
3945 #else
3946 # include <assert.h>
3947 #endif
3948                      Syntax error
3949 _ACEOF
3950 if ac_fn_c_try_cpp "$LINENO"; then :
3951
3952 else
3953   # Broken: fails on valid input.
3954 continue
3955 fi
3956 rm -f conftest.err conftest.i conftest.$ac_ext
3957
3958   # OK, works on sane cases.  Now check whether nonexistent headers
3959   # can be detected and how.
3960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962 #include <ac_nonexistent.h>
3963 _ACEOF
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3965   # Broken: success on invalid input.
3966 continue
3967 else
3968   # Passes both tests.
3969 ac_preproc_ok=:
3970 break
3971 fi
3972 rm -f conftest.err conftest.i conftest.$ac_ext
3973
3974 done
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.i conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then :
3978
3979 else
3980   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details" "$LINENO" 5; }
3984 fi
3985
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3994 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3995 if ${ac_cv_path_GREP+:} false; then :
3996   $as_echo_n "(cached) " >&6
3997 else
3998   if test -z "$GREP"; then
3999   ac_path_GREP_found=false
4000   # Loop through the user's path and test for each of PROGNAME-LIST
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006     for ac_prog in grep ggrep; do
4007     for ac_exec_ext in '' $ac_executable_extensions; do
4008       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010 # Check for GNU ac_path_GREP and select it if it is found.
4011   # Check for GNU $ac_path_GREP
4012 case `"$ac_path_GREP" --version 2>&1` in
4013 *GNU*)
4014   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4015 *)
4016   ac_count=0
4017   $as_echo_n 0123456789 >"conftest.in"
4018   while :
4019   do
4020     cat "conftest.in" "conftest.in" >"conftest.tmp"
4021     mv "conftest.tmp" "conftest.in"
4022     cp "conftest.in" "conftest.nl"
4023     $as_echo 'GREP' >> "conftest.nl"
4024     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026     as_fn_arith $ac_count + 1 && ac_count=$as_val
4027     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028       # Best one so far, save it but keep looking for a better one
4029       ac_cv_path_GREP="$ac_path_GREP"
4030       ac_path_GREP_max=$ac_count
4031     fi
4032     # 10*(2^10) chars as input seems more than enough
4033     test $ac_count -gt 10 && break
4034   done
4035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038       $ac_path_GREP_found && break 3
4039     done
4040   done
4041   done
4042 IFS=$as_save_IFS
4043   if test -z "$ac_cv_path_GREP"; then
4044     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045   fi
4046 else
4047   ac_cv_path_GREP=$GREP
4048 fi
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4052 $as_echo "$ac_cv_path_GREP" >&6; }
4053  GREP="$ac_cv_path_GREP"
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4057 $as_echo_n "checking for egrep... " >&6; }
4058 if ${ac_cv_path_EGREP+:} false; then :
4059   $as_echo_n "(cached) " >&6
4060 else
4061   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4062    then ac_cv_path_EGREP="$GREP -E"
4063    else
4064      if test -z "$EGREP"; then
4065   ac_path_EGREP_found=false
4066   # Loop through the user's path and test for each of PROGNAME-LIST
4067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072     for ac_prog in egrep; do
4073     for ac_exec_ext in '' $ac_executable_extensions; do
4074       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077   # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081 *)
4082   ac_count=0
4083   $as_echo_n 0123456789 >"conftest.in"
4084   while :
4085   do
4086     cat "conftest.in" "conftest.in" >"conftest.tmp"
4087     mv "conftest.tmp" "conftest.in"
4088     cp "conftest.in" "conftest.nl"
4089     $as_echo 'EGREP' >> "conftest.nl"
4090     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092     as_fn_arith $ac_count + 1 && ac_count=$as_val
4093     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094       # Best one so far, save it but keep looking for a better one
4095       ac_cv_path_EGREP="$ac_path_EGREP"
4096       ac_path_EGREP_max=$ac_count
4097     fi
4098     # 10*(2^10) chars as input seems more than enough
4099     test $ac_count -gt 10 && break
4100   done
4101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4103
4104       $ac_path_EGREP_found && break 3
4105     done
4106   done
4107   done
4108 IFS=$as_save_IFS
4109   if test -z "$ac_cv_path_EGREP"; then
4110     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4111   fi
4112 else
4113   ac_cv_path_EGREP=$EGREP
4114 fi
4115
4116    fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4119 $as_echo "$ac_cv_path_EGREP" >&6; }
4120  EGREP="$ac_cv_path_EGREP"
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4124 $as_echo_n "checking for ANSI C header files... " >&6; }
4125 if ${ac_cv_header_stdc+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130 #include <stdlib.h>
4131 #include <stdarg.h>
4132 #include <string.h>
4133 #include <float.h>
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144   ac_cv_header_stdc=yes
4145 else
4146   ac_cv_header_stdc=no
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149
4150 if test $ac_cv_header_stdc = yes; then
4151   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154 #include <string.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "memchr" >/dev/null 2>&1; then :
4159
4160 else
4161   ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <stdlib.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "free" >/dev/null 2>&1; then :
4176
4177 else
4178   ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186   if test "$cross_compiling" = yes; then :
4187   :
4188 else
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 #include <ctype.h>
4192 #include <stdlib.h>
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 #else
4197 # define ISLOWER(c) \
4198                    (('a' <= (c) && (c) <= 'i') \
4199                      || ('j' <= (c) && (c) <= 'r') \
4200                      || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #endif
4203
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 int
4206 main ()
4207 {
4208   int i;
4209   for (i = 0; i < 256; i++)
4210     if (XOR (islower (i), ISLOWER (i))
4211         || toupper (i) != TOUPPER (i))
4212       return 2;
4213   return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_run "$LINENO"; then :
4217
4218 else
4219   ac_cv_header_stdc=no
4220 fi
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4222   conftest.$ac_objext conftest.beam conftest.$ac_ext
4223 fi
4224
4225 fi
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4228 $as_echo "$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4230
4231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4232
4233 fi
4234
4235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237                   inttypes.h stdint.h unistd.h
4238 do :
4239   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4241 "
4242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4243   cat >>confdefs.h <<_ACEOF
4244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 _ACEOF
4246
4247 fi
4248
4249 done
4250
4251
4252
4253
4254
4255
4256 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4257 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4258   CLANGCC="yes"
4259 else
4260   CLANGCC="no"
4261 fi
4262
4263 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4264 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4265   INTELCC="yes"
4266 else
4267   INTELCC="no"
4268 fi
4269
4270 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4271 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4272   SUNCC="yes"
4273 else
4274   SUNCC="no"
4275 fi
4276
4277
4278
4279
4280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4281         if test -n "$ac_tool_prefix"; then
4282   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   case $PKG_CONFIG in
4290   [\\/]* | ?:[\\/]*)
4291   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4292   ;;
4293   *)
4294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299     for ac_exec_ext in '' $ac_executable_extensions; do
4300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306   done
4307 IFS=$as_save_IFS
4308
4309   ;;
4310 esac
4311 fi
4312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4313 if test -n "$PKG_CONFIG"; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4315 $as_echo "$PKG_CONFIG" >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321
4322 fi
4323 if test -z "$ac_cv_path_PKG_CONFIG"; then
4324   ac_pt_PKG_CONFIG=$PKG_CONFIG
4325   # Extract the first word of "pkg-config", so it can be a program name with args.
4326 set dummy pkg-config; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   case $ac_pt_PKG_CONFIG in
4333   [\\/]* | ?:[\\/]*)
4334   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4335   ;;
4336   *)
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342     for ac_exec_ext in '' $ac_executable_extensions; do
4343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349   done
4350 IFS=$as_save_IFS
4351
4352   ;;
4353 esac
4354 fi
4355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4356 if test -n "$ac_pt_PKG_CONFIG"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4358 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364   if test "x$ac_pt_PKG_CONFIG" = x; then
4365     PKG_CONFIG=""
4366   else
4367     case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373     PKG_CONFIG=$ac_pt_PKG_CONFIG
4374   fi
4375 else
4376   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4377 fi
4378
4379 fi
4380 if test -n "$PKG_CONFIG"; then
4381         _pkg_min_version=0.9.0
4382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4383 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4384         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4385                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4387         else
4388                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390                 PKG_CONFIG=""
4391         fi
4392
4393 fi
4394 # Make sure we can run config.sub.
4395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4396   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4399 $as_echo_n "checking build system type... " >&6; }
4400 if ${ac_cv_build+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   ac_build_alias=$build_alias
4404 test "x$ac_build_alias" = x &&
4405   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4406 test "x$ac_build_alias" = x &&
4407   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4409   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4410
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4413 $as_echo "$ac_cv_build" >&6; }
4414 case $ac_cv_build in
4415 *-*-*) ;;
4416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4417 esac
4418 build=$ac_cv_build
4419 ac_save_IFS=$IFS; IFS='-'
4420 set x $ac_cv_build
4421 shift
4422 build_cpu=$1
4423 build_vendor=$2
4424 shift; shift
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4427 build_os=$*
4428 IFS=$ac_save_IFS
4429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4433 $as_echo_n "checking host system type... " >&6; }
4434 if ${ac_cv_host+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   if test "x$host_alias" = x; then
4438   ac_cv_host=$ac_cv_build
4439 else
4440   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4441     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4446 $as_echo "$ac_cv_host" >&6; }
4447 case $ac_cv_host in
4448 *-*-*) ;;
4449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4450 esac
4451 host=$ac_cv_host
4452 ac_save_IFS=$IFS; IFS='-'
4453 set x $ac_cv_host
4454 shift
4455 host_cpu=$1
4456 host_vendor=$2
4457 shift; shift
4458 # Remember, the first character of IFS is used to create $*,
4459 # except with old shells:
4460 host_os=$*
4461 IFS=$ac_save_IFS
4462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467 if ${ac_cv_path_SED+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471      for ac_i in 1 2 3 4 5 6 7; do
4472        ac_script="$ac_script$as_nl$ac_script"
4473      done
4474      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475      { ac_script=; unset ac_script;}
4476      if test -z "$SED"; then
4477   ac_path_SED_found=false
4478   # Loop through the user's path and test for each of PROGNAME-LIST
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484     for ac_prog in sed gsed; do
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4488 # Check for GNU ac_path_SED and select it if it is found.
4489   # Check for GNU $ac_path_SED
4490 case `"$ac_path_SED" --version 2>&1` in
4491 *GNU*)
4492   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4493 *)
4494   ac_count=0
4495   $as_echo_n 0123456789 >"conftest.in"
4496   while :
4497   do
4498     cat "conftest.in" "conftest.in" >"conftest.tmp"
4499     mv "conftest.tmp" "conftest.in"
4500     cp "conftest.in" "conftest.nl"
4501     $as_echo '' >> "conftest.nl"
4502     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504     as_fn_arith $ac_count + 1 && ac_count=$as_val
4505     if test $ac_count -gt ${ac_path_SED_max-0}; then
4506       # Best one so far, save it but keep looking for a better one
4507       ac_cv_path_SED="$ac_path_SED"
4508       ac_path_SED_max=$ac_count
4509     fi
4510     # 10*(2^10) chars as input seems more than enough
4511     test $ac_count -gt 10 && break
4512   done
4513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4515
4516       $ac_path_SED_found && break 3
4517     done
4518   done
4519   done
4520 IFS=$as_save_IFS
4521   if test -z "$ac_cv_path_SED"; then
4522     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4523   fi
4524 else
4525   ac_cv_path_SED=$SED
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530 $as_echo "$ac_cv_path_SED" >&6; }
4531  SED="$ac_cv_path_SED"
4532   rm -f conftest.sed
4533
4534
4535
4536
4537
4538
4539 # Check whether --enable-selective-werror was given.
4540 if test "${enable_selective_werror+set}" = set; then :
4541   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4542 else
4543   SELECTIVE_WERROR=yes
4544 fi
4545
4546
4547
4548
4549
4550 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4551 if test "x$SUNCC" = "xyes"; then
4552     BASE_CFLAGS="-v"
4553 else
4554     BASE_CFLAGS=""
4555 fi
4556
4557 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 xorg_testset_save_CFLAGS="$CFLAGS"
4572
4573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4574         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h.  */
4582 int i;
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585   xorg_cv_cc_flag_unknown_warning_option=yes
4586 else
4587   xorg_cv_cc_flag_unknown_warning_option=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4593         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4594         CFLAGS="$xorg_testset_save_CFLAGS"
4595 fi
4596
4597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4598         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4599                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4600         fi
4601         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 int i;
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612   xorg_cv_cc_flag_unused_command_line_argument=yes
4613 else
4614   xorg_cv_cc_flag_unused_command_line_argument=no
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4620         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4621         CFLAGS="$xorg_testset_save_CFLAGS"
4622 fi
4623
4624 found="no"
4625
4626         if test $found = "no" ; then
4627                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4628                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4629                 fi
4630
4631                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4632                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4633                 fi
4634
4635                 CFLAGS="$CFLAGS -Wall"
4636
4637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4638 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4639                 cacheid=xorg_cv_cc_flag__Wall
4640                 if eval \${$cacheid+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h.  */
4645 int i;
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_link "$LINENO"; then :
4655   eval $cacheid=yes
4656 else
4657   eval $cacheid=no
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext \
4660     conftest$ac_exeext conftest.$ac_ext
4661 fi
4662
4663
4664                 CFLAGS="$xorg_testset_save_CFLAGS"
4665
4666                 eval supported=\$$cacheid
4667                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4668 $as_echo "$supported" >&6; }
4669                 if test "$supported" = "yes" ; then
4670                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4671                         found="yes"
4672                 fi
4673         fi
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689 xorg_testset_save_CFLAGS="$CFLAGS"
4690
4691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4692         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700 int i;
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703   xorg_cv_cc_flag_unknown_warning_option=yes
4704 else
4705   xorg_cv_cc_flag_unknown_warning_option=no
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4711         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4712         CFLAGS="$xorg_testset_save_CFLAGS"
4713 fi
4714
4715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4716         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4717                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4718         fi
4719         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h.  */
4727 int i;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730   xorg_cv_cc_flag_unused_command_line_argument=yes
4731 else
4732   xorg_cv_cc_flag_unused_command_line_argument=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4738         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4739         CFLAGS="$xorg_testset_save_CFLAGS"
4740 fi
4741
4742 found="no"
4743
4744         if test $found = "no" ; then
4745                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4746                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4747                 fi
4748
4749                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4750                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4751                 fi
4752
4753                 CFLAGS="$CFLAGS -Wpointer-arith"
4754
4755                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4756 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4757                 cacheid=xorg_cv_cc_flag__Wpointer_arith
4758                 if eval \${$cacheid+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763 int i;
4764 int
4765 main ()
4766 {
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_link "$LINENO"; then :
4773   eval $cacheid=yes
4774 else
4775   eval $cacheid=no
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext \
4778     conftest$ac_exeext conftest.$ac_ext
4779 fi
4780
4781
4782                 CFLAGS="$xorg_testset_save_CFLAGS"
4783
4784                 eval supported=\$$cacheid
4785                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4786 $as_echo "$supported" >&6; }
4787                 if test "$supported" = "yes" ; then
4788                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4789                         found="yes"
4790                 fi
4791         fi
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807 xorg_testset_save_CFLAGS="$CFLAGS"
4808
4809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4810         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818 int i;
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821   xorg_cv_cc_flag_unknown_warning_option=yes
4822 else
4823   xorg_cv_cc_flag_unknown_warning_option=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4828 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4829         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4830         CFLAGS="$xorg_testset_save_CFLAGS"
4831 fi
4832
4833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4834         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4835                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836         fi
4837         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4839 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4840 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845 int i;
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848   xorg_cv_cc_flag_unused_command_line_argument=yes
4849 else
4850   xorg_cv_cc_flag_unused_command_line_argument=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4855 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4856         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4857         CFLAGS="$xorg_testset_save_CFLAGS"
4858 fi
4859
4860 found="no"
4861
4862         if test $found = "no" ; then
4863                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4864                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4865                 fi
4866
4867                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4868                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869                 fi
4870
4871                 CFLAGS="$CFLAGS -Wmissing-declarations"
4872
4873                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4874 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4875                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4876                 if eval \${$cacheid+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 int i;
4882 int
4883 main ()
4884 {
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_link "$LINENO"; then :
4891   eval $cacheid=yes
4892 else
4893   eval $cacheid=no
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext \
4896     conftest$ac_exeext conftest.$ac_ext
4897 fi
4898
4899
4900                 CFLAGS="$xorg_testset_save_CFLAGS"
4901
4902                 eval supported=\$$cacheid
4903                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4904 $as_echo "$supported" >&6; }
4905                 if test "$supported" = "yes" ; then
4906                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4907                         found="yes"
4908                 fi
4909         fi
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 xorg_testset_save_CFLAGS="$CFLAGS"
4926
4927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4928         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4930 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4931 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h.  */
4936 int i;
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939   xorg_cv_cc_flag_unknown_warning_option=yes
4940 else
4941   xorg_cv_cc_flag_unknown_warning_option=no
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4946 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4947         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4948         CFLAGS="$xorg_testset_save_CFLAGS"
4949 fi
4950
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4952         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4953                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954         fi
4955         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4957 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4958 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h.  */
4963 int i;
4964 _ACEOF
4965 if ac_fn_c_try_compile "$LINENO"; then :
4966   xorg_cv_cc_flag_unused_command_line_argument=yes
4967 else
4968   xorg_cv_cc_flag_unused_command_line_argument=no
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4973 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4974         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4975         CFLAGS="$xorg_testset_save_CFLAGS"
4976 fi
4977
4978 found="no"
4979
4980         if test $found = "no" ; then
4981                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4982                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983                 fi
4984
4985                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4986                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987                 fi
4988
4989                 CFLAGS="$CFLAGS -Wformat=2"
4990
4991                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4992 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4993                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4994                 if eval \${$cacheid+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 int i;
5000 int
5001 main ()
5002 {
5003
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_c_try_link "$LINENO"; then :
5009   eval $cacheid=yes
5010 else
5011   eval $cacheid=no
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext \
5014     conftest$ac_exeext conftest.$ac_ext
5015 fi
5016
5017
5018                 CFLAGS="$xorg_testset_save_CFLAGS"
5019
5020                 eval supported=\$$cacheid
5021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5022 $as_echo "$supported" >&6; }
5023                 if test "$supported" = "yes" ; then
5024                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5025                         found="yes"
5026                 fi
5027         fi
5028
5029         if test $found = "no" ; then
5030                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5031                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032                 fi
5033
5034                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5035                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5036                 fi
5037
5038                 CFLAGS="$CFLAGS -Wformat"
5039
5040                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5041 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5042                 cacheid=xorg_cv_cc_flag__Wformat
5043                 if eval \${$cacheid+:} false; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h.  */
5048 int i;
5049 int
5050 main ()
5051 {
5052
5053   ;
5054   return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_link "$LINENO"; then :
5058   eval $cacheid=yes
5059 else
5060   eval $cacheid=no
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext \
5063     conftest$ac_exeext conftest.$ac_ext
5064 fi
5065
5066
5067                 CFLAGS="$xorg_testset_save_CFLAGS"
5068
5069                 eval supported=\$$cacheid
5070                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5071 $as_echo "$supported" >&6; }
5072                 if test "$supported" = "yes" ; then
5073                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5074                         found="yes"
5075                 fi
5076         fi
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 xorg_testset_save_CFLAGS="$CFLAGS"
5095
5096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5097         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5100 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105 int i;
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108   xorg_cv_cc_flag_unknown_warning_option=yes
5109 else
5110   xorg_cv_cc_flag_unknown_warning_option=no
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5116         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5117         CFLAGS="$xorg_testset_save_CFLAGS"
5118 fi
5119
5120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5121         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123         fi
5124         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h.  */
5132 int i;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135   xorg_cv_cc_flag_unused_command_line_argument=yes
5136 else
5137   xorg_cv_cc_flag_unused_command_line_argument=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5143         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5144         CFLAGS="$xorg_testset_save_CFLAGS"
5145 fi
5146
5147 found="no"
5148
5149         if test $found = "no" ; then
5150                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5151                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152                 fi
5153
5154                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5155                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156                 fi
5157
5158                 CFLAGS="$CFLAGS -Wstrict-prototypes"
5159
5160                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5161 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5162                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5163                 if eval \${$cacheid+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h.  */
5168 int i;
5169 int
5170 main ()
5171 {
5172
5173   ;
5174   return 0;
5175 }
5176 _ACEOF
5177 if ac_fn_c_try_link "$LINENO"; then :
5178   eval $cacheid=yes
5179 else
5180   eval $cacheid=no
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext \
5183     conftest$ac_exeext conftest.$ac_ext
5184 fi
5185
5186
5187                 CFLAGS="$xorg_testset_save_CFLAGS"
5188
5189                 eval supported=\$$cacheid
5190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5191 $as_echo "$supported" >&6; }
5192                 if test "$supported" = "yes" ; then
5193                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5194                         found="yes"
5195                 fi
5196         fi
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 xorg_testset_save_CFLAGS="$CFLAGS"
5213
5214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5215         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h.  */
5223 int i;
5224 _ACEOF
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226   xorg_cv_cc_flag_unknown_warning_option=yes
5227 else
5228   xorg_cv_cc_flag_unknown_warning_option=no
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5234         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5235         CFLAGS="$xorg_testset_save_CFLAGS"
5236 fi
5237
5238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5239         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5240                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241         fi
5242         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h.  */
5250 int i;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253   xorg_cv_cc_flag_unused_command_line_argument=yes
5254 else
5255   xorg_cv_cc_flag_unused_command_line_argument=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5261         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5262         CFLAGS="$xorg_testset_save_CFLAGS"
5263 fi
5264
5265 found="no"
5266
5267         if test $found = "no" ; then
5268                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5269                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270                 fi
5271
5272                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5273                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274                 fi
5275
5276                 CFLAGS="$CFLAGS -Wmissing-prototypes"
5277
5278                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5279 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5280                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5281                 if eval \${$cacheid+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 int i;
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296   eval $cacheid=yes
5297 else
5298   eval $cacheid=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext \
5301     conftest$ac_exeext conftest.$ac_ext
5302 fi
5303
5304
5305                 CFLAGS="$xorg_testset_save_CFLAGS"
5306
5307                 eval supported=\$$cacheid
5308                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309 $as_echo "$supported" >&6; }
5310                 if test "$supported" = "yes" ; then
5311                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5312                         found="yes"
5313                 fi
5314         fi
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 xorg_testset_save_CFLAGS="$CFLAGS"
5331
5332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5333         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h.  */
5341 int i;
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344   xorg_cv_cc_flag_unknown_warning_option=yes
5345 else
5346   xorg_cv_cc_flag_unknown_warning_option=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5352         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5353         CFLAGS="$xorg_testset_save_CFLAGS"
5354 fi
5355
5356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5357         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5358                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359         fi
5360         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 int i;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371   xorg_cv_cc_flag_unused_command_line_argument=yes
5372 else
5373   xorg_cv_cc_flag_unused_command_line_argument=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5379         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5380         CFLAGS="$xorg_testset_save_CFLAGS"
5381 fi
5382
5383 found="no"
5384
5385         if test $found = "no" ; then
5386                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5387                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388                 fi
5389
5390                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5391                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392                 fi
5393
5394                 CFLAGS="$CFLAGS -Wnested-externs"
5395
5396                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5397 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5398                 cacheid=xorg_cv_cc_flag__Wnested_externs
5399                 if eval \${$cacheid+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h.  */
5404 int i;
5405 int
5406 main ()
5407 {
5408
5409   ;
5410   return 0;
5411 }
5412 _ACEOF
5413 if ac_fn_c_try_link "$LINENO"; then :
5414   eval $cacheid=yes
5415 else
5416   eval $cacheid=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext \
5419     conftest$ac_exeext conftest.$ac_ext
5420 fi
5421
5422
5423                 CFLAGS="$xorg_testset_save_CFLAGS"
5424
5425                 eval supported=\$$cacheid
5426                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427 $as_echo "$supported" >&6; }
5428                 if test "$supported" = "yes" ; then
5429                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5430                         found="yes"
5431                 fi
5432         fi
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448 xorg_testset_save_CFLAGS="$CFLAGS"
5449
5450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5451         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h.  */
5459 int i;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462   xorg_cv_cc_flag_unknown_warning_option=yes
5463 else
5464   xorg_cv_cc_flag_unknown_warning_option=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5470         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5471         CFLAGS="$xorg_testset_save_CFLAGS"
5472 fi
5473
5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5475         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5476                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477         fi
5478         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h.  */
5486 int i;
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489   xorg_cv_cc_flag_unused_command_line_argument=yes
5490 else
5491   xorg_cv_cc_flag_unused_command_line_argument=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5497         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5498         CFLAGS="$xorg_testset_save_CFLAGS"
5499 fi
5500
5501 found="no"
5502
5503         if test $found = "no" ; then
5504                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5505                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5506                 fi
5507
5508                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5509                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510                 fi
5511
5512                 CFLAGS="$CFLAGS -Wbad-function-cast"
5513
5514                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5515 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5516                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5517                 if eval \${$cacheid+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522 int i;
5523 int
5524 main ()
5525 {
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_link "$LINENO"; then :
5532   eval $cacheid=yes
5533 else
5534   eval $cacheid=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext \
5537     conftest$ac_exeext conftest.$ac_ext
5538 fi
5539
5540
5541                 CFLAGS="$xorg_testset_save_CFLAGS"
5542
5543                 eval supported=\$$cacheid
5544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5545 $as_echo "$supported" >&6; }
5546                 if test "$supported" = "yes" ; then
5547                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5548                         found="yes"
5549                 fi
5550         fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 xorg_testset_save_CFLAGS="$CFLAGS"
5567
5568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5569         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577 int i;
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580   xorg_cv_cc_flag_unknown_warning_option=yes
5581 else
5582   xorg_cv_cc_flag_unknown_warning_option=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5588         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5589         CFLAGS="$xorg_testset_save_CFLAGS"
5590 fi
5591
5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5593         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595         fi
5596         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604 int i;
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607   xorg_cv_cc_flag_unused_command_line_argument=yes
5608 else
5609   xorg_cv_cc_flag_unused_command_line_argument=no
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5615         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5616         CFLAGS="$xorg_testset_save_CFLAGS"
5617 fi
5618
5619 found="no"
5620
5621         if test $found = "no" ; then
5622                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5623                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624                 fi
5625
5626                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5627                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628                 fi
5629
5630                 CFLAGS="$CFLAGS -Wold-style-definition"
5631
5632                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5633 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5634                 cacheid=xorg_cv_cc_flag__Wold_style_definition
5635                 if eval \${$cacheid+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 int i;
5641 int
5642 main ()
5643 {
5644
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_link "$LINENO"; then :
5650   eval $cacheid=yes
5651 else
5652   eval $cacheid=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext \
5655     conftest$ac_exeext conftest.$ac_ext
5656 fi
5657
5658
5659                 CFLAGS="$xorg_testset_save_CFLAGS"
5660
5661                 eval supported=\$$cacheid
5662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663 $as_echo "$supported" >&6; }
5664                 if test "$supported" = "yes" ; then
5665                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5666                         found="yes"
5667                 fi
5668         fi
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 xorg_testset_save_CFLAGS="$CFLAGS"
5685
5686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5687         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h.  */
5695 int i;
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698   xorg_cv_cc_flag_unknown_warning_option=yes
5699 else
5700   xorg_cv_cc_flag_unknown_warning_option=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5706         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5707         CFLAGS="$xorg_testset_save_CFLAGS"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5711         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5712                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713         fi
5714         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722 int i;
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725   xorg_cv_cc_flag_unused_command_line_argument=yes
5726 else
5727   xorg_cv_cc_flag_unused_command_line_argument=no
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734         CFLAGS="$xorg_testset_save_CFLAGS"
5735 fi
5736
5737 found="no"
5738
5739         if test $found = "no" ; then
5740                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5741                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742                 fi
5743
5744                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5745                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746                 fi
5747
5748                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5749
5750                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5751 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5752                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5753                 if eval \${$cacheid+:} false; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 int i;
5759 int
5760 main ()
5761 {
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_link "$LINENO"; then :
5768   eval $cacheid=yes
5769 else
5770   eval $cacheid=no
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext \
5773     conftest$ac_exeext conftest.$ac_ext
5774 fi
5775
5776
5777                 CFLAGS="$xorg_testset_save_CFLAGS"
5778
5779                 eval supported=\$$cacheid
5780                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5781 $as_echo "$supported" >&6; }
5782                 if test "$supported" = "yes" ; then
5783                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5784                         found="yes"
5785                 fi
5786         fi
5787
5788
5789
5790
5791
5792 # This chunk adds additional warnings that could catch undesired effects.
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h.  */
5817 int i;
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820   xorg_cv_cc_flag_unknown_warning_option=yes
5821 else
5822   xorg_cv_cc_flag_unknown_warning_option=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5828         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5829         CFLAGS="$xorg_testset_save_CFLAGS"
5830 fi
5831
5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5833         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5834                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835         fi
5836         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h.  */
5844 int i;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847   xorg_cv_cc_flag_unused_command_line_argument=yes
5848 else
5849   xorg_cv_cc_flag_unused_command_line_argument=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5855         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5856         CFLAGS="$xorg_testset_save_CFLAGS"
5857 fi
5858
5859 found="no"
5860
5861         if test $found = "no" ; then
5862                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5863                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864                 fi
5865
5866                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5867                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868                 fi
5869
5870                 CFLAGS="$CFLAGS -Wunused"
5871
5872                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5873 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5874                 cacheid=xorg_cv_cc_flag__Wunused
5875                 if eval \${$cacheid+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h.  */
5880 int i;
5881 int
5882 main ()
5883 {
5884
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_link "$LINENO"; then :
5890   eval $cacheid=yes
5891 else
5892   eval $cacheid=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext \
5895     conftest$ac_exeext conftest.$ac_ext
5896 fi
5897
5898
5899                 CFLAGS="$xorg_testset_save_CFLAGS"
5900
5901                 eval supported=\$$cacheid
5902                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5903 $as_echo "$supported" >&6; }
5904                 if test "$supported" = "yes" ; then
5905                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5906                         found="yes"
5907                 fi
5908         fi
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 xorg_testset_save_CFLAGS="$CFLAGS"
5925
5926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5927         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5929 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5930 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h.  */
5935 int i;
5936 _ACEOF
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938   xorg_cv_cc_flag_unknown_warning_option=yes
5939 else
5940   xorg_cv_cc_flag_unknown_warning_option=no
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 fi
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5945 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5946         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5947         CFLAGS="$xorg_testset_save_CFLAGS"
5948 fi
5949
5950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5951         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5952                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5953         fi
5954         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5956 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5957 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962 int i;
5963 _ACEOF
5964 if ac_fn_c_try_compile "$LINENO"; then :
5965   xorg_cv_cc_flag_unused_command_line_argument=yes
5966 else
5967   xorg_cv_cc_flag_unused_command_line_argument=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5972 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5973         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5974         CFLAGS="$xorg_testset_save_CFLAGS"
5975 fi
5976
5977 found="no"
5978
5979         if test $found = "no" ; then
5980                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5981                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982                 fi
5983
5984                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5985                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986                 fi
5987
5988                 CFLAGS="$CFLAGS -Wuninitialized"
5989
5990                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5991 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5992                 cacheid=xorg_cv_cc_flag__Wuninitialized
5993                 if eval \${$cacheid+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998 int i;
5999 int
6000 main ()
6001 {
6002
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_link "$LINENO"; then :
6008   eval $cacheid=yes
6009 else
6010   eval $cacheid=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext \
6013     conftest$ac_exeext conftest.$ac_ext
6014 fi
6015
6016
6017                 CFLAGS="$xorg_testset_save_CFLAGS"
6018
6019                 eval supported=\$$cacheid
6020                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6021 $as_echo "$supported" >&6; }
6022                 if test "$supported" = "yes" ; then
6023                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6024                         found="yes"
6025                 fi
6026         fi
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 xorg_testset_save_CFLAGS="$CFLAGS"
6043
6044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6045         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h.  */
6053 int i;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056   xorg_cv_cc_flag_unknown_warning_option=yes
6057 else
6058   xorg_cv_cc_flag_unknown_warning_option=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6064         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6065         CFLAGS="$xorg_testset_save_CFLAGS"
6066 fi
6067
6068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6069         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071         fi
6072         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h.  */
6080 int i;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083   xorg_cv_cc_flag_unused_command_line_argument=yes
6084 else
6085   xorg_cv_cc_flag_unused_command_line_argument=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6091         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6092         CFLAGS="$xorg_testset_save_CFLAGS"
6093 fi
6094
6095 found="no"
6096
6097         if test $found = "no" ; then
6098                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6099                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100                 fi
6101
6102                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6103                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104                 fi
6105
6106                 CFLAGS="$CFLAGS -Wshadow"
6107
6108                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6109 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6110                 cacheid=xorg_cv_cc_flag__Wshadow
6111                 if eval \${$cacheid+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h.  */
6116 int i;
6117 int
6118 main ()
6119 {
6120
6121   ;
6122   return 0;
6123 }
6124 _ACEOF
6125 if ac_fn_c_try_link "$LINENO"; then :
6126   eval $cacheid=yes
6127 else
6128   eval $cacheid=no
6129 fi
6130 rm -f core conftest.err conftest.$ac_objext \
6131     conftest$ac_exeext conftest.$ac_ext
6132 fi
6133
6134
6135                 CFLAGS="$xorg_testset_save_CFLAGS"
6136
6137                 eval supported=\$$cacheid
6138                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6139 $as_echo "$supported" >&6; }
6140                 if test "$supported" = "yes" ; then
6141                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6142                         found="yes"
6143                 fi
6144         fi
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 xorg_testset_save_CFLAGS="$CFLAGS"
6161
6162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6163         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h.  */
6171 int i;
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174   xorg_cv_cc_flag_unknown_warning_option=yes
6175 else
6176   xorg_cv_cc_flag_unknown_warning_option=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6182         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6183         CFLAGS="$xorg_testset_save_CFLAGS"
6184 fi
6185
6186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6187         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6188                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189         fi
6190         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198 int i;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201   xorg_cv_cc_flag_unused_command_line_argument=yes
6202 else
6203   xorg_cv_cc_flag_unused_command_line_argument=no
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6209         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6210         CFLAGS="$xorg_testset_save_CFLAGS"
6211 fi
6212
6213 found="no"
6214
6215         if test $found = "no" ; then
6216                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6217                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218                 fi
6219
6220                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6221                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222                 fi
6223
6224                 CFLAGS="$CFLAGS -Wcast-qual"
6225
6226                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6227 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6228                 cacheid=xorg_cv_cc_flag__Wcast_qual
6229                 if eval \${$cacheid+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234 int i;
6235 int
6236 main ()
6237 {
6238
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_link "$LINENO"; then :
6244   eval $cacheid=yes
6245 else
6246   eval $cacheid=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext \
6249     conftest$ac_exeext conftest.$ac_ext
6250 fi
6251
6252
6253                 CFLAGS="$xorg_testset_save_CFLAGS"
6254
6255                 eval supported=\$$cacheid
6256                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6257 $as_echo "$supported" >&6; }
6258                 if test "$supported" = "yes" ; then
6259                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6260                         found="yes"
6261                 fi
6262         fi
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278 xorg_testset_save_CFLAGS="$CFLAGS"
6279
6280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6281         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h.  */
6289 int i;
6290 _ACEOF
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292   xorg_cv_cc_flag_unknown_warning_option=yes
6293 else
6294   xorg_cv_cc_flag_unknown_warning_option=no
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6300         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6301         CFLAGS="$xorg_testset_save_CFLAGS"
6302 fi
6303
6304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6305         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6306                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6307         fi
6308         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h.  */
6316 int i;
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319   xorg_cv_cc_flag_unused_command_line_argument=yes
6320 else
6321   xorg_cv_cc_flag_unused_command_line_argument=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6327         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6328         CFLAGS="$xorg_testset_save_CFLAGS"
6329 fi
6330
6331 found="no"
6332
6333         if test $found = "no" ; then
6334                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6335                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336                 fi
6337
6338                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6339                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340                 fi
6341
6342                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6343
6344                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6345 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6346                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6347                 if eval \${$cacheid+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352 int i;
6353 int
6354 main ()
6355 {
6356
6357   ;
6358   return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_link "$LINENO"; then :
6362   eval $cacheid=yes
6363 else
6364   eval $cacheid=no
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext \
6367     conftest$ac_exeext conftest.$ac_ext
6368 fi
6369
6370
6371                 CFLAGS="$xorg_testset_save_CFLAGS"
6372
6373                 eval supported=\$$cacheid
6374                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6375 $as_echo "$supported" >&6; }
6376                 if test "$supported" = "yes" ; then
6377                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6378                         found="yes"
6379                 fi
6380         fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 xorg_testset_save_CFLAGS="$CFLAGS"
6397
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h.  */
6407 int i;
6408 _ACEOF
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410   xorg_cv_cc_flag_unknown_warning_option=yes
6411 else
6412   xorg_cv_cc_flag_unknown_warning_option=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6418         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6419         CFLAGS="$xorg_testset_save_CFLAGS"
6420 fi
6421
6422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6423         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6424                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425         fi
6426         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h.  */
6434 int i;
6435 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437   xorg_cv_cc_flag_unused_command_line_argument=yes
6438 else
6439   xorg_cv_cc_flag_unused_command_line_argument=no
6440 fi
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6445         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6446         CFLAGS="$xorg_testset_save_CFLAGS"
6447 fi
6448
6449 found="no"
6450
6451         if test $found = "no" ; then
6452                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6453                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454                 fi
6455
6456                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6457                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458                 fi
6459
6460                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6461
6462                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6463 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6464                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6465                 if eval \${$cacheid+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470 int i;
6471 int
6472 main ()
6473 {
6474
6475   ;
6476   return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_link "$LINENO"; then :
6480   eval $cacheid=yes
6481 else
6482   eval $cacheid=no
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext \
6485     conftest$ac_exeext conftest.$ac_ext
6486 fi
6487
6488
6489                 CFLAGS="$xorg_testset_save_CFLAGS"
6490
6491                 eval supported=\$$cacheid
6492                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6493 $as_echo "$supported" >&6; }
6494                 if test "$supported" = "yes" ; then
6495                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6496                         found="yes"
6497                 fi
6498         fi
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514 xorg_testset_save_CFLAGS="$CFLAGS"
6515
6516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6517         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h.  */
6525 int i;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528   xorg_cv_cc_flag_unknown_warning_option=yes
6529 else
6530   xorg_cv_cc_flag_unknown_warning_option=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6536         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6537         CFLAGS="$xorg_testset_save_CFLAGS"
6538 fi
6539
6540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6541         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6542                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543         fi
6544         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h.  */
6552 int i;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555   xorg_cv_cc_flag_unused_command_line_argument=yes
6556 else
6557   xorg_cv_cc_flag_unused_command_line_argument=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6563         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6564         CFLAGS="$xorg_testset_save_CFLAGS"
6565 fi
6566
6567 found="no"
6568
6569         if test $found = "no" ; then
6570                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6571                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572                 fi
6573
6574                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6575                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576                 fi
6577
6578                 CFLAGS="$CFLAGS -Wredundant-decls"
6579
6580                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6581 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6582                 cacheid=xorg_cv_cc_flag__Wredundant_decls
6583                 if eval \${$cacheid+:} false; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h.  */
6588 int i;
6589 int
6590 main ()
6591 {
6592
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 if ac_fn_c_try_link "$LINENO"; then :
6598   eval $cacheid=yes
6599 else
6600   eval $cacheid=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext \
6603     conftest$ac_exeext conftest.$ac_ext
6604 fi
6605
6606
6607                 CFLAGS="$xorg_testset_save_CFLAGS"
6608
6609                 eval supported=\$$cacheid
6610                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6611 $as_echo "$supported" >&6; }
6612                 if test "$supported" = "yes" ; then
6613                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6614                         found="yes"
6615                 fi
6616         fi
6617
6618
6619
6620 # These are currently disabled because they are noisy.  They will be enabled
6621 # in the future once the codebase is sufficiently modernized to silence
6622 # them.  For now, I don't want them to drown out the other warnings.
6623 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6624 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6625 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6626
6627 # Turn some warnings into errors, so we don't accidently get successful builds
6628 # when there are problems that should be fixed.
6629
6630 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 xorg_testset_save_CFLAGS="$CFLAGS"
6645
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6647         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h.  */
6655 int i;
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658   xorg_cv_cc_flag_unknown_warning_option=yes
6659 else
6660   xorg_cv_cc_flag_unknown_warning_option=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 fi
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6666         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6667         CFLAGS="$xorg_testset_save_CFLAGS"
6668 fi
6669
6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6671         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673         fi
6674         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h.  */
6682 int i;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685   xorg_cv_cc_flag_unused_command_line_argument=yes
6686 else
6687   xorg_cv_cc_flag_unused_command_line_argument=no
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6693         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6694         CFLAGS="$xorg_testset_save_CFLAGS"
6695 fi
6696
6697 found="no"
6698
6699         if test $found = "no" ; then
6700                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6701                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702                 fi
6703
6704                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6705                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706                 fi
6707
6708                 CFLAGS="$CFLAGS -Werror=implicit"
6709
6710                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6711 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6712                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6713                 if eval \${$cacheid+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h.  */
6718 int i;
6719 int
6720 main ()
6721 {
6722
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_link "$LINENO"; then :
6728   eval $cacheid=yes
6729 else
6730   eval $cacheid=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext \
6733     conftest$ac_exeext conftest.$ac_ext
6734 fi
6735
6736
6737                 CFLAGS="$xorg_testset_save_CFLAGS"
6738
6739                 eval supported=\$$cacheid
6740                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6741 $as_echo "$supported" >&6; }
6742                 if test "$supported" = "yes" ; then
6743                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6744                         found="yes"
6745                 fi
6746         fi
6747
6748         if test $found = "no" ; then
6749                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6750                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751                 fi
6752
6753                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6754                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6755                 fi
6756
6757                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6758
6759                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6760 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6761                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6762                 if eval \${$cacheid+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767 int i;
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_link "$LINENO"; then :
6777   eval $cacheid=yes
6778 else
6779   eval $cacheid=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782     conftest$ac_exeext conftest.$ac_ext
6783 fi
6784
6785
6786                 CFLAGS="$xorg_testset_save_CFLAGS"
6787
6788                 eval supported=\$$cacheid
6789                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6790 $as_echo "$supported" >&6; }
6791                 if test "$supported" = "yes" ; then
6792                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6793                         found="yes"
6794                 fi
6795         fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 xorg_testset_save_CFLAGS="$CFLAGS"
6812
6813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6814         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6816 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6817 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h.  */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825   xorg_cv_cc_flag_unknown_warning_option=yes
6826 else
6827   xorg_cv_cc_flag_unknown_warning_option=no
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6832 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6833         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6834         CFLAGS="$xorg_testset_save_CFLAGS"
6835 fi
6836
6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6838         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6839                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840         fi
6841         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6843 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6844 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849 int i;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852   xorg_cv_cc_flag_unused_command_line_argument=yes
6853 else
6854   xorg_cv_cc_flag_unused_command_line_argument=no
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6859 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6860         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6861         CFLAGS="$xorg_testset_save_CFLAGS"
6862 fi
6863
6864 found="no"
6865
6866         if test $found = "no" ; then
6867                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6868                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869                 fi
6870
6871                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6872                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873                 fi
6874
6875                 CFLAGS="$CFLAGS -Werror=nonnull"
6876
6877                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6878 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6879                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6880                 if eval \${$cacheid+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 int i;
6886 int
6887 main ()
6888 {
6889
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 if ac_fn_c_try_link "$LINENO"; then :
6895   eval $cacheid=yes
6896 else
6897   eval $cacheid=no
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext \
6900     conftest$ac_exeext conftest.$ac_ext
6901 fi
6902
6903
6904                 CFLAGS="$xorg_testset_save_CFLAGS"
6905
6906                 eval supported=\$$cacheid
6907                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908 $as_echo "$supported" >&6; }
6909                 if test "$supported" = "yes" ; then
6910                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6911                         found="yes"
6912                 fi
6913         fi
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 xorg_testset_save_CFLAGS="$CFLAGS"
6930
6931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6932         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940 int i;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943   xorg_cv_cc_flag_unknown_warning_option=yes
6944 else
6945   xorg_cv_cc_flag_unknown_warning_option=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6951         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6952         CFLAGS="$xorg_testset_save_CFLAGS"
6953 fi
6954
6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6956         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958         fi
6959         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967 int i;
6968 _ACEOF
6969 if ac_fn_c_try_compile "$LINENO"; then :
6970   xorg_cv_cc_flag_unused_command_line_argument=yes
6971 else
6972   xorg_cv_cc_flag_unused_command_line_argument=no
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979         CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 found="no"
6983
6984         if test $found = "no" ; then
6985                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6986                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987                 fi
6988
6989                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6990                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991                 fi
6992
6993                 CFLAGS="$CFLAGS -Werror=init-self"
6994
6995                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6996 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6997                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6998                 if eval \${$cacheid+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003 int i;
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_link "$LINENO"; then :
7013   eval $cacheid=yes
7014 else
7015   eval $cacheid=no
7016 fi
7017 rm -f core conftest.err conftest.$ac_objext \
7018     conftest$ac_exeext conftest.$ac_ext
7019 fi
7020
7021
7022                 CFLAGS="$xorg_testset_save_CFLAGS"
7023
7024                 eval supported=\$$cacheid
7025                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7026 $as_echo "$supported" >&6; }
7027                 if test "$supported" = "yes" ; then
7028                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7029                         found="yes"
7030                 fi
7031         fi
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 xorg_testset_save_CFLAGS="$CFLAGS"
7048
7049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7050         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 int i;
7059 _ACEOF
7060 if ac_fn_c_try_compile "$LINENO"; then :
7061   xorg_cv_cc_flag_unknown_warning_option=yes
7062 else
7063   xorg_cv_cc_flag_unknown_warning_option=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7069         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7070         CFLAGS="$xorg_testset_save_CFLAGS"
7071 fi
7072
7073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7074         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076         fi
7077         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h.  */
7085 int i;
7086 _ACEOF
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088   xorg_cv_cc_flag_unused_command_line_argument=yes
7089 else
7090   xorg_cv_cc_flag_unused_command_line_argument=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7096         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7097         CFLAGS="$xorg_testset_save_CFLAGS"
7098 fi
7099
7100 found="no"
7101
7102         if test $found = "no" ; then
7103                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7104                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105                 fi
7106
7107                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7108                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109                 fi
7110
7111                 CFLAGS="$CFLAGS -Werror=main"
7112
7113                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7114 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7115                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7116                 if eval \${$cacheid+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 int i;
7122 int
7123 main ()
7124 {
7125
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 if ac_fn_c_try_link "$LINENO"; then :
7131   eval $cacheid=yes
7132 else
7133   eval $cacheid=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext \
7136     conftest$ac_exeext conftest.$ac_ext
7137 fi
7138
7139
7140                 CFLAGS="$xorg_testset_save_CFLAGS"
7141
7142                 eval supported=\$$cacheid
7143                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7144 $as_echo "$supported" >&6; }
7145                 if test "$supported" = "yes" ; then
7146                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7147                         found="yes"
7148                 fi
7149         fi
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 xorg_testset_save_CFLAGS="$CFLAGS"
7166
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7168         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176 int i;
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179   xorg_cv_cc_flag_unknown_warning_option=yes
7180 else
7181   xorg_cv_cc_flag_unknown_warning_option=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7187         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7188         CFLAGS="$xorg_testset_save_CFLAGS"
7189 fi
7190
7191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7192         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7193                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194         fi
7195         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h.  */
7203 int i;
7204 _ACEOF
7205 if ac_fn_c_try_compile "$LINENO"; then :
7206   xorg_cv_cc_flag_unused_command_line_argument=yes
7207 else
7208   xorg_cv_cc_flag_unused_command_line_argument=no
7209 fi
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7214         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7215         CFLAGS="$xorg_testset_save_CFLAGS"
7216 fi
7217
7218 found="no"
7219
7220         if test $found = "no" ; then
7221                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7222                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223                 fi
7224
7225                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7226                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227                 fi
7228
7229                 CFLAGS="$CFLAGS -Werror=missing-braces"
7230
7231                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7232 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7233                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7234                 if eval \${$cacheid+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239 int i;
7240 int
7241 main ()
7242 {
7243
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_link "$LINENO"; then :
7249   eval $cacheid=yes
7250 else
7251   eval $cacheid=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext \
7254     conftest$ac_exeext conftest.$ac_ext
7255 fi
7256
7257
7258                 CFLAGS="$xorg_testset_save_CFLAGS"
7259
7260                 eval supported=\$$cacheid
7261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7262 $as_echo "$supported" >&6; }
7263                 if test "$supported" = "yes" ; then
7264                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7265                         found="yes"
7266                 fi
7267         fi
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 xorg_testset_save_CFLAGS="$CFLAGS"
7284
7285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7286         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h.  */
7294 int i;
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297   xorg_cv_cc_flag_unknown_warning_option=yes
7298 else
7299   xorg_cv_cc_flag_unknown_warning_option=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7305         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7306         CFLAGS="$xorg_testset_save_CFLAGS"
7307 fi
7308
7309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7310         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312         fi
7313         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h.  */
7321 int i;
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324   xorg_cv_cc_flag_unused_command_line_argument=yes
7325 else
7326   xorg_cv_cc_flag_unused_command_line_argument=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7332         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7333         CFLAGS="$xorg_testset_save_CFLAGS"
7334 fi
7335
7336 found="no"
7337
7338         if test $found = "no" ; then
7339                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7340                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341                 fi
7342
7343                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7344                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345                 fi
7346
7347                 CFLAGS="$CFLAGS -Werror=sequence-point"
7348
7349                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7350 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7351                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7352                 if eval \${$cacheid+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h.  */
7357 int i;
7358 int
7359 main ()
7360 {
7361
7362   ;
7363   return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_link "$LINENO"; then :
7367   eval $cacheid=yes
7368 else
7369   eval $cacheid=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext \
7372     conftest$ac_exeext conftest.$ac_ext
7373 fi
7374
7375
7376                 CFLAGS="$xorg_testset_save_CFLAGS"
7377
7378                 eval supported=\$$cacheid
7379                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7380 $as_echo "$supported" >&6; }
7381                 if test "$supported" = "yes" ; then
7382                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7383                         found="yes"
7384                 fi
7385         fi
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401 xorg_testset_save_CFLAGS="$CFLAGS"
7402
7403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7404         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412 int i;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415   xorg_cv_cc_flag_unknown_warning_option=yes
7416 else
7417   xorg_cv_cc_flag_unknown_warning_option=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7423         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7424         CFLAGS="$xorg_testset_save_CFLAGS"
7425 fi
7426
7427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7428         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7429                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430         fi
7431         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h.  */
7439 int i;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442   xorg_cv_cc_flag_unused_command_line_argument=yes
7443 else
7444   xorg_cv_cc_flag_unused_command_line_argument=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451         CFLAGS="$xorg_testset_save_CFLAGS"
7452 fi
7453
7454 found="no"
7455
7456         if test $found = "no" ; then
7457                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7458                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459                 fi
7460
7461                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7462                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463                 fi
7464
7465                 CFLAGS="$CFLAGS -Werror=return-type"
7466
7467                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7468 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7469                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7470                 if eval \${$cacheid+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 int i;
7476 int
7477 main ()
7478 {
7479
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_link "$LINENO"; then :
7485   eval $cacheid=yes
7486 else
7487   eval $cacheid=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext \
7490     conftest$ac_exeext conftest.$ac_ext
7491 fi
7492
7493
7494                 CFLAGS="$xorg_testset_save_CFLAGS"
7495
7496                 eval supported=\$$cacheid
7497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7498 $as_echo "$supported" >&6; }
7499                 if test "$supported" = "yes" ; then
7500                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7501                         found="yes"
7502                 fi
7503         fi
7504
7505         if test $found = "no" ; then
7506                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7507                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508                 fi
7509
7510                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7511                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512                 fi
7513
7514                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7515
7516                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7517 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7518                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7519                 if eval \${$cacheid+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h.  */
7524 int i;
7525 int
7526 main ()
7527 {
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"; then :
7534   eval $cacheid=yes
7535 else
7536   eval $cacheid=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext \
7539     conftest$ac_exeext conftest.$ac_ext
7540 fi
7541
7542
7543                 CFLAGS="$xorg_testset_save_CFLAGS"
7544
7545                 eval supported=\$$cacheid
7546                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547 $as_echo "$supported" >&6; }
7548                 if test "$supported" = "yes" ; then
7549                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7550                         found="yes"
7551                 fi
7552         fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 xorg_testset_save_CFLAGS="$CFLAGS"
7569
7570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7571         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h.  */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582   xorg_cv_cc_flag_unknown_warning_option=yes
7583 else
7584   xorg_cv_cc_flag_unknown_warning_option=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7590         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7591         CFLAGS="$xorg_testset_save_CFLAGS"
7592 fi
7593
7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7595         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597         fi
7598         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h.  */
7606 int i;
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609   xorg_cv_cc_flag_unused_command_line_argument=yes
7610 else
7611   xorg_cv_cc_flag_unused_command_line_argument=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618         CFLAGS="$xorg_testset_save_CFLAGS"
7619 fi
7620
7621 found="no"
7622
7623         if test $found = "no" ; then
7624                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626                 fi
7627
7628                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7629                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630                 fi
7631
7632                 CFLAGS="$CFLAGS -Werror=trigraphs"
7633
7634                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7635 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7636                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7637                 if eval \${$cacheid+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642 int i;
7643 int
7644 main ()
7645 {
7646
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652   eval $cacheid=yes
7653 else
7654   eval $cacheid=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657     conftest$ac_exeext conftest.$ac_ext
7658 fi
7659
7660
7661                 CFLAGS="$xorg_testset_save_CFLAGS"
7662
7663                 eval supported=\$$cacheid
7664                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665 $as_echo "$supported" >&6; }
7666                 if test "$supported" = "yes" ; then
7667                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7668                         found="yes"
7669                 fi
7670         fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686 xorg_testset_save_CFLAGS="$CFLAGS"
7687
7688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7689         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h.  */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700   xorg_cv_cc_flag_unknown_warning_option=yes
7701 else
7702   xorg_cv_cc_flag_unknown_warning_option=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7708         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7709         CFLAGS="$xorg_testset_save_CFLAGS"
7710 fi
7711
7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7713         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7714                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715         fi
7716         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h.  */
7724 int i;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727   xorg_cv_cc_flag_unused_command_line_argument=yes
7728 else
7729   xorg_cv_cc_flag_unused_command_line_argument=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7735         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7736         CFLAGS="$xorg_testset_save_CFLAGS"
7737 fi
7738
7739 found="no"
7740
7741         if test $found = "no" ; then
7742                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7743                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744                 fi
7745
7746                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7747                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748                 fi
7749
7750                 CFLAGS="$CFLAGS -Werror=array-bounds"
7751
7752                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7753 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7754                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7755                 if eval \${$cacheid+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 int i;
7761 int
7762 main ()
7763 {
7764
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770   eval $cacheid=yes
7771 else
7772   eval $cacheid=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775     conftest$ac_exeext conftest.$ac_ext
7776 fi
7777
7778
7779                 CFLAGS="$xorg_testset_save_CFLAGS"
7780
7781                 eval supported=\$$cacheid
7782                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7783 $as_echo "$supported" >&6; }
7784                 if test "$supported" = "yes" ; then
7785                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7786                         found="yes"
7787                 fi
7788         fi
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804 xorg_testset_save_CFLAGS="$CFLAGS"
7805
7806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7807         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7811   $as_echo_n "(cached) " >&6
7812 else
7813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 int i;
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818   xorg_cv_cc_flag_unknown_warning_option=yes
7819 else
7820   xorg_cv_cc_flag_unknown_warning_option=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827         CFLAGS="$xorg_testset_save_CFLAGS"
7828 fi
7829
7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833         fi
7834         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h.  */
7842 int i;
7843 _ACEOF
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845   xorg_cv_cc_flag_unused_command_line_argument=yes
7846 else
7847   xorg_cv_cc_flag_unused_command_line_argument=no
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7853         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7854         CFLAGS="$xorg_testset_save_CFLAGS"
7855 fi
7856
7857 found="no"
7858
7859         if test $found = "no" ; then
7860                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7861                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862                 fi
7863
7864                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7865                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866                 fi
7867
7868                 CFLAGS="$CFLAGS -Werror=write-strings"
7869
7870                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7871 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7872                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7873                 if eval \${$cacheid+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 int i;
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"; then :
7888   eval $cacheid=yes
7889 else
7890   eval $cacheid=no
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893     conftest$ac_exeext conftest.$ac_ext
7894 fi
7895
7896
7897                 CFLAGS="$xorg_testset_save_CFLAGS"
7898
7899                 eval supported=\$$cacheid
7900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7901 $as_echo "$supported" >&6; }
7902                 if test "$supported" = "yes" ; then
7903                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7904                         found="yes"
7905                 fi
7906         fi
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 xorg_testset_save_CFLAGS="$CFLAGS"
7923
7924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7925         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933 int i;
7934 _ACEOF
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936   xorg_cv_cc_flag_unknown_warning_option=yes
7937 else
7938   xorg_cv_cc_flag_unknown_warning_option=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7944         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7945         CFLAGS="$xorg_testset_save_CFLAGS"
7946 fi
7947
7948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7949         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7950                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951         fi
7952         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h.  */
7960 int i;
7961 _ACEOF
7962 if ac_fn_c_try_compile "$LINENO"; then :
7963   xorg_cv_cc_flag_unused_command_line_argument=yes
7964 else
7965   xorg_cv_cc_flag_unused_command_line_argument=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7971         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7972         CFLAGS="$xorg_testset_save_CFLAGS"
7973 fi
7974
7975 found="no"
7976
7977         if test $found = "no" ; then
7978                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7979                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980                 fi
7981
7982                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7983                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984                 fi
7985
7986                 CFLAGS="$CFLAGS -Werror=address"
7987
7988                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7989 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7990                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7991                 if eval \${$cacheid+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996 int i;
7997 int
7998 main ()
7999 {
8000
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"; then :
8006   eval $cacheid=yes
8007 else
8008   eval $cacheid=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext \
8011     conftest$ac_exeext conftest.$ac_ext
8012 fi
8013
8014
8015                 CFLAGS="$xorg_testset_save_CFLAGS"
8016
8017                 eval supported=\$$cacheid
8018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8019 $as_echo "$supported" >&6; }
8020                 if test "$supported" = "yes" ; then
8021                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8022                         found="yes"
8023                 fi
8024         fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040 xorg_testset_save_CFLAGS="$CFLAGS"
8041
8042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8043         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8047   $as_echo_n "(cached) " >&6
8048 else
8049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h.  */
8051 int i;
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054   xorg_cv_cc_flag_unknown_warning_option=yes
8055 else
8056   xorg_cv_cc_flag_unknown_warning_option=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8062         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8063         CFLAGS="$xorg_testset_save_CFLAGS"
8064 fi
8065
8066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8067         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8068                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069         fi
8070         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h.  */
8078 int i;
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081   xorg_cv_cc_flag_unused_command_line_argument=yes
8082 else
8083   xorg_cv_cc_flag_unused_command_line_argument=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090         CFLAGS="$xorg_testset_save_CFLAGS"
8091 fi
8092
8093 found="no"
8094
8095         if test $found = "no" ; then
8096                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8097                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098                 fi
8099
8100                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8101                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102                 fi
8103
8104                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8105
8106                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8107 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8108                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8109                 if eval \${$cacheid+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h.  */
8114 int i;
8115 int
8116 main ()
8117 {
8118
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 if ac_fn_c_try_link "$LINENO"; then :
8124   eval $cacheid=yes
8125 else
8126   eval $cacheid=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext \
8129     conftest$ac_exeext conftest.$ac_ext
8130 fi
8131
8132
8133                 CFLAGS="$xorg_testset_save_CFLAGS"
8134
8135                 eval supported=\$$cacheid
8136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8137 $as_echo "$supported" >&6; }
8138                 if test "$supported" = "yes" ; then
8139                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8140                         found="yes"
8141                 fi
8142         fi
8143
8144         if test $found = "no" ; then
8145                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147                 fi
8148
8149                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151                 fi
8152
8153                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8154
8155                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8156 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8157                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8158                 if eval \${$cacheid+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163 int i;
8164 int
8165 main ()
8166 {
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"; then :
8173   eval $cacheid=yes
8174 else
8175   eval $cacheid=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext \
8178     conftest$ac_exeext conftest.$ac_ext
8179 fi
8180
8181
8182                 CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184                 eval supported=\$$cacheid
8185                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186 $as_echo "$supported" >&6; }
8187                 if test "$supported" = "yes" ; then
8188                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8189                         found="yes"
8190                 fi
8191         fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h.  */
8218 int i;
8219 _ACEOF
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221   xorg_cv_cc_flag_unknown_warning_option=yes
8222 else
8223   xorg_cv_cc_flag_unknown_warning_option=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8229         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8230         CFLAGS="$xorg_testset_save_CFLAGS"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8234         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236         fi
8237         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245 int i;
8246 _ACEOF
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248   xorg_cv_cc_flag_unused_command_line_argument=yes
8249 else
8250   xorg_cv_cc_flag_unused_command_line_argument=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257         CFLAGS="$xorg_testset_save_CFLAGS"
8258 fi
8259
8260 found="no"
8261
8262         if test $found = "no" ; then
8263                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8264                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265                 fi
8266
8267                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8268                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269                 fi
8270
8271                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8272
8273                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8274 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8275                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8276                 if eval \${$cacheid+:} false; then :
8277   $as_echo_n "(cached) " >&6
8278 else
8279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h.  */
8281 int i;
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291   eval $cacheid=yes
8292 else
8293   eval $cacheid=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296     conftest$ac_exeext conftest.$ac_ext
8297 fi
8298
8299
8300                 CFLAGS="$xorg_testset_save_CFLAGS"
8301
8302                 eval supported=\$$cacheid
8303                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8304 $as_echo "$supported" >&6; }
8305                 if test "$supported" = "yes" ; then
8306                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8307                         found="yes"
8308                 fi
8309         fi
8310
8311  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8312 else
8313 { $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
8314 $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;}
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 xorg_testset_save_CFLAGS="$CFLAGS"
8329
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8331         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8335   $as_echo_n "(cached) " >&6
8336 else
8337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h.  */
8339 int i;
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342   xorg_cv_cc_flag_unknown_warning_option=yes
8343 else
8344   xorg_cv_cc_flag_unknown_warning_option=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8350         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8351         CFLAGS="$xorg_testset_save_CFLAGS"
8352 fi
8353
8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8355         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8356                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8357         fi
8358         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h.  */
8366 int i;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369   xorg_cv_cc_flag_unused_command_line_argument=yes
8370 else
8371   xorg_cv_cc_flag_unused_command_line_argument=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8377         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8378         CFLAGS="$xorg_testset_save_CFLAGS"
8379 fi
8380
8381 found="no"
8382
8383         if test $found = "no" ; then
8384                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8385                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386                 fi
8387
8388                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8389                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390                 fi
8391
8392                 CFLAGS="$CFLAGS -Wimplicit"
8393
8394                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8395 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8396                 cacheid=xorg_cv_cc_flag__Wimplicit
8397                 if eval \${$cacheid+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 int i;
8403 int
8404 main ()
8405 {
8406
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412   eval $cacheid=yes
8413 else
8414   eval $cacheid=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext \
8417     conftest$ac_exeext conftest.$ac_ext
8418 fi
8419
8420
8421                 CFLAGS="$xorg_testset_save_CFLAGS"
8422
8423                 eval supported=\$$cacheid
8424                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8425 $as_echo "$supported" >&6; }
8426                 if test "$supported" = "yes" ; then
8427                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8428                         found="yes"
8429                 fi
8430         fi
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 xorg_testset_save_CFLAGS="$CFLAGS"
8447
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8449         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8453   $as_echo_n "(cached) " >&6
8454 else
8455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h.  */
8457 int i;
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460   xorg_cv_cc_flag_unknown_warning_option=yes
8461 else
8462   xorg_cv_cc_flag_unknown_warning_option=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8468         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8469         CFLAGS="$xorg_testset_save_CFLAGS"
8470 fi
8471
8472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8473         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8474                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475         fi
8476         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484 int i;
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   xorg_cv_cc_flag_unused_command_line_argument=yes
8488 else
8489   xorg_cv_cc_flag_unused_command_line_argument=no
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8495         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8496         CFLAGS="$xorg_testset_save_CFLAGS"
8497 fi
8498
8499 found="no"
8500
8501         if test $found = "no" ; then
8502                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8503                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504                 fi
8505
8506                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8507                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508                 fi
8509
8510                 CFLAGS="$CFLAGS -Wnonnull"
8511
8512                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8513 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8514                 cacheid=xorg_cv_cc_flag__Wnonnull
8515                 if eval \${$cacheid+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520 int i;
8521 int
8522 main ()
8523 {
8524
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 if ac_fn_c_try_link "$LINENO"; then :
8530   eval $cacheid=yes
8531 else
8532   eval $cacheid=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext \
8535     conftest$ac_exeext conftest.$ac_ext
8536 fi
8537
8538
8539                 CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541                 eval supported=\$$cacheid
8542                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543 $as_echo "$supported" >&6; }
8544                 if test "$supported" = "yes" ; then
8545                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8546                         found="yes"
8547                 fi
8548         fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h.  */
8575 int i;
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578   xorg_cv_cc_flag_unknown_warning_option=yes
8579 else
8580   xorg_cv_cc_flag_unknown_warning_option=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8586         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8587         CFLAGS="$xorg_testset_save_CFLAGS"
8588 fi
8589
8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8591         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8592                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8593         fi
8594         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602 int i;
8603 _ACEOF
8604 if ac_fn_c_try_compile "$LINENO"; then :
8605   xorg_cv_cc_flag_unused_command_line_argument=yes
8606 else
8607   xorg_cv_cc_flag_unused_command_line_argument=no
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8613         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8614         CFLAGS="$xorg_testset_save_CFLAGS"
8615 fi
8616
8617 found="no"
8618
8619         if test $found = "no" ; then
8620                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8621                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622                 fi
8623
8624                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8625                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626                 fi
8627
8628                 CFLAGS="$CFLAGS -Winit-self"
8629
8630                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8631 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8632                 cacheid=xorg_cv_cc_flag__Winit_self
8633                 if eval \${$cacheid+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638 int i;
8639 int
8640 main ()
8641 {
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648   eval $cacheid=yes
8649 else
8650   eval $cacheid=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653     conftest$ac_exeext conftest.$ac_ext
8654 fi
8655
8656
8657                 CFLAGS="$xorg_testset_save_CFLAGS"
8658
8659                 eval supported=\$$cacheid
8660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8661 $as_echo "$supported" >&6; }
8662                 if test "$supported" = "yes" ; then
8663                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8664                         found="yes"
8665                 fi
8666         fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682 xorg_testset_save_CFLAGS="$CFLAGS"
8683
8684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8685         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693 int i;
8694 _ACEOF
8695 if ac_fn_c_try_compile "$LINENO"; then :
8696   xorg_cv_cc_flag_unknown_warning_option=yes
8697 else
8698   xorg_cv_cc_flag_unknown_warning_option=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8704         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8705         CFLAGS="$xorg_testset_save_CFLAGS"
8706 fi
8707
8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8709         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711         fi
8712         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h.  */
8720 int i;
8721 _ACEOF
8722 if ac_fn_c_try_compile "$LINENO"; then :
8723   xorg_cv_cc_flag_unused_command_line_argument=yes
8724 else
8725   xorg_cv_cc_flag_unused_command_line_argument=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8731         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8732         CFLAGS="$xorg_testset_save_CFLAGS"
8733 fi
8734
8735 found="no"
8736
8737         if test $found = "no" ; then
8738                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8739                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740                 fi
8741
8742                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8743                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744                 fi
8745
8746                 CFLAGS="$CFLAGS -Wmain"
8747
8748                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8749 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8750                 cacheid=xorg_cv_cc_flag__Wmain
8751                 if eval \${$cacheid+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756 int i;
8757 int
8758 main ()
8759 {
8760
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766   eval $cacheid=yes
8767 else
8768   eval $cacheid=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext \
8771     conftest$ac_exeext conftest.$ac_ext
8772 fi
8773
8774
8775                 CFLAGS="$xorg_testset_save_CFLAGS"
8776
8777                 eval supported=\$$cacheid
8778                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8779 $as_echo "$supported" >&6; }
8780                 if test "$supported" = "yes" ; then
8781                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8782                         found="yes"
8783                 fi
8784         fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 xorg_testset_save_CFLAGS="$CFLAGS"
8801
8802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8803         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h.  */
8811 int i;
8812 _ACEOF
8813 if ac_fn_c_try_compile "$LINENO"; then :
8814   xorg_cv_cc_flag_unknown_warning_option=yes
8815 else
8816   xorg_cv_cc_flag_unknown_warning_option=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8822         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8823         CFLAGS="$xorg_testset_save_CFLAGS"
8824 fi
8825
8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8827         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8828                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8829         fi
8830         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8831         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838 int i;
8839 _ACEOF
8840 if ac_fn_c_try_compile "$LINENO"; then :
8841   xorg_cv_cc_flag_unused_command_line_argument=yes
8842 else
8843   xorg_cv_cc_flag_unused_command_line_argument=no
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8849         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8850         CFLAGS="$xorg_testset_save_CFLAGS"
8851 fi
8852
8853 found="no"
8854
8855         if test $found = "no" ; then
8856                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8857                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8858                 fi
8859
8860                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8861                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862                 fi
8863
8864                 CFLAGS="$CFLAGS -Wmissing-braces"
8865
8866                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8867 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8868                 cacheid=xorg_cv_cc_flag__Wmissing_braces
8869                 if eval \${$cacheid+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874 int i;
8875 int
8876 main ()
8877 {
8878
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884   eval $cacheid=yes
8885 else
8886   eval $cacheid=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889     conftest$ac_exeext conftest.$ac_ext
8890 fi
8891
8892
8893                 CFLAGS="$xorg_testset_save_CFLAGS"
8894
8895                 eval supported=\$$cacheid
8896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8897 $as_echo "$supported" >&6; }
8898                 if test "$supported" = "yes" ; then
8899                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8900                         found="yes"
8901                 fi
8902         fi
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918 xorg_testset_save_CFLAGS="$CFLAGS"
8919
8920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8921         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h.  */
8929 int i;
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932   xorg_cv_cc_flag_unknown_warning_option=yes
8933 else
8934   xorg_cv_cc_flag_unknown_warning_option=no
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8940         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8941         CFLAGS="$xorg_testset_save_CFLAGS"
8942 fi
8943
8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8945         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8946                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947         fi
8948         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h.  */
8956 int i;
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959   xorg_cv_cc_flag_unused_command_line_argument=yes
8960 else
8961   xorg_cv_cc_flag_unused_command_line_argument=no
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8967         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8968         CFLAGS="$xorg_testset_save_CFLAGS"
8969 fi
8970
8971 found="no"
8972
8973         if test $found = "no" ; then
8974                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8975                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976                 fi
8977
8978                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8979                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980                 fi
8981
8982                 CFLAGS="$CFLAGS -Wsequence-point"
8983
8984                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8985 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8986                 cacheid=xorg_cv_cc_flag__Wsequence_point
8987                 if eval \${$cacheid+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992 int i;
8993 int
8994 main ()
8995 {
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002   eval $cacheid=yes
9003 else
9004   eval $cacheid=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext \
9007     conftest$ac_exeext conftest.$ac_ext
9008 fi
9009
9010
9011                 CFLAGS="$xorg_testset_save_CFLAGS"
9012
9013                 eval supported=\$$cacheid
9014                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9015 $as_echo "$supported" >&6; }
9016                 if test "$supported" = "yes" ; then
9017                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9018                         found="yes"
9019                 fi
9020         fi
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036 xorg_testset_save_CFLAGS="$CFLAGS"
9037
9038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9039         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047 int i;
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050   xorg_cv_cc_flag_unknown_warning_option=yes
9051 else
9052   xorg_cv_cc_flag_unknown_warning_option=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 fi
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9058         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9059         CFLAGS="$xorg_testset_save_CFLAGS"
9060 fi
9061
9062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9063         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9064                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065         fi
9066         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9070   $as_echo_n "(cached) " >&6
9071 else
9072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h.  */
9074 int i;
9075 _ACEOF
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077   xorg_cv_cc_flag_unused_command_line_argument=yes
9078 else
9079   xorg_cv_cc_flag_unused_command_line_argument=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9085         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9086         CFLAGS="$xorg_testset_save_CFLAGS"
9087 fi
9088
9089 found="no"
9090
9091         if test $found = "no" ; then
9092                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9093                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094                 fi
9095
9096                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9097                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9098                 fi
9099
9100                 CFLAGS="$CFLAGS -Wreturn-type"
9101
9102                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9103 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9104                 cacheid=xorg_cv_cc_flag__Wreturn_type
9105                 if eval \${$cacheid+:} false; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h.  */
9110 int i;
9111 int
9112 main ()
9113 {
9114
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120   eval $cacheid=yes
9121 else
9122   eval $cacheid=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext \
9125     conftest$ac_exeext conftest.$ac_ext
9126 fi
9127
9128
9129                 CFLAGS="$xorg_testset_save_CFLAGS"
9130
9131                 eval supported=\$$cacheid
9132                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9133 $as_echo "$supported" >&6; }
9134                 if test "$supported" = "yes" ; then
9135                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9136                         found="yes"
9137                 fi
9138         fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 xorg_testset_save_CFLAGS="$CFLAGS"
9155
9156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9157         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h.  */
9165 int i;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168   xorg_cv_cc_flag_unknown_warning_option=yes
9169 else
9170   xorg_cv_cc_flag_unknown_warning_option=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9176         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9177         CFLAGS="$xorg_testset_save_CFLAGS"
9178 fi
9179
9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9181         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9182                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183         fi
9184         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9185         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h.  */
9192 int i;
9193 _ACEOF
9194 if ac_fn_c_try_compile "$LINENO"; then :
9195   xorg_cv_cc_flag_unused_command_line_argument=yes
9196 else
9197   xorg_cv_cc_flag_unused_command_line_argument=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9203         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9204         CFLAGS="$xorg_testset_save_CFLAGS"
9205 fi
9206
9207 found="no"
9208
9209         if test $found = "no" ; then
9210                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9211                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212                 fi
9213
9214                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9215                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216                 fi
9217
9218                 CFLAGS="$CFLAGS -Wtrigraphs"
9219
9220                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9221 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9222                 cacheid=xorg_cv_cc_flag__Wtrigraphs
9223                 if eval \${$cacheid+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228 int i;
9229 int
9230 main ()
9231 {
9232
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238   eval $cacheid=yes
9239 else
9240   eval $cacheid=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext \
9243     conftest$ac_exeext conftest.$ac_ext
9244 fi
9245
9246
9247                 CFLAGS="$xorg_testset_save_CFLAGS"
9248
9249                 eval supported=\$$cacheid
9250                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9251 $as_echo "$supported" >&6; }
9252                 if test "$supported" = "yes" ; then
9253                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9254                         found="yes"
9255                 fi
9256         fi
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272 xorg_testset_save_CFLAGS="$CFLAGS"
9273
9274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9275         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h.  */
9283 int i;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"; then :
9286   xorg_cv_cc_flag_unknown_warning_option=yes
9287 else
9288   xorg_cv_cc_flag_unknown_warning_option=no
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9294         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9295         CFLAGS="$xorg_testset_save_CFLAGS"
9296 fi
9297
9298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9299         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9300                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301         fi
9302         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h.  */
9310 int i;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313   xorg_cv_cc_flag_unused_command_line_argument=yes
9314 else
9315   xorg_cv_cc_flag_unused_command_line_argument=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9321         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9322         CFLAGS="$xorg_testset_save_CFLAGS"
9323 fi
9324
9325 found="no"
9326
9327         if test $found = "no" ; then
9328                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9329                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330                 fi
9331
9332                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9333                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334                 fi
9335
9336                 CFLAGS="$CFLAGS -Warray-bounds"
9337
9338                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9339 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9340                 cacheid=xorg_cv_cc_flag__Warray_bounds
9341                 if eval \${$cacheid+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h.  */
9346 int i;
9347 int
9348 main ()
9349 {
9350
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 if ac_fn_c_try_link "$LINENO"; then :
9356   eval $cacheid=yes
9357 else
9358   eval $cacheid=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361     conftest$ac_exeext conftest.$ac_ext
9362 fi
9363
9364
9365                 CFLAGS="$xorg_testset_save_CFLAGS"
9366
9367                 eval supported=\$$cacheid
9368                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9369 $as_echo "$supported" >&6; }
9370                 if test "$supported" = "yes" ; then
9371                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9372                         found="yes"
9373                 fi
9374         fi
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390 xorg_testset_save_CFLAGS="$CFLAGS"
9391
9392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9393         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9397   $as_echo_n "(cached) " >&6
9398 else
9399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401 int i;
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404   xorg_cv_cc_flag_unknown_warning_option=yes
9405 else
9406   xorg_cv_cc_flag_unknown_warning_option=no
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 fi
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9412         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9413         CFLAGS="$xorg_testset_save_CFLAGS"
9414 fi
9415
9416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9417         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9418                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9419         fi
9420         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9428 int i;
9429 _ACEOF
9430 if ac_fn_c_try_compile "$LINENO"; then :
9431   xorg_cv_cc_flag_unused_command_line_argument=yes
9432 else
9433   xorg_cv_cc_flag_unused_command_line_argument=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436 fi
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9439         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9440         CFLAGS="$xorg_testset_save_CFLAGS"
9441 fi
9442
9443 found="no"
9444
9445         if test $found = "no" ; then
9446                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9447                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448                 fi
9449
9450                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9451                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452                 fi
9453
9454                 CFLAGS="$CFLAGS -Wwrite-strings"
9455
9456                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9457 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9458                 cacheid=xorg_cv_cc_flag__Wwrite_strings
9459                 if eval \${$cacheid+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464 int i;
9465 int
9466 main ()
9467 {
9468
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474   eval $cacheid=yes
9475 else
9476   eval $cacheid=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479     conftest$ac_exeext conftest.$ac_ext
9480 fi
9481
9482
9483                 CFLAGS="$xorg_testset_save_CFLAGS"
9484
9485                 eval supported=\$$cacheid
9486                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9487 $as_echo "$supported" >&6; }
9488                 if test "$supported" = "yes" ; then
9489                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9490                         found="yes"
9491                 fi
9492         fi
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508 xorg_testset_save_CFLAGS="$CFLAGS"
9509
9510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9511         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h.  */
9519 int i;
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522   xorg_cv_cc_flag_unknown_warning_option=yes
9523 else
9524   xorg_cv_cc_flag_unknown_warning_option=no
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9530         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9531         CFLAGS="$xorg_testset_save_CFLAGS"
9532 fi
9533
9534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9535         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9536                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9537         fi
9538         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9542   $as_echo_n "(cached) " >&6
9543 else
9544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h.  */
9546 int i;
9547 _ACEOF
9548 if ac_fn_c_try_compile "$LINENO"; then :
9549   xorg_cv_cc_flag_unused_command_line_argument=yes
9550 else
9551   xorg_cv_cc_flag_unused_command_line_argument=no
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9557         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9558         CFLAGS="$xorg_testset_save_CFLAGS"
9559 fi
9560
9561 found="no"
9562
9563         if test $found = "no" ; then
9564                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9565                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566                 fi
9567
9568                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9569                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570                 fi
9571
9572                 CFLAGS="$CFLAGS -Waddress"
9573
9574                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9575 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9576                 cacheid=xorg_cv_cc_flag__Waddress
9577                 if eval \${$cacheid+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h.  */
9582 int i;
9583 int
9584 main ()
9585 {
9586
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9592   eval $cacheid=yes
9593 else
9594   eval $cacheid=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597     conftest$ac_exeext conftest.$ac_ext
9598 fi
9599
9600
9601                 CFLAGS="$xorg_testset_save_CFLAGS"
9602
9603                 eval supported=\$$cacheid
9604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9605 $as_echo "$supported" >&6; }
9606                 if test "$supported" = "yes" ; then
9607                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9608                         found="yes"
9609                 fi
9610         fi
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626 xorg_testset_save_CFLAGS="$CFLAGS"
9627
9628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9629         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h.  */
9637 int i;
9638 _ACEOF
9639 if ac_fn_c_try_compile "$LINENO"; then :
9640   xorg_cv_cc_flag_unknown_warning_option=yes
9641 else
9642   xorg_cv_cc_flag_unknown_warning_option=no
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9648         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9649         CFLAGS="$xorg_testset_save_CFLAGS"
9650 fi
9651
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9653         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655         fi
9656         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h.  */
9664 int i;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667   xorg_cv_cc_flag_unused_command_line_argument=yes
9668 else
9669   xorg_cv_cc_flag_unused_command_line_argument=no
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9675         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9676         CFLAGS="$xorg_testset_save_CFLAGS"
9677 fi
9678
9679 found="no"
9680
9681         if test $found = "no" ; then
9682                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9683                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684                 fi
9685
9686                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9687                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688                 fi
9689
9690                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9691
9692                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9693 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9694                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9695                 if eval \${$cacheid+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700 int i;
9701 int
9702 main ()
9703 {
9704
9705   ;
9706   return 0;
9707 }
9708 _ACEOF
9709 if ac_fn_c_try_link "$LINENO"; then :
9710   eval $cacheid=yes
9711 else
9712   eval $cacheid=no
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext \
9715     conftest$ac_exeext conftest.$ac_ext
9716 fi
9717
9718
9719                 CFLAGS="$xorg_testset_save_CFLAGS"
9720
9721                 eval supported=\$$cacheid
9722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9723 $as_echo "$supported" >&6; }
9724                 if test "$supported" = "yes" ; then
9725                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9726                         found="yes"
9727                 fi
9728         fi
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744 xorg_testset_save_CFLAGS="$CFLAGS"
9745
9746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9747         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h.  */
9755 int i;
9756 _ACEOF
9757 if ac_fn_c_try_compile "$LINENO"; then :
9758   xorg_cv_cc_flag_unknown_warning_option=yes
9759 else
9760   xorg_cv_cc_flag_unknown_warning_option=no
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9766         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9767         CFLAGS="$xorg_testset_save_CFLAGS"
9768 fi
9769
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9771         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9772                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773         fi
9774         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782 int i;
9783 _ACEOF
9784 if ac_fn_c_try_compile "$LINENO"; then :
9785   xorg_cv_cc_flag_unused_command_line_argument=yes
9786 else
9787   xorg_cv_cc_flag_unused_command_line_argument=no
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9793         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9794         CFLAGS="$xorg_testset_save_CFLAGS"
9795 fi
9796
9797 found="no"
9798
9799         if test $found = "no" ; then
9800                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9801                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802                 fi
9803
9804                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9805                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806                 fi
9807
9808                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9809
9810                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9811 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9812                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9813                 if eval \${$cacheid+:} false; then :
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818 int i;
9819 int
9820 main ()
9821 {
9822
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_link "$LINENO"; then :
9828   eval $cacheid=yes
9829 else
9830   eval $cacheid=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext \
9833     conftest$ac_exeext conftest.$ac_ext
9834 fi
9835
9836
9837                 CFLAGS="$xorg_testset_save_CFLAGS"
9838
9839                 eval supported=\$$cacheid
9840                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9841 $as_echo "$supported" >&6; }
9842                 if test "$supported" = "yes" ; then
9843                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9844                         found="yes"
9845                 fi
9846         fi
9847
9848
9849 fi
9850
9851
9852
9853
9854
9855
9856
9857                 CWARNFLAGS="$BASE_CFLAGS"
9858                 if  test "x$GCC" = xyes ; then
9859                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9860                 fi
9861
9862
9863
9864
9865
9866
9867
9868
9869 # Check whether --enable-strict-compilation was given.
9870 if test "${enable_strict_compilation+set}" = set; then :
9871   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9872 else
9873   STRICT_COMPILE=no
9874 fi
9875
9876
9877
9878
9879
9880
9881 STRICT_CFLAGS=""
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 xorg_testset_save_CFLAGS="$CFLAGS"
9896
9897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9898         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h.  */
9906 int i;
9907 _ACEOF
9908 if ac_fn_c_try_compile "$LINENO"; then :
9909   xorg_cv_cc_flag_unknown_warning_option=yes
9910 else
9911   xorg_cv_cc_flag_unknown_warning_option=no
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9917         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9918         CFLAGS="$xorg_testset_save_CFLAGS"
9919 fi
9920
9921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9922         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924         fi
9925         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h.  */
9933 int i;
9934 _ACEOF
9935 if ac_fn_c_try_compile "$LINENO"; then :
9936   xorg_cv_cc_flag_unused_command_line_argument=yes
9937 else
9938   xorg_cv_cc_flag_unused_command_line_argument=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945         CFLAGS="$xorg_testset_save_CFLAGS"
9946 fi
9947
9948 found="no"
9949
9950         if test $found = "no" ; then
9951                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9952                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953                 fi
9954
9955                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9956                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957                 fi
9958
9959                 CFLAGS="$CFLAGS -pedantic"
9960
9961                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9962 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9963                 cacheid=xorg_cv_cc_flag__pedantic
9964                 if eval \${$cacheid+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h.  */
9969 int i;
9970 int
9971 main ()
9972 {
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 if ac_fn_c_try_link "$LINENO"; then :
9979   eval $cacheid=yes
9980 else
9981   eval $cacheid=no
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext \
9984     conftest$ac_exeext conftest.$ac_ext
9985 fi
9986
9987
9988                 CFLAGS="$xorg_testset_save_CFLAGS"
9989
9990                 eval supported=\$$cacheid
9991                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9992 $as_echo "$supported" >&6; }
9993                 if test "$supported" = "yes" ; then
9994                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9995                         found="yes"
9996                 fi
9997         fi
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013 xorg_testset_save_CFLAGS="$CFLAGS"
10014
10015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10016         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10018 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10019 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10020   $as_echo_n "(cached) " >&6
10021 else
10022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h.  */
10024 int i;
10025 _ACEOF
10026 if ac_fn_c_try_compile "$LINENO"; then :
10027   xorg_cv_cc_flag_unknown_warning_option=yes
10028 else
10029   xorg_cv_cc_flag_unknown_warning_option=no
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10034 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10035         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10036         CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10040         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042         fi
10043         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10045 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10046 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h.  */
10051 int i;
10052 _ACEOF
10053 if ac_fn_c_try_compile "$LINENO"; then :
10054   xorg_cv_cc_flag_unused_command_line_argument=yes
10055 else
10056   xorg_cv_cc_flag_unused_command_line_argument=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10061 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10062         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10063         CFLAGS="$xorg_testset_save_CFLAGS"
10064 fi
10065
10066 found="no"
10067
10068         if test $found = "no" ; then
10069                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10070                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071                 fi
10072
10073                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10074                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075                 fi
10076
10077                 CFLAGS="$CFLAGS -Werror"
10078
10079                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10080 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10081                 cacheid=xorg_cv_cc_flag__Werror
10082                 if eval \${$cacheid+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h.  */
10087 int i;
10088 int
10089 main ()
10090 {
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097   eval $cacheid=yes
10098 else
10099   eval $cacheid=no
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102     conftest$ac_exeext conftest.$ac_ext
10103 fi
10104
10105
10106                 CFLAGS="$xorg_testset_save_CFLAGS"
10107
10108                 eval supported=\$$cacheid
10109                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10110 $as_echo "$supported" >&6; }
10111                 if test "$supported" = "yes" ; then
10112                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10113                         found="yes"
10114                 fi
10115         fi
10116
10117         if test $found = "no" ; then
10118                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10119                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120                 fi
10121
10122                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10123                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124                 fi
10125
10126                 CFLAGS="$CFLAGS -errwarn"
10127
10128                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10129 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10130                 cacheid=xorg_cv_cc_flag__errwarn
10131                 if eval \${$cacheid+:} false; then :
10132   $as_echo_n "(cached) " >&6
10133 else
10134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136 int i;
10137 int
10138 main ()
10139 {
10140
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"; then :
10146   eval $cacheid=yes
10147 else
10148   eval $cacheid=no
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext \
10151     conftest$ac_exeext conftest.$ac_ext
10152 fi
10153
10154
10155                 CFLAGS="$xorg_testset_save_CFLAGS"
10156
10157                 eval supported=\$$cacheid
10158                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10159 $as_echo "$supported" >&6; }
10160                 if test "$supported" = "yes" ; then
10161                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10162                         found="yes"
10163                 fi
10164         fi
10165
10166
10167
10168 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10169 # activate it with -Werror, so we add it here explicitly.
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 xorg_testset_save_CFLAGS="$CFLAGS"
10184
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h.  */
10194 int i;
10195 _ACEOF
10196 if ac_fn_c_try_compile "$LINENO"; then :
10197   xorg_cv_cc_flag_unknown_warning_option=yes
10198 else
10199   xorg_cv_cc_flag_unknown_warning_option=no
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10205         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10206         CFLAGS="$xorg_testset_save_CFLAGS"
10207 fi
10208
10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10210         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10211                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212         fi
10213         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h.  */
10221 int i;
10222 _ACEOF
10223 if ac_fn_c_try_compile "$LINENO"; then :
10224   xorg_cv_cc_flag_unused_command_line_argument=yes
10225 else
10226   xorg_cv_cc_flag_unused_command_line_argument=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10232         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10233         CFLAGS="$xorg_testset_save_CFLAGS"
10234 fi
10235
10236 found="no"
10237
10238         if test $found = "no" ; then
10239                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10240                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241                 fi
10242
10243                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10244                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245                 fi
10246
10247                 CFLAGS="$CFLAGS -Werror=attributes"
10248
10249                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10250 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10251                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10252                 if eval \${$cacheid+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h.  */
10257 int i;
10258 int
10259 main ()
10260 {
10261
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267   eval $cacheid=yes
10268 else
10269   eval $cacheid=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272     conftest$ac_exeext conftest.$ac_ext
10273 fi
10274
10275
10276                 CFLAGS="$xorg_testset_save_CFLAGS"
10277
10278                 eval supported=\$$cacheid
10279                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10280 $as_echo "$supported" >&6; }
10281                 if test "$supported" = "yes" ; then
10282                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10283                         found="yes"
10284                 fi
10285         fi
10286
10287
10288
10289 if test "x$STRICT_COMPILE" = "xyes"; then
10290     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10291     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10292 fi
10293
10294
10295
10296
10297
10298
10299 cat >>confdefs.h <<_ACEOF
10300 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10301 _ACEOF
10302
10303         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10304         if test "x$PVM" = "x"; then
10305                 PVM="0"
10306         fi
10307
10308 cat >>confdefs.h <<_ACEOF
10309 #define PACKAGE_VERSION_MINOR $PVM
10310 _ACEOF
10311
10312         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10313         if test "x$PVP" = "x"; then
10314                 PVP="0"
10315         fi
10316
10317 cat >>confdefs.h <<_ACEOF
10318 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10319 _ACEOF
10320
10321
10322
10323 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10324 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10325 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10326 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10327
10328
10329
10330
10331 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10332 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10333 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10334 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10335 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10336
10337
10338
10339
10340
10341
10342 if test x$APP_MAN_SUFFIX = x    ; then
10343     APP_MAN_SUFFIX=1
10344 fi
10345 if test x$APP_MAN_DIR = x    ; then
10346     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10347 fi
10348
10349 if test x$LIB_MAN_SUFFIX = x    ; then
10350     LIB_MAN_SUFFIX=3
10351 fi
10352 if test x$LIB_MAN_DIR = x    ; then
10353     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10354 fi
10355
10356 if test x$FILE_MAN_SUFFIX = x    ; then
10357     case $host_os in
10358         solaris*)       FILE_MAN_SUFFIX=4  ;;
10359         *)              FILE_MAN_SUFFIX=5  ;;
10360     esac
10361 fi
10362 if test x$FILE_MAN_DIR = x    ; then
10363     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10364 fi
10365
10366 if test x$MISC_MAN_SUFFIX = x    ; then
10367     case $host_os in
10368         solaris*)       MISC_MAN_SUFFIX=5  ;;
10369         *)              MISC_MAN_SUFFIX=7  ;;
10370     esac
10371 fi
10372 if test x$MISC_MAN_DIR = x    ; then
10373     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10374 fi
10375
10376 if test x$DRIVER_MAN_SUFFIX = x    ; then
10377     case $host_os in
10378         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
10379         *)              DRIVER_MAN_SUFFIX=4  ;;
10380     esac
10381 fi
10382 if test x$DRIVER_MAN_DIR = x    ; then
10383     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10384 fi
10385
10386 if test x$ADMIN_MAN_SUFFIX = x    ; then
10387     case $host_os in
10388         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
10389         *)              ADMIN_MAN_SUFFIX=8  ;;
10390     esac
10391 fi
10392 if test x$ADMIN_MAN_DIR = x    ; then
10393     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10394 fi
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 XORG_MAN_PAGE="X Version 11"
10411
10412 MAN_SUBSTS="\
10413         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10414         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10415         -e 's|__xservername__|Xorg|g' \
10416         -e 's|__xconfigfile__|xorg.conf|g' \
10417         -e 's|__projectroot__|\$(prefix)|g' \
10418         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10419         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10420         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10421         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10422         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10423         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10424         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10425
10426
10427
10428 # Check whether --enable-silent-rules was given.
10429 if test "${enable_silent_rules+set}" = set; then :
10430   enableval=$enable_silent_rules;
10431 fi
10432
10433 case $enable_silent_rules in
10434 yes) AM_DEFAULT_VERBOSITY=0;;
10435 no)  AM_DEFAULT_VERBOSITY=1;;
10436 *)   AM_DEFAULT_VERBOSITY=0;;
10437 esac
10438 AM_BACKSLASH='\'
10439
10440
10441
10442
10443 # Check whether --enable-specs was given.
10444 if test "${enable_specs+set}" = set; then :
10445   enableval=$enable_specs; build_specs=$enableval
10446 else
10447   build_specs=yes
10448 fi
10449
10450
10451  if test x$build_specs = xyes; then
10452   ENABLE_SPECS_TRUE=
10453   ENABLE_SPECS_FALSE='#'
10454 else
10455   ENABLE_SPECS_TRUE='#'
10456   ENABLE_SPECS_FALSE=
10457 fi
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
10460 $as_echo_n "checking whether to build functional specifications... " >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
10462 $as_echo "$build_specs" >&6; }
10463
10464
10465
10466
10467
10468 # Check whether --with-xmlto was given.
10469 if test "${with_xmlto+set}" = set; then :
10470   withval=$with_xmlto; use_xmlto=$withval
10471 else
10472   use_xmlto=auto
10473 fi
10474
10475
10476
10477 if test "x$use_xmlto" = x"auto"; then
10478    # Extract the first word of "xmlto", so it can be a program name with args.
10479 set dummy xmlto; 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_XMLTO+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   case $XMLTO in
10486   [\\/]* | ?:[\\/]*)
10487   ac_cv_path_XMLTO="$XMLTO" # 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_XMLTO="$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 XMLTO=$ac_cv_path_XMLTO
10509 if test -n "$XMLTO"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10511 $as_echo "$XMLTO" >&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 "x$XMLTO" = "x"; then
10519         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10520 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10521         have_xmlto=no
10522    else
10523         have_xmlto=yes
10524    fi
10525 elif test "x$use_xmlto" = x"yes" ; then
10526    # Extract the first word of "xmlto", so it can be a program name with args.
10527 set dummy xmlto; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_XMLTO+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   case $XMLTO in
10534   [\\/]* | ?:[\\/]*)
10535   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10536   ;;
10537   *)
10538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541   IFS=$as_save_IFS
10542   test -z "$as_dir" && as_dir=.
10543     for ac_exec_ext in '' $ac_executable_extensions; do
10544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547     break 2
10548   fi
10549 done
10550   done
10551 IFS=$as_save_IFS
10552
10553   ;;
10554 esac
10555 fi
10556 XMLTO=$ac_cv_path_XMLTO
10557 if test -n "$XMLTO"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10559 $as_echo "$XMLTO" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564
10565
10566    if test "x$XMLTO" = "x"; then
10567         as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10568    fi
10569    have_xmlto=yes
10570 elif test "x$use_xmlto" = x"no" ; then
10571    if test "x$XMLTO" != "x"; then
10572       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10573 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10574    fi
10575    have_xmlto=no
10576 else
10577    as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10578 fi
10579
10580 # Test for a minimum version of xmlto, if provided.
10581 if test "$have_xmlto" = yes; then
10582     # scrape the xmlto version
10583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10584 $as_echo_n "checking the xmlto version... " >&6; }
10585     xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10587 $as_echo "$xmlto_version" >&6; }
10588     as_arg_v1=$xmlto_version
10589 as_arg_v2=0.0.22
10590 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10591 case $? in #(
10592   1) :
10593     if test "x$use_xmlto" = xauto; then
10594             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10595 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10596             have_xmlto=no
10597         else
10598             as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10599         fi ;; #(
10600   0) :
10601      ;; #(
10602   2) :
10603      ;; #(
10604   *) :
10605      ;;
10606 esac
10607 fi
10608
10609 # Test for the ability of xmlto to generate a text target
10610 have_xmlto_text=no
10611 cat > conftest.xml << "EOF"
10612 EOF
10613 if test "$have_xmlto" = yes; then :
10614   if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10615   have_xmlto_text=yes
10616 else
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10618 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10619 fi
10620 fi
10621 rm -f conftest.xml
10622  if test $have_xmlto_text = yes; then
10623   HAVE_XMLTO_TEXT_TRUE=
10624   HAVE_XMLTO_TEXT_FALSE='#'
10625 else
10626   HAVE_XMLTO_TEXT_TRUE='#'
10627   HAVE_XMLTO_TEXT_FALSE=
10628 fi
10629
10630  if test "$have_xmlto" = yes; then
10631   HAVE_XMLTO_TRUE=
10632   HAVE_XMLTO_FALSE='#'
10633 else
10634   HAVE_XMLTO_TRUE='#'
10635   HAVE_XMLTO_FALSE=
10636 fi
10637
10638
10639
10640
10641
10642
10643 # Check whether --with-fop was given.
10644 if test "${with_fop+set}" = set; then :
10645   withval=$with_fop; use_fop=$withval
10646 else
10647   use_fop=auto
10648 fi
10649
10650
10651
10652 if test "x$use_fop" = x"auto"; then
10653    # Extract the first word of "fop", so it can be a program name with args.
10654 set dummy fop; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_path_FOP+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   case $FOP in
10661   [\\/]* | ?:[\\/]*)
10662   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10663   ;;
10664   *)
10665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668   IFS=$as_save_IFS
10669   test -z "$as_dir" && as_dir=.
10670     for ac_exec_ext in '' $ac_executable_extensions; do
10671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674     break 2
10675   fi
10676 done
10677   done
10678 IFS=$as_save_IFS
10679
10680   ;;
10681 esac
10682 fi
10683 FOP=$ac_cv_path_FOP
10684 if test -n "$FOP"; then
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10686 $as_echo "$FOP" >&6; }
10687 else
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691
10692
10693    if test "x$FOP" = "x"; then
10694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
10695 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
10696         have_fop=no
10697    else
10698         have_fop=yes
10699    fi
10700 elif test "x$use_fop" = x"yes" ; then
10701    # Extract the first word of "fop", so it can be a program name with args.
10702 set dummy fop; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_path_FOP+:} false; then :
10706   $as_echo_n "(cached) " >&6
10707 else
10708   case $FOP in
10709   [\\/]* | ?:[\\/]*)
10710   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10711   ;;
10712   *)
10713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10715 do
10716   IFS=$as_save_IFS
10717   test -z "$as_dir" && as_dir=.
10718     for ac_exec_ext in '' $ac_executable_extensions; do
10719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722     break 2
10723   fi
10724 done
10725   done
10726 IFS=$as_save_IFS
10727
10728   ;;
10729 esac
10730 fi
10731 FOP=$ac_cv_path_FOP
10732 if test -n "$FOP"; then
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
10734 $as_echo "$FOP" >&6; }
10735 else
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 fi
10739
10740
10741    if test "x$FOP" = "x"; then
10742         as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
10743    fi
10744    have_fop=yes
10745 elif test "x$use_fop" = x"no" ; then
10746    if test "x$FOP" != "x"; then
10747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
10748 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
10749    fi
10750    have_fop=no
10751 else
10752    as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
10753 fi
10754
10755 # Test for a minimum version of fop, if provided.
10756
10757  if test "$have_fop" = yes; then
10758   HAVE_FOP_TRUE=
10759   HAVE_FOP_FALSE='#'
10760 else
10761   HAVE_FOP_TRUE='#'
10762   HAVE_FOP_FALSE=
10763 fi
10764
10765
10766
10767
10768 # Preserves the interface, should it be implemented later
10769
10770
10771
10772 # Check whether --with-xsltproc was given.
10773 if test "${with_xsltproc+set}" = set; then :
10774   withval=$with_xsltproc; use_xsltproc=$withval
10775 else
10776   use_xsltproc=auto
10777 fi
10778
10779
10780
10781 if test "x$use_xsltproc" = x"auto"; then
10782    # Extract the first word of "xsltproc", so it can be a program name with args.
10783 set dummy xsltproc; ac_word=$2
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10785 $as_echo_n "checking for $ac_word... " >&6; }
10786 if ${ac_cv_path_XSLTPROC+:} false; then :
10787   $as_echo_n "(cached) " >&6
10788 else
10789   case $XSLTPROC in
10790   [\\/]* | ?:[\\/]*)
10791   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10792   ;;
10793   *)
10794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797   IFS=$as_save_IFS
10798   test -z "$as_dir" && as_dir=.
10799     for ac_exec_ext in '' $ac_executable_extensions; do
10800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803     break 2
10804   fi
10805 done
10806   done
10807 IFS=$as_save_IFS
10808
10809   ;;
10810 esac
10811 fi
10812 XSLTPROC=$ac_cv_path_XSLTPROC
10813 if test -n "$XSLTPROC"; then
10814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10815 $as_echo "$XSLTPROC" >&6; }
10816 else
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10819 fi
10820
10821
10822    if test "x$XSLTPROC" = "x"; then
10823         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
10824 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
10825         have_xsltproc=no
10826    else
10827         have_xsltproc=yes
10828    fi
10829 elif test "x$use_xsltproc" = x"yes" ; then
10830    # Extract the first word of "xsltproc", so it can be a program name with args.
10831 set dummy xsltproc; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_XSLTPROC+:} false; then :
10835   $as_echo_n "(cached) " >&6
10836 else
10837   case $XSLTPROC in
10838   [\\/]* | ?:[\\/]*)
10839   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
10840   ;;
10841   *)
10842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10844 do
10845   IFS=$as_save_IFS
10846   test -z "$as_dir" && as_dir=.
10847     for ac_exec_ext in '' $ac_executable_extensions; do
10848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10849     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
10850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851     break 2
10852   fi
10853 done
10854   done
10855 IFS=$as_save_IFS
10856
10857   ;;
10858 esac
10859 fi
10860 XSLTPROC=$ac_cv_path_XSLTPROC
10861 if test -n "$XSLTPROC"; then
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
10863 $as_echo "$XSLTPROC" >&6; }
10864 else
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868
10869
10870    if test "x$XSLTPROC" = "x"; then
10871         as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
10872    fi
10873    have_xsltproc=yes
10874 elif test "x$use_xsltproc" = x"no" ; then
10875    if test "x$XSLTPROC" != "x"; then
10876       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
10877 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
10878    fi
10879    have_xsltproc=no
10880 else
10881    as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
10882 fi
10883
10884  if test "$have_xsltproc" = yes; then
10885   HAVE_XSLTPROC_TRUE=
10886   HAVE_XSLTPROC_FALSE='#'
10887 else
10888   HAVE_XSLTPROC_TRUE='#'
10889   HAVE_XSLTPROC_FALSE=
10890 fi
10891
10892
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
10895 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
10896 XORG_SGML_PATH=
10897 if test -n "$PKG_CONFIG" && \
10898     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
10899   ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
10900   ac_status=$?
10901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902   test $ac_status = 0; }; then
10903   XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
10904 else
10905   :
10906
10907 fi
10908
10909 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
10910 # the path and the name of the doc stylesheet
10911 if test "x$XORG_SGML_PATH" != "x" ; then
10912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
10913 $as_echo "$XORG_SGML_PATH" >&6; }
10914    STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
10915    XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
10916 else
10917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920
10921
10922
10923
10924  if test "x$XSL_STYLESHEET" != "x"; then
10925   HAVE_STYLESHEETS_TRUE=
10926   HAVE_STYLESHEETS_FALSE='#'
10927 else
10928   HAVE_STYLESHEETS_TRUE='#'
10929   HAVE_STYLESHEETS_FALSE=
10930 fi
10931
10932
10933
10934 ac_config_files="$ac_config_files Makefile specs/Makefile kbproto.pc"
10935
10936 cat >confcache <<\_ACEOF
10937 # This file is a shell script that caches the results of configure
10938 # tests run on this system so they can be shared between configure
10939 # scripts and configure runs, see configure's option --config-cache.
10940 # It is not useful on other systems.  If it contains results you don't
10941 # want to keep, you may remove or edit it.
10942 #
10943 # config.status only pays attention to the cache file if you give it
10944 # the --recheck option to rerun configure.
10945 #
10946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10948 # following values.
10949
10950 _ACEOF
10951
10952 # The following way of writing the cache mishandles newlines in values,
10953 # but we know of no workaround that is simple, portable, and efficient.
10954 # So, we kill variables containing newlines.
10955 # Ultrix sh set writes to stderr and can't be redirected directly,
10956 # and sets the high bit in the cache file unless we assign to the vars.
10957 (
10958   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10959     eval ac_val=\$$ac_var
10960     case $ac_val in #(
10961     *${as_nl}*)
10962       case $ac_var in #(
10963       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10965       esac
10966       case $ac_var in #(
10967       _ | IFS | as_nl) ;; #(
10968       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10969       *) { eval $ac_var=; unset $ac_var;} ;;
10970       esac ;;
10971     esac
10972   done
10973
10974   (set) 2>&1 |
10975     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10976     *${as_nl}ac_space=\ *)
10977       # `set' does not quote correctly, so add quotes: double-quote
10978       # substitution turns \\\\ into \\, and sed turns \\ into \.
10979       sed -n \
10980         "s/'/'\\\\''/g;
10981           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10982       ;; #(
10983     *)
10984       # `set' quotes correctly as required by POSIX, so do not add quotes.
10985       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10986       ;;
10987     esac |
10988     sort
10989 ) |
10990   sed '
10991      /^ac_cv_env_/b end
10992      t clear
10993      :clear
10994      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10995      t end
10996      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10997      :end' >>confcache
10998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10999   if test -w "$cache_file"; then
11000     if test "x$cache_file" != "x/dev/null"; then
11001       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11002 $as_echo "$as_me: updating cache $cache_file" >&6;}
11003       if test ! -f "$cache_file" || test -h "$cache_file"; then
11004         cat confcache >"$cache_file"
11005       else
11006         case $cache_file in #(
11007         */* | ?:*)
11008           mv -f confcache "$cache_file"$$ &&
11009           mv -f "$cache_file"$$ "$cache_file" ;; #(
11010         *)
11011           mv -f confcache "$cache_file" ;;
11012         esac
11013       fi
11014     fi
11015   else
11016     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11018   fi
11019 fi
11020 rm -f confcache
11021
11022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11023 # Let make expand exec_prefix.
11024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11025
11026 # Transform confdefs.h into DEFS.
11027 # Protect against shell expansion while executing Makefile rules.
11028 # Protect against Makefile macro expansion.
11029 #
11030 # If the first sed substitution is executed (which looks for macros that
11031 # take arguments), then branch to the quote section.  Otherwise,
11032 # look for a macro that doesn't take arguments.
11033 ac_script='
11034 :mline
11035 /\\$/{
11036  N
11037  s,\\\n,,
11038  b mline
11039 }
11040 t clear
11041 :clear
11042 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11043 t quote
11044 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11045 t quote
11046 b any
11047 :quote
11048 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11049 s/\[/\\&/g
11050 s/\]/\\&/g
11051 s/\$/$$/g
11052 H
11053 :any
11054 ${
11055         g
11056         s/^\n//
11057         s/\n/ /g
11058         p
11059 }
11060 '
11061 DEFS=`sed -n "$ac_script" confdefs.h`
11062
11063
11064 ac_libobjs=
11065 ac_ltlibobjs=
11066 U=
11067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11068   # 1. Remove the extension, and $U if already installed.
11069   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11070   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11071   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11072   #    will be set to the directory where LIBOBJS objects are built.
11073   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11074   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11075 done
11076 LIBOBJS=$ac_libobjs
11077
11078 LTLIBOBJS=$ac_ltlibobjs
11079
11080
11081  if test -n "$EXEEXT"; then
11082   am__EXEEXT_TRUE=
11083   am__EXEEXT_FALSE='#'
11084 else
11085   am__EXEEXT_TRUE='#'
11086   am__EXEEXT_FALSE=
11087 fi
11088
11089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11090   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11092 fi
11093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11094   as_fn_error $? "conditional \"AMDEP\" was never defined.
11095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11096 fi
11097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11098   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11100 fi
11101 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
11102   as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
11103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11104 fi
11105 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11106   as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11108 fi
11109 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11110   as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11112 fi
11113 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11114   as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11116 fi
11117 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11118   as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11120 fi
11121 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11122   as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11124 fi
11125
11126 : "${CONFIG_STATUS=./config.status}"
11127 ac_write_fail=0
11128 ac_clean_files_save=$ac_clean_files
11129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11132 as_write_fail=0
11133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11134 #! $SHELL
11135 # Generated by $as_me.
11136 # Run this file to recreate the current configuration.
11137 # Compiler output produced by configure, useful for debugging
11138 # configure, is in config.log if it exists.
11139
11140 debug=false
11141 ac_cs_recheck=false
11142 ac_cs_silent=false
11143
11144 SHELL=\${CONFIG_SHELL-$SHELL}
11145 export SHELL
11146 _ASEOF
11147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11148 ## -------------------- ##
11149 ## M4sh Initialization. ##
11150 ## -------------------- ##
11151
11152 # Be more Bourne compatible
11153 DUALCASE=1; export DUALCASE # for MKS sh
11154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11155   emulate sh
11156   NULLCMD=:
11157   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11158   # is contrary to our usage.  Disable this feature.
11159   alias -g '${1+"$@"}'='"$@"'
11160   setopt NO_GLOB_SUBST
11161 else
11162   case `(set -o) 2>/dev/null` in #(
11163   *posix*) :
11164     set -o posix ;; #(
11165   *) :
11166      ;;
11167 esac
11168 fi
11169
11170
11171 as_nl='
11172 '
11173 export as_nl
11174 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11175 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11178 # Prefer a ksh shell builtin over an external printf program on Solaris,
11179 # but without wasting forks for bash or zsh.
11180 if test -z "$BASH_VERSION$ZSH_VERSION" \
11181     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11182   as_echo='print -r --'
11183   as_echo_n='print -rn --'
11184 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11185   as_echo='printf %s\n'
11186   as_echo_n='printf %s'
11187 else
11188   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11189     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11190     as_echo_n='/usr/ucb/echo -n'
11191   else
11192     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11193     as_echo_n_body='eval
11194       arg=$1;
11195       case $arg in #(
11196       *"$as_nl"*)
11197         expr "X$arg" : "X\\(.*\\)$as_nl";
11198         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11199       esac;
11200       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11201     '
11202     export as_echo_n_body
11203     as_echo_n='sh -c $as_echo_n_body as_echo'
11204   fi
11205   export as_echo_body
11206   as_echo='sh -c $as_echo_body as_echo'
11207 fi
11208
11209 # The user is always right.
11210 if test "${PATH_SEPARATOR+set}" != set; then
11211   PATH_SEPARATOR=:
11212   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11213     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11214       PATH_SEPARATOR=';'
11215   }
11216 fi
11217
11218
11219 # IFS
11220 # We need space, tab and new line, in precisely that order.  Quoting is
11221 # there to prevent editors from complaining about space-tab.
11222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11223 # splitting by setting IFS to empty value.)
11224 IFS=" ""        $as_nl"
11225
11226 # Find who we are.  Look in the path if we contain no directory separator.
11227 as_myself=
11228 case $0 in #((
11229   *[\\/]* ) as_myself=$0 ;;
11230   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11232 do
11233   IFS=$as_save_IFS
11234   test -z "$as_dir" && as_dir=.
11235     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11236   done
11237 IFS=$as_save_IFS
11238
11239      ;;
11240 esac
11241 # We did not find ourselves, most probably we were run as `sh COMMAND'
11242 # in which case we are not to be found in the path.
11243 if test "x$as_myself" = x; then
11244   as_myself=$0
11245 fi
11246 if test ! -f "$as_myself"; then
11247   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11248   exit 1
11249 fi
11250
11251 # Unset variables that we do not need and which cause bugs (e.g. in
11252 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11253 # suppresses any "Segmentation fault" message there.  '((' could
11254 # trigger a bug in pdksh 5.2.14.
11255 for as_var in BASH_ENV ENV MAIL MAILPATH
11256 do eval test x\${$as_var+set} = xset \
11257   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11258 done
11259 PS1='$ '
11260 PS2='> '
11261 PS4='+ '
11262
11263 # NLS nuisances.
11264 LC_ALL=C
11265 export LC_ALL
11266 LANGUAGE=C
11267 export LANGUAGE
11268
11269 # CDPATH.
11270 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11271
11272
11273 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11274 # ----------------------------------------
11275 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11276 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11277 # script with STATUS, using 1 if that was 0.
11278 as_fn_error ()
11279 {
11280   as_status=$1; test $as_status -eq 0 && as_status=1
11281   if test "$4"; then
11282     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11283     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11284   fi
11285   $as_echo "$as_me: error: $2" >&2
11286   as_fn_exit $as_status
11287 } # as_fn_error
11288
11289
11290 # as_fn_set_status STATUS
11291 # -----------------------
11292 # Set $? to STATUS, without forking.
11293 as_fn_set_status ()
11294 {
11295   return $1
11296 } # as_fn_set_status
11297
11298 # as_fn_exit STATUS
11299 # -----------------
11300 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11301 as_fn_exit ()
11302 {
11303   set +e
11304   as_fn_set_status $1
11305   exit $1
11306 } # as_fn_exit
11307
11308 # as_fn_unset VAR
11309 # ---------------
11310 # Portably unset VAR.
11311 as_fn_unset ()
11312 {
11313   { eval $1=; unset $1;}
11314 }
11315 as_unset=as_fn_unset
11316 # as_fn_append VAR VALUE
11317 # ----------------------
11318 # Append the text in VALUE to the end of the definition contained in VAR. Take
11319 # advantage of any shell optimizations that allow amortized linear growth over
11320 # repeated appends, instead of the typical quadratic growth present in naive
11321 # implementations.
11322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11323   eval 'as_fn_append ()
11324   {
11325     eval $1+=\$2
11326   }'
11327 else
11328   as_fn_append ()
11329   {
11330     eval $1=\$$1\$2
11331   }
11332 fi # as_fn_append
11333
11334 # as_fn_arith ARG...
11335 # ------------------
11336 # Perform arithmetic evaluation on the ARGs, and store the result in the
11337 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11338 # must be portable across $(()) and expr.
11339 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11340   eval 'as_fn_arith ()
11341   {
11342     as_val=$(( $* ))
11343   }'
11344 else
11345   as_fn_arith ()
11346   {
11347     as_val=`expr "$@" || test $? -eq 1`
11348   }
11349 fi # as_fn_arith
11350
11351
11352 if expr a : '\(a\)' >/dev/null 2>&1 &&
11353    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11354   as_expr=expr
11355 else
11356   as_expr=false
11357 fi
11358
11359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11360   as_basename=basename
11361 else
11362   as_basename=false
11363 fi
11364
11365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11366   as_dirname=dirname
11367 else
11368   as_dirname=false
11369 fi
11370
11371 as_me=`$as_basename -- "$0" ||
11372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11373          X"$0" : 'X\(//\)$' \| \
11374          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11375 $as_echo X/"$0" |
11376     sed '/^.*\/\([^/][^/]*\)\/*$/{
11377             s//\1/
11378             q
11379           }
11380           /^X\/\(\/\/\)$/{
11381             s//\1/
11382             q
11383           }
11384           /^X\/\(\/\).*/{
11385             s//\1/
11386             q
11387           }
11388           s/.*/./; q'`
11389
11390 # Avoid depending upon Character Ranges.
11391 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11392 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11393 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11394 as_cr_digits='0123456789'
11395 as_cr_alnum=$as_cr_Letters$as_cr_digits
11396
11397 ECHO_C= ECHO_N= ECHO_T=
11398 case `echo -n x` in #(((((
11399 -n*)
11400   case `echo 'xy\c'` in
11401   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11402   xy)  ECHO_C='\c';;
11403   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11404        ECHO_T=' ';;
11405   esac;;
11406 *)
11407   ECHO_N='-n';;
11408 esac
11409
11410 rm -f conf$$ conf$$.exe conf$$.file
11411 if test -d conf$$.dir; then
11412   rm -f conf$$.dir/conf$$.file
11413 else
11414   rm -f conf$$.dir
11415   mkdir conf$$.dir 2>/dev/null
11416 fi
11417 if (echo >conf$$.file) 2>/dev/null; then
11418   if ln -s conf$$.file conf$$ 2>/dev/null; then
11419     as_ln_s='ln -s'
11420     # ... but there are two gotchas:
11421     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11422     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11423     # In both cases, we have to default to `cp -p'.
11424     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11425       as_ln_s='cp -p'
11426   elif ln conf$$.file conf$$ 2>/dev/null; then
11427     as_ln_s=ln
11428   else
11429     as_ln_s='cp -p'
11430   fi
11431 else
11432   as_ln_s='cp -p'
11433 fi
11434 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11435 rmdir conf$$.dir 2>/dev/null
11436
11437
11438 # as_fn_mkdir_p
11439 # -------------
11440 # Create "$as_dir" as a directory, including parents if necessary.
11441 as_fn_mkdir_p ()
11442 {
11443
11444   case $as_dir in #(
11445   -*) as_dir=./$as_dir;;
11446   esac
11447   test -d "$as_dir" || eval $as_mkdir_p || {
11448     as_dirs=
11449     while :; do
11450       case $as_dir in #(
11451       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11452       *) as_qdir=$as_dir;;
11453       esac
11454       as_dirs="'$as_qdir' $as_dirs"
11455       as_dir=`$as_dirname -- "$as_dir" ||
11456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11457          X"$as_dir" : 'X\(//\)[^/]' \| \
11458          X"$as_dir" : 'X\(//\)$' \| \
11459          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11460 $as_echo X"$as_dir" |
11461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11462             s//\1/
11463             q
11464           }
11465           /^X\(\/\/\)[^/].*/{
11466             s//\1/
11467             q
11468           }
11469           /^X\(\/\/\)$/{
11470             s//\1/
11471             q
11472           }
11473           /^X\(\/\).*/{
11474             s//\1/
11475             q
11476           }
11477           s/.*/./; q'`
11478       test -d "$as_dir" && break
11479     done
11480     test -z "$as_dirs" || eval "mkdir $as_dirs"
11481   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11482
11483
11484 } # as_fn_mkdir_p
11485 if mkdir -p . 2>/dev/null; then
11486   as_mkdir_p='mkdir -p "$as_dir"'
11487 else
11488   test -d ./-p && rmdir ./-p
11489   as_mkdir_p=false
11490 fi
11491
11492 if test -x / >/dev/null 2>&1; then
11493   as_test_x='test -x'
11494 else
11495   if ls -dL / >/dev/null 2>&1; then
11496     as_ls_L_option=L
11497   else
11498     as_ls_L_option=
11499   fi
11500   as_test_x='
11501     eval sh -c '\''
11502       if test -d "$1"; then
11503         test -d "$1/.";
11504       else
11505         case $1 in #(
11506         -*)set "./$1";;
11507         esac;
11508         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11509         ???[sx]*):;;*)false;;esac;fi
11510     '\'' sh
11511   '
11512 fi
11513 as_executable_p=$as_test_x
11514
11515 # Sed expression to map a string onto a valid CPP name.
11516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11517
11518 # Sed expression to map a string onto a valid variable name.
11519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11520
11521
11522 exec 6>&1
11523 ## ----------------------------------- ##
11524 ## Main body of $CONFIG_STATUS script. ##
11525 ## ----------------------------------- ##
11526 _ASEOF
11527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11528
11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 # Save the log message, to keep $0 and so on meaningful, and to
11531 # report actual input values of CONFIG_FILES etc. instead of their
11532 # values after options handling.
11533 ac_log="
11534 This file was extended by KBProto $as_me 1.0.6, which was
11535 generated by GNU Autoconf 2.68.  Invocation command line was
11536
11537   CONFIG_FILES    = $CONFIG_FILES
11538   CONFIG_HEADERS  = $CONFIG_HEADERS
11539   CONFIG_LINKS    = $CONFIG_LINKS
11540   CONFIG_COMMANDS = $CONFIG_COMMANDS
11541   $ $0 $@
11542
11543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11544 "
11545
11546 _ACEOF
11547
11548 case $ac_config_files in *"
11549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11550 esac
11551
11552
11553
11554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11555 # Files that config.status was made for.
11556 config_files="$ac_config_files"
11557 config_commands="$ac_config_commands"
11558
11559 _ACEOF
11560
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11562 ac_cs_usage="\
11563 \`$as_me' instantiates files and other configuration actions
11564 from templates according to the current configuration.  Unless the files
11565 and actions are specified as TAGs, all are instantiated by default.
11566
11567 Usage: $0 [OPTION]... [TAG]...
11568
11569   -h, --help       print this help, then exit
11570   -V, --version    print version number and configuration settings, then exit
11571       --config     print configuration, then exit
11572   -q, --quiet, --silent
11573                    do not print progress messages
11574   -d, --debug      don't remove temporary files
11575       --recheck    update $as_me by reconfiguring in the same conditions
11576       --file=FILE[:TEMPLATE]
11577                    instantiate the configuration file FILE
11578
11579 Configuration files:
11580 $config_files
11581
11582 Configuration commands:
11583 $config_commands
11584
11585 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11586
11587 _ACEOF
11588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11590 ac_cs_version="\\
11591 KBProto config.status 1.0.6
11592 configured by $0, generated by GNU Autoconf 2.68,
11593   with options \\"\$ac_cs_config\\"
11594
11595 Copyright (C) 2010 Free Software Foundation, Inc.
11596 This config.status script is free software; the Free Software Foundation
11597 gives unlimited permission to copy, distribute and modify it."
11598
11599 ac_pwd='$ac_pwd'
11600 srcdir='$srcdir'
11601 INSTALL='$INSTALL'
11602 MKDIR_P='$MKDIR_P'
11603 AWK='$AWK'
11604 test -n "\$AWK" || AWK=awk
11605 _ACEOF
11606
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608 # The default lists apply if the user does not specify any file.
11609 ac_need_defaults=:
11610 while test $# != 0
11611 do
11612   case $1 in
11613   --*=?*)
11614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11616     ac_shift=:
11617     ;;
11618   --*=)
11619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11620     ac_optarg=
11621     ac_shift=:
11622     ;;
11623   *)
11624     ac_option=$1
11625     ac_optarg=$2
11626     ac_shift=shift
11627     ;;
11628   esac
11629
11630   case $ac_option in
11631   # Handling of the options.
11632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11633     ac_cs_recheck=: ;;
11634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11635     $as_echo "$ac_cs_version"; exit ;;
11636   --config | --confi | --conf | --con | --co | --c )
11637     $as_echo "$ac_cs_config"; exit ;;
11638   --debug | --debu | --deb | --de | --d | -d )
11639     debug=: ;;
11640   --file | --fil | --fi | --f )
11641     $ac_shift
11642     case $ac_optarg in
11643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11644     '') as_fn_error $? "missing file argument" ;;
11645     esac
11646     as_fn_append CONFIG_FILES " '$ac_optarg'"
11647     ac_need_defaults=false;;
11648   --he | --h |  --help | --hel | -h )
11649     $as_echo "$ac_cs_usage"; exit ;;
11650   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11651   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11652     ac_cs_silent=: ;;
11653
11654   # This is an error.
11655   -*) as_fn_error $? "unrecognized option: \`$1'
11656 Try \`$0 --help' for more information." ;;
11657
11658   *) as_fn_append ac_config_targets " $1"
11659      ac_need_defaults=false ;;
11660
11661   esac
11662   shift
11663 done
11664
11665 ac_configure_extra_args=
11666
11667 if $ac_cs_silent; then
11668   exec 6>/dev/null
11669   ac_configure_extra_args="$ac_configure_extra_args --silent"
11670 fi
11671
11672 _ACEOF
11673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11674 if \$ac_cs_recheck; then
11675   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11676   shift
11677   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11678   CONFIG_SHELL='$SHELL'
11679   export CONFIG_SHELL
11680   exec "\$@"
11681 fi
11682
11683 _ACEOF
11684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11685 exec 5>>config.log
11686 {
11687   echo
11688   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11689 ## Running $as_me. ##
11690 _ASBOX
11691   $as_echo "$ac_log"
11692 } >&5
11693
11694 _ACEOF
11695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11696 #
11697 # INIT-COMMANDS
11698 #
11699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11700
11701 _ACEOF
11702
11703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704
11705 # Handling of arguments.
11706 for ac_config_target in $ac_config_targets
11707 do
11708   case $ac_config_target in
11709     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11710     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11711     "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
11712     "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;;
11713
11714   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11715   esac
11716 done
11717
11718
11719 # If the user did not use the arguments to specify the items to instantiate,
11720 # then the envvar interface is used.  Set only those that are not.
11721 # We use the long form for the default assignment because of an extremely
11722 # bizarre bug on SunOS 4.1.3.
11723 if $ac_need_defaults; then
11724   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11725   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11726 fi
11727
11728 # Have a temporary directory for convenience.  Make it in the build tree
11729 # simply because there is no reason against having it here, and in addition,
11730 # creating and moving files from /tmp can sometimes cause problems.
11731 # Hook for its removal unless debugging.
11732 # Note that there is a small window in which the directory will not be cleaned:
11733 # after its creation but before its name has been assigned to `$tmp'.
11734 $debug ||
11735 {
11736   tmp= ac_tmp=
11737   trap 'exit_status=$?
11738   : "${ac_tmp:=$tmp}"
11739   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11740 ' 0
11741   trap 'as_fn_exit 1' 1 2 13 15
11742 }
11743 # Create a (secure) tmp directory for tmp files.
11744
11745 {
11746   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11747   test -d "$tmp"
11748 }  ||
11749 {
11750   tmp=./conf$$-$RANDOM
11751   (umask 077 && mkdir "$tmp")
11752 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11753 ac_tmp=$tmp
11754
11755 # Set up the scripts for CONFIG_FILES section.
11756 # No need to generate them if there are no CONFIG_FILES.
11757 # This happens for instance with `./config.status config.h'.
11758 if test -n "$CONFIG_FILES"; then
11759
11760
11761 ac_cr=`echo X | tr X '\015'`
11762 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11763 # But we know of no other shell where ac_cr would be empty at this
11764 # point, so we can use a bashism as a fallback.
11765 if test "x$ac_cr" = x; then
11766   eval ac_cr=\$\'\\r\'
11767 fi
11768 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11770   ac_cs_awk_cr='\\r'
11771 else
11772   ac_cs_awk_cr=$ac_cr
11773 fi
11774
11775 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11776 _ACEOF
11777
11778
11779 {
11780   echo "cat >conf$$subs.awk <<_ACEOF" &&
11781   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11782   echo "_ACEOF"
11783 } >conf$$subs.sh ||
11784   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11786 ac_delim='%!_!# '
11787 for ac_last_try in false false false false false :; do
11788   . ./conf$$subs.sh ||
11789     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11790
11791   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11792   if test $ac_delim_n = $ac_delim_num; then
11793     break
11794   elif $ac_last_try; then
11795     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11796   else
11797     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11798   fi
11799 done
11800 rm -f conf$$subs.sh
11801
11802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11804 _ACEOF
11805 sed -n '
11806 h
11807 s/^/S["/; s/!.*/"]=/
11808 p
11809 g
11810 s/^[^!]*!//
11811 :repl
11812 t repl
11813 s/'"$ac_delim"'$//
11814 t delim
11815 :nl
11816 h
11817 s/\(.\{148\}\)..*/\1/
11818 t more1
11819 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11820 p
11821 n
11822 b repl
11823 :more1
11824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11825 p
11826 g
11827 s/.\{148\}//
11828 t nl
11829 :delim
11830 h
11831 s/\(.\{148\}\)..*/\1/
11832 t more2
11833 s/["\\]/\\&/g; s/^/"/; s/$/"/
11834 p
11835 b
11836 :more2
11837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11838 p
11839 g
11840 s/.\{148\}//
11841 t delim
11842 ' <conf$$subs.awk | sed '
11843 /^[^""]/{
11844   N
11845   s/\n//
11846 }
11847 ' >>$CONFIG_STATUS || ac_write_fail=1
11848 rm -f conf$$subs.awk
11849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11850 _ACAWK
11851 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11852   for (key in S) S_is_set[key] = 1
11853   FS = "\a"
11854
11855 }
11856 {
11857   line = $ 0
11858   nfields = split(line, field, "@")
11859   substed = 0
11860   len = length(field[1])
11861   for (i = 2; i < nfields; i++) {
11862     key = field[i]
11863     keylen = length(key)
11864     if (S_is_set[key]) {
11865       value = S[key]
11866       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11867       len += length(value) + length(field[++i])
11868       substed = 1
11869     } else
11870       len += 1 + keylen
11871   }
11872
11873   print line
11874 }
11875
11876 _ACAWK
11877 _ACEOF
11878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11879 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11880   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11881 else
11882   cat
11883 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11884   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11885 _ACEOF
11886
11887 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11888 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11889 # trailing colons and then remove the whole line if VPATH becomes empty
11890 # (actually we leave an empty line to preserve line numbers).
11891 if test "x$srcdir" = x.; then
11892   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11893 h
11894 s///
11895 s/^/:/
11896 s/[      ]*$/:/
11897 s/:\$(srcdir):/:/g
11898 s/:\${srcdir}:/:/g
11899 s/:@srcdir@:/:/g
11900 s/^:*//
11901 s/:*$//
11902 x
11903 s/\(=[   ]*\).*/\1/
11904 G
11905 s/\n//
11906 s/^[^=]*=[       ]*$//
11907 }'
11908 fi
11909
11910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11911 fi # test -n "$CONFIG_FILES"
11912
11913
11914 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11915 shift
11916 for ac_tag
11917 do
11918   case $ac_tag in
11919   :[FHLC]) ac_mode=$ac_tag; continue;;
11920   esac
11921   case $ac_mode$ac_tag in
11922   :[FHL]*:*);;
11923   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11924   :[FH]-) ac_tag=-:-;;
11925   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11926   esac
11927   ac_save_IFS=$IFS
11928   IFS=:
11929   set x $ac_tag
11930   IFS=$ac_save_IFS
11931   shift
11932   ac_file=$1
11933   shift
11934
11935   case $ac_mode in
11936   :L) ac_source=$1;;
11937   :[FH])
11938     ac_file_inputs=
11939     for ac_f
11940     do
11941       case $ac_f in
11942       -) ac_f="$ac_tmp/stdin";;
11943       *) # Look for the file first in the build tree, then in the source tree
11944          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11945          # because $ac_f cannot contain `:'.
11946          test -f "$ac_f" ||
11947            case $ac_f in
11948            [\\/$]*) false;;
11949            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11950            esac ||
11951            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11952       esac
11953       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11954       as_fn_append ac_file_inputs " '$ac_f'"
11955     done
11956
11957     # Let's still pretend it is `configure' which instantiates (i.e., don't
11958     # use $as_me), people would be surprised to read:
11959     #    /* config.h.  Generated by config.status.  */
11960     configure_input='Generated from '`
11961           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11962         `' by configure.'
11963     if test x"$ac_file" != x-; then
11964       configure_input="$ac_file.  $configure_input"
11965       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11966 $as_echo "$as_me: creating $ac_file" >&6;}
11967     fi
11968     # Neutralize special characters interpreted by sed in replacement strings.
11969     case $configure_input in #(
11970     *\&* | *\|* | *\\* )
11971        ac_sed_conf_input=`$as_echo "$configure_input" |
11972        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11973     *) ac_sed_conf_input=$configure_input;;
11974     esac
11975
11976     case $ac_tag in
11977     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11978       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11979     esac
11980     ;;
11981   esac
11982
11983   ac_dir=`$as_dirname -- "$ac_file" ||
11984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985          X"$ac_file" : 'X\(//\)[^/]' \| \
11986          X"$ac_file" : 'X\(//\)$' \| \
11987          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11988 $as_echo X"$ac_file" |
11989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11990             s//\1/
11991             q
11992           }
11993           /^X\(\/\/\)[^/].*/{
11994             s//\1/
11995             q
11996           }
11997           /^X\(\/\/\)$/{
11998             s//\1/
11999             q
12000           }
12001           /^X\(\/\).*/{
12002             s//\1/
12003             q
12004           }
12005           s/.*/./; q'`
12006   as_dir="$ac_dir"; as_fn_mkdir_p
12007   ac_builddir=.
12008
12009 case "$ac_dir" in
12010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12011 *)
12012   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12013   # A ".." for each directory in $ac_dir_suffix.
12014   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12015   case $ac_top_builddir_sub in
12016   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12017   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12018   esac ;;
12019 esac
12020 ac_abs_top_builddir=$ac_pwd
12021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12022 # for backward compatibility:
12023 ac_top_builddir=$ac_top_build_prefix
12024
12025 case $srcdir in
12026   .)  # We are building in place.
12027     ac_srcdir=.
12028     ac_top_srcdir=$ac_top_builddir_sub
12029     ac_abs_top_srcdir=$ac_pwd ;;
12030   [\\/]* | ?:[\\/]* )  # Absolute name.
12031     ac_srcdir=$srcdir$ac_dir_suffix;
12032     ac_top_srcdir=$srcdir
12033     ac_abs_top_srcdir=$srcdir ;;
12034   *) # Relative name.
12035     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12036     ac_top_srcdir=$ac_top_build_prefix$srcdir
12037     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12038 esac
12039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12040
12041
12042   case $ac_mode in
12043   :F)
12044   #
12045   # CONFIG_FILE
12046   #
12047
12048   case $INSTALL in
12049   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12050   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12051   esac
12052   ac_MKDIR_P=$MKDIR_P
12053   case $MKDIR_P in
12054   [\\/$]* | ?:[\\/]* ) ;;
12055   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12056   esac
12057 _ACEOF
12058
12059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12060 # If the template does not know about datarootdir, expand it.
12061 # FIXME: This hack should be removed a few years after 2.60.
12062 ac_datarootdir_hack=; ac_datarootdir_seen=
12063 ac_sed_dataroot='
12064 /datarootdir/ {
12065   p
12066   q
12067 }
12068 /@datadir@/p
12069 /@docdir@/p
12070 /@infodir@/p
12071 /@localedir@/p
12072 /@mandir@/p'
12073 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12074 *datarootdir*) ac_datarootdir_seen=yes;;
12075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12077 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12078 _ACEOF
12079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12080   ac_datarootdir_hack='
12081   s&@datadir@&$datadir&g
12082   s&@docdir@&$docdir&g
12083   s&@infodir@&$infodir&g
12084   s&@localedir@&$localedir&g
12085   s&@mandir@&$mandir&g
12086   s&\\\${datarootdir}&$datarootdir&g' ;;
12087 esac
12088 _ACEOF
12089
12090 # Neutralize VPATH when `$srcdir' = `.'.
12091 # Shell code in configure.ac might set extrasub.
12092 # FIXME: do we really want to maintain this feature?
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 ac_sed_extra="$ac_vpsub
12095 $extrasub
12096 _ACEOF
12097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12098 :t
12099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12100 s|@configure_input@|$ac_sed_conf_input|;t t
12101 s&@top_builddir@&$ac_top_builddir_sub&;t t
12102 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12103 s&@srcdir@&$ac_srcdir&;t t
12104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12105 s&@top_srcdir@&$ac_top_srcdir&;t t
12106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12107 s&@builddir@&$ac_builddir&;t t
12108 s&@abs_builddir@&$ac_abs_builddir&;t t
12109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12110 s&@INSTALL@&$ac_INSTALL&;t t
12111 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12112 $ac_datarootdir_hack
12113 "
12114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12115   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12116
12117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12118   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12119   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12120       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12122 which seems to be undefined.  Please make sure it is defined" >&5
12123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12124 which seems to be undefined.  Please make sure it is defined" >&2;}
12125
12126   rm -f "$ac_tmp/stdin"
12127   case $ac_file in
12128   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12129   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12130   esac \
12131   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12132  ;;
12133
12134
12135   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12136 $as_echo "$as_me: executing $ac_file commands" >&6;}
12137  ;;
12138   esac
12139
12140
12141   case $ac_file$ac_mode in
12142     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12143   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12144   # are listed without --file.  Let's play safe and only enable the eval
12145   # if we detect the quoting.
12146   case $CONFIG_FILES in
12147   *\'*) eval set x "$CONFIG_FILES" ;;
12148   *)   set x $CONFIG_FILES ;;
12149   esac
12150   shift
12151   for mf
12152   do
12153     # Strip MF so we end up with the name of the file.
12154     mf=`echo "$mf" | sed -e 's/:.*$//'`
12155     # Check whether this is an Automake generated Makefile or not.
12156     # We used to match only the files named `Makefile.in', but
12157     # some people rename them; so instead we look at the file content.
12158     # Grep'ing the first line is not enough: some people post-process
12159     # each Makefile.in and add a new line on top of each file to say so.
12160     # Grep'ing the whole file is not good either: AIX grep has a line
12161     # limit of 2048, but all sed's we know have understand at least 4000.
12162     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12163       dirpart=`$as_dirname -- "$mf" ||
12164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12165          X"$mf" : 'X\(//\)[^/]' \| \
12166          X"$mf" : 'X\(//\)$' \| \
12167          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12168 $as_echo X"$mf" |
12169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12170             s//\1/
12171             q
12172           }
12173           /^X\(\/\/\)[^/].*/{
12174             s//\1/
12175             q
12176           }
12177           /^X\(\/\/\)$/{
12178             s//\1/
12179             q
12180           }
12181           /^X\(\/\).*/{
12182             s//\1/
12183             q
12184           }
12185           s/.*/./; q'`
12186     else
12187       continue
12188     fi
12189     # Extract the definition of DEPDIR, am__include, and am__quote
12190     # from the Makefile without running `make'.
12191     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12192     test -z "$DEPDIR" && continue
12193     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12194     test -z "am__include" && continue
12195     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12196     # When using ansi2knr, U may be empty or an underscore; expand it
12197     U=`sed -n 's/^U = //p' < "$mf"`
12198     # Find all dependency output files, they are included files with
12199     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12200     # simplest approach to changing $(DEPDIR) to its actual value in the
12201     # expansion.
12202     for file in `sed -n "
12203       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12204          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12205       # Make sure the directory exists.
12206       test -f "$dirpart/$file" && continue
12207       fdir=`$as_dirname -- "$file" ||
12208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12209          X"$file" : 'X\(//\)[^/]' \| \
12210          X"$file" : 'X\(//\)$' \| \
12211          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12212 $as_echo X"$file" |
12213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12214             s//\1/
12215             q
12216           }
12217           /^X\(\/\/\)[^/].*/{
12218             s//\1/
12219             q
12220           }
12221           /^X\(\/\/\)$/{
12222             s//\1/
12223             q
12224           }
12225           /^X\(\/\).*/{
12226             s//\1/
12227             q
12228           }
12229           s/.*/./; q'`
12230       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12231       # echo "creating $dirpart/$file"
12232       echo '# dummy' > "$dirpart/$file"
12233     done
12234   done
12235 }
12236  ;;
12237
12238   esac
12239 done # for ac_tag
12240
12241
12242 as_fn_exit 0
12243 _ACEOF
12244 ac_clean_files=$ac_clean_files_save
12245
12246 test $ac_write_fail = 0 ||
12247   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12248
12249
12250 # configure is writing to config.log, and then calls config.status.
12251 # config.status does its own redirection, appending to config.log.
12252 # Unfortunately, on DOS this fails, as config.log is still kept open
12253 # by configure, so config.status won't be able to write to it; its
12254 # output is simply discarded.  So we exec the FD to /dev/null,
12255 # effectively closing config.log, so it can be properly (re)opened and
12256 # appended to by config.status.  When coming back to configure, we
12257 # need to make the FD available again.
12258 if test "$no_create" != yes; then
12259   ac_cs_success=:
12260   ac_config_status_args=
12261   test "$silent" = yes &&
12262     ac_config_status_args="$ac_config_status_args --quiet"
12263   exec 5>/dev/null
12264   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12265   exec 5>>config.log
12266   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12267   # would make configure fail if this is the last instruction.
12268   $ac_cs_success || as_fn_exit 1
12269 fi
12270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12273 fi
12274